(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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 n({heliosScriptUrl:e="https://s.w-x.co/helios/twc/1.72.0/helios.js"}){let n=function(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t(!0)},[]),e}();return e?n&&(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",()=>n],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",n=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",l="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=l?`http://${n}`:`https://${n}`;break;default:i=`https://${n}`}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,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":i,"aria-describedby":o,...n,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"})]})]})),n=i.default.forwardRef((e,i)=>(0,t.jsx)(r.BaseIcon,{ref:i,icon:o,...e}));n.displayName="View",e.s(["View",0,n])},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 n=(0,i.createSlot)(`Primitive.${o}`),l=t.forwardRef((e,t)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(i?n:o,{...l,ref:t})});return l.displayName=`Primitive.${o}`,{...e,[o]:l}},{});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),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.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),n=e.i(776169),l=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,g,h,f=(0,t.useSetAtom)(o.userHasLoggedInBeforeAtom),p=(0,t.useAtomValue)(o.wxuLoginRedirectPageAtom),w=(0,t.useAtomValue)(o.wxuUserAnonymousIdAtom),b=(0,i.useGetCookie)(),{syncPreferencesFromUpsx:y,updatePreferences:v}=(0,n.usePreferences)(),{navigate:x}=(0,l.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])}),I=(m=(0,s.useIsInitialized)(),g=(0,c.useEventAttributes)(),h=(0,a.useCallback)((e,t={})=>{let i={...g,...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 h},[g,m])),S=async()=>{try{if(b("premium"))return null;return await r.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},C=async e=>{(0,u.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),f(!0),await y()||await v({}),S(),e?.userID&&(E({email:e.email,customerid:e.userID,other:w}),I("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),x(p,{mpa:!0})};return{login:async(e,t)=>{try{let i=await r.upsxClient.auth.login({email:e,password:t});return i&&await C({email:i.email,userID:i.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:C}}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),n=e.i(352194),l=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 g({onLoad:e,prompt:g=!0,isUserLoggedIn:h}){let f=(0,n.useTranslations)("GoogleLogin"),p=(0,o.useSetAtom)(d),{loginWithGoogle:w,error:b,clearError:y}=function(){let e=(0,n.useTranslations)("GoogleLogin"),[t,i]=(0,r.useState)(null),d=(0,o.useSetAtom)(s.userHasLoggedInBeforeAtom),{refresh:m}=(0,l.usePageNavigation)(),{syncPreferencesFromUpsx:g}=(0,c.usePreferences)(),{authSuccess:h}=(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 h({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,g,m,h]),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=>{w(e)}}),p(!0)),e?.(),!h&&g&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(m.Dialog,{open:!!b,onOpenChange:e=>!e&&y(),children:(0,t.jsx)(m.BasicDialog,{showCloseButton:!1,title:b?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:b?.body||""}}),primaryAction:{label:f("cancel")}})})]})}e.s(["GoogleAuthScript",()=>g],874905)},855602,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(947118),o=e.i(737801),n=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:l,variant:a="frontend",children:s})=>{let c,u,d,m=(0,i.useRef)(null),[g,h]=(0,i.useState)(!1),f=(0,i.useRef)(null),p=(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(g||!n.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(()=>{p({moduleId:e,modulePosition:l}),h(!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{p({moduleId:e,modulePosition:l}),h(!0),f.current=null},2e3)),()=>{f.current&&clearTimeout(f.current),i.disconnect()}},[g,e,l,p]),(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),n=e.i(632137),l=((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,n.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,n.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:l.default,defaultAnimationStrings:["Location name placeholder"]})]})};e.s(["CurrentLocationBar",0,c,"default",0,c],663137)},406752,e=>{"use strict";var t=e.i(477716),i=e.i(295553),r=e.i(991511),o=e.i(475566),n=e.i(710402),l=e.i(310847);e.s(["LocationBoundary",0,({locationPoint:e})=>{let a=(0,o.useAtomValue)(l.wxuUserRecentAddressesAtom),[,s]=(0,o.useAtom)(i.pageLocationDataAtom),c=(0,t.useMemo)(()=>(0,n.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,n.fromLocationPoint)(e,a)),u.current=t)},[e,a,s]),null}])},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);