(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),n=e.i(632137),r=e.i(240058),i=e.i(247865),a=e.i(581014),l=e.i(546446),o=e.i(877957),s=e.i(616448),u=e.i(526456),c=e.i(527207),d=e.i(498076);let m=({animationStrings:e})=>(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("span",{"data-nosnippet":!0,className:(0,n.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var f=e.i(436066);e.i(24959);var p=e.i(686557),h=e.i(64412),g=e.i(262453),x=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 b({locale:e,className:r}){let y=(0,a.useTranslations)("Header"),w=(0,d.useIsMobile)(),j=(0,i.useRef)(null),S=(0,g.usePreciseGeocode)(),{location:C}=(0,h.useLocation)(),{location:N}=(0,h.useLocation)("geolocation"),E=C?.name||C?.city||C?.displayName,k=(0,x.isSameLocation)(C,N),[A,P]=(0,l.useAtom)(f.locationPickerOpenAtom),R=(0,i.useCallback)(()=>{P(!A)},[P,A]);return(0,i.useEffect)(()=>{if(!A||w)return;let e=e=>{j.current&&!j.current.contains(e.target)&&P(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[A,w,P]),(0,i.useEffect)(()=>{if(!A)return;let e=e=>{"Escape"===e.key&&P(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[A,P]),(0,t.jsxs)("div",{ref:j,className:(0,n.cn)("relative max-md:mr-auto",r),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)(o.Button,{type:"button",variant:"ghostUI",onClick:R,"aria-expanded":A,"aria-haspopup":"dialog","aria-label":E??y("searchPlaceholderText"),"data-state":A?"open":"closed","data-testid":"location-picker-trigger",className:(0,n.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:[k&&S?(0,t.jsx)(u.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):k&&!S?(0,t.jsx)(s.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:E||(0,t.jsx)(m,{animationStrings:["Location"]})}),(0,t.jsx)(c.ChevronUp,{className:(0,n.cn)("size-3 shrink-0 text-white transition-transform duration-150",!A&&"rotate-180"),"aria-hidden":"true",title:""})]})}),(0,t.jsx)("div",{className:(0,n.cn)(!w&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(p.Search,{locale:e,open:A,onOpenChange:P})})]})}var y=e.i(559421),w=e.i(528600),j=e.i(731672),S=e.i(792461),C=e.i(190344),N=e.i(296990),E=e.i(674885),k=e.i(336726),A=e.i(725287),P=e.i(357508),R=e.i(942400);e.i(647872);var U=e.i(928083),I=e.i(598513),L=e.i(993269),M=e.i(859827),T=e.i(449172),O=e.i(316810);let _=({url:e,action:i,name:a,isNew:l,isExternal:o,isInGroup:s,onClick:u,sourceModule:c,sourceElement:d,modulePosition:m})=>{if(!e&&!i)return null;let f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[a,l&&(0,t.jsx)(O.default,{})]}),o&&(0,t.jsx)(T.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),p=(0,n.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",s?"px-10":"px-6");return(0,t.jsx)("li",{className:s?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,t.jsx)(r.default,{href:e,className:p,target:o?"_blank":void 0,onClick:u,sourceModule:c,sourceElement:d,"data-module-key":m,children:f}):(0,t.jsx)("button",{onClick:i,className:(0,n.cn)(p,"cursor-pointer"),children:f})},a)},D=({isExpanded:e,toggleCategory:r,name:i,links:a,isNew:l})=>(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:r,"aria-expanded":!!e,"aria-label":`Toggle ${i} category`,className:(0,n.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}),l&&(0,t.jsx)(O.default,{})]}),(0,t.jsx)("span",{"aria-hidden":"true",children:e?(0,t.jsx)(L.Minus,{size:"md",className:"text-black"}):(0,t.jsx)(M.Plus,{size:"md",className:"text-black"})})]})}),(0,t.jsx)("ul",{className:(0,n.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:a.map(e=>(0,t.jsx)(_,{sourceModule:"header-nav",sourceElement:e.name,...e,isInGroup:!0},e.name))})]},i);var H=e.i(611540),z=e.i(304116),B=e.i(269153);let V=[{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"}],F={running:"running",camping:"camping",hiking:"hiking",golf:"golf",cycling:"cycling",gardening:"gardening",tennis:"tennis-pickleball"},$=(0,i.forwardRef)((e,r)=>{let[s,u]=(0,l.useAtom)(f.settingsMenuOpenAtom),m=(0,l.useAtomValue)(E.isImperialUnitsAtom),p=(0,A.useParams)(),g=(p?.locale||"en-US").split("-")[1],{location:x}=(0,h.useLocation)(),v=(0,y.useCanonicalBasePath)(),{user:{isUserLoggedIn:b}}=(0,w.useUser)(),L=(0,j.useUserLogout)(),M=(0,S.useRefMemo)(L),T=x?.placeId||"",O=x?.featureId,_=x?.canonicalID,$=(0,B.useIsSamsungPartner)(),K=(0,R.usePageLocale)(),G=(0,l.useAtomValue)(U.activityHubMenuEnabledAtom),W=(0,d.useIsMobile)(),q=(0,I.useSendInteractionEvent)(),Y=(0,a.useTranslations)("SidebarNavigation"),Q=(0,a.useTranslations)("ActivityHubDriver"),X=(0,a.useTranslations)("UserRegistration"),J=(0,C.useVideoNavUrl)(),[Z,ee]=(0,i.useState)({}),et=(0,i.useCallback)(e=>(0,z.buildLocationPageHref)({pageType:e,locale:K,canonicalBasePath:v,canonicalID:_,featureId:O,placeId:T,skipCanonical:$}),[K,v,_,O,T,$]),en=(0,i.useMemo)(()=>[{name:Y("weatherForecasts"),links:[{name:Y("today"),url:et("today")},{name:Y("hourly"),url:et("hourbyhour")},{name:Y("tenday"),url:et("tenday")}]},{name:Y("radarAndMaps"),links:[{name:Y("interactiveRadarMap"),url:`${(0,H.interpolateUrl)(H.URLS.interactiveMap,{locale:K,locId:T})}?animation=true`},..."en-US"===K?[{name:"US Forecast",url:H.URLS.usForecast},{name:"US Satellite & Radar",url:H.URLS.usSatAndRadar},{name:"World Satellite",url:H.URLS.worldSatellite},{name:"US Severe Alerts",url:H.URLS.usSevereAlerts},{name:"US Health",url:H.URLS.usHealth}]:[]]},..."en-US"===K?[{name:"News",links:[{name:Y("topStories"),url:H.URLS.news},{name:Y("hurricaneCentral"),url:"/storms/hurricane-central"},{name:Y("tornadoCentral"),url:"/storms/tornado-central"},{name:Y("safetyAndPrep"),url:"/safety/index"},{name:Y("spaceAndSkywatching"),url:H.URLS.spaceSkywatching},...J?[{name:Y("video"),url:J}]:[]]}]:J?[{name:Y("video"),links:[{name:Y("topStories"),url:J}]}]:[],..."en-US"===K&&G&&W?[{name:"Activity Hub",isNew:!0,analyticsElement:"activity-hub",links:V.map(({titleKey:e,urlKey:t},n)=>{let r=F[e],i=String(n);return{name:Q(e),url:(0,H.interpolateUrl)(H.URLS[t],{locale:K,locId:T}),onClick:()=>q({interactionType:"click",interactionElement:r,moduleId:"hamburger-menu",modulePosition:i,destinationPageId:r},{flushImmediately:!0}),sourceModule:"hamburger-menu",sourceElement:r,modulePosition:i}})}]:[],{name:Y("productAccount"),links:[..."en-US"===K?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...b?[{name:X("manageAccount"),url:(0,H.interpolateUrl)(H.URLS.memberSettings,{locale:K})},{name:X("logOut"),action:M.current}]:[{name:X("createAnAccount"),url:(0,H.interpolateUrl)(H.URLS.memberSignup,{locale:K})},{name:X("logIn"),url:(0,H.interpolateUrl)(H.URLS.memberLogin,{locale:K})}]]},{name:Y("lifestyle"),links:[..."en-US"===K?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:Y("recipes"),url:"/home-garden/recipes"},{name:Y("homeAndGarden"),url:H.URLS.homeGarden},{name:Y("travelAndOutdoors"),url:H.URLS.travel},{name:Y("petsAndAnimals"),url:H.URLS.pets},{name:"Health",url:"/health"}]:[],{name:Y("allergyTracker"),url:et("allergy")},{name:Y("airQualityIndex"),url:et("air-quality")},{name:Y("coldAndFluTracker"),url:et("cold-flu")},..."en-US"===K?[{name:Y("skinHealth"),url:H.URLS.skinHealth}]:[]]}],[b,M,T,K,et,J,G,W,q]);return(0,t.jsxs)("nav",{ref:r,className:(0,n.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)(o.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":s,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>u(e=>!e),children:[(0,t.jsx)(N.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:g}),(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:m?"°F":"°C"}),s?(0,t.jsx)(c.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(k.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(P.default,{})]}),!s&&(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:en.map(e=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:(0,t.jsx)(D,{isExpanded:Z[e.name],toggleCategory:()=>{var t;e.analyticsElement&&!Z[e.name]&&q({interactionElement:e.analyticsElement,interactionType:"expand",moduleId:"hamburger-menu"}),t=e.name,ee(e=>({...e,[t]:!e[t]}))},...e})},e.name))})]})});$.displayName="Navigation";var K=e.i(226602),G=e.i(747961);let W=(0,i.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":n,"aria-describedby":i,...a,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Hamburger"}):e?(0,t.jsx)("title",{id:n,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"})]})),q=i.default.forwardRef((e,n)=>(0,t.jsx)(G.BaseIcon,{ref:n,icon:W,...e}));function Y(){let[e,n]=(0,l.useAtom)(f.menuOpenAtom),r=(0,i.useRef)(null),a=(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&&r.current&&a.current&&!r.current.contains(t.target)&&!a.current.contains(t.target)&&n(!1)}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,n]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.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:()=>n(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)(K.Close,{}):(0,t.jsx)(q,{})}),e&&(0,t.jsx)($,{ref:a})]})}q.displayName="Hamburger";var Q=e.i(368847),X=e.i(809058),J=e.i(837879),Z=e.i(730921),ee=e.i(540768),et=e.i(537989);let en=()=>{let e=(0,l.useAtomValue)(et.pageIdAtom);return(0,i.useCallback)(t=>{let n=`${e}_${t}`;(0,ee.setCookie)("fromStr",n,{path:"/",domain:".weather.com"})},[e])};var er=e.i(683199);function ei(){let{user:e,userProfile:n}=(0,w.useUser)(),l=(0,j.useUserLogout)(),{isUserLoggedIn:s,isUserPremium:u}=e,[c,d]=(0,i.useState)(!1),m=(0,J.useSubscriptionsEnabled)(),f=(0,a.useTranslations)("UserRegistration"),p=(0,Z.useLocale)(),h=en(),g=(0,er.usePremiumSource)(),x="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:s?(0,t.jsxs)(X.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:d,children:[(0,t.jsx)(X.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":c,className:x,"data-testid":"header-profile-button",children:n?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(X.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,H.interpolateUrl)(H.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:x,children:n?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(Q.default,{variant:"Body.S",children:n?.firstName}),(0,t.jsx)(Q.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:f("manageAccount")})]})]})}),!u&&m&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(Q.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(Q.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:()=>{h("user_flyout_go_premium"),g({sourceModule:"top-menu",sourceElement:"get-premium"})},children:(0,t.jsx)(o.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(o.Button,{variant:"link",onClick:l,"data-testid":"header-profile-signout",children:f("signOut")})})]})})]}):(0,t.jsx)(r.default,{href:(0,H.interpolateUrl)(H.URLS.memberLogin,{locale:p}),sourceModule:"header",sourceElement:"sign-in",children:(0,t.jsx)(o.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 ea=e.i(995113);function el(){let{user:e}=(0,w.useUser)(),{isUserPremium:i}=e,a=(0,J.useSubscriptionsEnabled)(),l=en(),o=(0,er.usePremiumSource)();return i||!a?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,n.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:()=>{l("header_go_premium"),o({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)(ea.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 eo=e.i(521231);e.s(["default",0,function({locale:e,subnav:i,hideHeaderOnDesktop:a,hideLocationPicker:o,hideGoPremiumButton:s}){let u,c=(0,d.useIsMobile)(),m=(u=(0,d.useIsMobile)(),(0,A.usePathname)().includes("/subscribe")&&!u||a&&!c),p=(0,l.useAtomValue)(f.menuOpenAtom),h=(0,l.useAtomValue)(f.locationPickerOpenAtom),g=(0,H.interpolateUrl)(H.URLS.home,{locale:e});return m?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:(0,n.cn)("relative top-0 w-full md:sticky",p||h?"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)(Y,{})}),(0,t.jsx)("div",{className:(0,n.cn)("flex items-center md:hidden",o&&"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)(eo.default,{className:"h-10 w-auto text-[#003399] md:h-12"})})}),!o&&(0,t.jsx)(b,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:i}),!s&&(0,t.jsx)(el,{}),(0,t.jsx)(ei,{})]})})}),(0,t.jsx)("div",{className:(0,n.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",p||h?"hidden":"block"),children:i})]})}],778828)},316810,e=>{"use strict";var t=e.i(902875),n=e.i(632137);e.s(["default",0,({className:e})=>(0,t.jsx)("span",{className:(0,n.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"})])},543836,e=>{"use strict";var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),r=!!("u">typeof window&&window.document&&window.document.createElement);function i(e,t,{checkForDefaultPrevented:r=!0}={}){return n(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function a(e){if(!r)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function l(e){return"IFRAME"===e.tagName}n(i,"composeEventHandlers"),n(function(e){if(!r)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(a,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:r}=a(t);if(!r?.nodeName)return null;if(l(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=a(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),n(l,"isFrame"),e.s(["composeEventHandlers",0,i])},899300,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},271359,e=>{"use strict";var t=e.i(247865),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(247865),n=e.i(902875),r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});function a(e,r=[]){let o=[];function s(r,a){let l=t.createContext(a);l.displayName=r+"Context";let s=o.length;o=[...o,a];let u=i(r=>{let{scope:i,children:a,...o}=r,u=i?.[e]?.[s]||l,c=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(u.Provider,{value:c,children:a})},"Provider");function c(n,i,o={}){let{optional:u=!1}=o,d=i?.[e]?.[s]||l,m=t.useContext(d);if(m)return m;if(void 0!==a)return a;if(!u)throw Error(`\`${n}\` must be used within \`${r}\``)}return u.displayName=r+"Provider",i(c,"useContext"),[u,c]}i(s,"createContext");let u=i(()=>{let n=o.map(e=>t.createContext(e));return i(function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},"useScope")},"createScope");return u.scopeName=e,[s,l(u,...r)]}function l(...e){let n=e[0];if(1===e.length)return n;let r=i(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return i(function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return r.scopeName=n.scopeName,r}i(function(e,r){let a=t.createContext(r);a.displayName=e+"Context";let l=i(e=>{let{children:r,...i}=e,l=t.useMemo(()=>i,Object.values(i));return(0,n.jsx)(a.Provider,{value:l,children:r})},"Provider");function o(n,i={}){let{optional:l=!1}=i,s=t.useContext(a);if(s)return s;if(void 0!==r)return r;if(!l)throw Error(`\`${n}\` must be used within \`${e}\``)}return l.displayName=e+"Provider",i(o,"useContext"),[l,o]},"createContext"),i(a,"createContextScope"),i(l,"composeContextScopes"),e.s(["createContextScope",0,a])},296994,e=>{"use strict";var t=e.i(247865),n=e.i(714035),r=Object.defineProperty,i=t[" useId ".trim().toString()]||(()=>void 0),a=0;function l(e){let[r,l]=t.useState(i());return(0,n.useLayoutEffect)(()=>{e||l(e=>e??String(a++))},[e]),e||(r?`radix-${r}`:"")}r(l,"name",{value:"useId",configurable:!0}),e.s(["useId",0,l])},312610,e=>{"use strict";var t=e.i(247865),n=e.i(714035),r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});function a(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}i(a,"useStateMachine");var l=i(e=>{let{present:n,children:r}=e,i=o(n),a="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),l=u(i.ref,d(a));return"function"==typeof r||i.isPresent?t.cloneElement(a,{ref:l}):null},"Presence");function o(e){let[r,l]=t.useState(),o=t.useRef(null),s=t.useRef(e),u=t.useRef("none"),d=t.useRef(void 0),[m,f]=a(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===m?(u.current=d.current??c(o.current),d.current=void 0):u.current="none"},[m]),(0,n.useLayoutEffect)(()=>{let t=o.current,n=s.current;if(n!==e){let r=u.current,i=c(t);e?(d.current=i,f("MOUNT")):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=i(n=>{let i=c(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(f("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},"handleAnimationEnd"),a=i(e=>{e.target===r&&(u.current=c(o.current))},"handleAnimationStart");return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}f("ANIMATION_END")},[r,f]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,d.current=c(t)}else o.current=null;l(e)},[])}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){let n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,r=!1,i=t.map(t=>{let n=s(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e{"use strict";var t=e.i(247865),n=e.i(352825),r=e.i(982538),i=e.i(902875),a=Object.defineProperty,l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let a=(0,r.createSlot)(`Primitive.${n}`),l=t.forwardRef((e,t)=>{let{asChild:r,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(r?a:n,{...l,ref:t})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{});function o(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}a(o,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,l,"dispatchDiscreteCustomEvent",0,o])},803976,e=>{"use strict";var t=e.i(247865),n=e.i(899300),r=e.i(714035),i=Object.defineProperty,a=t[" useEffectEvent ".trim().toString()],l=t[" useInsertionEffect ".trim().toString()];function o(e){if("function"==typeof a)return a(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof l?l(()=>{n.current=e}):(0,r.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}i(o,"name",{value:"useEffectEvent",configurable:!0});var s=Object.defineProperty,u=(e,t)=>s(e,"name",{value:t,configurable:!0}),c=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function d({prop:e,defaultProp:r,onChange:i=u(()=>{},"onChange"),caller:a}){let[l,o,s]=m({defaultProp:r,onChange:i}),c=void 0!==e,p=c?e:l;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=c},[c,a])}return[p,t.useCallback(t=>{if(c){let n=f(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function m({defaultProp:e,onChange:n}){let[r,i]=t.useState(e),a=t.useRef(r),l=t.useRef(n);return c(()=>{l.current=n},[n]),t.useEffect(()=>{a.current!==r&&(l.current?.(r),a.current=r)},[r,a]),[r,i,l]}function f(e){return"function"==typeof e}u(d,"useControllableState"),u(m,"useUncontrolledState"),u(f,"isFunction");var p=Symbol("RADIX:SYNC_STATE");u(function(e,r,i,a){let{prop:l,defaultProp:s,onChange:u,caller:c}=r,d=void 0!==l,m=o(u);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==l);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"controlled":"uncontrolled";console.warn(`${c} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=d},[d,c])}let f=[{...i,state:s}];a&&f.push(a);let[h,g]=t.useReducer((t,n)=>{if(n.type===p)return{...t,state:n.state};let r=e(t,n);return d&&!Object.is(r.state,t.state)&&m(r.state),r},...f),x=h.state,v=t.useRef(x);t.useEffect(()=>{v.current!==x&&(v.current=x,d||m(x))},[x,v,d]);let b=t.useMemo(()=>void 0!==l?{...h,state:l}:h,[h,l]);return t.useEffect(()=>{d&&!Object.is(l,h.state)&&g({type:p,state:l})},[l,h.state,d]),[b,g]},"useControllableStateReducer"),e.s(["useControllableState",0,d],803976)},714035,e=>{"use strict";var t=e.i(247865),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},329017,e=>{"use strict";e.i(288906);var t=e.i(247865),n=e.i(725287),r=e.i(546446),i=e.i(540768),a=e.i(682142),l=e.i(782937),o=e.i(695881),s=e.i(333350),u=e.i(64412),c=e.i(950771),d=e.i(537989),m=e.i(695203),f=e.i(158662),p=e.i(358273),h=e.i(122124),g=e.i(777638),x=e.i(727365),v=e.i(896363),b=e.i(924776),y=e.i(409628),w=e.i(605781),j=e.i(289681);let S=(0,o.createLogger)("useTrackInteraction"),C=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),N=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]);e.s(["useTrackInteraction",0,()=>{let e=(0,r.useAtomValue)(d.pageIdAtom),o=(0,r.useAtomValue)(c.pageLocaleAtom),E=(0,r.useAtomValue)(m.deviceClassAtom),k=(0,r.useAtomValue)(f.experimentJoinListAtom),A=(0,n.usePathname)(),{location:P}=(0,u.useLocation)(),R=(0,b.useIsHightouchReady)(),U=(0,t.useCallback)(t=>{let n=(0,a.getCICookie)(),r=n?.["TWC-GeoIP-Country"]??(0,i.getCookie)("twc-location-country"),s=n?.["TWC-GeoIP-Region"]??(0,i.getCookie)("twc-location-region"),u=n?.["TWC-Privacy"]??(0,i.getCookie)("twc-privacy"),c=window.DprSdk?.getGdprConsentOptInsString()??"",d=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,f=c?.includes("functional-technology")??!1,b=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,w=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,S=(0,j.getConsentAuthorization)("sale-of-data"),R=(0,j.getConsentAuthorization)("sensitive-data"),U=navigator?.cookieEnabled??!1,I=(0,i.getCookie)("partner")||"",L=(0,l.getPartnerByPattern)(I)??I,M=(0,p.getMetricsSession)(),T=M?.sessionId||"",O=new Date(M?.sessionStartTime||0).toISOString(),_=new Date,D=_.getHours(),H=y.WEEK_DAYS[_.getDay()]??"",z=e&&["article","video"].includes(e)?A?.split("/").slice(0,-1).join("/")??"":(0,h.getAnonymizedPath)(A??""),B=(0,x.normalizeWlocType)(P?.type),V=P?.featureSource??null;return{moduleId:t.moduleId??"",moduleTitle:t.moduleTitle??null,modulePosition:t.modulePosition,interactionType:t.interactionType??"",interactionElement:t.interactionElement??null,lockedContent:t.lockedContent??"false",destinationPageId:t.destinationPageId??null,upsellCampaign:t.upsellCampaign??null,upsellCreative:t.upsellCreative??null,upsellPlacement:t.upsellPlacement,pageId:e??"",url:z,referrer:document.referrer,locale:o,deviceClass:E,partner:L,sessionId:T,sessionStartTime:O,siteMode:"normal",dayOfWeek:H,hourOfDay:D,regime:u??"",cookiesEnabled:U,gpcSignalOptOut:m,functionalTechnologies:f,geographicallyRelevantAds:b,interestBasedAds:w,priv:c,privProducts:d,saleOfDataAuthorization:S,sensitiveDataAuthorization:R,campaign:(0,g.getCampaign)(),experimentJoinList:k,weatherMode:"normal",physicalCountry:r??"",physicalState:s??"",wlocCity:P?.city??null,wlocCountry:P?.countryCode??null,wlocState:P?.adminDistrictCode??null,wlocDMA:P?.dmaCd??null,wlocId:P?.placeId??null,wlocFeatureId:P?.featureId??null,wlocFeatureSource:null!=V&&N.has(V)?V:void 0,wlocTags:P?.tags?.length?(0,v.parseArrayToString)(P.tags):null,wlocType:null!==B&&C.has(B)?B:void 0,samsungVersion:(0,g.getSamsungVersion)(),appVersion:"f8b2958c3bf4e34f803045a5250abc259d5b13bb".slice(0,10)}},[e,o,E,k,A,P]);return(0,t.useCallback)(e=>{if(s.default){if(!R)return void S.warn('Hightouch: Event "interaction" skipped - SDK not ready');try{(0,w.trackInteraction)(U(e)),S.info('Hightouch: Event "interaction" tracked')}catch(e){S.error('Hightouch: Event "interaction" failed',{error:e})}}},[R,U])}])},683199,e=>{"use strict";var t=e.i(247865),n=e.i(546446),r=e.i(128541),i=e.i(537989);e.s(["usePremiumSource",0,()=>{let e=(0,n.useSetAtom)(r.purchaseSourceAttributionAtom),a=(0,n.useAtomValue)(i.pageIdAtom);return(0,t.useCallback)(({sourceModule:t,sourceElement:n,sourceUpsellPlacement:r})=>{e({sourcePage:a||null,sourceModule:t,sourceElement:n,sourceUpsellPlacement:r??null})},[e,a])}])},598513,e=>{"use strict";var t=e.i(487709),n=e.i(737801),r=e.i(329017),i=e.i(247865);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",a=(0,n.useEventAttributes)(),l=(0,r.useTrackInteraction)();return(0,i.useCallback)((n,r={})=>{l(n);let i={...a,...n};if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,i),r.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,i)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[a,l])}])},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);let n=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,n],494889);let r=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,r],928083);let i=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,i],624432),e.s([],647872)},226602,e=>{"use strict";var t=e.i(902875),n=e.i(247865),r=e.i(747961);let i=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":i,...a,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Close"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),a=n.default.forwardRef((e,n)=>(0,t.jsx)(r.BaseIcon,{ref:n,icon:i,...e}));a.displayName="Close",e.s(["Close",0,a])},995113,e=>{"use strict";var t=e.i(902875),n=e.i(247865),r=e.i(747961);let i=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":i,...a,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"lightning"}):e?(0,t.jsx)("title",{id:n,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"})]})),a=n.default.forwardRef((e,n)=>(0,t.jsx)(r.BaseIcon,{ref:n,icon:i,...e}));a.displayName="LightningFilled",e.s(["LightningFilled",0,a])},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])},739971,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["subscriptionsEnabledAtom",0,t])},837879,e=>{"use strict";var t=e.i(247865),n=e.i(546446),r=e.i(725287),i=e.i(485737),a=e.i(739971),l=e.i(725296),o=e.i(394481),s=e.i(763886),u=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,n.useAtomValue)(a.subscriptionsEnabledAtom),c=(0,n.useAtomValue)(i.geoipCountry),d=(0,r.useParams)()?.locale,m=(0,n.useAtomValue)(o.privacyRegimeAtom)??l.Regime.EXEMPT,f=(0,n.useAtomValue)(s.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===c&&"en-US"===d&&l.US_REGIMES.includes(m)&&f!==u.Partner.OPPO,[e,c,d,m,f])}])},792461,e=>{"use strict";var t=e.i(247865);e.s(["useRefMemo",0,e=>{let n=(0,t.useRef)(e);return n.current=e,n}])}]);