(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),i=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:s="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:r,refresh:o,getCustomAccountInfo:n}){let[l,c]=(0,i.useState)(""),[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),p=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let v=(0,i.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&o()}).catch(()=>{c(s)})}catch{c(s)}},[r,s,o]),w=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(w.admiral=w.admiral||function(...e){(w.admiral.q=w.admiral.q||[]).push(e)},w.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(a),u(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!n;w.admiral("after","visitor.latest",function(i){var s;if("account"===e.requirement)(t?n().registered:i.status.registered)||m||(c(a),u(!0));else if("benefits"===e.requirement){let i=[];if(t)i=n().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(s=e.find(e=>e.startsWith("admbenefits=")))?void 0:s.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void g(!0);let s=!1;for(let e of t)i.includes(e)&&(s=!0);s?g(!0):(c(a),u(!0))}else c(a),u(!0)}})}}))},[]),(0,i.useEffect)(()=>{f&&(g(!1),v())},[f,v]),(0,i.useEffect)(()=>{m||!d||(h(!0),w.admiral("targeting","force",{candidateIDs:p.current}))},[m,d,p,w]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989);e.i(609717);var i=e.i(950771),s=e.i(695203),a=e.i(604323),r=e.i(797770),o=e.i(513539),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[s.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[o.layoutStateAtom,e.layoutState??null],[o.activeEventAtom,e.activeEvent??null]]),null)])},855602,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(1567),a=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:r,moduleKey:o,variant:n="frontend",children:l})=>{let c=(0,s.useTrackModuleViewed)(),d="admin"===n,u=(0,i.useCallback)(()=>{c({moduleId:e,modulePosition:r})},[c,e,r]),m=(0,i.useRef)(null),[h,f]=(0,i.useState)([]),g=(0,i.useCallback)(()=>{let e=m.current?Array.from(m.current.children):[];f(t=>t.length===e.length&&t.every((t,i)=>t===e[i])?t:e)},[]);return((0,i.useEffect)(()=>{let e=m.current;if(!e||(g(),"u"t.disconnect()},[g,d]),(0,a.useFullVisibilityOnce)(u,{targets:h,disabled:d}),d)?(0,t.jsx)(t.Fragment,{children:l}):(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,"data-module-key":o,"data-item-position":r,children:l})}])},115284,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(185312),a=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let o=(0,a.default)();return((0,i.useEffect)(()=>{o&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),r&&window._newsroom.push({pageDashboard:r}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[o,e,r]),o&&e)?(0,t.jsx)(s.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,r,"default",0,r])},576816,703123,e=>{"use strict";var t=e.i(592121),i=e.i(959194),s=e.i(947118),a=e.i(737801);e.s(["useSignupComplete",0,(e={})=>{let r=(0,s.useIsInitialized)(),o=(0,a.useEventAttributes)(),[n,l]=(0,t.useState)(!1),c=(0,t.useRef)(!1),d=(0,t.useMemo)(()=>{let t={...o,formVariant:e.formVariant,sensitiveDataAuthorization:e.sensitiveDataAuthorization,deviceTimeZone:e.deviceTimeZone,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,mParticleGranted:e.mParticleGranted??!0};return void 0!==e.url&&(t.url=e.url),void 0===t.formVariant&&delete t.formVariant,void 0===t.sensitiveDataAuthorization&&delete t.sensitiveDataAuthorization,void 0===t.deviceTimeZone&&delete t.deviceTimeZone,void 0===t.sourcePage&&delete t.sourcePage,void 0===t.sourceModule&&delete t.sourceModule,void 0===t.sourceElement&&delete t.sourceElement,void 0===t.sourcePosition&&delete t.sourcePosition,t},[o,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,i.areObjectValuesDefined)(d)&&!n&&l(!0)},[d,n]),(0,t.useCallback)(async()=>{if(r&&n&&!c.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,d),c.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${d.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[r,d,n])}],576816);let r=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,r],703123)},61284,e=>{"use strict";e.s(["PROMO_CHECKOUT_URL",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(546584);var t=e.i(699173),i=e.i(592121),s=e.i(185312),a=e.i(546446),r=e.i(683903),o=e.i(671525),n=e.i(901351),l=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(837879),m=e.i(576816),h=e.i(553329),f=e.i(695881),g=e.i(143851),p=e.i(703123),v=e.i(61284);let w=(0,f.createLogger)("useGoogleLogin");var b=e.i(404893),x=e.i(367810),j=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:f=!0,isUserLoggedIn:k,redirectToCheckoutOnSignup:y}){let I=(0,r.useTranslations)("GoogleLogin"),C=(0,a.useSetAtom)(b.googleLoginInitilizedAtom),{loginWithGoogle:A,error:N,clearError:S}=function(e=!1){let t=(0,r.useTranslations)("GoogleLogin"),[s,f]=(0,i.useState)(null),b=(0,a.useSetAtom)(l.userHasLoggedInBeforeAtom),x=(0,a.useAtomValue)(p.gsiEmailStatesAtom),{updateEmailSubscriptions:j}=(0,d.useEmailPreferences)({skipStatus:!0}),{refresh:k}=(0,o.usePageNavigation)(),{syncPreferencesFromUpsx:y}=(0,c.usePreferences)(),{authSuccess:I,authRedirect:C}=(0,g.useUserLogin)(),A=(0,u.useSubscriptionsEnabled)(),N=(0,m.useSignupComplete)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0});return{loginWithGoogle:(0,i.useCallback)(async i=>{let{credential:s}=i;f(null);try{let t=await n.upsxClient.auth.loginWithGoogle({google_id_token:s}),i=t?.isFirstLogin;if(await I({email:t.email,userID:t.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:!!i}),i){let{error:e}=await (0,h.tryCatch)(N());e&&w.warn("Failed to track signup-complete for Google signup",e)}let{newsletter:a,weekly:r,onYourRadar:o,marketing:l,alwaysSubscribe:c}=x||{};return(i||c)&&await j({newsletter:a,weekly:r,onYourRadar:o,marketing:l}).catch(e=>{console.error("Failed to update email subscriptions",e)}),i&&e&&A?C(v.PROMO_CHECKOUT_URL):C(),!0}catch(e){console.error("Failed to login with Google",e);try{let i=e?.data,s=i?.messageCode;if(!s)throw Error("No Error Message");switch(s){case 1e3:case 1026:case 1033:f({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:f({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(e){f({header:t("somethingWentWrong")})}return!1}},[b,y,k,I,C,j,x,e,A,N]),error:s,clearError:(0,i.useCallback)(()=>{f(null)},[])}}(y),E=(0,j.useRefMemo)(A),L=(0,i.useRef)(null);N&&(L.current=N);let P=L.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.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=>{E.current?.(e)}}),C(!0)),e?.(),!k&&f&&t?.prompt()},id:"google-gsi-script"}),P&&(0,t.jsx)(x.Dialog,{open:!!N,onOpenChange:e=>!e&&S(),children:(0,t.jsx)(x.BasicDialog,{showCloseButton:!1,title:P.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:P.body||""}}),primaryAction:{label:I("cancel"),onClick:S}})})]})}],874905)},935762,e=>{"use strict";var t=e.i(699173);let i=["Topic","Topic","Topic"],s={background:"#f2f2f2",borderRadius:16,color:"#252422",fontSize:13,padding:"6px 12px",whiteSpace:"nowrap"};e.s(["TopicChipsAdminBlock",0,function({heading:e,wrapChips:a}){let r=e?.trim()??"Hot Topics:";return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:8,minWidth:0},children:[r&&(0,t.jsx)("strong",{style:{fontSize:16},children:r}),i.map((e,i)=>(0,t.jsx)("span",{style:s,children:e},i))]}),(0,t.jsxs)("small",{style:{opacity:.7},children:["Chips come from the selected topic list at render time, following its published links. On the page they"," ",a?"wrap onto multiple lines":"scroll sideways on one line","."]})]})}],935762)},654075,e=>{"use strict";var t=e.i(699173);e.s(["TableAdminBlock",0,function(e){return(0,t.jsx)("div",{children:"Table"})}])},499746,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(546446),a=e.i(145651),r=e.i(249725),o=e.i(292980),n=e.i(663333);e.i(101346);var l=e.i(512134),c=e.i(147732),d=e.i(381477),u=e.i(240058),m=e.i(316078),h=e.i(180193),f=e.i(368847),g=e.i(889951),p=e.i(726249),v=e.i(674885),w=e.i(617874),b=e.i(961123),x=e.i(325974),j=e.i(525936);let k=(0,i.memo)(({identifier:e})=>{let a=(0,b.useParams)(),o=a?.locale||"en-US",n=(0,s.useAtomValue)(v.userUnitPreferenceAtom),l=(0,w.unitsSystemByName)(n)?.code,c=(0,r.useRecordFeatureId)(),k=e.placeId?void 0:e.geocode,{location:y,isLoading:I}=function(e,t){let{location:i,isLoading:s}=(0,x.useResolveCanonical)(e,t);return{location:i,isLoading:s}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,p.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:k});(0,i.useEffect)(()=>{y?.placeId&&c({placeId:y.placeId,geocode:y.geocode},y.featureId??null)},[y,c]);let{data:C,isLoading:A}=(0,d.default)(y&&["currentObservations",y.geocode,l,o],([e,t,i,s])=>(0,g.getCurrentObservations)({geocode:t,units:i,language:s}),{revalidateOnFocus:!1,dedupingInterval:6e4}),N=y?.placeId??e.placeId,{path:S,isGeolocationLoading:E}=(0,j.default)(N||"",{targetGeocode:y?.geocode??e.geocode,featureId:e.featureId??y?.featureId,canonicalID:y?.canonicalID}),L=I||A||!y||E,P=C?.temperature,_=C?.wxPhraseLong,T=C?.iconCode??-1,M=e.name||y?.name||y?.city||y?.displayName,z=(0,t.jsxs)("div",{className:"default-hover-box-shadow box-border w-fit max-w-90 cursor-pointer rounded-2xl border border-[#0000001a] transition-[box-shadow,border] hover:border-transparent","aria-label":M?`${M} weather`:"Location weather",children:[(0,t.jsxs)("div",{className:"flex h-16 flex-col justify-center px-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(f.default,{isLoading:L,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:M})}),(0,t.jsx)(m.WxIcon,{isLoading:L,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:T,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(f.default,{isLoading:L,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(h.Temperature,{value:P})})," ",(L||_)&&(0,t.jsx)(f.default,{isLoading:L,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:_})]})]}),(0,t.jsxs)("div",{className:"hidden h-20 items-center px-3 pl-4 md:flex",children:[(0,t.jsxs)("div",{className:"mr-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)(f.default,{isLoading:L,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:M})}),(L||_)&&(0,t.jsx)(f.default,{isLoading:L,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:_})]}),(0,t.jsx)(m.WxIcon,{isLoading:L,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:T,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(f.default,{isLoading:L,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(h.Temperature,{value:P})})]})]});return S?(0,t.jsx)(u.default,{href:S,className:"no-underline md:block md:w-full",children:z}):z},(e,t)=>{let i,s;return i=e.identifier,s=t.identifier,i.geocode===s.geocode&&i.placeId===s.placeId&&i.featureId===s.featureId&&i.name===s.name});var y=e.i(523084),I=e.i(47524),C=e.i(632137);let A={left:y.ChevronLeft,right:I.ChevronRight},N=({buttonClassName:e,containerClassName:s,onClick:a,tabIndex:r,direction:o,...n})=>{let[l,c]=(0,i.useState)(!1),d=A[o];return(0,t.jsx)("div",{className:(0,C.cn)("absolute",s),children:(0,t.jsx)("button",{className:(0,C.cn)("group/scroll-button absolute flex h-11 w-11 transform-[translate(-50%,-50%)] cursor-pointer items-center justify-center rounded-full bg-black opacity-80 transition-[opacity,height,width] duration-75 ease-linear hover:h-12 hover:w-12 hover:opacity-100",l&&"!h-11 !w-11"),onClick:()=>{c(!0),setTimeout(()=>c(!1),75),a?.()},tabIndex:r,...n,children:(0,t.jsx)(d,{className:(0,C.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",l&&"!h-6 !w-6")})})})},S=({locationIdentifiers:e,showScrollButtons:s})=>{let[a,r]=(0,i.useState)(!1),[o,n]=(0,i.useState)(!1),l=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(!1),m=(0,i.useCallback)(()=>{let e=l.current;if(!e||!s){r(!1),n(!1);return}let{scrollLeft:t,offsetWidth:i,scrollWidth:a}=e,o=Math.abs(t),c=o>0,d=o+i(0,c.debounce)(m,150),[m]);(0,i.useEffect)(()=>{let e=l.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",h),()=>{null!==d.current&&cancelAnimationFrame(d.current),h.cancel(),window.removeEventListener("resize",h)}},[m,h]);let f=(0,i.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),g=(0,i.useCallback)(()=>{l.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,i.useCallback)(()=>{l.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[s&&(0,t.jsx)(N,{containerClassName:(0,C.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":a}),onClick:g,tabIndex:a?0:-1,"aria-hidden":!a,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:"scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",role:"list","data-testid":"forecast-module",onScroll:f,ref:l,children:e.map((e,i)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(k,{identifier:e})},e.placeId??e.geocode??i))}),s&&(0,t.jsx)(N,{containerClassName:(0,C.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":o}),onClick:p,tabIndex:o?0:-1,"aria-hidden":!o,"aria-label":"Scroll right",direction:"right"})]})},E=()=>{let{favoriteLocations:e,recentLocations:c}=(0,a.default)(),{resolveFeatureId:d}=(0,r.useLocationFeatureIds)(),{resolveDetails:u}=(0,o.useRecentLocationDetails)(),m=(0,s.useAtomValue)(n.deviceClassAtom),h=(0,l.useIsClient)(),f=(0,i.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:i,resolveDetails:s=()=>void 0}){let a=[],r=new Set,o=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,p.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let i=t.some(e=>r.has(e));for(let e of t)r.add(e);return!i};for(let t of e){if(a.length>=5)break;if(!t.coordinate)continue;let e=(0,p.formatGeocode)(t.coordinate),r=t.placeID??void 0,n=(r?s(r)?.featureId:void 0)??i({placeId:r,geocode:e});o({featureId:n,placeId:r,geocode:e})&&a.push({geocode:e,placeId:r,name:t.name??void 0,featureId:n})}for(let e of t){if(a.length>=5)break;let t=s(e),r=t?.featureId??i({placeId:e});o({featureId:r,placeId:e})&&a.push({placeId:e,name:t?.name,featureId:r})}return a})({favoriteLocations:e,recentLocations:c,resolveFeatureId:d,resolveDetails:u}),[e,c,d,u]);return h&&0!==f.length?(0,t.jsx)(S,{locationIdentifiers:f,showScrollButtons:"mobile"!==m&&"tablet"!==m}):null};e.s(["ForecastModule",0,E,"default",0,E],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3h5d4ldkyb10q.js"].map(t=>e.l(t))).then(()=>t(758048)))},460988,e=>{e.v(t=>Promise.all(["static/chunks/2bqbjxorsplul.js","static/chunks/25v6-g2g4732g.js","static/chunks/0oz6wpni3qqor.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/40-ucou5e-s2-.js","static/chunks/06xt5pmddjmc1.js","static/chunks/12ss66w2jz5v6.js","static/chunks/1g9rt823dw_nm.js","static/chunks/3ez2p7_irinam.js","static/chunks/346zwbsmbxc-r.js","static/chunks/33g99s3__c2lb.js"].map(t=>e.l(t))).then(()=>t(636705)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/2pz2-5xjnibsl.js"].map(t=>e.l(t))).then(()=>t(72990)))},467814,e=>{e.v(t=>Promise.all(["static/chunks/2erl34w6o_is1.css","static/chunks/0xv2he4yq3odp.js","static/chunks/0blq8ymacdr_q.js","static/chunks/0oz6wpni3qqor.js","static/chunks/166u4dtn19uxp.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/3ez2p7_irinam.js","static/chunks/06xt5pmddjmc1.js","static/chunks/2xpk6gjlitq54.js","static/chunks/1g9rt823dw_nm.js","static/chunks/346zwbsmbxc-r.js","static/chunks/12ss66w2jz5v6.js","static/chunks/40-ucou5e-s2-.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);