(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,718043,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},a.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},a.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},a.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:a}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${a}/${e}`}},a.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:a=0,limit:n=10,sort:i="-publishdate"}){let l={q:Object.keys(t).reduce((e,a)=>{let r=t[a];return r instanceof Array?[...e,...r.map(e=>s(a,e))]:[...e,s(a,r)]},[]).join(";"),pg:`${a},${n}`,format:"json",sort:i},o=(0,r.queryStringToSearchParams)(l).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},a.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:a=0,limit:s=10,sort:n="-publishdate"}){let i={q:t,pg:`${a},${s}`,format:"json",sort:n},l=(0,r.queryStringToSearchParams)(i).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${l}`}},a.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:a=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${a}`}},a.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let r=e.r(678651);function s(e,t){let a=`'${t.$in}'`;return t.$in instanceof Array&&(a=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${a})`}},427977,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getQuickNav=void 0;let r=e.r(414655),s=e.r(678651),n=e.r(718043);a.getQuickNav=async()=>{let e=(0,s.urlFrom)((0,n.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(t)}},647872,279791,523579,494889,39822,726513,678480,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let a=(0,t.atom)(!1);e.s(["showOpenWebCommentsAtom",0,a],279791);let r=(0,t.atom)(!1);e.s(["retroWeatherAtom",0,r],523579);let s=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,s],494889);let n=(0,t.atom)("a");e.s(["editorsPickLocationAwareVariantAtom",0,n],39822);let i=(0,t.atom)(void 0);e.s(["subsOfferCopyVariantAtom",0,i],726513);let l=(0,t.atom)(void 0);e.s(["subsOfferLayoutVariantAtom",0,l],678480),e.s([],647872)},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},145651,579310,249725,e=>{"use strict";var t=e.i(546446),a=e.i(776169),r=e.i(981030),s=e.i(889753);let n=(0,e.i(174960).focusAtom)(s.userPreferencesAtom,e=>e.prop("locations")),i=(0,r.atom)(e=>e(s.userPreferencesAtom)?.locations||[]);(0,r.atom)(e=>{let t=e(i);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,r.atom)(e=>(e(i)?.length||0)>0),e.s(["userLocationsAtom",0,n,"userLocationsGetAtom",0,i],579310);var l=e.i(310847),o=e.i(592121);let c=Object.freeze([]),d=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,a.usePreferences)(),r=(0,t.useAtomValue)(n),s=(0,o.useMemo)(()=>r?[...r].sort((e,t)=>e.position-t.position):c,[r]),[i,u]=(0,t.useAtom)(l.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(l.wxuUserRecentAddressesAtom),h=(0,o.useCallback)(t=>{let a={...t,position:Math.max(...s.map(e=>e.position),0)+1};e({locations:[...s,a]})},[s,e]),f=(0,o.useCallback)(t=>{e({locations:s.filter(e=>e.placeID!==t)})},[s,e]),p=(0,o.useCallback)(e=>{u(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[u]),x=(0,o.useCallback)(e=>{u(t=>(t||[]).filter(t=>t!==e))},[u]),g=(0,o.useCallback)(()=>{u([])},[u]),v=(0,o.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),b=(0,o.useCallback)(e=>{f(e),x(e),v(e)},[f,x,v]);return{addFavoriteLocation:h,removeFavoriteLocation:f,addRecentLocation:p,removeRecentLocation:x,removeRecentAddress:v,clearRecentLocations:g,deleteLocation:b,recentLocations:i||d,favoriteLocations:s}}],145651);var u=e.i(726249);let m=Object.freeze({});function h(){let e=(0,t.useSetAtom)(l.wxuUserLocationFeatureIdsAtom);return(0,o.useCallback)((t,a)=>{let r=[];t.placeId&&r.push(t.placeId),t.geocode&&!a?.startsWith("address.")&&r.push((0,u.formatGeocode)(t.geocode)),0!==r.length&&e(e=>{let t=e??{};if(!r.some(e=>!(e in t)||t[e]!==a))return t;let s={...t};for(let e of r)s[e]=a;return s})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(l.wxuUserLocationFeatureIdsAtom)??m,a=(0,o.useCallback)(t=>{if(t.placeId){let a=e[t.placeId];if(a)return a}if(t.geocode){let a=e[(0,u.formatGeocode)(t.geocode)];if(a)return a}},[e]),r=(0,o.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:a,hasResolvedPlaceId:r,recordFeatureId:h()}},"useRecordFeatureId",0,h],249725)},800462,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,t])},525936,586754,e=>{"use strict";var t=e.i(650130),a=e.i(343277);e.i(304158);var r=e.i(485737),s=e.i(150137),n=e.i(381477),i=e.i(726249),l=e.i(919101),o=e.i(546446),c=e.i(310847);let d=(e,t)=>{let r=(0,o.useAtomValue)(c.wxuUserRecentAddressesAtom),{data:s}=(0,n.default)(e?(0,i.pointKey)({kind:"placeId",value:e},t):null,()=>e?(0,a.getLocationPointByPlaceId)(e,t):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return s?.location?(0,l.getAddressForLocationData)(s.location,r):s?.location};e.s(["useGetLocationById",0,d],586754);var u=e.i(942400),m=e.i(304116),h=e.i(520938),f=e.i(132084),p=e.i(831826),x=e.i(646341),g=e.i(553329),v=e.i(695881),b=e.i(592121),w=e.i(961123);let y=(0,v.createLogger)("useUpdatedPathname");e.s(["default",0,(e,n)=>{let i=n?.defer??!1,l=n?.targetGeocode,c=n?.featureId?.startsWith("address.")?void 0:n?.featureId,v=n?.canonicalID,j=c??e,C=(0,w.useParams)(),A=C?.locId,S=C?.canonicalLocation,N=(0,w.usePathname)(),L=(0,u.usePageLocale)(),E=(0,o.useAtomValue)(s.preciseGeocodeAtom),k=(0,o.useAtomValue)(r.geoipGeocode),R=E||k,_=!!A||!!S?.length||N.includes(h.LOC_ID_SEGMENT),I=d(i||l?null:e,L),U=l??(I?`${I.latitude},${I.longitude}`:void 0),P=(0,b.useMemo)(()=>(0,p.getPartnerByPattern)((0,x.getCookie)("partner")?.toString()??"")===f.Partner.SAMSUNG,[]),O=(0,b.useCallback)(a=>{let r=(0,h.swapLocationOnCurrentPage)({pathname:N,locId:A,canonicalLocation:S,locale:L,identifier:j,featureId:c,placeId:e,canonicalID:v,skipCanonical:P});if(null!==r)return r;let s=t=>(0,m.buildLocationPageHref)({pageType:t,locale:L,canonicalID:v,featureId:c,placeId:e,skipCanonical:P}),n=s("today");if(P||!R||!a)return n;let i=function(e,a){let[r,s]=e.split(",").map(e=>parseFloat(e??"")),[n,i]=a.split(",").map(e=>parseFloat(e??""));return[r,s,n,i].some(e=>Number.isNaN(e))?null:.621371*(0,t.calculateDistance)(r,s,n,i)}(R,a);return null===i?n:i>=250?s("tenday"):i>=100?s("hourbyhour"):n},[A,S,N,j,c,e,v,L,P,R]);return{path:O(U),isGeolocationLoading:!1,resolvePath:(0,b.useCallback)(async()=>{if(_)return O(void 0);let{data:t,error:r}=await (0,g.tryCatch)((0,a.getLocationPointByPlaceId)(e,L));return r||!t?.location?(y.warn("resolvePath: point fetch failed, falling back to Today",r),O(void 0)):O(`${t.location.latitude},${t.location.longitude}`)},[_,e,L,O])}}],525936)},292980,e=>{"use strict";var t=e.i(546446),a=e.i(592121),r=e.i(310847);e.s(["useRecentLocationDetails",0,function(){let[e,s]=(0,t.useAtom)(r.wxuUserRecentLocationsDataAtom),n=e??{},i=(0,a.useCallback)(e=>n[e],[n]);return{details:n,resolveDetails:i,recordDetails:(0,a.useCallback)((e,t)=>{e&&s(a=>{let r=a??{},s=r[e];return s&&s.name===t.name&&s.nameContext===t.nameContext&&s.geocode===t.geocode&&s.featureId===t.featureId&&s.type===t.type&&s.presentationName===t.presentationName&&s.displayName===t.displayName&&s.address===t.address?r:{...r,[e]:t}})},[s])}}])},527207,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:s,...n},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":a,"aria-describedby":s,...n,children:[r?(0,t.jsx)("desc",{id:s,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Chevron Up"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M8.471 5.7a.667.667 0 0 0-.942 0L3.35 9.88a.495.495 0 1 0 .7.7L8 6.629l3.95 3.95a.495.495 0 0 0 .7-.7z"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:s,...e}));n.displayName="ChevronUp",e.s(["ChevronUp",0,n])},296990,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:s,...n},i)=>(0,t.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",ref:i,"aria-labelledby":a,"aria-describedby":s,...n,children:[r?(0,t.jsx)("desc",{id:s,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Globe"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{d:"M14.227 8.016h-.141c-.047-.023-.352.305-.352.305s-.234.094-.258.141c0 .047-.07 0-.023.07.023.07.164.023.234-.07.094-.07.258-.117.328-.164.07-.07.094-.047.234-.117.141-.047.234-.07.188-.141-.023-.023-.07-.023-.117-.023h-.117zm-1.243-.375c-.117 0-.258.047-.328.164-.047.117 0 .305-.023.398s-.047.305.07.328c.141.023.141-.188.117-.234s-.023-.281.047-.328c.047-.047.117-.164.258-.164.141-.023.258.094.234.211s.023.234.07.234.211-.094.164-.164.047-.352.047-.258.117.164.188.141-.07-.258-.164-.258c-.094-.023-.281-.023-.328 0-.023 0-.094 0-.164-.023s-.141-.023-.188-.023h-.023zm-.679-.305c-.164.07-.234.047-.234.141 0 .07.141.07.211.047a.7.7 0 0 1 .258-.07c.047-.023.023.07.141.07s.281.047.305.023.164-.164.047-.188c-.094-.023-.234-.117-.328-.188-.023-.023-.023-.023-.047-.023-.094 0-.234.141-.398.188zM6.68 7.242c.07.047.211.047.211.117s.047.234.117.211.07-.164.023-.211-.258-.211-.305-.211-.117-.07-.164-.094h-.023c-.07 0 .07.164.117.211zM2.953 5.555c-.141.094-.211.047-.281.117s-.281.141-.211-.023.07-.188-.047-.141-.141.141-.141.211-.188.164-.188.164.164.023.234 0 .023.141-.047.188-.164.141-.281.117-.117-.117-.188-.141c-.047 0-.094.023-.188.07A11.9 11.9 0 0 0 .045 12c0 6.563 5.344 11.93 11.93 11.906.984 0 1.945-.141 2.859-.375a.174.174 0 0 1-.117-.211c.047-.141-.07-.141-.141-.211-.07-.094.094-.141.07-.188s-.141-.023-.164-.117.094-.258.117-.281c0-.047-.094-.141-.117-.188 0-.047.047-.117.164-.234.094-.094.164-.234.164-.281s-.07-.164-.07-.281c0-.094.07-.141.094-.305 0-.141-.094-.117-.094-.211 0-.117.141-.07.117-.211-.023-.117.07-.211.117-.281s.07-.211.141-.305c.047-.094-.047-.305-.047-.352s.164-.094.094-.188c-.094-.07.023-.141.117-.211.07-.07-.023-.258.047-.516.047-.234.07-.656.07-.703s0-.211-.047-.305c-.07-.117-.141-.188-.234-.234s-.211-.164-.281-.188c-.07 0-.398-.117-.398-.328 0-.188-.234-.328-.258-.469s-.211-.422-.234-.563c0-.117-.305-.164-.328-.328-.047-.164.141-.258.164-.352s-.094-.305-.117-.375c0-.047.211-.258.281-.305s.141-.211.188-.211.047-.141.094-.305c.047-.141-.023-.352-.07-.375s-.094-.188-.141-.258c-.07-.047-.188-.023-.188-.023s.023.141-.094.188c-.141.047-.164-.023-.188-.047-.047-.047-.188-.047-.258-.117s-.164-.164-.258-.188c-.07-.047-.211-.07-.188-.234 0-.164-.164-.258-.234-.281-.047-.023-.164-.094-.234-.047-.047.023-.094 0-.141-.023s-.094-.047-.141-.047c-.094 0-.281-.164-.352-.234s-.117-.164-.234-.164-.141.047-.211.141c-.094.094-.211-.07-.234-.117-.047-.047-.141-.047-.281-.047-.164 0-.258-.211-.305-.234l-.516-.258c-.094-.047-.188-.258-.141-.305s-.07-.234-.07-.234-.188-.211-.258-.211-.281-.375-.398-.492-.398-.352-.445-.469-.07-.305-.188-.211c-.141.094-.023.188.117.305s.117.211.305.352.117.305.188.352c.07.07.352.234.234.328-.117.117-.234-.141-.305-.141-.047-.023-.164-.047-.164-.117.023-.07-.094-.141-.188-.258s-.141-.047-.258-.047 0-.141.047-.211c.07-.07-.07-.164-.141-.188s-.188-.328-.305-.516-.188-.281-.305-.258-.164-.141-.258-.188c-.07-.047-.211-.305-.328-.445-.141-.141-.258-.398-.234-.539s.047-.516.047-.609-.07-.328-.07-.352c0-.047-.07-.117-.117-.117-.047-.023-.211-.211-.328-.211s-.188-.141-.164-.234c.047-.094-.117-.258-.164-.258-.07 0-.164-.164-.211-.258s-.141-.094-.117-.047 0 .141.047.164c.07.023.117.234.07.281-.047.023-.188-.094-.305-.141-.141-.07-.07-.328-.07-.398s-.188-.141-.281-.141c-.07 0-.164.023-.164-.164 0-.164-.258-.258-.328-.258-.094 0-.516-.164-.656-.164s-.375-.117-.445-.07-.234-.094-.305-.094-.07.047-.234.141zm11.203 6.703c.117-.023.211.188.047.211h-.023c-.117 0-.141-.211-.023-.234zm1.782-.141c.117-.023.211.164.047.211h-.023c-.117 0-.141-.211-.023-.234zm-.774.164c-.07-.047-.117-.094-.234-.094-.07 0-.234-.023-.234-.023s.234-.211.328-.211c.094-.023.211-.047.305-.023.117.023.281.094.281.281-.023.164-.094.023-.141.023-.023 0-.141.07-.234.07h-.047zm-2.062-.773s.328-.094.398-.094.281 0 .398.094.305.211.398.188.258.141.234.188-.234.047-.305-.023c-.07-.047-.305-.164-.375-.234-.047-.07-.352-.047-.492-.047h-.164c-.07 0-.141-.023-.117-.094zm1.007-.375c.117-.023.211.117.047.141h-.023c-.117 0-.141-.117-.023-.141zm-.375-5.86c.117-.047.164.07.094.117h-.047c-.094 0-.164-.07-.047-.117m-.515-.093c.094-.094.234 0 .188.047 0 .023-.023.023-.07.023-.07 0-.164-.047-.141-.07zm-2.578-1.711c.07-.023.305-.047.352 0 .07.047.117.234.07.258-.047 0-.023.07-.188.164-.164.07-.211-.164-.234-.211 0-.023-.07-.023-.141 0-.047 0-.094.023-.141.023-.094 0-.141-.141-.07-.188.047-.047.141-.023.211-.023h.141zm.656.094c-.023-.07.258-.188.328-.211s.141.047.234.07c.094 0 .07.141 0 .164-.07 0-.258.023-.375.047h-.047c-.094 0-.141-.047-.141-.047zm-.024-.375c.047-.117.281-.07.305.047.023.047-.047.07-.094.07-.094 0-.234-.047-.211-.094zm-.539-.211c.164-.023.234.07.234.117s-.117.188-.234.164h-.07c-.047 0-.047 0-.094-.07-.047-.094-.328-.047-.375-.047s-.094.164-.164.188-.117-.07-.07-.07c.023-.023-.047-.211.023-.258.047-.047.281-.047.469-.023zm-3.468-.071c.047 0 .398-.117.586-.141s.258.07.281.117.445.07.445.07.211.117.234.141c.047.023.141 0 .188-.047s.07-.117.211-.141.141.117.234.141c.07.023.117 0 .188-.047.094-.047.141.047.141.047s-.047.164-.047.234c0 .047-.094.07-.117.117s-.305 0-.422-.023c-.094-.023-.328-.023-.398 0s-.258.023-.328 0-.07-.141-.141-.188c-.047-.047-.188.07-.258.094s-.188-.117-.164-.188c0-.07-.258-.023-.305 0s-.234.023-.352.023-.211 0-.188-.047c.023-.07.117-.07.188-.07s-.047-.117 0-.117zm4.922.399s-.258-.07-.305-.164c-.07-.094-.305-.094-.422-.141s-.281-.117-.375-.164-.047-.188-.047-.164.188.07.305.094c.234.047.211.047.305.07s.281.164.375.211c.07.047.164.117.258.117h1.102c.07 0 .422.07.398.094s-.047.094-.211.094-.469-.023-.68-.047-.398.023-.398.023l-.281-.023zm-3.61-.586c.164-.047.305-.164.422-.164s.047.188.047.234c.023.047-.117.07-.188.047-.047-.047-.234.023-.305.023s-.094-.094 0-.141zm1.195-.117c.023-.117.141-.094.258-.117.117 0 .281 0 .422.047.164.047.141.047.211.117s.094.188.023.188-.117-.023-.258-.047c-.117-.023-.094-.047-.117-.094s-.258 0-.352 0-.188-.047-.188-.117zM3.234 3.961c.188.023.469.023.516.023s.328.094.492.047.258.023.305.047.07.023.141.094.141.023.234-.047c.094-.047.07-.117.07-.117l.094-.023c.07-.023.141.023.352.047.234.023.164-.047.328-.094a.5.5 0 0 1 .258.023c.047.023.094.047.117.023.047-.023.117-.117.164-.07s.117.164.117.164.164-.141.211-.141.211.047.305.047c.094-.023.445-.023.539.047.07.07.281.047.398.117s.211-.047.164-.07-.188-.141-.188-.141-.211-.234-.234-.281-.07-.047-.117.07-.258.117-.492.117-.07-.117-.328-.117c-.258-.023-.164-.117-.07-.117.07 0 .141-.164.164-.258s.117-.07.305-.07h.422c.094.023.141 0 .188-.023s.094-.047.188-.023c.188.023.094.047.188.117.117.07.164.047.328.117.141.07.094.07.164.07.07.023.281-.023.422-.047s.234-.023.305.047.047.164.141.234-.047-.234-.047-.352.188-.023.305-.023.258-.047.281.023c.023.047-.188.141-.07.258s.211.164.305.164.352.023.234.164-.398.141-.492.141-.258.047-.211.141c.047.07.258.047.398.047s.609.047.727 0 .094-.188-.047-.234-.023-.117.117-.094c.07.023.117 0 .164 0s.094-.023.07 0c-.023.047.023.141.023.234q0 .175.141.141c.141-.034.117-.047.211-.047.094-.023.047-.234-.023-.352-.047-.117-.094-.188-.07-.258 0-.07.164-.07.234-.023.07.07.188.211.188.211s.164.094.211.211.07.07.188.023c.117-.07.141-.047.234.023s.023.211.023.234c0 .047.117 0 .141-.07 0-.094.141-.094.188-.117.07-.023.07-.188.07-.188s-.164-.047-.352-.023c-.164.023-.234-.023-.375-.117s-.047-.164-.117-.258.211-.141.398-.234c.164-.07.328-.023.305.164-.023.211-.047.164.141.141.164-.047-.047-.211.07-.234a3 3 0 0 1 .398-.047c.094.023.516-.047.633-.047s.281.094.398.164c.141.07.469.164.539.211.094.047.633.117.703.141.047.023.047.188.117.328.047.141.188.047.258.047.047 0 .234.094.281.164s.445.117.445.117-.117.117-.141.164c-.047.047-.164.07-.211.117-.094.047-.164-.023-.281-.07-.094-.07-.281-.117-.328-.094s0 .07.023.117c.047.047.211.094.328.188.141.07.094.164.117.258 0 .117-.094-.047-.234-.07s-.141.117-.141.117-.164-.023-.234-.023c-.094 0 0 0-.164-.117-.07-.07-.117-.023-.141 0s-.023.047-.07.023c-.094-.047-.164-.141-.188-.117s-.07-.023-.117-.047-.094-.07-.141-.047h-.211c-.117 0-.234-.023-.281 0-.07.023-.141.023-.211.047-.094.023-.094-.188-.07-.258.047-.07.141-.07.328-.047.164.047.188 0 .234-.07s.07-.141.258-.188 0-.094-.07-.117c-.047-.023-.117-.07-.164 0s-.141.164-.141.164-.094 0-.258-.023-.047-.07.023-.094c.047-.023.141-.188.07-.234s-.094-.07-.211-.047-.047-.094-.117-.141c-.094-.047-.047.023-.047.07s-.117.047-.117.047-.188-.023-.258 0-.188.07-.141.117.164.047.211.164-.164.141-.211.164c-.047 0-.188.07-.188.07s-.164-.047-.305-.047-.164.023-.141.07.094.023.141.023.047.07.141.047c.117-.023.094-.07.211.047s.211.094.398.188-.023.211-.117.211-.094-.07-.141-.164c-.07-.07-.281.023-.281.023s-.188.094-.281.094-.164-.023-.047-.117-.141-.094-.141-.234-.047.141-.047.211c0 .047-.047.047-.117.023h-.211c-.234.023-.188.117-.492.305-.281.188-.352.234-.328.398s.094.117.211.164c.117.023.07.234.188.211.094-.023.164-.07.352.023s.281.117.516.164.375.117.492.07c.141-.023.188 0 .188.117 0 .094.094.117.07.234 0 .117.141-.117.141-.117s.07.211.023.234c-.07.023.023.141.07.141h.07c.047 0 .117.023.164-.023.07-.07-.047-.258-.047-.352 0-.07-.07-.117-.117-.211-.047-.07.094-.094.164-.023.047.07.141.023.234-.047s.094-.188.094-.188-.164-.211-.281-.258-.047-.07.07-.094 0-.07.023-.211c.047-.141.047-.234.117-.234.047 0 .305-.047.492-.023s.305.164.422.164c.141 0 .352.047.398.117s-.164.07-.047.188c.094.117.094.094.188.141s.211.023.328-.141c.094-.164.164-.164.211-.117.047.023.305.328.375.398s.188.211.211.281.188.07.258.07c.047 0 .258.141.281.234 0 .094.047.117.234.141.188.047 0 .188-.023.281-.047.07-.047.117-.117.211-.023.047-.023.047 0 .047s.047-.023.07 0c.07.047.094.094.188.07s.141 0 .188.094c.047.07.117.141.141.211s0 .164-.07.117c-.07-.07-.234-.023-.234-.023s-.094.07-.117.047c-.023-.047-.07-.094-.188-.07a.2.2 0 0 1-.164 0h-.117c-.094.023-.141-.047-.07-.117.07-.047.07-.258.211-.328s.094-.211 0-.211-.141.117-.188.141c-.07.023-.141.023-.258.094-.094.07-.352.047-.234.07.094.023-.164.141-.211.141-.094 0-.07-.164-.07-.234s-.117.047-.117.047-.211-.117-.281-.047-.188.117-.305.211c-.094.07-.328.211-.328.211s.094-.047.234-.07c.164-.047.141-.023.281-.094s.258-.094.375.023c.094.117-.023.188-.023.188s.047.094.117.117c.047.023.047-.023.141-.07s.047.117.07.164c.047.047.117.047.188 0 .07-.07.094-.117.141-.07s.07.141.117.234-.258.117-.328.141c-.07 0-.305.07-.352.07-.047.023-.164.141-.281.141s-.094-.164-.117-.258c0-.094-.117.023-.141.047-.023.047-.141.023-.234.047-.094 0-.258.094-.258.211s.094.164.07.211-.258.094-.352.07-.234.047-.188.094.047.141-.07.117c-.094 0-.094.094-.07.164.047.07-.117.211-.141.141-.047-.047-.117-.07-.117 0s.023.141.117.258c.07.117-.164.164-.281.258-.094.07-.398.352-.539.398s-.141.234-.07.305c.094.07.141.352.188.445s-.023.352-.141.352c-.117-.023-.07-.164-.188-.211s-.188-.281-.211-.445c-.047-.164-.07-.07-.141-.023-.094.047-.164-.117-.188-.141s-.117 0-.211 0c-.07 0-.164.023-.234.023-.164-.023-.211.07-.211.094 0 .047-.023.164-.188.07-.141-.07-.164-.07-.328-.07-.141 0-.281 0-.305.047s-.164.164-.258.188-.281.164-.188.188c.07.023.07.211.023.328s-.047.305-.023.492.188.305.328.422.211.164.352.047.211-.047.234-.023c.047.023.141-.07.117-.188-.047-.117.047-.234.188-.211.047 0 .117 0 .188-.023.07 0 .141-.023.188-.023.117 0 .141.258 0 .375-.164.117-.07.281-.094.398s-.141.141 0 .141.094.023.188.047.164-.07.281-.094c.094 0 .328.211.281.305a1 1 0 0 0-.07.469c.047.164.07.164.117.234.023.047.141.164.258.117s.234-.094.281-.141.305.094.281.141c-.023.023.094.07.164.023.094-.023.117-.094.188-.211a.7.7 0 0 1 .281-.211c.047 0 .211-.164.328-.141.094.023-.047.164-.047.234 0 .094 0 .305.047.328.07 0 .047-.164.117-.281.07-.141.211-.188.281-.188s.117.258.211.211c.094-.07.281-.047.328.023.023.07.07.117.07.117s.07-.047.07-.117c0-.094.211-.141.352-.07s.094.094.164.117c.07 0 .141-.164.164-.188.047-.023 0 .211-.094.328-.117.094.07.07.094.117.023.023.047.023.094 0 .047 0 .117 0 .141.023.047.047.164.094.234.258.094.117.211.094.375.07s.375.07.539.258c.164.164.117.305.234.305s.141.141.141.188-.234.164-.352.188c-.141 0-.141.141.07.117.211-.047.117-.117.258-.141.141-.047.258.047.164.211-.141.164-.375.164-.164.188s.094-.047.211-.188c.117-.164.117-.117.188-.117.094 0 .258.047.328.094s.234.141.352.188c.117.07.258.047.328.023s.328.07.398.188c.07.094.258.117.375.164.094.047.234.188.234.328.023.141-.141.422-.141.492-.023.047-.234.305-.422.469s-.07.352-.07.422c.023.07-.141.375-.094.445s-.047.211-.141.328c-.094.094-.141.258-.188.352-.07.094-.234.07-.398.117-.164.023-.234.07-.234.07s-.305.117-.445.234c-.164.117.047.305-.023.445s-.164.141-.234.305c-.047.117-.094.094-.117.07-.023 0-.047-.023-.07 0-.07.047-.117.141-.117.258-.023.094-.141.211-.328.375-.164.164-.281.141-.469.07-.188-.047-.164-.516-.188-.445s-.023.305.023.352c.023.047.117.211.164.234.07.047.047.117 0 .164-.047.07-.211.305-.258.328s-.469.07-.563.023c-.07-.047-.117.094-.117.188.023.094.094.164-.07.141s-.352-.117-.352-.047.047.211.117.211.164-.047.117.047-.141.164-.211.211c-.047.047-.117.164-.258.258s-.141.141-.117.188.234.023.281.047-.047.211-.094.258-.281.234-.375.281-.094.211-.047.328c4.453-1.406 7.781-5.344 8.273-10.125-.117-.094-.047-.211-.07-.328-.023-.141-.164-.188-.094-.211s.047-.094.234-.281c0-.141.023-.281.023-.422v-.094c-.047-.094-.117-.258-.023-.422a11.77 11.77 0 0 0-2.766-7.125 6 6 0 0 1-.398.047c-.094 0-.234.211-.258.258s-.328 0-.422 0-.188.117-.375.141c-.164.023-.094.141-.07.234 0 .094-.047.141-.141.117-.117-.023-.094.047-.117.117s.023.188-.094.281c-.094.07-.141.117-.258.094-.117 0-.117-.211-.141-.188-.047 0-.234.141-.281.07s-.281-.234-.375-.258c-.094-.047-.164-.188-.188-.258-.047-.07.117-.07.07-.07-.047-.023-.211-.047-.258-.094s-.141-.258-.164-.328c0-.07.141-.164.141-.211 0-.023-.141-.023-.188-.023s-.117-.141-.047-.281.211-.094.211-.094h.117c.07 0 .047.164.023.234s.047.07.094.094.07-.07.07-.117c0-.07-.117-.211-.188-.281-.047-.07-.234-.094-.258-.047s-.164.234-.211.188-.047-.445-.117-.563-.328-.141-.445-.211c-.094-.047-.492-.117-.563-.117-.023 0-.094 0-.141.023a.5.5 0 0 1-.258 0c-.094-.023-.094-.211-.094-.211s-.07.188-.094.234c-.047.047-.141.07-.188.047s-.164-.234-.281-.258h-.117c-.047 0-.094 0-.164-.047-.141-.117.258-.094.281-.094s.328-.07.352-.141c0-.094.094-.188.234-.141.141.023.211-.094.188-.211s.258-.234.305-.164c.047.047.281 0 .211-.117s.281-.211.609-.234.422.023.492.07.281.047.398-.023A11.9 11.9 0 0 0 11.992.304c-3.469 0-6.586 1.5-8.766 3.867z"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:s,...e}));n.displayName="Globe",e.s(["Globe",0,n])},357508,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(546446),s=e.i(632137),n=e.i(35137),i=e.i(121301);let l=(0,a.forwardRef)(({isImperial:e,isMetric:r,isHybrid:l,locale:o,LOCALE_DATA:c,handleUnitChange:d,handleLocaleChange:u,onClose:m},h)=>{let[f,p]=(0,a.useState)(!1);return(0,t.jsx)("div",{ref:h,className:(0,s.cn)("absolute top-full right-0 left-0 z-110 flex w-full flex-col bg-white","max-h-[calc(100vh-56px)] overflow-hidden border-b border-[#2524221A] md:max-h-[calc(100vh-73px)]"),children:f?(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:(0,t.jsx)(n.default,{locale:o,LOCALE_DATA:c,handleLocaleChange:u,onBack:()=>p(!1),onClose:m})}):(0,t.jsx)("div",{className:"overflow-y-auto pt-2 pb-3",children:(0,t.jsx)(i.default,{isImperial:e,isMetric:r,isHybrid:l,locale:o,LOCALE_DATA:c,handleUnitChange:d,onOpenLocationLanguage:()=>p(!0)})})})});l.displayName="SettingsMenuContent";var o=e.i(674885),c=e.i(166763),d=e.i(646341),u=e.i(889753),m=e.i(617874),h=e.i(776169),f=e.i(314552),p=e.i(961123),x=e.i(537989),g=e.i(611540),v=e.i(436066);let b=new Set(["article","video","index"]);e.s(["default",0,function({open:e,onOpenChange:s}={}){let n=(0,r.useAtomValue)(v.settingsMenuOpenAtom),i=(0,r.useSetAtom)(v.settingsMenuOpenAtom),w=void 0!==e,y=w?e:n,j=(0,a.useCallback)(()=>{w?s?.(!1):i(!1)},[w,s,i]),C=(0,a.useRef)(null),A=(0,r.useAtomValue)(o.isImperialUnitsAtom),S=(0,r.useAtomValue)(o.isMetricUnitsAtom),N=(0,r.useAtomValue)(o.isHybridUnitsAtom),L=(0,p.useParams)(),E=L?.locale||"en-US",k=L?.locId,R=(0,r.useAtomValue)(x.pageIdAtom),{updatePreferences:_}=(0,h.usePreferences)(),I=(0,r.useAtomValue)(u.userPreferencesAtom);(0,a.useEffect)(()=>{let e=(0,d.getCookie)("unitOfMeasurement")?.toString();if(e){let t=(0,m.unitsSystemByCode)(e),a=t?.name,r=I?.unit;a&&a!==r&&_({unit:a})}},[_,I?.unit]);let U=async e=>{try{await _({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},P=async e=>{try{let t=(0,c.convertLocaleFormat)(e);if(await _({locale:t}),(0,d.setCookie)("sitePref",e,{domain:`.${window.location.hostname}`}),j(),R&&b.has(R)){window.location.href=e===f.defaultLocale?"/":`/${e}`;return}let a=R?g.URLS[R]:void 0,r=a&&k?(0,g.interpolateUrl)(a,{locale:e,locId:k}):null;if(r){window.location.href=r;return}let s=E!==f.defaultLocale&&window.location.pathname.startsWith(`/${E}`)?window.location.pathname.slice(`/${E}`.length)||"/":window.location.pathname;window.location.href=e===f.defaultLocale?s:`/${e}${s}`}catch(e){console.error("Failed to update locale preference:",e)}};return((0,a.useEffect)(()=>{function e(e){if(!y)return;let t=e.target;C.current&&t&&!C.current.contains(t)&&!t.closest("[data-settings-menu-trigger]")&&j()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[j,y]),y)?(0,t.jsx)(l,{ref:C,isImperial:A,isMetric:S,isHybrid:N,locale:E,LOCALE_DATA:c.LOCALE_DATA,handleUnitChange:U,handleLocaleChange:P,onClose:j}):null}],357508)},778828,e=>{"use strict";var t=e.i(699173),a=e.i(632137),r=e.i(240058),s=e.i(592121),n=e.i(683903),i=e.i(546446),l=e.i(877957),o=e.i(809058),c=e.i(616448),d=e.i(526456),u=e.i(527207),m=e.i(226602),h=e.i(498076);let f=({animationStrings:e})=>(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("span",{"data-nosnippet":!0,className:(0,a.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var p=e.i(436066);e.i(24959);var x=e.i(686557),g=e.i(64412),v=e.i(262453),b=e.i(214008);let w="LOCATION_PICKER_POPUP_CLOSED",y="light",j={light:"bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500",dark:"bg-white text-gray-900 hover:bg-[#E6E6E6] active:bg-[#CCCCCC] focus-visible:ring-2 focus-visible:ring-blue-500"},C={light:"bg-gray-900 text-white",dark:"bg-white text-gray-900"},A={light:"fill-gray-900",dark:"fill-white"},S={light:"text-gray-300",dark:"text-[#5C5C5C]"},N={light:"bg-white/12 text-white hover:bg-white/20",dark:"bg-black/8 text-gray-900 hover:bg-black/14"};function L({locale:e,className:r}){let E=(0,n.useTranslations)("Header"),k=(0,h.useIsMobile)(),R=(0,s.useRef)(null),_=(0,v.usePreciseGeocode)(),{location:I}=(0,g.useLocation)(),{location:U}=(0,g.useLocation)("geolocation"),P=I?.name||I?.city||I?.displayName,O=(0,b.isSameLocation)(I,U),[T,B]=(0,i.useAtom)(p.locationPickerOpenAtom),[M,$]=(0,s.useState)(!1);(0,s.useEffect)(()=>{try{"true"!==localStorage.getItem(w)&&$(!0)}catch{}},[]);let D=(0,s.useCallback)(()=>{$(!1);try{localStorage.setItem(w,"true")}catch{}},[]),z=(0,s.useCallback)(()=>{M&&D(),B(!T)},[M,D,B,T]);(0,s.useEffect)(()=>{if(!T||k)return;let e=e=>{R.current&&!R.current.contains(e.target)&&B(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[T,k,B]),(0,s.useEffect)(()=>{if(!T)return;let e=e=>{"Escape"===e.key&&B(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[T,B]);let F=M&&!T;return(0,t.jsxs)("div",{ref:R,className:(0,a.cn)("relative max-md:mr-auto",r),children:[(0,t.jsxs)(o.Popover,{open:F,children:[(0,t.jsx)(o.PopoverAnchor,{asChild:!0,children:(0,t.jsx)("div",{className:"rounded-4xl bg-white md:p-1 md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(l.Button,{type:"button",variant:"ghostUI",onClick:z,"aria-expanded":T,"aria-haspopup":"dialog","aria-label":P??E("searchPlaceholderText"),"data-state":T?"open":"closed","data-testid":"location-picker-trigger",className:(0,a.cn)("inline-flex h-10 items-center justify-center gap-2 rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none",j[y]),children:[O&&_?(0,t.jsx)(d.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):O&&!_?(0,t.jsx)(c.CurrentLocation,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):null,(0,t.jsx)("span",{className:"max-w-[140px] truncate md:max-w-[160px]",children:P||(0,t.jsx)(f,{animationStrings:["Location"]})}),(0,t.jsx)(u.ChevronUp,{className:(0,a.cn)("size-3 shrink-0 text-white transition-transform duration-150",!T&&"rotate-180"),"aria-hidden":"true",title:""})]})})}),(0,t.jsx)(o.PopoverContent,{side:"bottom",align:"start",sideOffset:12,"data-component":"location-picker-onboarding",className:(0,a.cn)("w-[320px] origin-top rounded-3xl border-none p-4 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_0_32px_0_rgba(0,0,0,0.12)]",C[y]),arrowClassName:A[y],onOpenAutoFocus:e=>e.preventDefault(),children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-base leading-tight font-bold",children:"✨ Switching locations is easier with the new location selector."}),(0,t.jsx)("p",{className:(0,a.cn)("text-sm leading-tight font-medium",S[y]),children:"Search for new locations or choose from a list of your saved locations and recent searches."})]}),(0,t.jsx)("button",{type:"button",onClick:D,"aria-label":"Dismiss",className:(0,a.cn)("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-2xl transition-colors",N[y]),"data-testid":"location-picker-popup-close",children:(0,t.jsx)(m.Close,{className:"size-4 text-inherit","aria-hidden":"true",title:""})})]})})]}),(0,t.jsx)("div",{className:(0,a.cn)(!k&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(x.Search,{locale:e,open:T,onOpenChange:B})})]})}var E=e.i(559421),k=e.i(528600),R=e.i(731672),_=e.i(792461),I=e.i(190344),U=e.i(296990),P=e.i(674885),O=e.i(336726),T=e.i(961123),B=e.i(357508);e.i(609717);var M=e.i(950771);e.i(647872);var $=e.i(494889),D=e.i(449172),z=e.i(316810);let F=({url:e,action:s,name:n,isNew:i,isExternal:l,isInGroup:o})=>{if(!e&&!s)return null;let c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[n,i&&(0,t.jsx)(z.default,{})]}),l&&(0,t.jsx)(D.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),d=(0,a.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",o?"px-10":"px-6");return(0,t.jsx)("li",{className:o?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,t.jsx)(r.default,{href:e,className:d,target:l?"_blank":void 0,children:c}):(0,t.jsx)("button",{onClick:s,className:(0,a.cn)(d,"cursor-pointer"),children:c})},n)};var V=e.i(993269),H=e.i(859827);let G=({isExpanded:e,toggleCategory:r,name:s,links:n})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsxs)("div",{className:(0,a.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:r,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,t.jsx)("h2",{className:(0,a.cn)("text-gray-900 md:font-bold"),children:s}),(0,t.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,t.jsx)(V.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(H.Plus,{size:"md",className:"text-black"})})]}),(0,t.jsx)("ul",{className:(0,a.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:n.map(e=>(0,t.jsx)(F,{...e,isInGroup:!0},e.name))})]},s);var q=e.i(611540);let W=(0,s.forwardRef)((e,r)=>{let[o,c]=(0,i.useAtom)(p.settingsMenuOpenAtom),d=(0,i.useAtomValue)(P.isImperialUnitsAtom),m=(0,T.useParams)(),h=(m?.locale||"en-US").split("-")[1],{location:f}=(0,g.useLocation)(),x=(0,E.useCanonicalBasePath)(),{user:{isUserLoggedIn:v}}=(0,k.useUser)(),b=(0,R.useUserLogout)(),w=(0,_.useRefMemo)(b),y=f?.placeId||"",j=(0,i.useAtomValue)(M.pageLocaleAtom),C=(0,i.useAtomValue)($.newsHubEnabledAtom),A=(0,n.useTranslations)("SidebarNavigation"),S=(0,n.useTranslations)("UserRegistration"),N=(0,I.useVideoNavUrl)(),[L,D]=(0,s.useState)({}),z=(0,s.useMemo)(()=>[{name:A("weatherForecasts"),links:[{name:A("today"),url:x?`${x}/today`:(0,q.interpolateUrl)(q.URLS.today,{locale:j,locId:y})},{name:A("hourly"),url:x?`${x}/hourbyhour`:(0,q.interpolateUrl)(q.URLS.hourly,{locale:j,locId:y})},{name:A("tenday"),url:x?`${x}/tenday`:(0,q.interpolateUrl)(q.URLS.tenday,{locale:j,locId:y})}]},{name:A("radarAndMaps"),links:[{name:A("interactiveRadarMap"),url:`${(0,q.interpolateUrl)(q.URLS.interactiveMap,{locale:j,locId:y})}?animation=true`},..."en-US"===j?[{name:"US Forecast",url:q.URLS.usForecast},{name:"US Satellite & Radar",url:q.URLS.usSatAndRadar},{name:"World Satellite",url:q.URLS.worldSatellite},{name:"US Severe Alerts",url:q.URLS.usSevereAlerts},{name:"US Health",url:q.URLS.usHealth}]:[]]},..."en-US"===j?[{name:A("newsMedia"),links:[{name:"Top Weather Stories",url:"/news"},{name:A("hurricaneCentral"),url:"/storms/hurricane-central"},{name:A("tornadoCentral"),url:"/storms/tornado-central"},{name:A("safetyAndPrep"),url:"/safety/index"},{name:A("spaceAndSkywatching"),url:q.URLS.spaceSkywatching},...N?[{name:A("video"),url:N}]:[]]}]:N?[{name:A("video"),links:[{name:A("topStories"),url:N}]}]:[],{name:A("productAccount"),links:[..."en-US"===j?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...v?[{name:S("manageAccount"),url:(0,q.interpolateUrl)(q.URLS.memberSettings,{locale:j})},{name:S("logOut"),action:w.current}]:[{name:S("createAnAccount"),url:(0,q.interpolateUrl)(q.URLS.memberSignup,{locale:j})},{name:S("logIn"),url:(0,q.interpolateUrl)(q.URLS.memberLogin,{locale:j})}]]},{name:A("lifestyle"),links:[..."en-US"===j?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:A("recipes"),url:"/home-garden/recipes"},{name:A("homeAndGarden"),url:q.URLS.homeGarden},{name:A("travelAndOutdoors"),url:q.URLS.travel},{name:A("petsAndAnimals"),url:q.URLS.pets},{name:"Health",url:"/health"}]:[],{name:A("allergyTracker"),url:(0,q.interpolateUrl)(q.URLS.allergy,{locale:j,locId:y})},{name:A("airQualityIndex"),url:(0,q.interpolateUrl)(q.URLS.airQuality,{locale:j,locId:y})},{name:A("coldAndFluTracker"),url:(0,q.interpolateUrl)(q.URLS.coldFlu,{locale:j,locId:y})},..."en-US"===j?[{name:A("skinHealth"),url:q.URLS.skinHealth}]:[]]},..."en-US"===j?[...C?[{name:"News",url:q.URLS.news}]:[],{name:"Explore",url:"/explore"}]:[]],[v,w,y,N,x,j,C]);return(0,t.jsxs)("nav",{ref:r,className:(0,a.cn)("md:h-unset absolute top-full right-0 left-0 z-110 h-[calc(100vh-56px)] w-full overflow-y-auto bg-white shadow-md md:py-8"),"data-testid":"header-nav-menu",children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,t.jsxs)(l.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":o,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>c(e=>!e),children:[(0,t.jsx)(U.Globe,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,t.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:h}),(0,t.jsx)("span",{className:"border-l-brand-active border-l-[1px] pr-1 pl-2 text-[13px] md:border-l-gray-900 md:text-lg md:font-bold",children:d?"°F":"°C"}),o?(0,t.jsx)(u.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(O.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(B.default,{})]}),!o&&(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl flex-col justify-center md:flex-row md:gap-3 md:px-4","data-testid":"header-nav-content",children:z.map((e,a)=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,t.jsx)(G,{isExpanded:L[e.name],toggleCategory:()=>{var t;return t=e.name,void D(e=>({...e,[t]:!e[t]}))},...e}):(0,t.jsx)(F,{...e})},a))})]})});W.displayName="Navigation";var Q=e.i(747961);let Y=(0,s.forwardRef)(({title:e,titleId:a,desc:r,descId:s,...n},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":a,"aria-describedby":s,...n,children:[r?(0,t.jsx)("desc",{id:s,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Hamburger"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M20 16a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 6a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z"})]})),K=s.default.forwardRef((e,a)=>(0,t.jsx)(Q.BaseIcon,{ref:a,icon:Y,...e}));function X(){let[e,a]=(0,i.useAtom)(p.menuOpenAtom),r=(0,s.useRef)(null),n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,s.useEffect)(()=>{function t(t){e&&r.current&&n.current&&!r.current.contains(t.target)&&!n.current.contains(t.target)&&a(!1)}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Button,{ref:r,variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10 shrink-0 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>a(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)(m.Close,{}):(0,t.jsx)(K,{})}),e&&(0,t.jsx)(W,{ref:n})]})}K.displayName="Hamburger";var J=e.i(368847),Z=e.i(837879),ee=e.i(730921),et=e.i(864723),ea=e.i(537989);let er=()=>{let e=(0,i.useAtomValue)(ea.pageIdAtom);return(0,s.useCallback)(t=>{let a=`${e}_${t}`;(0,et.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};function es(){let{user:e,userProfile:a}=(0,k.useUser)(),i=(0,R.useUserLogout)(),{isUserLoggedIn:c,isUserPremium:d}=e,[u,m]=(0,s.useState)(!1),h=(0,Z.useSubscriptionsEnabled)(),f=(0,n.useTranslations)("UserRegistration"),p=(0,ee.useLocale)(),x=er(),g="flex size-8 shrink-0 items-center justify-center rounded-full border-2 border-current text-sm leading-none font-bold text-inherit";return(0,t.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:c?(0,t.jsxs)(o.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:u,onOpenChange:m,children:[(0,t.jsx)(o.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":u,className:g,"data-testid":"header-profile-button",children:a?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(o.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r.default,{href:(0,q.interpolateUrl)(q.URLS.memberSettings,{locale:p}),"data-testid":"header-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:g,children:a?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(J.default,{variant:"Body.S",children:a?.firstName}),(0,t.jsx)(J.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:f("manageAccount")})]})]})}),!d&&h&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(J.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(J.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(r.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>x("user_flyout_go_premium"),children:(0,t.jsx)(l.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(l.Button,{variant:"link",onClick:i,"data-testid":"header-profile-signout",children:f("signOut")})})]})})]}):(0,t.jsx)(r.default,{href:(0,q.interpolateUrl)(q.URLS.memberLogin,{locale:p}),children:(0,t.jsx)(l.Button,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:f("logIn")})})})}var en=e.i(995113);function ei(){let{user:e}=(0,k.useUser)(),{isUserPremium:s}=e,n=(0,Z.useSubscriptionsEnabled)(),i=er();return s||!n?null:(0,t.jsx)("div",{className:"hidden rounded-4xl bg-white p-1 md:block md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(r.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,a.cn)("group relative inline-flex h-10 items-center justify-center gap-1 overflow-hidden rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none"),style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>i("header_go_premium"),children:[(0,t.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,t.jsx)(en.LightningFilled,{className:"relative z-2 size-4 text-white"}),(0,t.jsx)("span",{className:"relative text-sm font-semibold whitespace-nowrap text-white",children:"Get Premium"})]})})}var el=e.i(458645),eo=e.i(523579);e.s(["default",0,function({locale:e,subnav:s,hideHeaderOnDesktop:n,hideLocationPicker:l,hideGoPremiumButton:o}){let c,d=(0,h.useIsMobile)(),u=(c=(0,h.useIsMobile)(),(0,T.usePathname)().includes("/subscribe")&&!c||n&&!d),m=(0,i.useAtomValue)(eo.retroWeatherAtom),f=(0,i.useAtomValue)(p.menuOpenAtom),x=(0,i.useAtomValue)(p.locationPickerOpenAtom),g=m?"/retro":(0,q.interpolateUrl)(q.URLS.home,{locale:e});return u?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:"z-sticky relative top-0 w-full md:sticky",children:(0,t.jsx)("div",{className:"text-black max-md:bg-white","data-component":"header-main","data-testid":"header-main",children:(0,t.jsxs)("div",{className:"mx-auto flex items-center justify-between gap-2 px-3 py-2 md:gap-4 md:py-3 md:pl-0",children:[(0,t.jsx)("span",{className:"contents md:hidden",children:(0,t.jsx)(X,{})}),(0,t.jsx)("div",{className:(0,a.cn)("flex items-center md:hidden",l&&"max-md:mr-auto"),children:(0,t.jsx)(r.default,{href:g,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(el.default,{className:"h-10 w-auto text-[#003399] md:h-12",variant:"header"})})}),!l&&(0,t.jsx)(L,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:s}),!o&&(0,t.jsx)(ei,{}),(0,t.jsx)(es,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",f||x?"hidden":"block"),children:s})]})}],778828)},867775,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(730921),s=e.i(683903),n=e.i(877957),i=e.i(367810),l=e.i(901351),o=e.i(313983),c=e.i(725296),d=e.i(521350),u=e.i(611540);let m=({isUserLoggedIn:e,regime:m,deviceClass:h,experience:f,isPremiumUser:p})=>{let x=(0,s.useTranslations)("PrivacyConsentModal"),g=(0,r.useLocale)(),v=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:g}),[b,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(!1),[C,A]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||p||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),a=localStorage.getItem("saleOfDataConflict");t?(j(!0),w(!0)):e&&a&&(A(!0),w(!0))},[m,p,e]);let S=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await l.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},N=t=>{let a=window,r=window.top,s=a.DprSdk||r?.DprSdk;s?(s.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&S({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),y?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):C&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),w(!1)):console.error("Unable to fix conflict, missing DprSdk.")},L="",E="";if(y?(L="gpcConflictHeader",E="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(E+="_usa-ccpa")):C&&(L="saleOfDataConflictHeader",E="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(E+="_usa-ccpa")),E)return(0,t.jsx)(i.Dialog,{open:b,onOpenChange:w,children:(0,t.jsxs)(i.DialogContent,{className:`text-center ${"desktop"!==h?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===f?"wu-theme":""} `,onEscapeKeyDown:e=>{(C||y)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[L&&(0,t.jsx)(i.DialogHeader,{children:(0,t.jsx)(i.DialogTitle,{className:"text-xl font-semibold",children:x(L)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:x.rich(E,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:v,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(i.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(n.Button,{onClick:()=>{N(!0)},variant:"default",className:"w-full sm:w-auto",children:x("optInButtonText")}),(0,t.jsx)(n.Button,{onClick:()=>{N(!1)},variant:"secondary",className:"w-full sm:w-auto",children:x("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModal",0,m,"default",0,m])},10993,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},731672,e=>{"use strict";var t=e.i(546446),a=e.i(646341),r=e.i(671525),s=e.i(889753),n=e.i(45846),i=e.i(284007),l=e.i(756227),o=e.i(318849),c=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(s.userPreferencesAtom),d=(0,l.useResetAuthState)(),{refresh:u}=(0,r.usePageNavigation)();return async()=>{try{return(0,c.regenerateMetricsSession)(),await n.upsxClient.auth.logout(),d(),e(i.RESET),(0,a.deleteCookie)("twc-user",{domain:".weather.com"}),(0,o.disableSwrPersist)(),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},129932,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:s,...n},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":a,"aria-describedby":s,...n,children:[r?(0,t.jsx)("desc",{id:s,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Products"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5",clipRule:"evenodd"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:s,...e}));n.displayName="SkincareBold",e.s(["SkincareBold",0,n])},800177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:s,...n},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":a,"aria-describedby":s,...n,children:[r?(0,t.jsx)("desc",{id:s,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Products"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9",clipRule:"evenodd"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:s,...e}));n.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,n])},677997,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:s,...n},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":a,"aria-describedby":s,...n,children:[r?(0,t.jsx)("desc",{id:s,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"lightning"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.468 14.608a.56.56 0 0 0 .054.328c.05.1.13.178.224.223q.086.04.18.04a.43.43 0 0 0 .207-.064.5.5 0 0 0 .159-.162l6.017-8.742a.565.565 0 0 0 .05-.514.5.5 0 0 0-.17-.21.43.43 0 0 0-.246-.079H9.745l.8-4a.57.57 0 0 0-.092-.438.5.5 0 0 0-.161-.14.4.4 0 0 0-.2-.05H5.463a.43.43 0 0 0-.294.107.52.52 0 0 0-.168.289L3.612 7.882a.57.57 0 0 0 .091.443q.069.092.166.142a.4.4 0 0 0 .206.047H6.31zm5.49-8.18H8.526L9.45 1.8H5.896L4.71 7.514h2.748l-.692 5.007zm-5.022 8.31v-.01l.001-.055m-.03.097v-.028l-.004-.074m.005.102-.014-.021zm0 0v.027z",clipRule:"evenodd"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:s,...e}));n.displayName="Lightning",e.s(["Lightning",0,n])},460581,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(240058),s=e.i(64412),n=e.i(677997),i=e.i(995113),l=e.i(702957),o=e.i(489408),c=e.i(113016),d=e.i(312401),u=e.i(807215),m=e.i(876329),h=e.i(632137),f=e.i(546446);e.i(609717);var p=e.i(950771),x=e.i(537989),g=e.i(381477),v=e.i(190344),b=e.i(427977),w=e.i(961123),y=e.i(559421),j=e.i(388706),C=e.i(498076),A=e.i(683903),S=e.i(304116),N=e.i(269153),L=e.i(528600),E=e.i(837879);e.s(["default",0,function(){let e=(0,C.useIsMobile)(),k=(0,w.usePathname)(),R=(0,y.useCanonicalBasePath)(),_=(0,N.useIsSamsungPartner)(),I=(0,f.useAtomValue)(x.pageIdAtom),U=(0,A.useTranslations)("SidebarNavigation"),{user:P}=(0,L.useUser)(),{isUserPremium:O}=P,T=(0,E.useSubscriptionsEnabled)(),{location:B,isLoading:M}=(0,s.useLocation)(),$=(0,f.useAtomValue)(p.pageLocaleAtom),D=(0,v.useVideoNavUrl)(),{data:z}=(0,g.default)(["navigation/getQuickNav",$],()=>(0,b.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),F=(0,a.useMemo)(()=>{if(M||!B)return[];let e=B.placeId||"",a=B.featureId,r=B.canonicalID,s=(0,S.buildLocationPageHref)({pageType:"today",locale:$,canonicalID:r,featureId:a,placeId:e,canonicalBasePath:R,skipCanonical:_}),h=(0,S.buildLocationPageHref)({pageType:"radar",locale:$,canonicalID:r,featureId:a,placeId:e,canonicalBasePath:R,skipCanonical:_}),f=R?k.split("/").pop():null,p=R?j.CANONICAL_PAGE_TYPES.includes(f):k.includes("/weather/today/")||k.includes("/weather/hourbyhour/")||k.includes("/weather/tenday/")||k.includes("/weather/monthly/")||k.includes("/forecast/allergy/")||k.includes("/forecast/air-quality/")||k.includes("/forecast/cold-flu/"),x=k.includes("/weather/radar/")||k.includes("/weather/maps/"),g=k.includes("/subscribe"),v="video"===I,b=z?.videoLinkLocaleInclude?.["en-US"],w=b?.override?`?${b?.adRef}`:"",y=D?`${D}${w}`:"",C="h-6 w-6 text-inherit";return[{name:U("forecast"),href:s,icon:(0,t.jsx)(l.PartlyCloudyBold,{className:C}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:C}),isActive:p},...D?[{name:U("video"),href:y,icon:(0,t.jsx)(c.VideoPlayerBold,{className:C}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:C}),isActive:v}]:[],{name:U("radar"),href:h,icon:(0,t.jsx)(u.RadarBold,{className:C}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:C}),isActive:x},...T&&!O&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(n.Lightning,{className:C}),activeIcon:(0,t.jsx)(i.LightningFilled,{className:C}),isActive:g}]||[]]},[M,B,$,k,I,D,z,R,_]);return e&&0!==F.length?(0,t.jsx)("nav",{className:"z-sticky fixed right-0 bottom-0 left-0 bg-white md:hidden","aria-label":"Mobile navigation","data-component":"localsuite-nav","data-testid":"localsuite-nav",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:(0,t.jsx)("div",{className:"flex h-14 w-full items-stretch justify-around px-4 py-1",children:F.map(e=>(0,t.jsxs)(r.default,{href:e.href,className:(0,h.cn)("flex flex-1 flex-col items-center justify-center gap-0.5 rounded-3xl text-xs text-gray-900 transition-colors","hover:bg-gray-100 active:bg-gray-200",{"bg-gray-100 text-blue-500":e.isActive}),"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:(0,h.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold"),children:e.name})]},e.name))})})}):null}])},520362,e=>{"use strict";var t=e.i(699173),a=e.i(592121);let r=e=>{let{apiRoute:t,depth:r,refresh:s,serverURL:n}=e,i=(0,a.useRef)(!1),l=(0,a.useCallback)(e=>{e.origin===n&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof s?s():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[s,n]);return(0,a.useEffect)(()=>("u">typeof window&&window.addEventListener("message",l),i.current||(i.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:n}),s()),()=>{"u">typeof window&&window.removeEventListener("message",l)}),[n,l,r,t,s]),null};var s=e.i(961123);let n=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),i={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},l=e=>{let a=(0,s.useRouter)();return(0,t.jsx)(r,{...e,refresh:a.refresh})};e.s(["LivePreviewListener",0,l],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,a.useRef)(null),t=(0,a.useRef)(null),r=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,a.useRef)(null),o=(0,a.useCallback)(()=>{if("u"{let a=t.current,s=e.current;if(!a||!s)return;if(!a.isConnected){t.current=null,s.style.opacity="0",r.current?.disconnect();return}let n=a.getBoundingClientRect();s.style.top=`${n.top+window.scrollY}px`,s.style.left=`${n.left+window.scrollX}px`,s.style.width=`${n.width}px`,s.style.height=`${n.height}px`,s.style.opacity="1"},[]),d=(0,a.useCallback)(()=>{t.current=null,l.current=null,e.current&&(e.current.style.opacity="0"),r.current?.disconnect()},[]),u=(0,a.useCallback)(()=>{t.current&&null===s.current&&(s.current=requestAnimationFrame(()=>{s.current=null,c()}))},[c]),m=(0,a.useCallback)(e=>{if(e===l.current)return;let a=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!a)return void n.debug("No element found for block ID",{blockId:e});let s=(e=>{let t=e,a=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?m(e.data.blockId):d())};return window.addEventListener("message",t),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),null!==s.current&&cancelAnimationFrame(s.current),r.current?.disconnect(),e.current?.remove()}},[m,d,u]),null},"LivePreviewListener",0,l],520362)},313983,e=>{"use strict";var t,a=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>a])},104777,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={callServer:function(){return n.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let n=e.r(836549),i=e.r(560716),l=e.r(544383)},567277,e=>{"use strict";var t=e.i(546584),a=e.i(592121),r=e.i(961123);function s(){return false}function n(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function i(e){(0,a.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let a=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let a=e.scriptSrc?e.scriptSrc:s()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${a}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=a,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),s()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${a}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});a&&(r.current=a.setRoute)}},[e.route]),null}function l(e){let s=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,a=(0,r.usePathname)();if(!e)return null;let s=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!a||!s)return a;let i=a;try{let e=Object.entries(s);for(let[t,a]of e)if(!Array.isArray(a)){let e=n(a);e.test(i)&&(i=i.replace(e,`/[${t}]`))}for(let[t,a]of e)if(Array.isArray(a)){let e=n(a.join("/"));e.test(i)&&(i=i.replace(e,`/[...${t}]`))}return i}catch(e){return a}})();return a.default.createElement(i,{route:s,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return a.default.createElement(a.Suspense,{fallback:null},a.default.createElement(l,{...e}))}])},540039,e=>{"use strict";var t,a=e.i(546584),r={scriptHostname:("u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof a.default?"dpl_3F3Cg7KejSH3Q6ftrD59JtDNBWp1":void 0},s=e.i(592121),n=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:a}){return(0,s.useEffect)(()=>(e&&n&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(r,e);let a=document.createElement("script");for(let[s,n]of(a.src=`${r.scriptHostname}/_next-live/feedback/feedback.js`,a.setAttribute("data-explicit-opt-in","true"),e.nonce&&a.setAttribute("nonce",e.nonce),Object.entries((r.ownerId&&r.projectId?{"data-owner-id":r.ownerId,"data-project-id":r.projectId,"data-branch":t??r.branch}:r.deploymentId?{"data-deployment-id":r.deploymentId}:void 0)??{})))n&&a.setAttribute(s,n);(document.head||document.documentElement).appendChild(a)}}({nonce:a}),n=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},556441,e=>{"use strict";var t=e.i(699173),a=e.i(961123),r=e.i(240058),s=e.i(877957),n=e.i(368847),i=e.i(132084),l=e.i(528600),o=e.i(837879),c=e.i(498076),d=e.i(37429);e.s(["default",0,()=>{let e=(0,a.useSearchParams)(),u=e.get("par")||e.get("partner"),m=(0,c.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:f}=(0,l.useUser)(),{isUserPremium:p}=f;return u===i.Partner.TIKTOK&&m&&h&&!p?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(d.default,{src:"https://s.w-x.co/tt-banner.jpg",alt:"",fill:!0,priority:!0,isFetchPriority:!0,rounded:!1,objectFit:"cover",className:"object-center",wrapperClassName:"absolute inset-0","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,t.jsx)(n.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(n.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(s.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(r.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",children:"Claim Now"})})]})]}):null}])}]);