(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630585,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLocationSearchUrlConfig=function({query:e,language:t,locationType:o,countryCode:r,adminDistrictCode:a}){let i={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return o&&(i.locationType=o),r&&(i.countryCode=r),a&&(i.adminDistrictCode=a),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:i}},o.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:o,canonicalCityId:r,language:a}){let i={language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(i.geocode=e),t&&(i.locid=t),o&&(i.placeid=o),r&&(i.canonicalCityId=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:i}}},678651,(e,t,o)=>{"use strict";function r(e){let t=new URLSearchParams;for(let[o,r]of Object.entries(e))void 0!==r&&t.append(o,r);return t}Object.defineProperty(o,"__esModule",{value:!0}),o.queryStringToSearchParams=r,o.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let o=new URL(`https://${e}`);return Object.assign(o,{...t,hostname:e}),t.query&&(o.search=r(t.query).toString()),o}},414655,(e,t,o)=>{"use strict";async function r(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return null;return await e.json()}catch(e){throw Error(`Invalid JSON response: ${e.message}`)}}async function a(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return"";return await e.text()}catch(e){throw Error(`Invalid text response: ${e.message}`)}}Object.defineProperty(o,"__esModule",{value:!0}),o.handleFetchResponse=r,o.handleFetchTextResponse=a},330091,(e,t,o)=>{"use strict";var r,a;Object.defineProperty(o,"__esModule",{value:!0}),o.ErrInvalidCanonicalCityID=o.ErrInvalidPlaceID=o.ErrInvalidPartialLocID9=o.ErrInvalidPartialLocID1=o.ErrInvalidUSZipCode=o.ErrInvalidLocID=o.ErrInvalidLatOrLong=o.ErrInvalidGeocode=o.ErrInvalid=o.LocationError=o.RegExpCanonicalCityID=o.RegExpPlaceID=o.RegExpPartialLocID9=o.RegExpPartialLocID1=o.RegExpUSZipCode=o.RegExpLocID=o.RegExpGeocode=o.LocationTypeMap=o.LocationType=void 0,o.valid=l,o.normalized=function(e,t){switch(t){case r.Geocode:return p(e);case r.LocID:return g(e);case r.USZipCode:return f(e);case r.PartialLocID1:return x(e);case r.PartialLocID9:return y(e);case r.PlaceID:return v(e);case r.CanonicalCityID:return I(e);default:return e}},o.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=u(t),s))if(e.regex.test(t))return{type:e.type,locId:e.normalize(t)};return null},o.locIdFromSeoPhrase=u,o.normalizedGeocode=p,o.parseLatLonFromGeocode=function(e){let t=p(e).split(",");if(2!==t.length||!t[0]||!t[1])throw o.ErrInvalidGeocode;let r=parseFloat(t[0].trim()),a=parseFloat(t[1].trim());if(isNaN(r)||isNaN(a))throw o.ErrInvalidGeocode;return[r,a]},o.normalizeLatOrLong=m,o.normalizedLocID=g,o.normalizedUSZipCode=f,o.normalizedPartialLocID1=x,o.normalizedPartialLocID9=y,o.normalizedPlaceID=v,o.normalizedCanonicalCityID=I,o.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(a=r||(o.LocationType=r={}))[a.Geocode=0]="Geocode",a[a.LocID=1]="LocID",a[a.USZipCode=2]="USZipCode",a[a.PartialLocID1=3]="PartialLocID1",a[a.PartialLocID9=4]="PartialLocID9",a[a.PlaceID=5]="PlaceID",a[a.CanonicalCityID=6]="CanonicalCityID",o.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId"},o.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let i=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27))?(:\w{2})?$/;o.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27):\w{2}$/,o.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,o.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,o.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,o.RegExpPlaceID=/^([0-9a-f]){32,}$/,o.RegExpCanonicalCityID=o.RegExpPlaceID;class n extends Error{constructor(e){super(e),this.name="LocationError"}}function l(e,t){switch(t){case r.Geocode:return o.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case r.LocID:return o.RegExpLocID.test(e);case r.USZipCode:return o.RegExpUSZipCode.test(e);case r.PartialLocID1:return o.RegExpPartialLocID1.test(e);case r.PartialLocID9:return o.RegExpPartialLocID9.test(e);case r.PlaceID:return o.RegExpPlaceID.test(e);case r.CanonicalCityID:return o.RegExpCanonicalCityID.test(e);default:return!1}}o.LocationError=n,o.ErrInvalid=new n("location: invalid location"),o.ErrInvalidGeocode=new n("location: invalid location: invalid geocode"),o.ErrInvalidLatOrLong=new n("location: invalid location: invalid latitude or longitude"),o.ErrInvalidLocID=new n("location: invalid location: invalid locid"),o.ErrInvalidUSZipCode=new n("location: invalid location: invalid US zip code"),o.ErrInvalidPartialLocID1=new n("location: invalid location: invalid partial locid type 1"),o.ErrInvalidPartialLocID9=new n("location: invalid location: invalid partial locid type 9"),o.ErrInvalidPlaceID=new n("location: invalid location: invalid placeid"),o.ErrInvalidCanonicalCityID=new n("location: invalid location: invalid canonical city ID");let s=[{regex:o.RegExpGeocode,type:o.LocationTypeMap.Geocode,normalize:p},{regex:o.RegExpLocID,type:o.LocationTypeMap.LocID,normalize:g},{regex:o.RegExpUSZipCode,type:o.LocationTypeMap.USZipCode,normalize:f},{regex:o.RegExpPartialLocID1,type:o.LocationTypeMap.PartialLocID1,normalize:x},{regex:o.RegExpPartialLocID9,type:o.LocationTypeMap.PartialLocID9,normalize:y},{regex:o.RegExpPlaceID,type:o.LocationTypeMap.PlaceID,normalize:v},{regex:o.RegExpCanonicalCityID,type:o.LocationTypeMap.CanonicalCityID,normalize:I}],c=/-/,d=/\s/;function u(e){let t=e;if(i.test(e))if(c.test(e)){let o=e.split("-").pop();o&&(t=o)}else if(d.test(e)){let o=e.split(" ").pop();o&&(t=o)}else{let o=e.split("+").pop();o&&(t=o)}return t}function p(e){if(""===e||!l(e,r.Geocode))throw o.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw o.ErrInvalidGeocode;try{for(let e=0;e{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLocationPointByPlaceId=l,o.getLocationPointByGeocode=s,o.getLocationPointByLocIdParam=c,o.getLocationPointByCanonicalCityId=d;let r=e.r(630585),a=e.r(678651),i=e.r(414655),n=e.r(330091);async function l(e,t){let o=(0,a.urlFrom)((0,r.getLocationPointUrlConfig)({placeId:e,language:t})),n=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(n)}async function s(e,t){let o=(0,a.urlFrom)((0,r.getLocationPointUrlConfig)({geocode:e,language:t})),n=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(n)}async function c(e,t){let o=(0,n.testLocId)(e);if(!o)throw Error("Not a valid locId or type supported");let l=(0,a.urlFrom)((0,r.getLocationPointUrlConfig)({[o.type]:o.locId,language:t})),s=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(s)}async function d(e,t){let o=(0,a.urlFrom)((0,r.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),n=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(n)}},295553,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["pageLocationDataAtom",0,t])},579310,427309,150137,e=>{"use strict";var t=e.i(751931),o=e.i(889753);let r=(0,e.i(834354).focusAtom)(o.userPreferencesAtom,e=>e.prop("locations")),a=(0,t.atom)(e=>e(o.userPreferencesAtom)?.locations||[]);(0,t.atom)(e=>{let t=e(a);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,t.atom)(e=>(e(a)?.length||0)>0),e.s(["userLocationsAtom",0,r,"userLocationsGetAtom",0,a],579310);var i=e.i(186316);let n=(0,i.getCookie)("twc-location-geocode")?.toString()||null,l=(0,t.atom)(n),s=(0,i.getCookie)("twc-location-country")?.toString()||null,c=(0,t.atom)(s);e.s(["geoipCountry",0,c,"geoipGeocode",0,l],427309);var d=e.i(405052),u=e.i(695881),p=e.i(233601);let m=(0,u.createLogger)("getGeolocationAPIGeocode");async function g(e=1e4){try{let t=sessionStorage.getItem("wxu-web/key-val:html5Geolocation");if(t){let{latitude:e,longitude:o,timestamp:r,permissionDenied:a}=JSON.parse(t),i=Date.now()-r;if(a&&inavigator.geolocation.getCurrentPosition(e=>{let{latitude:o,longitude:r}=e.coords;sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:o,longitude:r,permissionDenied:!1,timestamp:Date.now()})),t({latitude:o,longitude:r})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),o(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){m.error("getGeolocationAPIGeocode error: ",e)}}var f=e.i(333350);let x=(0,u.createLogger)("geolocationApi");(0,t.atom)(async()=>{try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){x.error(e)}});let y=(0,t.atom)(async()=>{if(!f.default)return;let e=await g();if(e?.latitude&&e?.longitude)return(0,d.formatGeocode)(`${e?.latitude},${e?.longitude}`)}),v=(0,t.atom)(void 0),I=(0,t.atom)(e=>{let t=e((0,p.loadable)(y));return"hasData"===t.state?t.data:void 0});e.s(["geolocationAPIGeocodeAtom",0,I,"undefinedAtom",0,v],150137)},335355,e=>{"use strict";var t=e.i(751931),o=e.i(889753);let r=(0,t.atom)(e=>e(o.userPreferencesAtom)?.locale||"en_US");(0,t.atom)(e=>e(r).split("_")[0]);let a=(0,t.atom)(e=>e(r).split("_")[1]);e.s(["userCountryAtom",0,a,"userLocaleAtom",0,r])},405052,935807,919101,e=>{"use strict";function t(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let[o,r]=t,a=parseFloat(o||"0").toFixed(2),i=parseFloat(r||"0").toFixed(2);return`${a},${i}`}function o(e,t=[],r=!1,a="US",n){let l,s=t.find(t=>t.placeID===e.placeId);if(s&&r){let t=s.userTag||s.name;if(t&&"Other"!==t){let o=e.displayName,r=i(e,a,"");if(t!==o&&t!==r)return t}}if(e?.disputedCountries)l=e.displayName||"";else{switch(e?.type){case"address":l=e?.address?.split(",")[0]?.trim()||"";break;case"city":l=e?.locale?.locale2||"";break;case"locality":l=e?.locale?.locale3||"";break;case"neighborhood":l=e?.locale?.locale4||"";break;case"airport":l=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",o=e?.postalCode||"";l=n?`${t} ${o}`.trim():`${t}`.trim();break}default:l=e?.displayName||""}0===l.length&&(l=e?.displayName||"")}return l}function r(e,t=[],o=!1,a="US",n){let l,s=t.find(t=>t.placeID===e.placeId);if(s&&o){let t=s.userTag||s.name;if(t&&"Other"!==t){let o=e.displayName,r=i(e,a,"");if(t!==o&&t!==r)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let o=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,o].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",r=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${r}`.trim(),o].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}}}(e,a)}}if(e?.disputedCountries)l=e?.displayName||"";else{let t=a===e?.countryCode?"":e?.country||"",o=e?.adminDistrict||"",r=e?.postalCode||"",i=e.city||"";switch(e?.type){case"address":l=[i,o,t].filter(Boolean).join(", ");break;case"city":default:l=[o,t].filter(Boolean).join(", ");break;case"locality":l=[e?.locale?.locale2||"",o,t].filter(Boolean).join(", ");break;case"neighborhood":l=[e?.locale?.locale3||e?.locale?.locale2||"",o,t].filter(Boolean).join(", ");break;case"postal":{let a=o||e?.locale?.locale2||"";l=[n?`${a} ${r}`.trim():a,t].filter(Boolean).join(", ")}}}return l}function a(e,t=[],i=!1,n="US"){let l=o(e,t,i,n,!1),s=r(e,t,i,n,!0),c=e?.separator?e?.separator:l&&s?", ":"";return`${l}${c}${s}`.trim()}function i(e,t,o){let{displayName:r,adminDistrictCode:a,adminDistrict:i,countryCode:n,disputedArea:l,country:s}=e,c=[];return r&&c.push(r),"IL"!==t&&(a?c.push(a):i&&c.push(i)),n!==t&&!1===l&&s&&c.push(s),c.join(o)}e.s(["formatGeocode",()=>t],405052),e.s(["getLocationContext",()=>r,"getLocationName",()=>o,"getLocationPresentationName",()=>a],935807),e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let o=t.find(t=>t.placeId===e.placeId);return o?{...e,displayName:o.address,address:o.address}:e}],919101)},472737,77323,e=>{"use strict";var t,o=e.i(477716),r=e.i(475566),a=e.i(381477),i=e.i(579310),n=e.i(310847),l=e.i(427309),s=e.i(343277),c=e.i(295553),d=e.i(375570),u=e.i(150137),p=e.i(405052),m=e.i(528600),g=e.i(935807),f=e.i(335355),x=e.i(919101);function y(){let e=(0,r.useAtomValue)(i.userLocationsGetAtom),t=(0,r.useAtomValue)(f.userLocaleAtom),a=t?.slice(3)||"US",{user:l}=(0,m.useUser)(),s=l.isUserLoggedIn,c=(0,r.useAtomValue)(n.wxuUserRecentAddressesAtom);return(0,o.useMemo)(()=>({getLocationName:(t,o)=>(0,g.getLocationName)((0,x.getAddressForLocationData)(t,c),e,s,a,o),getLocationContext:(t,o)=>(0,g.getLocationContext)((0,x.getAddressForLocationData)(t,c),e,s,a,o),getLocationPresentationName:t=>(0,g.getLocationPresentationName)((0,x.getAddressForLocationData)(t,c),e,s,a)}),[])}e.s(["usePresentationName",()=>y],77323);var v=((t={}).PREFER_FAVORITES="preferFavorites",t.PREFER_RECENT="preferRecent",t);function I({location:e,fallbackOrder:t="preferFavorites"}={}){let m=(0,d.useParams)(),g=m?.locale,f=(0,o.useMemo)(()=>e,[e?.placeId,e?.geocode,e?.address]),v=(0,r.useAtomValue)(c.pageLocationDataAtom),h=(0,r.useAtomValue)(i.userLocationsAtom),L=(0,r.useAtomValue)(n.wxuUserRecentLocationsAtom),w=!m?.locId&&!f&&!h?.length&&!L?.length,C=(0,r.useAtomValue)(w?u.geolocationAPIGeocodeAtom:u.undefinedAtom),D=(0,r.useAtomValue)(l.geoipGeocode),E=Array.isArray(h)&&h.length>0?h[0]?.coordinate:null,S=Array.isArray(L)&&L.length>0?L[0]:null,P="preferFavorites"===t,b="preferRecent"===t,N=e=>(0,s.getLocationPointByGeocode)(e,g),{data:A,error:R,isLoading:T}=(0,a.default)(!f&&E&&(P||b&&!S)?["/v3/location/point",E]:null,()=>E?N(E):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:U,error:k,isLoading:M}=(0,a.default)(!f&&S&&(b||P&&!E)?["/v3/location/point",S]:null,()=>S?(0,s.getLocationPointByPlaceId)(S,g):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:O,error:_,isLoading:$}=(0,a.default)(w&&C?["/v3/location/point",C]:null,()=>C?N(C):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:F,error:j,isLoading:B}=(0,a.default)(f||!D||E||S||C?null:["/v3/location/point",D],()=>D?N(D):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{fromLocationPoint:G}=function(){let{getLocationName:e,getLocationContext:t,getLocationPresentationName:o}=y(),a=(0,r.useAtomValue)(n.wxuUserRecentAddressesAtom);return{fromLocationPoint:r=>{let i=(0,x.getAddressForLocationData)(r.location,a);return{displayName:i.displayName,adminDistrict:i.adminDistrict,geocode:(0,p.formatGeocode)(`${i.latitude},${i.longitude}`),placeId:i.placeId,city:i.city,countryCode:i.countryCode,adminDistrictCode:i.adminDistrictCode||"",presentationName:o(i),name:e(i),context:t(i),ianaTimeZone:i.ianaTimeZone,postalCode:i.postalCode,address:i.address||"",type:i.type}},fromLocationSearchItem:r=>{let i=(0,x.getAddressForLocationData)(r,a);return{displayName:i.displayName,adminDistrict:i.adminDistrict,geocode:(0,p.formatGeocode)(`${i.latitude},${i.longitude}`),placeId:i.placeId,city:i.city,countryCode:i.countryCode,adminDistrictCode:i.adminDistrictCode||"",presentationName:o(i),name:e(i),context:t(i),ianaTimeZone:i.ianaTimeZone,postalCode:i.postalCode,address:i.address||"",type:i.type}}}}();return{effectiveLocation:(0,o.useMemo)(()=>{let e;return f?e=f:v?e=v:A&&E?e=G(A):R&&E?(console.error("Error fetching favorite location data:",R),e={displayName:"Favorite Location",adminDistrict:"",geocode:E,placeId:"unknown",ianaTimeZone:""}):U&&S?e=G(U):k&&S?(console.error("Error fetching recent location data:",k),e={displayName:"Recent Location",adminDistrict:"",geocode:"",placeId:S,ianaTimeZone:""}):O&&C?e=G(O):_&&C?(console.error("Error fetching geolocation API data:",_),e={displayName:"Unknown Location",adminDistrict:"",geocode:C,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}):F&&D?e=G(F):j&&D&&(console.error("Error fetching geoip location data:",j),e={displayName:"Unknown Location",adminDistrict:"",geocode:D,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}),e},[f,A,R,U,S,C,O,D,F,v,E,b,j,k]),isLocationLoading:!!P&&T||!!b&&M||$||B,locationError:(P?R:null)||(b?k:null)||_||j}}e.s(["LocationFallbackOrder",()=>v,"useLocationSource",()=>I],472737)},521350,e=>{"use strict";var t=e.i(333350);function o(){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}function r(){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}e.s(["areCookiesEnabled",()=>o,"isLocalStorageAvailable",()=>r])},947118,e=>{"use strict";var t=e.i(477716);let o=e=>(window.mParticle?.ready?.(e),()=>{}),r=()=>!!window.mParticle?.isInitialized?.(),a=()=>!1;e.s(["useIsInitialized",0,()=>(0,t.useSyncExternalStore)(o,r,a)])},737801,358273,e=>{"use strict";e.i(694914);var t=e.i(475566),o=e.i(589510),r=e.i(521350),a=e.i(627897);let i="wxu-metrics-session",n="new-metrics-session",l="metric-session-last-active-time",s=()=>{let e=(0,o.getCookie)(i);if(!e)return null;let[t="",r="",a=""]=e.split(":"),n=parseInt(r,10);return{sessionId:t,sessionStartTime:n,pageCount:parseInt(a,10)}},c=e=>{let t=new Date().getTime(),r=e&&!d();r&&u(t);let n=r?e:{},l=n.sessionId||(0,a.v4)(),s=n.sessionStartTime||t,c=n.pageCount||0,p=`${l}:${s}:${c}`;(0,o.setCookie)(i,decodeURIComponent(p),{domain:".weather.com",path:"/",maxAge:1800})},d=(e=30)=>{try{let t=new Date().getTime(),o=p(),r=new Date(o).getTime(),a=new Date(t).getTime();if(Number.isNaN(r)||Number.isNaN(a))return console.error("Invalid timestamp"),!1;return Math.abs(r-a)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},u=e=>{(0,r.isLocalStorageAvailable)()&&localStorage.setItem(l,e.toString())},p=()=>{if(!(0,r.isLocalStorageAvailable)())return"";let e=localStorage.getItem(l);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,d,"deleteIsNewMestricsSession",0,()=>{(0,r.isLocalStorageAvailable)()&&localStorage.removeItem(n)},"getMetricsSession",0,s,"incrementMetricsSessionCount",0,()=>{let e=s();e&&c({...e,pageCount:e?.pageCount+1})},"isNewMetricsSession",0,()=>{if((0,r.isLocalStorageAvailable)())return localStorage.getItem(n)},"setIsNewMestricsSession",0,()=>{(0,r.isLocalStorageAvailable)()&&localStorage.setItem(n,"true")},"setMetricsSession",0,c],358273);var m=e.i(959194),g=e.i(537989),f=e.i(477716),x=e.i(827049),y=e.i(695203),v=e.i(375570),I=e.i(333350),h=e.i(472737);e.s(["useEventAttributes",0,()=>{let e=(0,m.getCampaign)(),a=(0,m.getTpcc)(),i=(0,m.getPartner)(),n=(0,r.areCookiesEnabled)(),l=(0,o.getCookie)("twc-location-country"),c=(0,o.getCookie)("twc-location-region"),d=s(),u=d?.pageCount?d?.pageCount+1:1,p=d?.sessionId||"",L=d?.sessionStartTime||0,w=(0,t.useAtomValue)(g.pageIdAtom)||"",C=(0,t.useAtomValue)(x.pageLocaleAtom),D=(0,t.useAtomValue)(y.deviceClassAtom),E=(0,v.usePathname)(),S=["article","video"].includes(w)?(0,m.stripLastPartOfSlug)(E):(0,m.getAnonymizedPath)(E),P=(0,m.getLinkReferral)(),b="u">typeof document?document.referrer:null,N=(0,h.useLocationSource)({}),A=N?.effectiveLocation?.city,R=N?.effectiveLocation?.adminDistrict,T=N?.effectiveLocation?.adminDistrictCode,U=new Date,k=U.getHours(),M=U.getDay(),O=m.WEEK_DAYS[M]||null,_=(0,o.getCookie)("twc-privacy"),$=I.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",F=I.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",j=!!I.default&&(window.navigator?.globalPrivacyControl??!1),B=F?.includes("functional-technology")??!1,G=F?.includes("geographically-relevant-advertising")??!1;return(0,f.useMemo)(()=>({campaign:e,tpcc:a,cookiesEnabled:n,physicalCountry:l??"",physicalState:c??"",pageId:w,partner:i,locale:C,deviceClass:D,url:S,linkReferral:P,referrer:b,pageCount:u,sessionId:p,sessionStartTime:L,schemaVersion:"nextgen",hourOfDay:k,dayOfWeek:O,wlocCity:A,wlocCountry:R,wlocState:T,privProducts:$,priv:F,gpcSignalOptOut:j,functionalTechnologies:B,geographicallyRelevantAds:G,regime:_??"",appVersion:"6935e543f1f3ecf7d44053fdb7b567a78461536d",wlocDMA:m.geoIPDma||null,siteMode:"normal"}),[e,a,n,l,c,w,i,C,S,P,b,u,p,L,k,O,A,R,T,F,$,j,B,G,_,m.geoIPDma])}],737801)},45846,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},776169,e=>{"use strict";var t=e.i(475566),o=e.i(889753),r=e.i(901351),a=e.i(310847),i=e.i(528600),n=e.i(617874),l=e.i(589510);function s(){let{user:{isUserLoggedIn:e}}=(0,i.useUser)(),[s,c]=(0,t.useAtom)(o.userPreferencesAtom),[d,u]=(0,t.useAtom)(a.wxuUserPreferenceAtom),p=async e=>{try{await r.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},m=async(t,o=!0)=>{try{let r,a=(r={...s,...t},c(r),u({...d,...t,locations:r.locations}),r);if(t?.unit){let e=(0,n.unitsSystemByName)(t.unit),o=e?.code||"e";(0,l.setCookie)(n.UNITS_COOKIE_KEY,o,{domain:"weather.com"})}return o&&e&&await p(a),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let e=await r.upsxClient.preference.getPreference();if(!e?.userID)return null;return m(e,!1),e}catch{return null}},updatePreferences:m}}e.s(["usePreferences",()=>s])},368847,341669,e=>{"use strict";var t=e.i(297647),o=e.i(477716),r=e.i(294237),a=e.i(632137);let i=({skeletonClassName:e,elementType:o="span"})=>(0,t.jsx)(o,{className:(0,a.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,i],341669);let n={0:"No Clamp",1:"1 Line",2:"2 Lines",3:"3 Lines",4:"4 Lines",5:"5 Lines"};[0,1,2,3,4,5].map(e=>({label:n[e],value:String(e)}));let l=o.default.forwardRef(({className:e,isLoading:o,skeletonClassName:r,variant:n,elementType:l,lineClamp:c,color:d,responsive:u,children:p,...m},g)=>{if(o)return(0,t.jsx)(i,{skeletonClassName:r||""});let f=l||function({variant:e}){switch(e){case"Display.XL":case"Display.L":case"Title.XL":return"h1";case"Display.M":case"Display.S":case"Title.L":case"Title.M":case"Title.S":return"h2";default:return"p"}}({variant:n}),x=(0,t.jsx)(f,{className:(0,a.cn)(s({variant:n,color:d,lineClamp:c,responsive:u}),e),ref:g,...m,children:p});return u?(0,t.jsx)("div",{className:"@container/text",children:x}):x});l.displayName="Text";let s=(0,r.cva)("",{variants:{variant:{"Display.XL":["text-6xl","leading-relaxed","tracking-tighter"],"Display.L":["text-5xl","leading-normal","tracking-tighter","font-medium"],"Display.M":["text-4xl","leading-tight","tracking-tight","font-medium"],"Display.S":["text-xl","leading-relaxed","tracking-tight","font-medium"],"Title.XL":["text-4xl","leading-snug","tracking-tight","font-extrabold"],"Title.L":["text-3xl","leading-normal","tracking-tight","font-extrabold"],"Title.M":["text-2xl","leading-normal","tracking-tight","font-extrabold"],"Title.S":["text-xl","leading-normal","tracking-tight","font-bold"],"Title.XS":["text-base","leading-relaxed","tracking-tight","font-bold"],"Body.L":["text-lg","leading-loose","tracking-normal","font-medium"],"Body.L.Bold":["text-lg","leading-loose","tracking-normal","font-bold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.S":["text-sm","leading-loose","tracking-tight","font-medium"],"Body.S.Bold":["text-sm","leading-loose","tracking-normal","font-bold"],"Caption.M":["text-xs","leading-normal","tracking-normal","font-medium"],"Caption.S":["text-xxs","leading-loose","tracking-tight","font-medium"],"Caption.S.Bold":["text-xxs","leading-loose","tracking-normal","font-bold"]},responsive:{true:"",false:""},color:{primary:"text-gray-900",secondary:"text-gray-500",default:"text-gray-900",disabled:"text-gray-400",placeholder:"text-gray-600",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white",error:"text-[var(--color-alert-severe)]"},lineClamp:{0:"",1:"line-clamp-1 pb-0.5",2:"line-clamp-2 pb-0.5",3:"line-clamp-3 pb-0.5",4:"line-clamp-4 pb-0.5",5:"line-clamp-5 pb-0.5"}},compoundVariants:[{variant:"Display.XL",responsive:!0,class:"text-4xl @sm/text:text-5xl @lg/text:text-6xl"},{variant:"Display.L",responsive:!0,class:"text-2xl @sm/text:text-4xl @lg/text:text-5xl"},{variant:"Display.M",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-4xl"},{variant:"Display.S",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.XL",responsive:!0,class:"text-2xl @sm/text:text-3xl @lg/text:text-4xl"},{variant:"Title.L",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-3xl"},{variant:"Title.M",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.S",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Title.XS",responsive:!0,class:"text-sm @sm/text:text-base"},{variant:"Body.L",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.L.Bold",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.M",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.M.Bold",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.S",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Body.S.Bold",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Caption.M",responsive:!0,class:"text-xxs @sm/text:text-xs @lg/text:text-sm"},{variant:"Caption.S",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"},{variant:"Caption.S.Bold",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"}],defaultVariants:{variant:"Body.M",color:"default",responsive:!1}});e.s(["Text",()=>l,"default",0,l,"textVariants",()=>s],368847)},671525,e=>{"use strict";var t=e.i(375570);let o=()=>{let e=(0,t.useRouter)();return{navigate:(t,o={})=>{let{mpa:r=!0,replace:a=!1}=o;r?a?window.location.replace(t):window.location.href=t:a?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:o=!0}=t;o?window.location.reload():e.refresh()},router:e}};e.s(["default",0,o,"usePageNavigation",0,o])},710746,e=>{"use strict";var t=e.i(297647),o=e.i(477716),r=e.i(747961);let a=(0,o.forwardRef)(({title:e,titleId:o,desc:r,descId:a,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":o,"aria-describedby":a,...i,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"Close"}):e?(0,t.jsx)("title",{id:o,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),i=o.default.forwardRef((e,o)=>(0,t.jsx)(r.BaseIcon,{ref:o,icon:a,...e}));i.displayName="Close",e.s(["Close",0,i])},291967,e=>{"use strict";function t(e,o,{checkForDefaultPrevented:r=!0}={}){return function(t){if(e?.(t),!1===r||!t.defaultPrevented)return o?.(t)}}"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},156207,e=>{"use strict";var t=e.i(477716),o=e.i(297647);function r(e,r){let a=t.createContext(r),i=e=>{let{children:r,...i}=e,n=t.useMemo(()=>i,Object.values(i));return(0,o.jsx)(a.Provider,{value:n,children:r})};return i.displayName=e+"Provider",[i,function(o){let i=t.useContext(a);if(i)return i;if(void 0!==r)return r;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,r=[]){let i=[],n=()=>{let o=i.map(e=>t.createContext(e));return function(r){let a=r?.[e]||o;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:a}}),[r,a])}};return n.scopeName=e,[function(r,a){let n=t.createContext(a),l=i.length;i=[...i,a];let s=r=>{let{scope:a,children:i,...s}=r,c=a?.[e]?.[l]||n,d=t.useMemo(()=>s,Object.values(s));return(0,o.jsx)(c.Provider,{value:d,children:i})};return s.displayName=r+"Provider",[s,function(o,i){let s=i?.[e]?.[l]||n,c=t.useContext(s);if(c)return c;if(void 0!==a)return a;throw Error(`\`${o}\` must be used within \`${r}\``)}]},function(...e){let o=e[0];if(1===e.length)return o;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=r.reduce((t,{useScope:o,scopeName:r})=>{let a=o(e)[`__scope${r}`];return{...t,...a}},{});return t.useMemo(()=>({[`__scope${o.scopeName}`]:a}),[a])}};return r.scopeName=o.scopeName,r}(n,...r)]}e.s(["createContext",()=>r,"createContextScope",()=>a])},556872,93074,e=>{"use strict";var t=e.i(477716),o=e.i(481938),r=e.i(144977),a=e.i(297647);function i(e){var o;let i,n=(o=e,(i=t.forwardRef((e,o)=>{let{children:a,...i}=e;if(t.isValidElement(a)){var n;let e,l,s=(n=a,(l=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(l=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),c=function(e,t){let o={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?o[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(o[r]=a):"style"===r?o[r]={...a,...i}:"className"===r&&(o[r]=[a,i].filter(Boolean).join(" "))}return{...e,...o}}(i,a.props);return a.type!==t.Fragment&&(c.ref=o?(0,r.composeRefs)(o,s):s),t.cloneElement(a,c)}return t.Children.count(a)>1?t.Children.only(null):null})).displayName=`${o}.SlotClone`,i),l=t.forwardRef((e,o)=>{let{children:r,...i}=e,l=t.Children.toArray(r),c=l.find(s);if(c){let e=c.props.children,r=l.map(o=>o!==c?o:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,a.jsx)(n,{...i,ref:o,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,a.jsx)(n,{...i,ref:o,children:r})});return l.displayName=`${e}.Slot`,l}var n=Symbol("radix.slottable");function l(e){let t=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=n,t}function s(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===n}e.s(["createSlot",()=>i,"createSlottable",()=>l],93074);var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let r=i(`Primitive.${o}`),n=t.forwardRef((e,t)=>{let{asChild:i,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?r:o,{...n,ref:t})});return n.displayName=`Primitive.${o}`,{...e,[o]:n}},{});function d(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>c,"dispatchDiscreteCustomEvent",()=>d],556872)},127864,e=>{"use strict";var t=e.i(477716),o=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>o])},653747,e=>{"use strict";var t=e.i(477716),o=e.i(144977),r=e.i(127864),a=e=>{var a;let n,l,{present:s,children:c}=e,d=function(e){var o,a;let[n,l]=t.useState(),s=t.useRef(null),c=t.useRef(e),d=t.useRef("none"),[u,p]=(o=e?"mounted":"unmounted",a={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>a[e][t]??e,o));return t.useEffect(()=>{let e=i(s.current);d.current="mounted"===u?e:"none"},[u]),(0,r.useLayoutEffect)(()=>{let t=s.current,o=c.current;if(o!==e){let r=d.current,a=i(t);e?p("MOUNT"):"none"===a||t?.display==="none"?p("UNMOUNT"):o&&r!==a?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,r.useLayoutEffect)(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,o=o=>{let r=i(s.current).includes(CSS.escape(o.animationName));if(o.target===n&&r&&(p("ANIMATION_END"),!c.current)){let o=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=o)})}},r=e=>{e.target===n&&(d.current=i(s.current))};return n.addEventListener("animationstart",r),n.addEventListener("animationcancel",o),n.addEventListener("animationend",o),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",r),n.removeEventListener("animationcancel",o),n.removeEventListener("animationend",o)}}p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),u="function"==typeof c?c({present:d.isPresent}):t.Children.only(c),p=(0,o.useComposedRefs)(d.ref,(a=u,(l=(n=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?a.ref:(l=(n=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?a.props.ref:a.props.ref||a.ref));return"function"==typeof c||d.isPresent?t.cloneElement(u,{ref:p}):null};function i(e){return e?.animationName||"none"}a.displayName="Presence",e.s(["Presence",()=>a])},534643,e=>{"use strict";var t=e.i(477716),o=e.i(127864);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||o.useLayoutEffect;function a({prop:e,defaultProp:o,onChange:a=()=>{},caller:i}){let[n,l,s]=function({defaultProp:e,onChange:o}){let[a,i]=t.useState(e),n=t.useRef(a),l=t.useRef(o);return r(()=>{l.current=o},[o]),t.useEffect(()=>{n.current!==a&&(l.current?.(a),n.current=a)},[a,n]),[a,i,l]}({defaultProp:o,onChange:a}),c=void 0!==e,d=c?e:n;{let o=t.useRef(void 0!==e);t.useEffect(()=>{let e=o.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}o.current=c},[c,i])}return[d,t.useCallback(t=>{if(c){let o="function"==typeof t?t(e):t;o!==e&&s.current?.(o)}else l(t)},[c,e,l,s])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>a],534643)}]);