(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),l=e.i(477716);e.i(694914);function o({heliosScriptUrl:e="https://s.w-x.co/helios/twc/1.72.0/helios.js"}){let o=function(){let[e,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{t(!0)},[]),e}();return e?o&&(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",()=>o],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",l=`https://${i??r}`;return e?new URL(e,l).toString():l},"getPublicURL",0,e=>{let i,r=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),l=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-main.vercel.weather.com",o=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://${l}`;break;case"development":i=n?`http://${o}`:`https://${o}`;break;default:i=`https://${o}`}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 l=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:l,...o},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":l,...o,children:[r?(0,t.jsx)("desc",{id:l,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"})]})]})),o=i.default.forwardRef((e,i)=>(0,t.jsx)(r.BaseIcon,{ref:i,icon:l,...e}));o.displayName="View",e.s(["View",0,o])},271818,e=>{"use strict";var t=e.i(477716);e.i(481938);var i=e.i(762073),r=e.i(297647),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,l)=>{let o=(0,i.createSlot)(`Primitive.${l}`),n=t.forwardRef((e,t)=>{let{asChild:i,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(i?o:l,{...n,ref:t})});return n.displayName=`Primitive.${l}`,{...e,[l]:n}},{});e.s(["Primitive",()=>l])},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),r=e.i(695203),l=e.i(604323),o=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,o.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[r.deviceClassAtom,e.deviceClass],[l.metricsArticleDataAtom,e.metricsArticleData]]),null)])},143851,e=>{"use strict";var t=e.i(475566),i=e.i(391451),r=e.i(45846),l=e.i(310847),o=e.i(776169),n=e.i(671525),a=e.i(477716),s=e.i(947118),c=e.i(737801),d=e.i(521350);function u(){let e,u,m,h,g,p=(0,t.useSetAtom)(l.userHasLoggedInBeforeAtom),f=(0,t.useAtomValue)(l.wxuLoginRedirectPageAtom),b=(0,t.useAtomValue)(l.wxuUserAnonymousIdAtom),w=(0,i.useGetCookie)(),{syncPreferencesFromUpsx:y,updatePreferences:v}=(0,o.usePreferences)(),{navigate:x}=(0,n.default)(),{login:C}=(e=(0,s.useIsInitialized)(),u=(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:u,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])}),k=(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])),I=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}},E=async e=>{(0,d.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),p(!0),await y()||await v({}),I(),e?.userID&&(C({email:e.email,customerid:e.userID,other:b}),k("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),x(f,{mpa:!0})};return{login:async(e,t)=>{try{let i=await r.upsxClient.auth.login({email:e,password:t});return i&&await E({email:i.email,userID:i.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:E}}e.s(["useUserLogin",()=>u],143851)},874905,404893,e=>{"use strict";e.i(694914);var t=e.i(297647),i=e.i(241722),r=e.i(477716),l=e.i(475566),o=e.i(352194),n=e.i(671525),a=e.i(901351),s=e.i(310847),c=e.i(776169),d=e.i(143851);let u=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,u],404893);var m=e.i(367810);function h({onLoad:e,prompt:h=!0,isUserLoggedIn:g}){let p=(0,o.useTranslations)("GoogleLogin"),f=(0,l.useSetAtom)(u),{loginWithGoogle:b,error:w,clearError:y}=function(){let e=(0,o.useTranslations)("GoogleLogin"),[t,i]=(0,r.useState)(null),u=(0,l.useSetAtom)(s.userHasLoggedInBeforeAtom),{refresh:m}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:h}=(0,c.usePreferences)(),{authSuccess:g}=(0,d.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,l=r?.messageCode;if(!l)throw Error("No Error Message");switch(l){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}},[u,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=>{b(e)}}),f(!0)),e?.(),!g&&h&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(m.Dialog,{open:!!w,onOpenChange:e=>!e&&y(),children:(0,t.jsx)(m.BasicDialog,{showCloseButton:!1,title:w?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:w?.body||""}}),primaryAction:{label:p("cancel")}})})]})}e.s(["GoogleAuthScript",()=>h],874905)},126281,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(381477),l=e.i(889951),o=e.i(349262),n=e.i(475566),a=e.i(316078),s=e.i(747961);let c=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:l,...o},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":l,...o,children:[r?(0,t.jsx)("desc",{id:l,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"No Data"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,t.jsx)("path",{d:"M2 8c0-.368.224-.667.5-.667h3.991c.276 0 .5.299.5.667s-.224.667-.5.667H2.5c-.276 0-.5-.299-.5-.667M9.009 8c0-.368.224-.667.5-.667H13.5c.276 0 .5.299.5.667s-.224.667-.5.667H9.509c-.276 0-.5-.299-.5-.667"})})]})),d=i.default.forwardRef((e,i)=>(0,t.jsx)(s.BaseIcon,{ref:i,icon:c,...e}));d.displayName="NoData";var u=e.i(674885),m=e.i(617874);function h({node:e}){let[s,c]=(0,i.useState)(null),[h,g]=(0,i.useState)(!0),[p,f]=(0,i.useState)(null),b=(0,n.useAtomValue)(u.userUnitPreferenceAtom),w=(0,m.unitsSystemByName)(b)?.code,{data:y,error:v}=(0,r.default)(e.geocode?["currentConditions",e.geocode,w]:null,async([e,t,i])=>{try{return await (0,l.getCurrentObservations)({geocode:t,units:i,language:"en-US"})}catch(e){return console.error("Error fetching weather:",e),null}},{revalidateOnFocus:!1,dedupingInterval:3e5});(0,i.useEffect)(()=>{y?(c(Math.round(y.temperature)),g(!1)):v&&(f(v),g(!1))},[y,v]);let x=e.placeId?`/weather/today/l/${e.placeId}`:"#";return(0,t.jsxs)("a",{href:x,className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"border-b-2 border-dotted border-black",children:e.locationName}),h?(0,t.jsx)("span",{className:"text-gray-400",children:"..."}):p?(0,t.jsx)("span",{className:"text-gray-400",children:"!"}):(0,t.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2",children:[y?.iconCode!==void 0&&(0,t.jsx)("span",{className:"flex items-center",children:"na"!==(o.ICON_CODE_MAP[y.iconCode]||"na")?(0,t.jsx)(a.WxIcon,{iconCode:y.iconCode,className:"lightBG","aria-label":o.ICON_CODE_MAP[y.iconCode]||`Weather condition ${y.iconCode}`,iconTheme:"lightBG",size:"sm"}):(0,t.jsx)(d,{className:"lightBG","aria-label":"Weather icon not available",size:"sm"})}),(0,t.jsxs)("span",{className:"font-medium",children:[s,"°"]})]})]})}e.s(["WeatherLocationTickerClientComponent",()=>h],126281)},875459,e=>{"use strict";var t=e.i(297647),i=e.i(528600),r=e.i(421956);let l=({image:e,title:l,loggedInContent:o,loggedOutContent:n})=>{let{user:a}=(0,i.useUser)(),s=a.isUserLoggedIn,c={blockType:"promoDriver",image:e,title:l};return s?(0,t.jsx)(r.PromoDriverBlock,{...c,subtitle:o.subtitle,bodyText:o.bodyText,ctaButton:o.ctaText||o.ctaUrl?{text:o.ctaText||"Learn More",url:o.ctaUrl||"/",openInNewTab:!1}:void 0}):(0,t.jsx)(r.PromoDriverBlock,{...c,subtitle:n.subtitle,bodyText:n.bodyText,ctaButton:n.ctaText||n.ctaUrl?{text:n.ctaText||"Learn More",url:n.ctaUrl||"/",openInNewTab:!1}:void 0})};e.s(["AuthAwarePromoDriver",0,l,"default",0,l])},123590,e=>{"use strict";var t=e.i(947118),i=e.i(737801),r=e.i(630986),l=e.i(477716);e.s(["useTrackContentLinkClick",0,()=>{let e="content-link-click",o=(0,t.useIsInitialized)(),n=(0,i.useEventAttributes)(),a=(0,r.useCMSAttributes)();return(0,l.useCallback)(t=>{let i={createdDate:a?.createdDate||"",contentId:a?.contentId||"",publishDate:a?.publishDate||"",author:a?.author||"",collection:a?.collection||"",entitlements:a?.entitlements||"",provider:a?.provider||"",linkType:t.linkType,linkURL:t.linkURL,linkText:t.linkText||"",moduleId:t.moduleId||"",...n,physicalCountry:n.physicalCountry||"",physicalState:n.physicalState||"",wlocCity:n.wlocCity||"",wlocCountry:n.wlocCountry||"",wlocState:n.wlocState||"",regime:n.regime||""};if(!o)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)}},[a?.createdDate,a?.contentId,a?.publishDate,a?.author,a?.collection,a?.entitlements,a?.provider,n,o])}])},888493,e=>{"use strict";var t=e.i(297647),i=e.i(123590),r=e.i(477716);e.s(["ArticlePartnerDisclaimerWrapper",0,({children:e})=>{let l=(0,r.useRef)(null),o=(0,i.useTrackContentLinkClick)();return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;e.querySelectorAll("a").forEach(e=>{e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")});let t=e=>{let t=e.target.closest("a");if(!t)return;let i=null!==t.querySelector("img"),r=t.getAttribute("href")||"",l=t.textContent||"",n=r.startsWith("http")||r.startsWith("//");o({linkType:i?"partner-logo":n?"external":"internal",linkURL:r,linkText:l,moduleId:"partner-byline"}),console.debug("Partner byline link clicked:",{linkType:i?"partner-logo":n?"external":"internal",linkURL:r,linkText:l,moduleId:"partner-byline"})};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[o]),(0,t.jsx)("div",{ref:l,"data-partner-byline":!0,children:e})}])},478086,e=>{"use strict";var t=e.i(297647),i=e.i(123590),r=e.i(477716);e.s(["ArticleBodyWrapper",0,({children:e})=>{let l=(0,r.useRef)(null),o=(0,i.useTrackContentLinkClick)();return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;let t=e=>{let t=e.target.closest("a");if(!t)return;let i=t.getAttribute("href")||"",r=t.textContent||"",l=i.startsWith("/"),n=i.includes("weather.com"),a=!l&&!n&&(i.startsWith("http")||i.startsWith("//"));o({linkType:a?"external":"internal",linkURL:i,linkText:r,moduleId:"article-body"}),console.debug("Article body link clicked:",{linkType:a?"external":"internal",linkURL:i,linkText:r,moduleId:"article-body"})};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[o]),(0,t.jsx)("div",{ref:l,children:e})}])},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);