(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,982538,e=>{"use strict";var t=e.i(247865);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(e){let a=t.forwardRef((a,i)=>{var s;let p,m,{children:g,...f}=a,x=null,h=!1,v=[];o(g)&&"function"==typeof d&&(g=d(g._payload)),t.Children.forEach(g,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===l){h=!0;let t="child"in e.props?e.props.child:e.props.children;o(t)&&"function"==typeof d&&(t=d(t._payload)),x=n(e,t),v.push(x?.props?.children)}else v.push(e)}),x?x=t.cloneElement(x,void 0,v):!h&&1===t.Children.count(g)&&t.isValidElement(g)&&(x=g);let b=x?(s=x,(m=(p=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in p&&p.isReactWarning)?s.ref:(m=(p=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in p&&p.isReactWarning)?s.props.ref:s.props.ref||s.ref):void 0,y=function(...e){return t.useCallback(function(...e){return t=>{let a=!1,i=e.map(e=>{let i=r(e,t);return a||"function"!=typeof i||(a=!0),i});if(a)return()=>{for(let t=0;t{let t=l(...e);return i(...e),t}:i&&(r[a]=i):"style"===a?r[a]={...i,...l}:"className"===a&&(r[a]=[i,l].filter(Boolean).join(" "))}return{...e,...r}}(f,x.props??{});return x.type!==t.Fragment&&(w.ref=i?y:b),t.cloneElement(x,w)});return a.displayName=`${e}.Slot`,a}var i=a("Slot"),l=Symbol.for("radix.slottable"),n=(e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null},s=Symbol.for("react.lazy");function o(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,u=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,d=t[" use ".trim().toString()];e.s(["Slot",0,i,"createSlot",0,a,"createSlottable",0,function(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=l,t}],982538)},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t.clsx;e.s(["cva",0,(e,t)=>i=>{var l;if((null==t?void 0:t.variants)==null)return a(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:n,defaultVariants:s}=t,o=Object.keys(n).map(e=>{let t=null==i?void 0:i[e],a=null==s?void 0:s[e];if(null===t)return null;let l=r(t)||r(a);return n[e][l]}),c=i&&Object.entries(i).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return a(e,o,null==t||null==(l=t.compoundVariants)?void 0:l.reduce((e,t)=>{let{class:r,className:a,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...c}[t]):({...s,...c})[t]===r})?[...e,r,a]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},581014,e=>{"use strict";var t=e.i(730921);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=r(0,t.useTranslations),i=r(0,t.useFormatter);e.s(["useFormatter",0,i,"useTranslations",0,a])},949920,e=>{"use strict";var t=e.i(381477);let r=(0,e.i(66396).withMiddleware)(t.default,e=>(t,r,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,r,a)));e.s(["default",0,r])},990033,e=>{"use strict";let t,r="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),a=new Uint8Array(16),i=[];for(let e=0;e= 16");if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,l){if((o=o||0)l.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let e=0;e{"use strict";function a(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))void 0!==a&&t.append(r,a);return t}Object.defineProperty(r,"__esModule",{value:!0}),r.queryStringToSearchParams=a,r.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let r=new URL(`https://${e}`);return Object.assign(r,{...t,hostname:e}),t.query&&(r.search=a(t.query).toString()),r}},89887,e=>{"use strict";function t(e,t){let r="/"+e.split("/").filter(Boolean).slice(1).join("/");return"en-US"===t?r:`/${t}${r}`}e.s(["buildLocationCanonicalBase",0,t,"buildLocationCanonicalPath",0,function(e,r,a){return`${t(e,r)}/${a}`}])},611540,e=>{"use strict";e.i(438335);let t=(e,...t)=>{if(!e)return"";let[r={},a=!1]=t,i=Object.entries(r).reduce((e,[t,r])=>void 0===r?e:e.replaceAll(`{${t}}`,r),e);return a?i:"/en-US"===i?"/":i.replace("/en-US/","/")};e.s(["URLS",0,{BannerTextHref:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&tpcc=mktg-{pageKey}-mainmenu-mobilebanner",activityHubCamping:"/{locale}/activity-hub/camping/{locId}",activityHubCycling:"/{locale}/activity-hub/cycling/{locId}",activityHubGardening:"/{locale}/activity-hub/gardening/{locId}",activityHubGolf:"/{locale}/activity-hub/golf/{locId}",activityHubHiking:"/{locale}/activity-hub/hiking/{locId}",activityHubPage:"/{locale}/activity-hub/{locId}",activityHubRunning:"/{locale}/activity-hub/running/{locId}",activityHubTennis:"/{locale}/activity-hub/tennis/{locId}",airQuality:"/{locale}/forecast/air-quality/l/{locId}",alertDetails:"/{locale}/weather/alerts/localalerts/l/{locId}",alerts:"/{locale}/weather/alerts/localalerts/l/{locId}",allergy:"/{locale}/forecast/allergy/l/{locId}",apps:"/{locale}/{collectionId}/{assetName}",article:"/{locale}/{collectionId}/news/{articleTitle}",atmosphere:"/atmosphere",betterDecisions:"/mission",boatBeach:"/{locale}/forecast/boat-beach/l/{locId}",breathing:"/{locale}/forecast/breathing/l/{locId}",callforcode:"/callforcode",christmasCountdown:"/forecast/christmas-countdown/l/{locId}",coldFlu:"/{locale}/forecast/cold-flu/l/{locId}",covid19:"/{locale}/coronavirus/l/{locId}",covid19map:"/{locale}/coronavirus/map/l/{locId}",dataDefinitions:"/{locale}/data-definitions",dataInventory:"/{locale}/data-inventory",dataPartners:"/{locale}/data-partners",dataRights:"/{locale}/data-rights",explore:"/explore",farming:"/{locale}/forecast/agriculture/l/{locId}",fishing:"/{locale}/forecast/fishing/l/{locId}",fiveday:"/{locale}/weather/5day/l/{locId}",flights:"/flights",forgotPassword:"/{locale}/forgot-password",goRun:"/{locale}/forecast/gorun/l/{locId}",grilling:"/home-garden/grilling",home:"/{locale}",homeGarden:"/home-garden",hourly:"/{locale}/weather/hourbyhour/l/{locId}",hurricane:"/{locale}/hurricane",hurricaneCentral:"/storms/hurricane-central",hurricaneHub:"/hurricane/ian-2022",hurricaneNicole:"/hurricane/nicole-2022",hurricaneRetro:"/hurricane/sandy-2012",interactiveMap:"/{locale}/weather/radar/interactive/l/{locId}",legal:"/{locale}/{collectionId}/{assetName}",maps:"/maps/{collectionId}",memberLogin:"/{locale}/login",memberSettings:"/{locale}/member/settings",memberSignup:"/{locale}/signup",memberSubscription:"/{locale}/member/subscription",memorialdayCountdown:"/forecast/memorial-day-countdown/l/{locId}",mlbCountdown:"/{locale}/forecast/opening-day-countdown/l/{locId}",monthly:"/{locale}/weather/monthly/l/{locId}",myDashboard:"/{locale}/mydashboard",news:"/news",newsletter:"/{locale}/newsletter",notification:"/{locale}/life/manage-notifications",pets:"/pets",precipitation:"/{locale}/precipitation/l/{locId}",privacyPolicy:"/{locale}/privacy/privacy-policy",privacyPolicyDirectory:"/{locale}/privacy-policy-directory",privacySettings:"/{locale}/privacy-settings",radar:"/{locale}/weather/radar/interactive/l/{locId}",recipes:"/home-garden/recipes",resetPassword:"/{locale}/reset-password",rss:"/rss",safetyIndex:"/safety/index",samsungWeatherConditions:"/{locale}/weather-conditions/l/{locId}",scienceEnvironment:"/science/environment",search:"/{locale}/search/enhancedlocalsearch",shop:"https://shop.weather.com/",ski:"/{locale}/forecast/ski/l/{locId}",skinHealth:"/health/skin-health",slideshows:"/{locale}/slideshows",spaceSkywatching:"/science/space",stormRadar:"//apps.apple.com/us/app/storm-radar-weather-tracker/id1216396545",stormRadarFeatures:"/storm-radar",subsBundles:"/subscribe/bundle",subscriptionPhase2:"/{locale}/subscribe/phase2",tenday:"/{locale}/weather/tenday/l/{locId}",termsOfUse:"/{locale}/privacy/terms-of-use",thanksgivingCountdown:"/forecast/thanksgiving-countdown/l/{locId}",today:"/{locale}/weather/today/l/{locId}",tornadoCentral:"/storms/tornado-central",travel:"/travel",unsubscribe:"/{locale}/life/alerts/unsubscribe",usForecast:"/maps/currentusweather",usHealth:"/maps/health/allergies/treepollen",usSatAndRadar:"/maps/ussatellitemap",usSevereAlerts:"/maps/severealerts",usTravel:"/maps/travel/airport-delays",userSubscription:"/{locale}/subscribe",video:"/{locale}/{collectionId}/video/{videoTitle}",weatherAsProviderExplainer:"https://theweathercompany.info/{locale}/partners",weekend:"/{locale}/weather/weekend/l/{locId}",worldSatellite:"/maps/satellite/caribbeanweathermap",wu:"//www.wunderground.com",yesterday:"//www.wunderground.com/history/daily/{locId}/yesterday"},"interpolateLocationUrl",0,(e,{locale:r,locId:a,featureId:i})=>t(e,{locale:r,locId:(i?.startsWith("address.")?void 0:i)??a}),"interpolateUrl",0,t],611540)},747961,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(294237),i=e.i(789876);let l=(0,a.cva)("inline-block",{variants:{size:{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-16 h-16",xxl:"w-32 h-32"},color:{primary:"text-gray-900",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white"}},defaultVariants:{size:"md",color:"primary"}}),n=r.default.forwardRef(({icon:e,size:r,color:a,title:n,desc:s,className:o,ariaHidden:c,...u},d)=>(0,t.jsx)(e,{ref:d,className:(0,i.cn)(l({size:r,color:a}),o),title:n,desc:s,...c&&{"aria-hidden":c},...u}));n.displayName="BaseIcon",e.s(["BaseIcon",0,n])},789876,e=>{"use strict";var t=e.i(7284);let r=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});e.s(["cn",0,function(...e){return r((0,t.clsx)(e))}])},559421,e=>{"use strict";var t=e.i(725287),r=e.i(89887),a=e.i(64412),i=e.i(942400),l=e.i(269153),n=e.i(512134);e.i(388706),e.s(["useCanonicalBasePath",0,function(){let e=(0,t.useParams)(),s=(0,t.usePathname)(),{location:o}=(0,a.useLocation)(),c=(0,i.usePageLocale)(),u=(0,l.useIsSamsungPartner)();if(!(0,n.useIsClient)()||u)return;let d=e?.canonicalLocation,p=e?.featureId;if(!(d?.length||p&&!s.includes("/l/")))return;let m=o?.canonicalID;if(m)return(0,r.buildLocationCanonicalBase)(m,c);if(s.includes("/byFeatureId/"))return;let g=/\/day-\d+$/.test(s)?s.substring(0,s.lastIndexOf("/")):s;return g.substring(0,g.lastIndexOf("/"))}])},262453,214008,352711,e=>{"use strict";var t=e.i(546446),r=e.i(150137);e.s(["usePreciseGeocode",0,function(){return(0,t.useAtomValue)(r.preciseGeocodeAtom)}],262453);var a=e.i(726249);e.s(["isSameLocation",0,function(e,t){if(!e||!t)return!1;let r=(0,a.locationDedupKey)(e);return!!r&&r===(0,a.locationDedupKey)(t)}],214008);var i=e.i(902875),l=e.i(247865),n=e.i(725287),s=e.i(553329),o=e.i(695881),c=e.i(88349);let u=(0,o.createLogger)("useRequestPreciseLocation");var d=e.i(942400),p=e.i(520938),m=e.i(671525),g=e.i(426606),f=e.i(747961);let x=(0,l.forwardRef)(({title:e,titleId:t,desc:r,descId:a,...l},n)=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":a,...l,children:[r?(0,i.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,i.jsx)("title",{id:t,children:"Current Location Lost"}):e?(0,i.jsx)("title",{id:t,children:e}):null,(0,i.jsx)("g",{fill:"currentColor",children:(0,i.jsx)("path",{d:"M15 14.295 1.705 1 1 1.705l4 4L1.33 7.03a.5.5 0 0 0-.323.467.5.5 0 0 0 .323.468l4.8 1.92 1.92 4.8A.5.5 0 0 0 8.5 15a.5.5 0 0 0 .46-.33L10.3 11l4 4zm-6.522-1.197L6.885 9.115 2.902 7.522 4.335 7l1.435-.5 3.73 3.73-.5 1.435zM7.845 5.725l3.82-1.39-1.39 3.82.78.78L12.97 3.67a.499.499 0 0 0-.64-.64L7.065 4.945z"})})]})),h=l.default.forwardRef((e,t)=>(0,i.jsx)(f.BaseIcon,{ref:t,icon:x,...e}));h.displayName="CurrentLocationLost",e.i(807079);var v=e.i(754219);e.s(["useImprovePrecisionFlow",0,function(e){let{request:o}=function(){let[e,i]=(0,l.useState)("idle"),[n,o]=(0,l.useState)(void 0),d=(0,t.useSetAtom)(r.preciseGeocodeAtom),p=(0,l.useRef)(!1);return{status:e,geocode:n,request:(0,l.useCallback)(async()=>{if(p.current)return{status:"requesting",geocode:void 0};p.current=!0,i("requesting");try{let e;if(navigator.permissions){let{data:t,error:r}=await (0,s.tryCatch)(navigator.permissions.query({name:"geolocation"}));r?u.error("Permissions API query failed",r):e=t?.state}if("denied"===e)return i("denied"),{status:"denied",geocode:void 0};let t=await (0,c.getGeolocationAPIGeocode)(1e4,{bypassCache:!0});if(t?.latitude&&t?.longitude){let e=(0,a.formatGeocode)(`${t.latitude},${t.longitude}`);return o(e),d(e),i("granted"),{status:"granted",geocode:e}}return i("error"),{status:"error",geocode:void 0}}finally{p.current=!1}},[d]),reset:(0,l.useCallback)(()=>{i("idle"),o(void 0)},[])}}(),{navigate:f}=(0,m.usePageNavigation)(),x=(0,n.useParams)(),b=(0,n.usePathname)(),y=(0,d.usePageLocale)(),w=x?.locId,I=x?.canonicalLocation,S=(0,l.useRef)(e);return S.current=e,(0,l.useCallback)(async()=>{let{status:e,geocode:t}=await o();if("denied"===e){let e=S.current;(0,v.toast)(e.unavailableTitle,{id:"improve-precision",icon:(0,i.jsx)(h,{className:"size-5 text-white"}),description:e.unavailableBody,duration:8e3});return}if("granted"!==e||!t||!(0,p.isSwappableLocationPathname)({pathname:b,locId:w,canonicalLocation:I}))return;let{data:r}=await (0,s.tryCatch)((0,g.fetchWithoutCredentials)(`/api/location/canonical?geocode=${encodeURIComponent(t)}&language=${encodeURIComponent(y)}`).then(e=>e.ok?e.json():null)),a=r?.featureId,l=r?.placeId,n=r?.canonicalID,c=a??l;if(!c)return;let u=(0,p.swapLocationOnCurrentPage)({pathname:b,locId:w,canonicalLocation:I,locale:y,identifier:c,featureId:a,placeId:l,canonicalID:n});u&&f(u)},[o,f,w,I,b,y])}],352711)},304116,e=>{"use strict";var t=e.i(89887),r=e.i(611540),a=e.i(388706);e.s(["buildLocationPageHref",0,function({pageType:e,locale:i,canonicalID:l,featureId:n,placeId:s,canonicalBasePath:o,skipCanonical:c=!1}){let u=a.PAGE_TYPE_TO_SUFFIX[e],d=a.CANONICAL_ELIGIBLE_BY_PAGE[e]&&!c;return o&&d?`${o}/${u}`:d&&l?(0,t.buildLocationCanonicalPath)(l,i,u):(0,r.interpolateLocationUrl)(r.URLS[a.PAGE_TYPE_TO_URL_KEY[e]],d?{locale:i,locId:s??n??"",featureId:n}:{locale:i,locId:s??""})}])},258990,e=>{"use strict";e.s(["decodeLocId",0,e=>{try{return decodeURIComponent(e)}catch{return e}}])},520938,e=>{"use strict";var t=e.i(304116),r=e.i(388706),a=e.i(258990);function i(e){let t=(/\/day-\d+$/.test(e)?e.slice(0,e.lastIndexOf("/")):e).split("/").pop()??"";return r.CANONICAL_PAGE_TYPES.includes(t)?t:void 0}e.s(["LOC_ID_SEGMENT",0,"/l/","isSwappableLocationPathname",0,function({pathname:e,locId:t}){return!!t||void 0!==i(e)||e.includes("/l/")},"swapLocationOnCurrentPage",0,function({pathname:e,locId:r,locale:l,identifier:n,featureId:s,placeId:o,canonicalID:c,skipCanonical:u}){if(r){let t=(0,a.decodeLocId)(r);return e.replace(r,t).replace(t,n)}let d=i(e);if(d)return(0,t.buildLocationPageHref)({pageType:d,locale:l,canonicalID:c,featureId:s,placeId:o,skipCanonical:u});let p=e.indexOf("/l/");if(-1!==p){let t=e.slice(0,p+3);return`${t}${n}`}return null}])},763886,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["partnerAtom",0,t])},269153,e=>{"use strict";var t=e.i(546446),r=e.i(763886),a=e.i(132084);e.s(["useIsSamsungPartner",0,function(){return(0,t.useAtomValue)(r.partnerAtom)===a.Partner.SAMSUNG}])},877957,564993,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(982538),i=e.i(294237),l=e.i(632137),n=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...l,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Loader Circle"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.65 2.926A5.335 5.335 0 1 0 13.335 8a.665.665 0 0 1 1.33 0 6.665 6.665 0 1 1-4.606-6.34.665.665 0 1 1-.41 1.266",clipRule:"evenodd"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:s,...e}));o.displayName="LoaderCircle",e.s(["LoaderCircle",0,o],564993);let c=(0,i.cva)("rounded-lg cursor-pointer",{variants:{variant:{default:"bg-brand-400 text-primary-foreground hover:bg-[#252C3F] active:bg-[#0C1226] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-0",secondary:"bg-white text-gray-900 active:bg-[#E6E6E6] focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",destructive:"bg-alert-severe hover:bg-[#C1251A] active:bg-[#A70C00] text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",outline:"border-1 border-gray-500 hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",ghost:"hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",link:"text-primary underline-offset-3 underline focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",avatarAccountLink:"text-primary text-[14px]",avatarGoPremium:"bg-gray-900 text-white text-[14px]",avatarSignOut:"text-primary text-[16px]",ghostUI:""},size:{default:"h-10 px-4 py-3",lg:"h-10 px-8 py-3",sm:"h-8 px-3 py-2",xsm:"h-6 px-2",icon:"h-10 w-10",text:""},loading:{true:"pointer-events-none cursor-not-allowed opacity-50",false:""},disabled:{true:"pointer-events-none cursor-not-allowed opacity-30",false:""},theme:{standard:"",samsung:"rounded-[18px] h-auto bg-[#252422] px-2.5 py-2 text-[15px] font-medium text-white hover:bg-[#252422] active:bg-[#252422]"}},defaultVariants:{variant:"default",size:"default",loading:!1,disabled:!1,theme:"standard"}}),u=r.forwardRef(({className:e,variant:r="default",size:i,theme:n="standard",asChild:s=!1,disabled:u=!1,loading:d=!1,children:p,...m},g)=>{let f=s?a.Slot:"button";return(0,t.jsx)(f,{...m,className:(0,l.cn)(c({variant:r,size:i,loading:d,disabled:u,theme:n}),"inline-flex items-center justify-center",e),ref:g,disabled:u||d,children:s?p:(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)(o,{size:"sm",className:"mr-2 animate-spin",color:"default"===r||"destructive"===r?"inverse":"primary"}),p]})})});u.displayName="Button",e.s(["Button",0,u],877957)},368847,341669,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(294237),i=e.i(632137);let l=({skeletonClassName:e,elementType:r="span"})=>(0,t.jsx)(r,{className:(0,i.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,l],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 s=r.default.forwardRef(({className:e,isLoading:r,skeletonClassName:a,variant:n,elementType:s,lineClamp:c,color:u,responsive:d,children:p,...m},g)=>{if(r)return(0,t.jsx)(l,{skeletonClassName:a||""});let f=s||function({variant:e}){switch(e){case"Display.XL":case"Display.L":case"Title.XL":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,i.cn)(o({variant:n,color:u,lineClamp:c,responsive:d}),e),ref:g,...m,children:p});return d?(0,t.jsx)("div",{className:"@container/text",children:x}):x});s.displayName="Text";let o=(0,a.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.L.ExtraBold":["text-lg","leading-loose","tracking-normal","font-extrabold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.M.ExtraBold":["text-base","leading-loose","tracking-tight","font-extrabold"],"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.M.Bold":["text-xs","leading-normal","tracking-normal","font-bold"],"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.L.ExtraBold",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.M.ExtraBold",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.M.Bold",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",0,s,"default",0,s,"textVariants",0,o],368847)},180193,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(617874);let i=(0,r.memo)(({className:e,unitsClassName:r,units:i,value:l,degreeSymbolClass:n,unitOnly:s})=>{let o=null!=l,c=i?(0,a.unitsSystemByCode)(i):null,u=c?.temp,d=Number.isFinite(l)&&Math.round(l);return(0,t.jsx)("span",{"data-testid":"TemperatureValue",className:e,dir:"ltr",children:o||!o&&s?(0,t.jsxs)(t.Fragment,{children:[o&&d,(0,t.jsx)("span",{className:n,children:"°"}),u&&(0,t.jsx)("span",{className:r,children:u})]}):"--"})});e.s(["Temperature",0,i])},632137,e=>{"use strict";var t=e.i(7284);let r=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});e.s(["cn",0,function(...e){return r((0,t.clsx)(e))}])},617874,e=>{"use strict";let t="Imperial",r="Metric",a="Hybrid",i={code:"e",name:t,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},l={code:"m",name:r,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},n={code:"h",name:a,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"};e.s(["UNITS_COOKIE_KEY",0,"unitOfMeasurement","UNIT_HYBRID",0,a,"UNIT_IMPERIAL",0,t,"UNIT_METRIC",0,r,"imperial",0,i,"unitsSystemByCode",0,function(e){switch(e?.toLowerCase()){case"e":case"f":return i;case"m":case"c":return l;case"h":return n;default:return null}},"unitsSystemByName",0,function(e=""){switch(e.toLowerCase()){case"imperial":case"Imperial":return i;case"metric":case"Metric":return l;case"hybrid":case"Hybrid":return n;default:return null}}])},889753,301904,e=>{"use strict";var t=e.i(284007),r=e.i(617874),a=e.i(990033),i=e.i(981030),l=e.i(543512);let n={animationSpeed:1,autoplay:!0,opacity:90,roadOverlay:"default",style:"default"};e.s(["DEFAULT_MAP_SETTINGS",0,n],301904);let s=(0,i.atom)(l.UserSubscriptionTiers.none),o=(0,t.atomWithStorage)("userProfile",null,void 0,{getOnInit:!0}),c=(0,t.atomWithStorage)("userPreferences",{userID:(0,a.v4)(),unit:r.UNIT_IMPERIAL,locations:[],locale:"en_US",mapSettings:n,favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]},void 0,{getOnInit:!0});e.s(["userPreferencesAtom",0,c,"userProfileAtom",0,o,"userTierAtom",0,s],889753)},528600,e=>{"use strict";let t;var r=e.i(247865),a=e.i(546446),i=e.i(949920),l=e.i(889753),n=e.i(901351),s=e.i(310847),o=e.i(543512),c=e.i(990033),u=e.i(333350),d=e.i(495110),p=e.i(513513);e.s(["useUser",0,function(){let[e,m]=(0,a.useAtom)(l.userProfileAtom),[g,f]=(0,a.useAtom)(s.wxuUserAnonymousIdAtom),[x,h]=(0,a.useAtom)(s.wxuUserAccountUserAccountResponseAtom),[v,b]=(0,r.useState)(!1),y=(0,a.useSetAtom)(s.wxuLoginRedirectPageAtom),w=(0,d.useIsHydratingRender)();u.default&&!v&&(y(window.location.href),b(!0));let I=(0,a.useAtomValue)(l.userTierAtom),S=(0,p.isUserLoggedIn)(I),L=g;!L&&u.default&&(t||(t=(0,c.v4)()),L=t),u.default&&!g&&L&&f(L),!e&&x&&m(x);let C=(0,i.default)(S?"upsx/id":null,()=>n.upsxClient.account.getAccountId(),{shouldRetryOnError:e=>"APIError"!==e.name}),{userID:E=""}=C?.data||{},T=E&&e?.userID!==E,R=(0,i.default)(T?"upsx/account":null,()=>n.upsxClient.account.getAccount(),{shouldRetryOnError:e=>"APIError"!==e.name,onSuccess:e=>{m(e),h(e)}});return{user:{anonId:L,userID:E,isUserLoggedIn:S,subscriptionTier:I,isUserPremium:(0,p.isUserTierPremium)(I),isUserAdFree:I===o.UserSubscriptionTiers.adFree},userProfile:w?null:e,isUserIdLoading:C.isLoading,profileError:R.error}}])},543512,e=>{"use strict";var t,r=((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 a=Object.entries(r).reduce((e,[t,r])=>(e[r]=t,e),{});Object.entries(r).reduce((e,[t,r])=>(e[r.toString()]=r,e),{}),e.s(["UserSubscriptionPremiumTiers",0,[1,2,3],"UserSubscriptionTierKeysMap",0,a,"UserSubscriptionTiers",()=>r,"UserSubscriptionTiersMap",0,{standard:0,tier0:1,tier1:1,"ad-free-v2":2,tier3:3}])},513513,e=>{"use strict";var t=e.i(543512);t.UserSubscriptionTiers.none,t.UserSubscriptionTiers.standard,t.UserSubscriptionTiers.adFree,t.UserSubscriptionTiers.premium,t.UserSubscriptionTiers.premiumWithAd,e.s(["hasRadarFeature",0,function(e){return void 0!==e&&t.UserSubscriptionPremiumTiers.includes(e)},"isUserLoggedIn",0,function(e){return void 0!==e&&e>t.UserSubscriptionTiers.none},"isUserTierPremium",0,function(e){return t.UserSubscriptionPremiumTiers.includes(e)}],513513)},901351,e=>{"use strict";e.i(288906);let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},438335,e=>{"use strict";var t=e.i(288906);let r=/^[a-z][a-z0-9+.-]*:\/\//i,a=/[?#]/,i=/\/{2,}/g,l=e=>{if(!e)return e;let t=e.match(r),l=t?t[0].length:0,n=e.slice(0,l),s=e.slice(l),o=s.search(a),c=-1===o?s:s.slice(0,o),u=-1===o?"":s.slice(o);return n+c.replace(i,"/")+u},n=/\/+$/;e.s(["getPublicProductionURL",0,e=>{let r=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",a=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"weather.com",i=`https://${r??a}`;return(i=i.replace(n,""),e)?l(new URL(e,i).toString()):i},"getPublicURL",0,e=>{let r,a=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),i=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-releasebranch2026-10-22.vercel.weather.com",s=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",o="true"===t.default.env.NEXT_DEV_SERVER_INSECURE||"true"===t.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(a){case"preview":r=`https://${i}`;break;case"development":r=o?`http://${s}`:`https://${s}`;break;default:r=`https://${s}`}return(r=r.replace(n,""),e)?l(new URL(e,r).toString()):r}],438335)},512134,e=>{"use strict";var t=e.i(247865);e.s(["useIsClient",0,function(){let[e,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r(!0)},[]),e}])},553329,e=>{"use strict";async function t(e){try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}}e.s(["tryCatch",0,t])}]);