(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,961123,(e,t,o)=>{t.exports=e.r(874357)},617874,e=>{"use strict";let t="Imperial",o="Metric",r="Hybrid",i={code:"e",name:t,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},n={code:"m",name:o,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},a={code:"h",name:r,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"};e.s(["UNITS_COOKIE_KEY",0,"unitOfMeasurement","UNIT_HYBRID",0,r,"UNIT_IMPERIAL",0,t,"UNIT_METRIC",0,o,"imperial",0,i,"unitsSystemByCode",0,function(e){switch(e?.toLowerCase()){case"e":case"f":return i;case"m":case"c":return n;case"h":return a;default:return null}},"unitsSystemByName",0,function(e=""){switch(e.toLowerCase()){case"imperial":case"Imperial":return i;case"metric":case"Metric":return n;case"hybrid":case"Hybrid":return a;default:return null}}])},990033,e=>{"use strict";let t,o="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r=new Uint8Array(16),i=[];for(let e=0;e= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,n){if((u=u||0)n.length)throw RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let e=0;e{"use strict";var t,o=((t={})[t.none=-1]="none",t[t.standard=0]="standard",t[t.premium=1]="premium",t[t.adFree=2]="adFree",t[t.premiumWithAd=3]="premiumWithAd",t);let r=Object.entries(o).reduce((e,[t,o])=>(e[o]=t,e),{});Object.entries(o).reduce((e,[t,o])=>(e[o.toString()]=o,e),{}),e.s(["UserSubscriptionPremiumTiers",0,[1,2,3],"UserSubscriptionTierKeysMap",0,r,"UserSubscriptionTiers",()=>o,"UserSubscriptionTiersMap",0,{standard:0,tier0:1,tier1:1,"ad-free-v2":2,tier3:3}])},889753,301904,e=>{"use strict";var t=e.i(284007),o=e.i(617874),r=e.i(990033),i=e.i(981030),n=e.i(543512);let a={animationSpeed:1,autoplay:!0,opacity:70,roadOverlay:"default",style:"default"};e.s(["DEFAULT_MAP_SETTINGS",0,a],301904);let s=(0,i.atom)(n.UserSubscriptionTiers.none),u=(0,t.atomWithStorage)("userProfile",null,void 0,{getOnInit:!0}),l=(0,t.atomWithStorage)("userPreferences",{userID:(0,r.v4)(),unit:o.UNIT_IMPERIAL,locations:[],locale:"en_US",mapSettings:a,favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]},void 0,{getOnInit:!0});e.s(["userPreferencesAtom",0,l,"userProfileAtom",0,u,"userTierAtom",0,s],889753)},310847,174960,e=>{"use strict";var t=e.i(981030);let o=e=>e,r=e=>({_tag:"Left",value:e}),i=e=>({_tag:"Right",value:e}),n={dimap:(e,t,o)=>r=>t(o(e(r))),first:e=>([t,o])=>[e(t),o],right:e=>t=>"Left"===t._tag?t:i(e(t.value)),wander:e=>t=>t.map(e)},a={empty:()=>void 0,foldMap:(e,t)=>{for(let o=0;o[],foldMap:(e,t)=>{let o=[];return t.forEach(t=>{o=o.concat(e(t))}),o}},u=e=>({dimap:(e,t,o)=>t=>o(e(t)),first:e=>([t,o])=>e(t),right:t=>o=>"Left"===o._tag?e.empty():t(o.value),wander:t=>o=>e.foldMap(t,o)}),l={Equivalence:{Equivalence:"Equivalence",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Iso:{Equivalence:"Iso",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Lens:{Equivalence:"Lens",Iso:"Lens",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Prism:{Equivalence:"Prism",Iso:"Prism",Lens:"Prism",Prism:"Prism",Traversal:"Traversal",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Traversal:{Equivalence:"Traversal",Iso:"Traversal",Lens:"Traversal",Prism:"Traversal",Traversal:"Traversal",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:"Setter"},Getter:{Equivalence:"Getter",Iso:"Getter",Lens:"Getter",Prism:"AffineFold",Traversal:"Fold",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},AffineFold:{Equivalence:"AffineFold",Iso:"AffineFold",Lens:"AffineFold",Prism:"AffineFold",Traversal:"Fold",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},Fold:{Equivalence:"Fold",Iso:"Fold",Lens:"Fold",Prism:"Fold",Traversal:"Fold",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},c=(e,t)=>(t._tag=e,t),d=e=>(e._removable=!0,e);function f(e,t,o){if(2==arguments.length){let o=(o,r)=>e(o,t(o,r));return o._tag=l[e._tag][t._tag],o._removable=t._removable||!1,o}{let r=l[e._tag][t._tag],i=(r,i)=>e(r,t(r,o(r,i)));return i._tag=l[r][o._tag],i._removable=o._removable||!1,i}}let m=c("Equivalence",(e,t)=>t),p=(e,t)=>c("Iso",(o,r)=>o.dimap(e,t,r)),g=(e,t)=>c("Lens",(o,r)=>o.dimap(t=>[e(t),t],t,o.first(r))),v=(e,t)=>c("Prism",(r,i)=>r.dimap(e,e=>"Left"===e._tag?o(e.value):t(e.value),r.right(i))),h=c("Traversal",(e,t)=>e.dimap(o,o,e.wander(t))),y=(e,t)=>e(u(s),e=>[e])(t),C=p(e=>e.map((e,t)=>[t,e]),e=>{let t=[...e].sort((e,t)=>e[0]-t[0]),o=[];for(let e=0;eg(t=>t[e],([t,o])=>Object.assign(Object.assign({},o),{[e]:t})),w=e=>g(t=>t[e],([t,o])=>{let r=o.slice();return r[e]=t,r}),S=w(0),k=e=>v(t=>e(t)?i(t):r(t),o),_=Symbol("__no_match__"),I=k(e=>e!==_),A=Symbol("__remove_me__"),P=e=>d(f(g(t=>0{if(t===_)return o;if(t===A)if("string"==typeof o)return o.substring(0,e)+o.substring(e+1);else return[...o.slice(0,e),...o.slice(e+1)];if("string"==typeof o)return 0===e?t+o.substring(1):e===o.length?o.substring(0,e-1)+t:o.substring(0,e)+t+o.substring(e+1);{let r=o.slice();return r[e]=t,r}}),I)),O=v(e=>void 0===e?r(void 0):i(e),o),L=g(e=>void 0,([e,t])=>void 0===e?t:[e,...t]),G=g(e=>void 0,([e,t])=>void 0===e?t:[...t,e]),T=f(p(e=>e.split(""),e=>e.join("")),h),F=f(p(e=>e.split(/\b/),e=>e.join("")),h,k(e=>!/\s+/.test(e)));class x{constructor(e){this._ref=e}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(e){return new x(f(this._ref,e._ref))}iso(e,t){return new x(f(this._ref,p(e,t)))}lens(e,t){return new x(f(this._ref,g(e,([e,o])=>t(o,e))))}indexed(){return new x(f(this._ref,C))}prop(e){return new x(f(this._ref,b(e)))}path(...e){return 1===e.length&&(e=e[0].split(".")),new x(e.reduce((e,t)=>f(e,b(t)),this._ref))}pick(e){return new x(f(this._ref,g(t=>{let o={};for(let r of e)o[r]=t[r];return o},([t,o])=>{let r=Object.assign({},o);for(let t of e)delete r[t];return Object.assign(r,t)})))}nth(e){return new x(f(this._ref,w(e)))}filter(e){return new x(f(this._ref,f(g(t=>{let o=t.map((t,o)=>e(t)?o:null).filter(e=>null!=e);return[o.map(e=>t[e]),o]},([[e,t],o])=>{let r=o.length,i=e.length,n=0,a=0,s=0,u=[];for(;nvoid 0===t?e:t,([e,t])=>e)))}partsOf(e){let t,o="function"==typeof e?e(R):e;return new x(f(this._ref,(t=o._ref,f(g(e=>{let o=y(t,e);return[o,o.length]},([[e,o],r])=>{if(e.length!==o)throw Error("cannot add/remove elements through partsOf");let i=0;return t(n,()=>e[i++])(r)}),S))))}reread(e){return new x(f(this._ref,g(t=>e(t),([e,t])=>e)))}rewrite(e){return new x(f(this._ref,g(e=>e,([t,o])=>e(t))))}optional(){return new x(f(this._ref,O))}guard_(){return e=>this.guard(e)}guard(e){return new x(f(this._ref,v(t=>e(t)?i(t):r(t),o)))}at(e){return new x(f(this._ref,P(e)))}head(){return new x(f(this._ref,P(0)))}index(e){return new x(f(this._ref,P(e)))}find(e){return new x(f(this._ref,d(f(g(t=>{let o=t.findIndex(e);return -1===o?[_,-1]:[t[o],o]},([[e,t],o])=>{if(e===_)return o;if(e===A)return[...o.slice(0,t),...o.slice(t+1)];let r=o.slice();return r[t]=e,r}),S,I))))}elems(){return new x(f(this._ref,h))}to(e){return new x(f(this._ref,c("Getter",(t,r)=>t.dimap(e,o,r))))}when(e){return new x(f(this._ref,k(e)))}chars(){return new x(f(this._ref,T))}words(){return new x(f(this._ref,F))}prependTo(){return new x(f(this._ref,L))}appendTo(){return new x(f(this._ref,G))}}let R=new x(m),D=(e,t,o)=>(t.has(o)?t:t.set(o,e())).get(o),E=new WeakMap;function N(e,o){var r;let i;return r=()=>{let r=o(R);return(0,t.atom)(t=>{let o=t(e);return o instanceof Promise?o.then(e=>j(r,e)):j(r,o)},(t,o,i)=>{let a="function"==typeof i?(e=>t=>{let o;return o=r._ref,o(n,e)(t)})(i):(e=>t=>{let o;return o=r._ref,o(n,()=>e)(t)})(i),s=t(e);return o(e,s instanceof Promise?s.then(a):a(s))})},i=D(()=>new WeakMap,E,e),D(r,i,o)}let j=(e,t)=>"Traversal"===e._tag?(t=>y(e._ref,t))(t):"Prism"===e._tag?(t=>{let r;return r=e._ref,r(u(a),o)(t)})(t):(t=>{let r;return r=e._ref,r(u({}),o)(t)})(t);e.s(["focusAtom",0,N],174960);var M=e.i(284007);let U=(0,M.createJSONStorage)(),q={...U,getItem:(e,t)=>(function(e,t){if(!e)return t;if(e.nextgenSidecar)return e;let{locationFeatureIds:o,recentLocationsData:r,locationFeatureIdSweepVersion:i,...n}=e;return{...n,nextgenSidecar:{locationFeatureIds:o,recentLocationsData:r,locationFeatureIdSweepVersion:i}}})(U.getItem(e,t),t)},$=(0,M.atomWithStorage)("wxu-web/keyval:user",{recentLocations:[],recentAddresses:[],userHasLoggedInBefore:!1,userPreference:{},nextgenSidecar:{locationFeatureIds:{},recentLocationsData:{}}},q,{getOnInit:!0}),V=N($,e=>e.prop("anonymousId")),W=N($,e=>e.prop("userHasLoggedInBefore")),H=N($,e=>e.prop("recentLocations")),B=N($,e=>e.prop("recentAddresses")),K=N($,e=>e.prop("userPreference")),J=N($,e=>e.prop("nextgenSidecar").prop("locationFeatureIds")),Y=N($,e=>e.prop("nextgenSidecar").prop("recentLocationsData")),z=N($,e=>e.prop("nextgenSidecar").prop("locationFeatureIdSweepVersion")),Z=N((0,M.atomWithStorage)("wxu-web/keyval:user-account",{userAccountResponse:null},void 0,{getOnInit:!0}),e=>e.prop("userAccountResponse")),Q=(0,M.atomWithStorage)("wxu-web/keyval:LOGIN_REDIRECT_PAGE","/",void 0,{getOnInit:!0}),X=(0,t.atom)(e=>e(Q),(e,t,o)=>{let r=RegExp("\\/login|\\/signup|\\/forgot-password|\\/reset-password");o.match(r)||t(Q,o)});e.s(["userHasLoggedInBeforeAtom",0,W,"wxuLoginRedirectPageAtom",0,X,"wxuUserAccountUserAccountResponseAtom",0,Z,"wxuUserAnonymousIdAtom",0,V,"wxuUserLocationFeatureIdSweepVersionAtom",0,z,"wxuUserLocationFeatureIdsAtom",0,J,"wxuUserPreferenceAtom",0,K,"wxuUserRecentAddressesAtom",0,B,"wxuUserRecentLocationsAtom",0,H,"wxuUserRecentLocationsDataAtom",0,Y],310847)},333350,e=>{"use strict";let t=!!window.document&&!!window.document.createElement;e.s(["default",0,t])},903023,(e,t,o)=>{"use strict";var r=e.e&&e.e.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,r=arguments.length;o0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]t.indexOf(r)&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(o[r[i]]=e[r[i]]);return o};Object.defineProperty(o,"__esModule",{value:!0}),o.hasCookie=o.deleteCookie=o.setCookie=o.getCookie=o.getCookies=void 0;var l=e.r(222792),c=e.r(255232),d=function(e){if((0,c.isClientSide)(e))throw Error("You are trying to access cookies on the client side. Please, use the client-side import with `cookies-next/client` instead.")},f=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},m=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&f(e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&f(e.res.cookies)||!!e&&"cookies"in e&&"function"==typeof e.cookies},p=function(e){var t={};return e.getAll().forEach(function(e){var o=e.name,r=e.value;t[o]=r}),t},g=function(e){return a(void 0,void 0,void 0,function(){var t,o;return s(this,function(r){switch(r.label){case 0:if(d(e),!m(e))return[3,2];if(e.req)return[2,p(e.req.cookies)];if(e.res)return[2,p(e.res.cookies)];if(!e.cookies)return[3,2];return t=p,[4,e.cookies()];case 1:return[2,t.apply(void 0,[r.sent()])];case 2:if((null==e?void 0:e.req)&&(o=e.req),null==o?void 0:o.cookies)return[2,o.cookies];if(null==o?void 0:o.headers.cookie)return[2,(0,l.parse)(o.headers.cookie)];return[2,{}]}})})};o.getCookies=g,o.getCookie=function(e,t){return a(void 0,void 0,void 0,function(){var o;return s(this,function(r){switch(r.label){case 0:return d(t),[4,g(t)];case 1:if(void 0===(o=r.sent()[e]))return[2,void 0];return[2,(0,c.decode)(o)]}})})};var v=function(e,t,o){return a(void 0,void 0,void 0,function(){var i,n,a,f,p,g,v,h,y,C,b,w,S,k,_;return s(this,function(s){switch(s.label){case 0:if(d(o),!m(o))return[3,3];if(i=o.req,n=o.res,a=o.cookies,f=u(o,["req","res","cookies"]),p=r({name:e,value:(0,c.stringify)(t)},f),i&&i.cookies.set(p),n&&n.cookies.set(p),!a)return[3,2];return[4,a()];case 1:s.sent().set(p),s.label=2;case 2:return[2];case 3:return g={},o&&(C=(y=o).req,b=y.res,w=u(y,["req","res"]),v=C,h=b,g=w),S=(0,l.serialize)(e,(0,c.stringify)(t),r({path:"/"},g)),h&&v&&(Array.isArray(k=h.getHeader("Set-Cookie"))||(k=k?[String(k)]:[]),h.setHeader("Set-Cookie",k.concat(S)),v&&v.cookies&&(_=v.cookies,""===t?delete _[e]:_[e]=(0,c.stringify)(t)),v&&v.headers&&v.headers.cookie&&(_=(0,l.parse)(v.headers.cookie),""===t?delete _[e]:_[e]=(0,c.stringify)(t),v.headers.cookie=Object.entries(_).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},""))),[2]}})})};o.setCookie=v,o.deleteCookie=function(e,t){return a(void 0,void 0,void 0,function(){return s(this,function(o){return d(t),[2,v(e,"",r(r({},t),{maxAge:-1}))]})})},o.hasCookie=function(e,t){return a(void 0,void 0,void 0,function(){return s(this,function(o){switch(o.label){case 0:if(d(t),!e)return[2,!1];return[4,g(t)];case 1:return[2,o.sent().hasOwnProperty(e)]}})})},n(e.r(580023),o)},530102,(e,t,o)=>{"use strict";var r=e.e&&e.e.__createBinding||(Object.create?function(e,t,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(t,o);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,r,i)}:function(e,t,o,r){void 0===r&&(r=o),e[r]=t[o]}),i=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t},a=e.e&&e.e.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||r(t,e,o)};Object.defineProperty(o,"__esModule",{value:!0}),o.CookiesNextProvider=o.useReactiveCookiesNext=o.useReactiveHasCookie=o.useReactiveDeleteCookie=o.useReactiveSetCookie=o.useReactiveGetCookie=o.useReactiveGetCookies=o.useCookiesNext=o.useDeleteCookie=o.useGetCookie=o.useSetCookie=o.useHasCookie=o.useGetCookies=o.hasCookie=o.deleteCookie=o.setCookie=o.getCookie=o.getCookies=void 0;var s=n(e.r(858040)),u=n(e.r(903023));a(e.r(580023),o);var l=e.r(255232);o.getCookies=function(e){return(0,l.isClientSide)(e)?s.getCookies(e):u.getCookies(e)},o.getCookie=function(e,t){return(0,l.isClientSide)(t)?s.getCookie(e,t):u.getCookie(e,t)},o.setCookie=function(e,t,o){return(0,l.isClientSide)(o)?s.setCookie(e,t,o):u.setCookie(e,t,o)},o.deleteCookie=function(e,t){return(0,l.isClientSide)(t)?s.deleteCookie(e,t):u.deleteCookie(e,t)},o.hasCookie=function(e,t){return(0,l.isClientSide)(t)?s.hasCookie(e,t):u.hasCookie(e,t)};var c=e.r(858040);Object.defineProperty(o,"useGetCookies",{enumerable:!0,get:function(){return c.useGetCookies}}),Object.defineProperty(o,"useHasCookie",{enumerable:!0,get:function(){return c.useHasCookie}}),Object.defineProperty(o,"useSetCookie",{enumerable:!0,get:function(){return c.useSetCookie}}),Object.defineProperty(o,"useGetCookie",{enumerable:!0,get:function(){return c.useGetCookie}}),Object.defineProperty(o,"useDeleteCookie",{enumerable:!0,get:function(){return c.useDeleteCookie}}),Object.defineProperty(o,"useCookiesNext",{enumerable:!0,get:function(){return c.useCookiesNext}}),Object.defineProperty(o,"useReactiveGetCookies",{enumerable:!0,get:function(){return c.useReactiveGetCookies}}),Object.defineProperty(o,"useReactiveGetCookie",{enumerable:!0,get:function(){return c.useReactiveGetCookie}}),Object.defineProperty(o,"useReactiveSetCookie",{enumerable:!0,get:function(){return c.useReactiveSetCookie}}),Object.defineProperty(o,"useReactiveDeleteCookie",{enumerable:!0,get:function(){return c.useReactiveDeleteCookie}}),Object.defineProperty(o,"useReactiveHasCookie",{enumerable:!0,get:function(){return c.useReactiveHasCookie}}),Object.defineProperty(o,"useReactiveCookiesNext",{enumerable:!0,get:function(){return c.useReactiveCookiesNext}}),Object.defineProperty(o,"CookiesNextProvider",{enumerable:!0,get:function(){return c.CookiesNextProvider}})},950771,e=>{"use strict";let t=(0,e.i(981030).atom)("en-US");e.s(["pageLocaleAtom",0,t])},609717,e=>{"use strict";e.i(950771),e.s([])},695203,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},295553,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["pageLocationDataAtom",0,t])},439766,e=>{"use strict";var t=e.i(981030),o=e.i(284007);let r=(0,t.atom)(void 0),i=(0,o.atomWithStorage)("wxu-web/keyval:activeLocation",null,void 0,{getOnInit:!0}),n=(0,t.atom)(e=>{var t;let o=e(i);return(t=e(r)??Date.now(),o&&Number.isFinite(o.expiresAt)&&!(o.expiresAt{var n;null===o?t(i,null):t(i,(n=e(r)??Date.now(),{placeId:o.placeId,geocode:o.geocode,...o.featureId?{featureId:o.featureId}:{},expiresAt:n+216e5}))});e.s(["activeLocationAtom",0,n])},726249,(e,t,o)=>{"use strict";function r(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let o=parseFloat(t[0]||""),r=parseFloat(t[1]||"");return Number.isNaN(o)||Number.isNaN(r)?e:`${o.toFixed(2)},${r.toFixed(2)}`}Object.defineProperty(o,"__esModule",{value:!0}),o.formatGeocode=r,o.pointKey=function(e,t){let o="geocode"===e.kind?r(e.value):e.value;return["location-point",e.kind,o,t]},o.locationDedupKey=function(e){return e.featureId?`f:${e.featureId}`:e.placeId?`p:${e.placeId}`:e.geocode?`g:${r(e.geocode)}`:""}},527091,e=>{"use strict";e.s(["sanitizeIanaTimeZone",0,function(e){if(!e)return"";try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return""}}])},325974,942400,e=>{"use strict";var t=e.i(592121),o=e.i(381477),r=e.i(726249),i=e.i(527091),n=e.i(961123),a=e.i(546446),s=e.i(950771);let u=()=>{let e=(0,n.useParams)(),t=(0,a.useAtomValue)(s.pageLocaleAtom);return e?.locale||t||"en-US"};e.s(["usePageLocale",0,u],942400),e.s(["useResolveCanonical",0,function(e,n){let a=u(),s=e?.featureId,l=e?.placeId,c=e?.geocode,d=n?.sourceGeocode,f=s?.startsWith("address.")?void 0:s,{data:m,error:p,isLoading:g,isValidating:v}=(0,o.default)(f||l||c?["canonical",f??"",l??"",c??"",a]:null,async()=>{let e=f?`featureId=${encodeURIComponent(f)}`:l?`placeId=${encodeURIComponent(l)}`:`geocode=${encodeURIComponent(c??"")}`,t=await fetch(`/api/location/canonical?${e}&language=${encodeURIComponent(a)}`);if(!t.ok)throw Error(`canonical location lookup failed: ${t.status}`);return t.json()},{revalidateOnFocus:!1,dedupingInterval:3e5}),h=a.split("-")[1]??"US";return(0,t.useMemo)(()=>{if(!m)return{location:void 0,isLoading:g,isValidating:v,error:p};let e=function(e,t){let[o,r]=e.locationPoint?.coordinates??[],n=null!=r&&null!=o?`${r},${o}`:"";return{displayName:e.displayName,adminDistrict:e.adminDistrict||"",geocode:n,placeId:e.placeId||"",featureId:e.featureId,canonicalID:e.canonicalID,city:e.city,countryCode:e.countryCode,adminDistrictCode:e.adminDistrictCode||"",presentationName:function(e,t,o="US"){let{country:r,countryCode:i}=t;if(!e||!r||o!==i)return e;let n=`, ${r}`;return e.endsWith(n)?e.slice(0,-n.length):e}(e.presentationName??"",e,t),name:e.displayName||void 0,context:"",ianaTimeZone:(0,i.sanitizeIanaTimeZone)(e.ianaTimeZone),postalCode:e.postalCode??void 0,type:e.locationType,featureSource:e.featureSource,tags:e.tags?.internal,dmaCd:e.dmaCd||"",address:e.address,isDisputedLocation:e.isDisputedLocation??!1}}(m,h);return{location:d?{...e,geocode:(0,r.formatGeocode)(d)}:e,isLoading:g,isValidating:v,error:p}},[m,g,v,p,h,d])}],325974)},767685,e=>{"use strict";e.s(["honorRecentLocationName",0,(e,t)=>{if(!t||!e.placeId&&!e.featureId||"address"!==e.type)return e;let o=(e.placeId?t[e.placeId]:void 0)??Object.values(t).find(t=>t.featureId===e.featureId);return o?.name?{...e,displayName:o.name,name:o.name,presentationName:o.presentationName||e.presentationName,address:o.address||e.address}:e}])},150137,e=>{"use strict";var t=e.i(981030),o=e.i(695881),r=e.i(333350);let i=(0,o.createLogger)("geolocationApi"),n=(0,t.atom)(async()=>{if(r.default&&navigator.permissions)try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){i.error(e)}}),a=(0,t.atom)(void 0);e.s(["geolocationAPIPermissionStateAsyncAtom",0,n,"preciseGeocodeAtom",0,a])},485737,e=>{"use strict";var t=e.i(981030),o=e.i(530102),r=e.i(682142),i=e.i(726249);let n=(0,r.getCICookie)(),a=n?.["TWC-GeoIP-Lat"],s=n?.["TWC-GeoIP-Long"],u=a&&s?(0,i.formatGeocode)(`${a},${s}`):(0,o.getCookie)("twc-location-geocode")?.toString()||null,l=(0,t.atom)(u),c=n?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country")?.toString()??null,d=(0,t.atom)(c),f=n?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region")?.toString()??null,m=(0,t.atom)(f),p=n?.["TWC-GeoIP-City"]??(0,o.getCookie)("twc-location-city")?.toString()??null,g=(0,t.atom)(p);e.s(["geoipCity",0,g,"geoipCountry",0,d,"geoipGeocode",0,l,"geoipRegion",0,m])},304158,e=>{"use strict";e.i(485737),e.s([])},692099,78321,790050,72053,e=>{"use strict";var t=e.i(592121),o=e.i(546446),r=e.i(295553);e.s(["usePageLocation",0,function(){let e=(0,o.useAtomValue)(r.pageLocationDataAtom);return(0,t.useMemo)(()=>({location:e??void 0,isLoading:!1}),[e])}],692099);var i=e.i(310847),n=e.i(439766),a=e.i(325974),s=e.i(767685);e.s(["useActiveLocation",0,function(){let e=(0,o.useAtomValue)(n.activeLocationAtom),r=(0,o.useAtomValue)(i.wxuUserRecentLocationsDataAtom),u=(0,a.useResolveCanonical)(e?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode}:null);return(0,t.useMemo)(()=>u.location?{...u,location:(0,s.honorRecentLocationName)(u.location,r)}:u,[u,r])}],78321);var u=e.i(150137);e.s(["useHtml5Location",0,function(){let e=(0,o.useAtomValue)(u.preciseGeocodeAtom);return(0,a.useResolveCanonical)(e?{geocode:e}:null,{sourceGeocode:e??void 0})}],790050),e.i(304158);var l=e.i(485737);e.s(["useGeoipLocation",0,function(){let e=(0,o.useAtomValue)(l.geoipGeocode);return(0,a.useResolveCanonical)(e?{geocode:e}:null,{sourceGeocode:e??void 0})}],72053)},88349,788414,e=>{"use strict";var t=e.i(695881);let o="wxu-web/key-val:html5Geolocation";e.s(["GEOLOCATION_CACHE_KEY",0,o,"GEOLOCATION_CACHE_TTL_MS",0,36e5,"isGeolocationPermissionDenied",0,function(){let e=function(){try{if("u"navigator.geolocation.getCurrentPosition(e=>{let{latitude:o,longitude:r}=e.coords;!function({latitude:e,longitude:t}){sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:e,longitude:t,permissionDenied:!1,timestamp:Date.now()}))}({latitude:o,longitude:r}),t({latitude:o,longitude:r})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem(o,JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),r(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){r.error("getGeolocationAPIGeocode error: ",e)}}e.s(["getGeolocationAPIGeocode",0,i],88349)},380241,e=>{"use strict";var t=e.i(699173),o=e.i(592121),r=e.i(692099),i=e.i(78321),n=e.i(790050),a=e.i(72053),s=e.i(546446),u=e.i(284007),l=e.i(726249),c=e.i(88349),d=e.i(150137);let f=(0,u.loadable)(d.geolocationAPIPermissionStateAsyncAtom),m=(0,o.createContext)(null);e.s(["LocationSourcesProvider",0,({children:e})=>{let u,p,g,v,h=(0,r.usePageLocation)(),y=(0,i.useActiveLocation)(),C=(0,n.useHtml5Location)(),b=(0,a.useGeoipLocation)();u=(0,s.useAtomValue)(f),p=(0,s.useAtomValue)(d.preciseGeocodeAtom),g=(0,s.useSetAtom)(d.preciseGeocodeAtom),v="hasData"===u.state&&"granted"===u.data,(0,o.useEffect)(()=>{if(!v||p)return;let e=!1;return(0,c.getGeolocationAPIGeocode)().then(t=>{!e&&t?.latitude&&t?.longitude&&g((0,l.formatGeocode)(`${t.latitude},${t.longitude}`))}).catch(()=>{}),()=>{e=!0}},[v,p,g]);let w=(0,o.useMemo)(()=>({page:h,active:y,html5:C,geoip:b}),[h,y,C,b]);return(0,t.jsx)(m.Provider,{value:w,children:e})},"useSourceResults",0,function(){let e=(0,o.useContext)(m);if(!e)throw Error("useSourceResults must be used within a ");return e}],380241)},64412,e=>{"use strict";var t=e.i(592121),o=e.i(380241),r=e.i(325974);let i=["page","active","html5","geoip"];e.s(["useLocation",0,function(e="default",n=""){var a;let s=(0,o.useSourceResults)(),u=(a="specified"===e?n:null,(0,r.useResolveCanonical)(a?{geocode:a}:null,{sourceGeocode:a??void 0})),l=(0,t.useMemo)(()=>(function(e){switch(e){case"geolocation":return["html5","geoip"];case"specified":return["specified"];default:return i}})(e),[e]),c=(0,t.useMemo)(()=>({...s,specified:u}),[s,u]),d=(0,t.useMemo)(()=>(function(e,t){let o;for(let r of e){let e=t[r];if(e){if(e.error){o=e.error;continue}if(e.location||e.isLoading)return e}}return{location:void 0,isLoading:!1,error:o}})(l,c),[l,c]);return{location:d.location,isLoading:!d.location&&d.isLoading,isValidating:!!d.location&&!!d.isValidating,error:d.error}}],64412)},521350,e=>{"use strict";var t=e.i(333350);e.s(["areCookiesEnabled",0,function(){if(t.default){document.cookie="cookietest=1; max-age=1";let e=document?.cookie?.indexOf?.("cookietest=")!==-1;return document.cookie="cookietest=1; max-age=0",e}return!1},"isLocalStorageAvailable",0,function(){if(t.default)try{return localStorage.setItem("__storage_test__","__storage_test__"),localStorage.removeItem("__storage_test__"),!0}catch(e){if(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length)return!0}return!1}])},358273,e=>{"use strict";var t=e.i(858040),o=e.i(521350),r=e.i(990033);let i="wxu-metrics-session",n="new-metrics-session",a="metric-session-last-active-time",s=()=>{let e=(0,t.getCookie)(i);if(!e)return null;let[o="",r="",n=""]=e.split(":"),a=parseInt(r,10);return{sessionId:o,sessionStartTime:a,pageCount:parseInt(n,10)}},u=e=>{let o=new Date().getTime(),n=e&&!c();d(o);let a=n?e:{},s=a.sessionId||(0,r.v4)(),u=a.sessionStartTime||o,l=a.pageCount||0,f=`${s}:${u}:${l}`;(0,t.setCookie)(i,decodeURIComponent(f),{domain:".weather.com",path:"/",maxAge:1800,secure:!0})},l=()=>{(0,o.isLocalStorageAvailable)()&&localStorage.setItem(n,"true")},c=(e=30)=>{try{let t=new Date().getTime(),o=f(),r=new Date(o).getTime(),i=new Date(t).getTime();if(Number.isNaN(r)||Number.isNaN(i))return console.error("Invalid timestamp"),!1;return Math.abs(r-i)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},d=e=>{(0,o.isLocalStorageAvailable)()&&localStorage.setItem(a,e.toString())},f=()=>{if(!(0,o.isLocalStorageAvailable)())return"";let e=localStorage.getItem(a);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,c,"deleteIsNewMestricsSession",0,()=>{(0,o.isLocalStorageAvailable)()&&localStorage.removeItem(n)},"getMetricsSession",0,s,"incrementMetricsSessionCount",0,()=>{let e=s();e&&u({...e,pageCount:e?.pageCount+1})},"isNewMetricsSession",0,()=>{if((0,o.isLocalStorageAvailable)())return localStorage.getItem(n)},"regenerateMetricsSession",0,()=>{l(),u(null)},"setIsNewMestricsSession",0,l,"setMetricsSession",0,u])},737801,158662,673915,e=>{"use strict";e.i(546584);var t=e.i(546446),o=e.i(358273),r=e.i(521350),i=e.i(959194),n=e.i(537989),a=e.i(592121);e.i(609717);var s=e.i(950771),u=e.i(695203),l=e.i(981030);let c=(0,l.atom)(null);e.s(["experimentJoinListAtom",0,c],158662);let d=(0,l.atom)("");e.s(["fromStringAtom",0,d],673915);var f=e.i(333350),m=e.i(858040),p=e.i(682142),g=e.i(961123),v=e.i(64412);let h={postcode:"postal",city:"city",locality:"locality",neighborhood:"neighborhood",airport:"airport",poi:"poi",ski:"ski"};var y=e.i(896363);e.s(["useEventAttributes",0,()=>{var e;let l=(0,i.getCampaign)(),C=(0,i.getTpcc)(),b=(0,i.getPartner)(),w=(0,r.areCookiesEnabled)(),S=(0,p.getCICookie)(),k=S?.["TWC-GeoIP-Country"]??(0,m.getCookie)("twc-location-country"),_=S?.["TWC-GeoIP-Region"]??(0,m.getCookie)("twc-location-region"),I=(0,o.getMetricsSession)(),A=I?.pageCount?I?.pageCount+1:1,P=I?.sessionId||"",O=I?.sessionStartTime||0,L=(0,t.useAtomValue)(c),G=(0,t.useAtomValue)(d),T=(0,t.useAtomValue)(n.pageIdAtom)||"",F=(0,t.useAtomValue)(s.pageLocaleAtom),x=(0,t.useAtomValue)(u.deviceClassAtom),R=(0,g.usePathname)(),D=["article","video"].includes(T)?(0,i.stripLastPartOfSlug)(R):(0,i.getAnonymizedPath)(R),E=(0,i.getLinkReferral)(),N="u">typeof document?document.referrer:null,{location:j}=(0,v.useLocation)(),M=j?.city??null,U=j?.countryCode??null,q=j?.adminDistrictCode??null,$=j?.dmaCd??null,V=j?.placeId??null,W=j?.featureId??null,H=(e=j?.type)?h[e]??null:null,B=j?.featureSource??null,K=j?.tags?.length?(0,y.parseArrayToString)(j.tags):null,J=new Date,Y=J.getHours(),z=J.getDay(),Z=i.WEEK_DAYS[z]||null,Q=S?.["TWC-Privacy"]??(0,m.getCookie)("twc-privacy"),X=f.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",ee=f.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",et=!!f.default&&(window.navigator?.globalPrivacyControl??!1),eo=ee?.includes("functional-technology")??!1,er=ee?.includes("geographically-relevant-advertising")??!1;return(0,a.useMemo)(()=>({campaign:l,tpcc:C,cookiesEnabled:w,physicalCountry:k??"",physicalState:_??"",pageId:T,partner:b,locale:F,deviceClass:x,url:D,linkReferral:E,referrer:N,pageCount:A,sessionId:P,sessionStartTime:O,schemaVersion:"nextgen",hourOfDay:Y,dayOfWeek:Z,wlocCity:M,wlocCountry:U,wlocState:q,wlocDMA:$,wlocId:V,wlocFeatureId:W,wlocType:H,wlocFeatureSource:B,wlocTags:K,privProducts:X,priv:ee,gpcSignalOptOut:et,functionalTechnologies:eo,geographicallyRelevantAds:er,regime:Q??"",appVersion:"3b231dbc430288b236b4a9018075757f3190f4c5".slice(0,10),weatherMode:"normal",mParticleGranted:function(){if(!f.default)return!1;let e=window.DprSdk;return!!e&&(e.getFeatureFlags?.()?.mParticleFullMetrics??!1)}(),...null!=L&&{experimentJoinList:L},fromString:G??""}),[l,C,w,k,_,T,b,F,D,E,N,A,P,O,Y,Z,M,U,q,$,V,W,H,B,K,ee,X,et,eo,er,Q,L,G])}],737801)}]);