(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,778828,e=>{"use strict";var t=e.i(902875),a=e.i(632137),l=e.i(240058),i=e.i(247865),s=e.i(581014),n=e.i(546446),r=e.i(877957),m=e.i(616448),o=e.i(526456),c=e.i(527207),u=e.i(498076);let d=({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 h=e.i(436066);e.i(24959);var p=e.i(686557),b=e.i(64412),x=e.i(262453),g=e.i(214008);let v="bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500";function f({locale:e,className:l}){let j=(0,s.useTranslations)("Header"),k=(0,u.useIsMobile)(),y=(0,i.useRef)(null),w=(0,x.usePreciseGeocode)(),{location:P}=(0,b.useLocation)(),{location:S}=(0,b.useLocation)("geolocation"),N=P?.name||P?.city||P?.displayName,C=(0,g.isSameLocation)(P,S),[A,U]=(0,n.useAtom)(h.locationPickerOpenAtom),_=(0,i.useCallback)(()=>{U(!A)},[U,A]);return(0,i.useEffect)(()=>{if(!A||k)return;let e=e=>{y.current&&!y.current.contains(e.target)&&U(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[A,k,U]),(0,i.useEffect)(()=>{if(!A)return;let e=e=>{"Escape"===e.key&&U(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[A,U]),(0,t.jsxs)("div",{ref:y,className:(0,a.cn)("relative max-md:mr-auto",l),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)(r.Button,{type:"button",variant:"ghostUI",onClick:_,"aria-expanded":A,"aria-haspopup":"dialog","aria-label":N??j("searchPlaceholderText"),"data-state":A?"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",v),children:[C&&w?(0,t.jsx)(o.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):C&&!w?(0,t.jsx)(m.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:N||(0,t.jsx)(d,{animationStrings:["Location"]})}),(0,t.jsx)(c.ChevronUp,{className:(0,a.cn)("size-3 shrink-0 text-white transition-transform duration-150",!A&&"rotate-180"),"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)(p.Search,{locale:e,open:A,onOpenChange:U})})]})}var j=e.i(559421),k=e.i(528600),y=e.i(731672),w=e.i(792461),P=e.i(190344),S=e.i(296990),N=e.i(674885),C=e.i(336726),A=e.i(725287),U=e.i(357508);e.i(609717);var _=e.i(950771);e.i(647872);var L=e.i(928083),z=e.i(598513),E=e.i(993269),R=e.i(859827),q=e.i(449172),I=e.i(316810);let M=({url:e,action:i,name:s,isNew:n,isExternal:r,isInGroup:m,onClick:o,sourceModule:c,sourceElement:u,modulePosition:d})=>{if(!e&&!i)return null;let h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[s,n&&(0,t.jsx)(I.default,{})]}),r&&(0,t.jsx)(q.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),p=(0,a.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",m?"px-10":"px-6");return(0,t.jsx)("li",{className:m?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,t.jsx)(l.default,{href:e,className:p,target:r?"_blank":void 0,onClick:o,sourceModule:c,sourceElement:u,"data-module-key":d,children:h}):(0,t.jsx)("button",{onClick:i,className:(0,a.cn)(p,"cursor-pointer"),children:h})},s)},H=({isExpanded:e,toggleCategory:l,name:i,links:s,isNew:n})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsx)("h2",{className:"contents",children:(0,t.jsxs)("button",{type:"button",onClick:l,"aria-expanded":!!e,"aria-label":`Toggle ${i} category`,className:(0,a.cn)("flex w-full cursor-pointer items-center justify-between px-6 py-2.5 text-left md:cursor-default","focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none"),children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[(0,t.jsx)("span",{className:"text-gray-900 md:font-bold",children:i}),n&&(0,t.jsx)(I.default,{})]}),(0,t.jsx)("span",{"aria-hidden":"true",children:e?(0,t.jsx)(E.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(R.Plus,{size:"md",className:"text-black"})})]})}),(0,t.jsx)("ul",{className:(0,a.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:s.map(e=>(0,t.jsx)(M,{sourceModule:"header-nav",sourceElement:e.name,...e,isInGroup:!0},e.name))})]},i);var T=e.i(611540),B=e.i(304116),K=e.i(269153);let O=[{titleKey:"running",urlKey:"activityHubRunning"},{titleKey:"camping",urlKey:"activityHubCamping"},{titleKey:"hiking",urlKey:"activityHubHiking"},{titleKey:"golf",urlKey:"activityHubGolf"},{titleKey:"cycling",urlKey:"activityHubCycling"},{titleKey:"gardening",urlKey:"activityHubGardening"},{titleKey:"tennis",urlKey:"activityHubTennis"}],D={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},F=(0,i.forwardRef)((e,l)=>{let[m,o]=(0,n.useAtom)(h.settingsMenuOpenAtom),d=(0,n.useAtomValue)(N.isImperialUnitsAtom),p=(0,A.useParams)(),x=(p?.locale||"en-US").split("-")[1],{location:g}=(0,b.useLocation)(),v=(0,j.useCanonicalBasePath)(),{user:{isUserLoggedIn:f}}=(0,k.useUser)(),E=(0,y.useUserLogout)(),R=(0,w.useRefMemo)(E),q=g?.placeId||"",I=g?.featureId,M=g?.canonicalID,F=(0,K.useIsSamsungPartner)(),V=(0,n.useAtomValue)(_.pageLocaleAtom),G=(0,n.useAtomValue)(L.activityHubMenuEnabledAtom),W=(0,u.useIsMobile)(),$=(0,z.useSendInteractionEvent)(),Q=(0,s.useTranslations)("SidebarNavigation"),Y=(0,s.useTranslations)("ActivityHubDriver"),J=(0,s.useTranslations)("UserRegistration"),X=(0,P.useVideoNavUrl)(),[Z,ee]=(0,i.useState)({}),et=(0,i.useCallback)(e=>(0,B.buildLocationPageHref)({pageType:e,locale:V,canonicalBasePath:v,canonicalID:M,featureId:I,placeId:q,skipCanonical:F}),[V,v,M,I,q,F]),ea=(0,i.useMemo)(()=>[{name:Q("weatherForecasts"),links:[{name:Q("today"),url:et("today")},{name:Q("hourly"),url:et("hourbyhour")},{name:Q("tenday"),url:et("tenday")}]},{name:Q("radarAndMaps"),links:[{name:Q("interactiveRadarMap"),url:`${(0,T.interpolateUrl)(T.URLS.interactiveMap,{locale:V,locId:q})}?animation=true`},..."en-US"===V?[{name:"US Forecast",url:T.URLS.usForecast},{name:"US Satellite & Radar",url:T.URLS.usSatAndRadar},{name:"World Satellite",url:T.URLS.worldSatellite},{name:"US Severe Alerts",url:T.URLS.usSevereAlerts},{name:"US Health",url:T.URLS.usHealth}]:[]]},..."en-US"===V?[{name:"News",links:[{name:Q("topStories"),url:T.URLS.news},{name:Q("hurricaneCentral"),url:"/storms/hurricane-central"},{name:Q("tornadoCentral"),url:"/storms/tornado-central"},{name:Q("safetyAndPrep"),url:"/safety/index"},{name:Q("spaceAndSkywatching"),url:T.URLS.spaceSkywatching},...X?[{name:Q("video"),url:X}]:[]]}]:X?[{name:Q("video"),links:[{name:Q("topStories"),url:X}]}]:[],..."en-US"===V&&G&&W?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:O.map(({titleKey:e,urlKey:t},a)=>{let l=D[e],i=String(a);return{name:Y(e),url:(0,T.interpolateUrl)(T.URLS[t],{locale:V,locId:q}),onClick:()=>$({interactionType:"click",interactionElement:l,moduleId:"hamburger-menu",modulePosition:i,destinationPageId:l},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:l,modulePosition:i}})}]:[],{name:Q("productAccount"),links:[..."en-US"===V?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...f?[{name:J("manageAccount"),url:(0,T.interpolateUrl)(T.URLS.memberSettings,{locale:V})},{name:J("logOut"),action:R.current}]:[{name:J("createAnAccount"),url:(0,T.interpolateUrl)(T.URLS.memberSignup,{locale:V})},{name:J("logIn"),url:(0,T.interpolateUrl)(T.URLS.memberLogin,{locale:V})}]]},{name:Q("lifestyle"),links:[..."en-US"===V?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:Q("recipes"),url:"/home-garden/recipes"},{name:Q("homeAndGarden"),url:T.URLS.homeGarden},{name:Q("travelAndOutdoors"),url:T.URLS.travel},{name:Q("petsAndAnimals"),url:T.URLS.pets},{name:"Health",url:"/health"}]:[],{name:Q("allergyTracker"),url:et("allergy")},{name:Q("airQualityIndex"),url:et("air-quality")},{name:Q("coldAndFluTracker"),url:et("cold-flu")},..."en-US"===V?[{name:Q("skinHealth"),url:T.URLS.skinHealth}]:[]]}],[f,R,q,V,et,X,G,W,$]);return(0,t.jsxs)("nav",{ref:l,className:(0,a.cn)("md:h-unset z-overlay absolute top-full right-0 left-0 h-[calc(100dvh-56px)] w-full overflow-y-auto bg-white pb-14 shadow-md md:py-8 md:pb-0"),"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)(r.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":m,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>o(e=>!e),children:[(0,t.jsx)(S.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:x}),(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"}),m?(0,t.jsx)(c.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(C.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(U.default,{})]}),!m&&(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:ea.map(e=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:(0,t.jsx)(H,{isExpanded:Z[e.name],toggleCategory:()=>{var t;e.analyticsElement&&!Z[e.name]&&$({interactionElement:e.analyticsElement,interactionType:"expand",moduleId:"hamburger-menu"}),t=e.name,ee(e=>({...e,[t]:!e[t]}))},...e})},e.name))})]})});F.displayName="Navigation";var V=e.i(226602),G=e.i(747961);let W=(0,i.forwardRef)(({title:e,titleId:a,desc:l,descId:i,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":a,"aria-describedby":i,...s,children:[l?(0,t.jsx)("desc",{id:i,children:l}):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"})]})),$=i.default.forwardRef((e,a)=>(0,t.jsx)(G.BaseIcon,{ref:a,icon:W,...e}));function Q(){let[e,a]=(0,n.useAtom)(h.menuOpenAtom),l=(0,i.useRef)(null),s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,i.useEffect)(()=>{function t(t){e&&l.current&&s.current&&!l.current.contains(t.target)&&!s.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)(r.Button,{ref:l,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)(V.Close,{}):(0,t.jsx)($,{})}),e&&(0,t.jsx)(F,{ref:s})]})}$.displayName="Hamburger";var Y=e.i(368847),J=e.i(809058),X=e.i(837879),Z=e.i(730921),ee=e.i(540768),et=e.i(537989);let ea=()=>{let e=(0,n.useAtomValue)(et.pageIdAtom);return(0,i.useCallback)(t=>{let a=`${e}_${t}`;(0,ee.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};var el=e.i(683199);function ei(){let{user:e,userProfile:a}=(0,k.useUser)(),n=(0,y.useUserLogout)(),{isUserLoggedIn:m,isUserPremium:o}=e,[c,u]=(0,i.useState)(!1),d=(0,X.useSubscriptionsEnabled)(),h=(0,s.useTranslations)("UserRegistration"),p=(0,Z.useLocale)(),b=ea(),x=(0,el.usePremiumSource)(),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:m?(0,t.jsxs)(J.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:u,children:[(0,t.jsx)(J.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":c,className:g,"data-testid":"header-profile-button",children:a?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(J.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.default,{href:(0,T.interpolateUrl)(T.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)(Y.default,{variant:"Body.S",children:a?.firstName}),(0,t.jsx)(Y.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:h("manageAccount")})]})]})}),!o&&d&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(Y.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(Y.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(l.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>{b("user_flyout_go_premium"),x({sourceModule:"top-menu",sourceElement:"get-premium"})},children:(0,t.jsx)(r.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(r.Button,{variant:"link",onClick:n,"data-testid":"header-profile-signout",children:h("signOut")})})]})})]}):(0,t.jsx)(l.default,{href:(0,T.interpolateUrl)(T.URLS.memberLogin,{locale:p}),sourceModule:"header",sourceElement:"sign-in",children:(0,t.jsx)(r.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:h("logIn")})})})}var es=e.i(995113);function en(){let{user:e}=(0,k.useUser)(),{isUserPremium:i}=e,s=(0,X.useSubscriptionsEnabled)(),n=ea(),r=(0,el.usePremiumSource)();return i||!s?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)(l.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:()=>{n("header_go_premium"),r({sourceModule:"top-menu",sourceElement:"get-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)(es.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 er=e.i(521231);e.s(["default",0,function({locale:e,subnav:i,hideHeaderOnDesktop:s,hideLocationPicker:r,hideGoPremiumButton:m}){let o,c=(0,u.useIsMobile)(),d=(o=(0,u.useIsMobile)(),(0,A.usePathname)().includes("/subscribe")&&!o||s&&!c),p=(0,n.useAtomValue)(h.menuOpenAtom),b=(0,n.useAtomValue)(h.locationPickerOpenAtom),x=(0,T.interpolateUrl)(T.URLS.home,{locale:e});return d?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:(0,a.cn)("relative top-0 w-full md:sticky",p||b?"z-overlay":"z-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)(Q,{})}),(0,t.jsx)("div",{className:(0,a.cn)("flex items-center md:hidden",r&&"max-md:mr-auto"),children:(0,t.jsx)(l.default,{href:x,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(er.default,{className:"h-10 w-auto text-[#003399] md:h-12"})})}),!r&&(0,t.jsx)(f,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:i}),!m&&(0,t.jsx)(en,{}),(0,t.jsx)(ei,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",p||b?"hidden":"block"),children:i})]})}],778828)},677677,function(e){e.n(e.i(778828))},316810,e=>{"use strict";var t=e.i(902875),a=e.i(632137);e.s(["default",0,({className:e})=>(0,t.jsx)("span",{className:(0,a.cn)("text-xxs bg-brand-200 ml-2 inline-flex h-[19px] items-center justify-center rounded-md border-2 border-white px-[3px] py-1 font-bold text-white",e),children:"New"})])},683199,e=>{"use strict";var t=e.i(247865),a=e.i(546446),l=e.i(128541),i=e.i(537989);e.s(["usePremiumSource",0,()=>{let e=(0,a.useSetAtom)(l.purchaseSourceAttributionAtom),s=(0,a.useAtomValue)(i.pageIdAtom);return(0,t.useCallback)(({sourceModule:t,sourceElement:a,sourceUpsellPlacement:l})=>{e({sourcePage:s||null,sourceModule:t,sourceElement:a,sourceUpsellPlacement:l??null})},[e,s])}])},598513,e=>{"use strict";var t=e.i(947118),a=e.i(737801),l=e.i(247865);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",i=(0,t.useIsInitialized)(),s=(0,a.useEventAttributes)();return(0,l.useCallback)((t,a={})=>{let l={...s,...t};if(!i)return void console.warn("MParticle is not initialized");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,l),a.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,l)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[s,i])}])},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let a=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,a],494889);let l=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,l],928083);let i=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,i],624432),e.s([],647872)},995113,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(747961);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:l,descId:i,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":i,...s,children:[l?(0,t.jsx)("desc",{id:i,children:l}):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",d:"M5.748 14.435a.43.43 0 0 0 .203.195.4.4 0 0 0 .164.037.4.4 0 0 0 .188-.057.43.43 0 0 0 .145-.142l5.47-7.69a.47.47 0 0 0 .046-.453.44.44 0 0 0-.156-.185.4.4 0 0 0-.223-.068H9.587l.727-3.52a.49.49 0 0 0-.084-.384.4.4 0 0 0-.146-.124A.4.4 0 0 0 9.902 2H5.694a.4.4 0 0 0-.268.094.46.46 0 0 0-.152.254L4.01 8.23a.49.49 0 0 0 .083.39q.062.082.151.126a.4.4 0 0 0 .187.04h2.032L5.7 14.147c-.014.1.003.201.049.289"})]})),s=a.default.forwardRef((e,a)=>(0,t.jsx)(l.BaseIcon,{ref:a,icon:i,...e}));s.displayName="LightningFilled",e.s(["LightningFilled",0,s])},887908,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3d-1kbutbj1gv.js"].map(t=>e.l(t))).then(()=>t(147168)))},991894,e=>{e.v(t=>Promise.all(["static/immutable/chunks/22euvwis66vmb.js"].map(t=>e.l(t))).then(()=>t(39086)))},840623,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n8msz19yvqd6.js"].map(t=>e.l(t))).then(()=>t(882330)))},660824,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0xxeeocmy2aye.js"].map(t=>e.l(t))).then(()=>t(530212)))},317297,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2616xyz29bjwr.js"].map(t=>e.l(t))).then(()=>t(680602)))},355962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37hnuu5dy6sit.js"].map(t=>e.l(t))).then(()=>t(503885)))},765014,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3um12qzwmc8k_.js"].map(t=>e.l(t))).then(()=>t(872251)))},876327,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tyxy3-hxmn50.js"].map(t=>e.l(t))).then(()=>t(947387)))},921282,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ma3aggvms9ma.js"].map(t=>e.l(t))).then(()=>t(493948)))},959395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0f3g-lp97vkng.js"].map(t=>e.l(t))).then(()=>t(706686)))},813499,e=>{e.v(t=>Promise.all(["static/immutable/chunks/329zyt8hnwe7y.js"].map(t=>e.l(t))).then(()=>t(314459)))},563854,e=>{e.v(t=>Promise.all(["static/immutable/chunks/16536_5evh7u0.js"].map(t=>e.l(t))).then(()=>t(643246)))},48629,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zgos4ygxa0bb.js"].map(t=>e.l(t))).then(()=>t(769885)))},762150,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0p2m8whl54tha.js"].map(t=>e.l(t))).then(()=>t(1892)))},541661,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0y1c5urz16cs_.js"].map(t=>e.l(t))).then(()=>t(478186)))},565343,e=>{e.v(t=>Promise.all(["static/immutable/chunks/06xr-i7ondto9.js"].map(t=>e.l(t))).then(()=>t(294782)))},393816,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0ff1-4vnz_78l.js"].map(t=>e.l(t))).then(()=>t(855621)))},75726,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0yr40fq9cik4v.js"].map(t=>e.l(t))).then(()=>t(748540)))},72951,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mw623e8v1oie.js"].map(t=>e.l(t))).then(()=>t(360647)))},276567,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2853l-wt_g4_t.js"].map(t=>e.l(t))).then(()=>t(501462)))},951283,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hb99379n909x.js"].map(t=>e.l(t))).then(()=>t(273498)))},416614,e=>{e.v(t=>Promise.all(["static/immutable/chunks/084ypheui9pug.js"].map(t=>e.l(t))).then(()=>t(901728)))},592630,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s_0vvr_qgag9.js"].map(t=>e.l(t))).then(()=>t(507085)))},423373,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p3orq86c5ifv.js"].map(t=>e.l(t))).then(()=>t(62159)))},815954,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qaf2w3zk3w27.js"].map(t=>e.l(t))).then(()=>t(61161)))},15398,e=>{e.v(t=>Promise.all(["static/immutable/chunks/02xiqt9zvf6gh.js"].map(t=>e.l(t))).then(()=>t(762526)))},776943,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ytb6oy4ikrz6.js"].map(t=>e.l(t))).then(()=>t(97569)))},284458,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3nxkndkqavswg.js"].map(t=>e.l(t))).then(()=>t(877390)))},261156,e=>{e.v(t=>Promise.all(["static/immutable/chunks/38l6gmiu5_9ku.js"].map(t=>e.l(t))).then(()=>t(827382)))},389867,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3hk3rd5e71dc4.js"].map(t=>e.l(t))).then(()=>t(702479)))},900346,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0t4h2wlc7n595.js"].map(t=>e.l(t))).then(()=>t(389327)))},96219,e=>{e.v(t=>Promise.all(["static/immutable/chunks/381m8qf6cbhtp.js"].map(t=>e.l(t))).then(()=>t(16557)))},267082,e=>{e.v(t=>Promise.all(["static/immutable/chunks/31nq3o47_azko.js"].map(t=>e.l(t))).then(()=>t(894202)))},829350,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p8724zzw5ewi.js"].map(t=>e.l(t))).then(()=>t(447314)))},391939,e=>{e.v(t=>Promise.all(["static/immutable/chunks/396y1w1ozc-fu.js"].map(t=>e.l(t))).then(()=>t(72575)))},252521,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0lmym4f8kyevf.js"].map(t=>e.l(t))).then(()=>t(661446)))},408674,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bk2xo-o_s-vf.js"].map(t=>e.l(t))).then(()=>t(783769)))},846784,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-9yeudlt40j_.js"].map(t=>e.l(t))).then(()=>t(873667)))},713848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0qp3xhy3q8zip.js"].map(t=>e.l(t))).then(()=>t(889507)))},407657,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-2wb7wpbqbgn.js"].map(t=>e.l(t))).then(()=>t(75960)))},415546,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0tsqv73kd2uwg.js"].map(t=>e.l(t))).then(()=>t(667728)))},781723,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17nasyndzgye8.js"].map(t=>e.l(t))).then(()=>t(654703)))},197999,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hwzkvu2g7pco.js"].map(t=>e.l(t))).then(()=>t(272493)))},103659,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17hryngooc2j1.js"].map(t=>e.l(t))).then(()=>t(296920)))},625303,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1d-xb8qt0v27_.js"].map(t=>e.l(t))).then(()=>t(718437)))},148486,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3q96qady37ql-.js"].map(t=>e.l(t))).then(()=>t(946515)))},957284,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zx_ucotfu7pf.js"].map(t=>e.l(t))).then(()=>t(48914)))},92368,e=>{e.v(t=>Promise.all(["static/immutable/chunks/19pzyqeq9654w.js"].map(t=>e.l(t))).then(()=>t(789895)))},226507,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3jelzfg203nfe.js"].map(t=>e.l(t))).then(()=>t(538258)))},132409,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nmdno2r5jhr2.js"].map(t=>e.l(t))).then(()=>t(3017)))},626117,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mltvvqhcgund.js"].map(t=>e.l(t))).then(()=>t(825086)))},395624,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1q-jk2-pdev6-.js"].map(t=>e.l(t))).then(()=>t(600726)))},494738,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3_ndi79lx21jd.js"].map(t=>e.l(t))).then(()=>t(512028)))},774463,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3t1n31-ogxy75.js"].map(t=>e.l(t))).then(()=>t(155062)))},752465,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3iyt_l7ny1i-k.js"].map(t=>e.l(t))).then(()=>t(777844)))},67832,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1jtfbjn7tl5lf.js"].map(t=>e.l(t))).then(()=>t(414064)))},2638,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2jkxj9298b3gp.js"].map(t=>e.l(t))).then(()=>t(198051)))},916531,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0wdahy0c-g55j.js"].map(t=>e.l(t))).then(()=>t(369675)))},744883,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1yxzgbbc9k2zy.js"].map(t=>e.l(t))).then(()=>t(581947)))},880187,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17dedv282ubqs.js"].map(t=>e.l(t))).then(()=>t(747997)))},164295,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0srphq_p8tbzl.js"].map(t=>e.l(t))).then(()=>t(702162)))},521662,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0mi2a4br_qp3u.js"].map(t=>e.l(t))).then(()=>t(782697)))},403395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0pvy0xx928tqy.js"].map(t=>e.l(t))).then(()=>t(573581)))},661123,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1n29uczdwr6s-.js"].map(t=>e.l(t))).then(()=>t(711818)))},48208,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n6233oisp1f-.js"].map(t=>e.l(t))).then(()=>t(625444)))},476493,e=>{e.v(t=>Promise.all(["static/immutable/chunks/234hfx_o8ubit.js"].map(t=>e.l(t))).then(()=>t(328877)))},650095,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-83gv2_8qjed.js"].map(t=>e.l(t))).then(()=>t(601862)))},945801,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3a02q729huh9w.js"].map(t=>e.l(t))).then(()=>t(566248)))},909969,e=>{e.v(t=>Promise.all(["static/immutable/chunks/41skq4kn8ohe8.js"].map(t=>e.l(t))).then(()=>t(218776)))},155043,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nxr0_6i1lqtd.js"].map(t=>e.l(t))).then(()=>t(869146)))},353962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2hut6c8sprk2i.js"].map(t=>e.l(t))).then(()=>t(367128)))},666922,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qb4sm1bny98e.js"].map(t=>e.l(t))).then(()=>t(856593)))},72998,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2sx3cwgqxp3i5.js"].map(t=>e.l(t))).then(()=>t(970479)))},722332,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3e4lkh1cm8zsc.js"].map(t=>e.l(t))).then(()=>t(476881)))},171913,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37viczxedu6th.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0b6c2xomqe187.js"].map(t=>e.l(t))).then(()=>t(22872)))},632092,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3cmxbqj3xp7vq.js"].map(t=>e.l(t))).then(()=>t(45677)))},731672,e=>{"use strict";var t=e.i(546446),a=e.i(965586),l=e.i(671525),i=e.i(889753),s=e.i(45846),n=e.i(284007),r=e.i(756227),m=e.i(358273),o=e.i(247865),c=e.i(540768),u=e.i(682142),d=e.i(782937),h=e.i(695881),p=e.i(333350),b=e.i(64412),x=e.i(950771),g=e.i(537989),v=e.i(695203),f=e.i(158662),j=e.i(777638),k=e.i(924776),y=e.i(409628),w=e.i(605781);let P=(0,h.createLogger)("useUserLoggedOut");e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(i.userPreferencesAtom),h=(0,r.useResetAuthState)(),{refresh:S}=(0,l.usePageNavigation)(),N=((e={})=>{let a=(0,t.useAtomValue)(g.pageIdAtom),l=(0,t.useAtomValue)(x.pageLocaleAtom),i=(0,t.useAtomValue)(v.deviceClassAtom),s=(0,t.useAtomValue)(f.experimentJoinListAtom),{location:n}=(0,b.useLocation)(),r=(0,k.useIsHightouchReady)(),{url:h,logoutMethod:S}=e;return(0,o.useCallback)(()=>{if(!p.default||!r)return;let e=(0,u.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,c.getCookie)("twc-location-country"),o=e?.["TWC-GeoIP-Region"]??(0,c.getCookie)("twc-location-region"),b=e?.["TWC-Privacy"]??(0,c.getCookie)("twc-privacy"),x=window.DprSdk?.getGdprConsentOptInsString()??"",g=window.DprSdk?.getCcpaSaleOptInString()??"",v=window.navigator?.globalPrivacyControl??!1,f=x?.includes("functional-technology")??!1,k=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,N=navigator?.cookieEnabled??!1,C=(0,c.getCookie)("partner")||"",A=(0,d.getPartnerByPattern)(C)??C,U=(0,m.getMetricsSession)(),_=U?.sessionId||"",L=U?.sessionStartTime||0,z=new Date,E=z.getHours(),R=y.WEEK_DAYS[z.getDay()]??"",q=-z.getTimezoneOffset()/60,I=document.referrer,M={url:h??window.location.pathname,logoutMethod:S??"manual",referrer:I,privProducts:g,deviceTimeZone:q,pageId:a??"",locale:l,deviceClass:i,sessionId:_,sessionStartTime:L,partner:A,wlocCity:n?.city??null,wlocCountry:n?.countryCode??null,wlocState:n?.adminDistrictCode??null,wlocDMA:n?.dmaCd??null,dayOfWeek:R,regime:b??"",cookiesEnabled:N,gpcSignalOptOut:v,functionalTechnologies:f,geographicallyRelevantAds:k,priv:x,hourOfDay:E,physicalCountry:t??"",physicalState:o??"",campaign:(0,j.getCampaign)()??void 0,tpcc:(0,j.getTpcc)(),linkReferral:(0,j.getLinkReferral)(),experimentJoinList:s,weatherMode:"normal",appVersion:"4bd2434c8c502198f1eb81ba9e94ffea611c083f".slice(0,10)};(0,w.trackUserLoggedout)(M),P.info('Hightouch: Event "user-loggedout" tracked')},[h,S,a,l,i,s,n,r])})();return async()=>{try{return(0,m.regenerateMetricsSession)(),await s.upsxClient.auth.logout(),N(),h(),e(n.RESET),(0,a.deleteCookie)("twc-user",{domain:".weather.com"}),S({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}],731672)}]);