(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,406752,e=>{"use strict";var t=e.i(477716),i=e.i(295553),r=e.i(991511),o=e.i(475566),l=e.i(710402),n=e.i(310847);e.s(["LocationBoundary",0,({locationPoint:e})=>{let a=(0,o.useAtomValue)(n.wxuUserRecentAddressesAtom),[,s]=(0,o.useAtom)(i.pageLocationDataAtom),c=(0,t.useMemo)(()=>(0,l.fromLocationPoint)(e,a),[e,a]);(0,r.useRehydrateAtoms)([[i.pageLocationDataAtom,c]]);let u=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=e.location.placeId;u.current!==t&&(s((0,l.fromLocationPoint)(e,a)),u.current=t)},[e,a,s]),null}])},668319,e=>{"use strict";var t=e.i(297647),i=e.i(241722);function r({heliosConfig:e}){let r=JSON.stringify(e);return(0,t.jsx)(i.default,{id:"helios-config",children:`window.__HeliosConfig = ${r}; window.__HeliosConfig.generalConfig.breakpoint.active = window.screen.width > 1024 ? 'lg' : window.screen.width >= 768 ? 'md' : 'sm'; window.__HeliosQ = window.__HeliosQ || []; window.__HeliosQ.push(function () { window.__Helios.emit('USER_PROFILE_READY'); });`})}e.s(["default",()=>r])},860557,e=>{"use strict";var t=e.i(903823),i=e.i(297647),r=e.i(241722),o=e.i(477716);e.i(694914);function l({heliosScriptUrl:e="https://s.w-x.co/helios/twc/1.75.0/helios.js"}){let l=function(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t(!0)},[]),e}();return e?l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.default,{src:e}),...function(){let e=[];try{let i=t.Buffer.from("IShmdW5jdGlvbihyLF9uYW1lKXtyW19uYW1lXT1yW19uYW1lXXx8ZnVuY3Rpb24gdCgpeyh0LnE9dC5xfHxbXSkucHVzaChhcmd1bWVudHMpfSxyW19uYW1lXS52PXJbX25hbWVdLnZ8fDIscltfbmFtZV0ucz0iMyI7IShmdW5jdGlvbihyLHQsSCx6KXtmdW5jdGlvbiB4KEgseil7dHJ5e3g9ci5sb2NhbFN0b3JhZ2UsKEg9SlNPTi5wYXJzZSh4W2RlY29kZVVSSShkZWNvZGVVUkkoJyU2NyUyNTY1JTI1JTM3JTM0JTQ5JTI1NzQlNjUlMjU2ZCcpKV0oIl9hUVMwMk5UUXpSVVZET0VNNVJVRkJRall4TmtaRlJUbEZPVFl0TVEiKSkubGdrfHxbXSkmJih6PXJbdF0ucHViYWRzKCkpJiZILmZvckVhY2goKGZ1bmN0aW9uKHIpe3ImJnJbMF0mJnouc2V0VGFyZ2V0aW5nKHJbMF0sclsxXXx8IiIpfSkpfWNhdGNoKFEpe312YXIgeH10cnl7KHo9clt0XT1yW3RdfHx7fSkuY21kPXouY21kfHxbXSx0eXBlb2Ygei5wdWJhZHM9PT1IP3goKTp0eXBlb2Ygei5jbWQudW5zaGlmdD09PUg/ei5jbWQudW5zaGlmdCh4KTp6LmNtZC5wdXNoKHgpfWNhdGNoKFEpe319KSh3aW5kb3csJyUyNSUzNiUzNyUyNTZmJTI1NmYlMjU2JTM3bCUyNTY1dCUyNSUzNiUzMWcnLCJmdW5jdGlvbiIpOzt9KSh3aW5kb3csZGVjb2RlVVJJKGRlY29kZVVSSSgnJTYxZCU2ZCUyNSUzNiUzOSUyNSUzNyUzMmElMjUlMzZjJykpKTshKGZ1bmN0aW9uKHIsdCxILHope0g9ci5jcmVhdGVFbGVtZW50KHQpLHI9ci5nZXRFbGVtZW50c0J5VGFnTmFtZSh0KVswXSxILmFzeW5jPTEsSC5zcmM9Imh0dHBzOi8vbHV4Zm9ybXVsYS5jb20vY2h1bmtzL2JhNTEyM2YxY2MwZjIwYWYvYzI0MzJiYTcubWFpbi5qcyIsKHo9MCkmJnooSCksci5wYXJlbnROb2RlLmluc2VydEJlZm9yZShILHIpfSkoZG9jdW1lbnQsInNjcmlwdCIpOw==","base64").toString("utf-8");e.push({code:i})}catch(e){console.error(e)}return e.map((e,t)=>e.src?(0,i.jsx)(r.default,{src:e.src,async:!0},`helios-script-${t}`):(0,i.jsx)(r.default,{id:`helios-script-${t}`,children:e.code},`helios-script-${t}`))}()]}):null}e.s(["default",()=>l],860557)},192066,e=>{e.v("/_next/static/media/SlideshowIcon.dec5e13d.png")},15819,e=>{e.v("/_next/static/media/morning-brief-logo.c6e2f5db.svg")},217817,e=>{e.v("/_next/static/media/ellipse.906fdd19.png")},438335,e=>{"use strict";var t=e.i(694914);e.s(["getPublicProductionURL",0,e=>{let i=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",r=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"wxnext.weather.com",o=`https://${i??r}`;return e?new URL(e,o).toString():o},"getPublicURL",0,e=>{let i,r=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),o=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-main.vercel.weather.com",l=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",n="true"===t.default.env.NEXT_DEV_SERVER_INSECURE||"true"===t.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(r){case"preview":i=`https://${o}`;break;case"development":i=n?`http://${l}`:`https://${l}`;break;default:i=`https://${l}`}return e?new URL(e,i).toString():i}])},245308,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(747961);let o=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:o,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":o,...l,children:[r?(0,t.jsx)("desc",{id:o,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"View"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,t.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})),l=i.default.forwardRef((e,i)=>(0,t.jsx)(r.BaseIcon,{ref:i,icon:o,...e}));l.displayName="View",e.s(["View",0,l])},271818,e=>{"use strict";var t=e.i(477716);e.i(481938);var i=e.i(762073),r=e.i(297647),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let l=(0,i.createSlot)(`Primitive.${o}`),n=t.forwardRef((e,t)=>{let{asChild:i,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(i?l:o,{...n,ref:t})});return n.displayName=`Primitive.${o}`,{...e,[o]:n}},{});e.s(["Primitive",()=>o])},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),r=e.i(695203),o=e.i(604323),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[r.deviceClassAtom,e.deviceClass],[o.metricsArticleDataAtom,e.metricsArticleData]]),null)])},143851,e=>{"use strict";var t=e.i(475566),i=e.i(391451),r=e.i(45846),o=e.i(310847),l=e.i(776169),n=e.i(671525),a=e.i(477716),s=e.i(947118),c=e.i(737801),u=e.i(521350);function d(){let e,d,m,h,g,f=(0,t.useSetAtom)(o.userHasLoggedInBeforeAtom),b=(0,t.useAtomValue)(o.wxuLoginRedirectPageAtom),p=(0,t.useAtomValue)(o.wxuUserAnonymousIdAtom),w=(0,i.useGetCookie)(),{syncPreferencesFromUpsx:v,updatePreferences:y}=(0,l.usePreferences)(),{navigate:x}=(0,n.default)(),{login:E}=(e=(0,s.useIsInitialized)(),d=(0,a.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let i={userIdentities:{customerid:t.customerid,email:t.email,other:t.other}};return window.mParticle?.Identity?.identify?.(i)},[e]),{identify:d,login:(0,a.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let i={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:t.other,other2:t.other2,other3:t.other3,other4:t.other4,twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(i)},[e]),logout:(0,a.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),S=(m=(0,s.useIsInitialized)(),h=(0,c.useEventAttributes)(),g=(0,a.useCallback)((e,t={})=>{let i={...h,...t};if(!m)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(e,window.mParticle.EventType.Other,i),console.debug(`MParticle: Event "${e}" tracked`,i)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}return g},[h,m])),N=async()=>{try{if(w("premium"))return null;return await r.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},I=async e=>{(0,u.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),f(!0),await v()||await y({}),N(),e?.userID&&(E({email:e.email,customerid:e.userID,other:p}),S("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),x(b,{mpa:!0})};return{login:async(e,t)=>{try{let i=await r.upsxClient.auth.login({email:e,password:t});return i&&await I({email:i.email,userID:i.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:I}}e.s(["useUserLogin",()=>d],143851)},874905,404893,e=>{"use strict";e.i(694914);var t=e.i(297647),i=e.i(241722),r=e.i(477716),o=e.i(475566),l=e.i(352194),n=e.i(671525),a=e.i(901351),s=e.i(310847),c=e.i(776169),u=e.i(143851);let d=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,d],404893);var m=e.i(367810);function h({onLoad:e,prompt:h=!0,isUserLoggedIn:g}){let f=(0,l.useTranslations)("GoogleLogin"),b=(0,o.useSetAtom)(d),{loginWithGoogle:p,error:w,clearError:v}=function(){let e=(0,l.useTranslations)("GoogleLogin"),[t,i]=(0,r.useState)(null),d=(0,o.useSetAtom)(s.userHasLoggedInBeforeAtom),{refresh:m}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:h}=(0,c.usePreferences)(),{authSuccess:g}=(0,u.useUserLogin)();return{loginWithGoogle:(0,r.useCallback)(async t=>{let{credential:r}=t;i(null);try{let e=await a.upsxClient.auth.loginWithGoogle({google_id_token:r});return await g({email:e.email,userID:e.userID,type:e?.user?.isFirstLogin?"signup":"login"}),!0}catch(t){console.error("Failed to login with Google",t);try{let r=t?.data,o=r?.messageCode;if(!o)throw Error("No Error Message");switch(o){case 1e3:case 1026:case 1033:i({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:i({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){i({header:e("somethingWentWrong")})}return!1}},[d,h,m,g]),error:t,clearError:(0,r.useCallback)(()=>{i(null)},[])}}();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{p(e)}}),b(!0)),e?.(),!g&&h&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(m.Dialog,{open:!!w,onOpenChange:e=>!e&&v(),children:(0,t.jsx)(m.BasicDialog,{showCloseButton:!1,title:w?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:w?.body||""}}),primaryAction:{label:f("cancel")}})})]})}e.s(["GoogleAuthScript",()=>h],874905)},464654,e=>{"use strict";var t=e.i(297647),i=e.i(475566),r=e.i(369159);function o({children:e}){return(0,i.useAtomValue)(r.shouldConsolidateForecastAtom)?(0,t.jsx)("div",{className:"sticky top-[calc(var(--header-height,120px))] z-100 hidden h-16 bg-white md:flex md:items-center",children:(0,t.jsx)("div",{className:"w-full px-4",children:e})}):null}e.s(["ForecastSubnavExperiment",()=>o])},890972,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(87328),o=e.i(375570),l=e.i(523084),n=e.i(47524),a=e.i(632137),s=e.i(909232);let c=(0,i.memo)(({links:e,basePath:c,className:u})=>{let[d,m]=(0,i.useState)(!1),[h,g]=(0,i.useState)(!1),f=(0,i.useRef)(null),b=(0,s.useClientMobileMedia)(),p=(0,o.usePathname)(),w=(()=>{if(p===c||p===`${c}/`)return 0;let t=e.findIndex(e=>{let t=e.slug.split("/")[0];return p.includes(`/weather/${t}/`)});return -1!==t?t:0})(),v=(0,i.useCallback)(()=>{let e=f.current;if(!e||b){m(!1),g(!1);return}let{scrollLeft:t,scrollWidth:i,clientWidth:r}=e;m(t>2),g(t{v();let e=f.current;return e&&(e.addEventListener("scroll",v),window.addEventListener("resize",v)),()=>{e&&e.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[b,e,v]);let y=e=>{let t=f.current;t&&t.scrollBy({left:"left"===e?-200:200,behavior:"smooth"})};return(0,t.jsx)("div",{className:u||"relative w-full p-4","data-testid":"subnavigation",children:(0,t.jsxs)("div",{className:(0,a.cn)("relative"),children:[d&&!b&&(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 left-0 z-[5] h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent","aria-hidden":"true"}),d&&!b&&(0,t.jsx)("button",{onClick:()=>y("left"),className:(0,a.cn)("absolute top-1/2 left-0 z-10 -translate-y-1/2","flex items-center justify-center rounded-full","bg-transparent transition-[border,height,width] duration-50 ease-out","h-9 w-9 border border-gray-200","hover:h-10 hover:w-10 hover:border-2 hover:border-black","focus-visible:h-10 focus-visible:w-10 focus-visible:border-2 focus-visible:border-black focus-visible:outline-none"),"aria-label":"Scroll left",type:"button",children:(0,t.jsx)(l.ChevronLeft,{className:"h-5 w-5 text-gray-700"})}),(0,t.jsx)("div",{ref:f,className:"scrollbar-hide flex items-center gap-2 overflow-x-auto px-1 py-1",children:e.map((e,i)=>{let o=w===i,l=`${c}/${e.slug}`;return(0,t.jsx)(r.default,{href:l,className:(0,a.cn)("rounded-full px-4 py-2 text-sm whitespace-nowrap transition-[outline-color,border-color] duration-150 ease-out","border border-gray-200 bg-transparent text-black","focus-visible:ring-1 focus-visible:ring-black focus-visible:outline-none",o?"border-transparent font-semibold outline outline-2 outline-black":"font-semibold hover:border-transparent hover:outline hover:outline-[1.5px] hover:outline-black"),"aria-current":o?"page":void 0,children:e.label},e.slug)})}),h&&!b&&(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 right-0 z-[5] h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent","aria-hidden":"true"}),h&&!b&&(0,t.jsx)("button",{onClick:()=>y("right"),className:(0,a.cn)("absolute top-1/2 right-0 z-10 -translate-y-1/2","flex items-center justify-center rounded-full","bg-transparent transition-[border,height,width] duration-50 ease-out","h-9 w-9 border border-gray-200","hover:h-10 hover:w-10 hover:border-2 hover:border-black","focus-visible:h-10 focus-visible:w-10 focus-visible:border-2 focus-visible:border-black focus-visible:outline-none"),"aria-label":"Scroll right",type:"button",children:(0,t.jsx)(n.ChevronRight,{className:"h-5 w-5 text-gray-700"})})]})})},(e,t)=>e.basePath===t.basePath&&e.links.length===t.links.length&&e.links.every((e,i)=>e.label===t.links[i]?.label&&e.slug===t.links[i]?.slug));c.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,c])},855602,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(947118),o=e.i(737801),l=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,variant:a="frontend",children:s})=>{let c,u,d,m=(0,i.useRef)(null),[h,g]=(0,i.useState)(!1),f=(0,i.useRef)(null),b=(c="module-viewed",u=(0,r.useIsInitialized)(),d=(0,o.useEventAttributes)(),(0,i.useCallback)(({moduleId:e,modulePosition:t})=>{if(!u)return void console.warn("MParticle is not initialized");let i={module_id:e,module_position:t,...d};try{window.mParticle?.logEvent?.(c,window.mParticle?.EventType?.Other,i),console.debug(`MParticle: Event "${c}" tracked`,i)}catch(e){console.error(`MParticle: Event "${c}" failed`,e)}},[d,u]));return"admin"===a?(0,t.jsx)(t.Fragment,{children:s}):((0,i.useEffect)(()=>{if(h||!l.default||!m.current)return;let t=m.current,i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?f.current||(f.current=setTimeout(()=>{b({moduleId:e,modulePosition:n}),g(!0),f.current=null},2e3)):f.current&&(clearTimeout(f.current),f.current=null)})},{threshold:1});i.observe(t);let r=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,a=window.innerWidth||document.documentElement.clientWidth;return r.top>=0&&r.left>=0&&r.bottom{b({moduleId:e,modulePosition:n}),g(!0),f.current=null},2e3)),()=>{f.current&&clearTimeout(f.current),i.disconnect()}},[h,e,n,b]),(0,t.jsx)("div",{ref:m,className:"hide-empty",children:s}))}],855602)},663137,e=>{"use strict";var t,i=e.i(297647),r=e.i(925209),o=e.i(368847),l=e.i(632137),n=((t={}).default="default",t);let a=({type:e,defaultAnimationStrings:t})=>{let r;return("default"===e&&t&&(r=()=>t.map(e=>(0,i.jsx)("span",{"data-nosnippet":!0,className:(0,l.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))),r)?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r,{})}):null};var s=e.i(472737);let c=({outsideLayoutWrapper:e})=>{let{effectiveLocation:t}=(0,s.useLocationSource)();return(0,i.jsxs)("button",{className:(0,l.cn)("mb-3 flex h-12 w-full cursor-pointer items-center rounded-lg border-none bg-gray-100 px-3 text-base font-medium text-gray-900 md:hidden",{"mx-4 mt-4 -mb-1 w-[calc(100%-32px)]":e}),type:"button",onClick:()=>{document?.querySelector?.(".twcSearchTrigger")?.click?.()},children:[(0,i.jsx)(r.Location,{className:"mr-2 w-4 flex-shrink-0"}),t?(0,i.jsx)(o.default,{lineClamp:1,className:"text-left",children:t?.displayName}):(0,i.jsx)(a,{type:n.default,defaultAnimationStrings:["Location name placeholder"]})]})};e.s(["CurrentLocationBar",0,c,"default",0,c],663137)},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);