(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,145473,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(526932),s=e.i(282446),l=e.i(789422),o=e.i(901351),n=e.i(422825),m=e.i(837879),r=e.i(725296),c=e.i(394481),u=e.i(576816),h=e.i(539353),d=e.i(553329),p=e.i(695881),b=e.i(143851),g=e.i(703123),v=e.i(61284);let k=(0,p.createLogger)("useGoogleLogin");var f=e.i(404893),j=e.i(367810),P=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:w,redirectToCheckoutOnSignup:y,oneTapOnly:_=!1}){let x=(0,l.r)("GoogleLogin"),z=(0,s.F)(f.f),{loginWithGoogle:C,error:I,clearError:A}=function(e=!1){let t=(0,l.r)("GoogleLogin"),[i,p]=(0,a.useState)(null),f=(0,s.y)(g.f),{updateEmailSubscriptions:j}=(0,n.f)({skipStatus:!0}),{authSuccess:P,authRedirect:w}=(0,b.f)(),y=(0,m.f)(),_=(0,s.y)(c.f)??r.U.EXEMPT,x=y&&r.D.includes(_)&&_!==r.U.USA_CCPA,{newsletter:z,weekly:C}=f,I=x||f.onYourRadar,A=x||f.marketing,G=(0,u.f)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),E=(0,h.f)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===A}),T=(0,a.useCallback)(async t=>{let a=await o.f.auth.loginWithGoogle({google_id_token:t}),i=!!a.isFirstLogin;if(await P({email:a.email,userID:a.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:i}),!i)return w(),!0;let{error:s}=await (0,d.f)(G());return s&&k.warn("Failed to track signup-complete for Google signup",s),E(),await j({newsletter:z,weekly:C,onYourRadar:I,marketing:A}).catch(e=>{k.error("Failed to update email subscriptions",e)}),e&&y?w(v.f):w(),!0},[P,w,G,E,j,z,C,I,A,e,y]);return{loginWithGoogle:(0,a.useCallback)(async({credential:e})=>{p(null);let{data:a,error:i}=await (0,d.f)(T(e));if(a)return!0;k.error("Failed to login with Google",i);let{messageCode:s}=i?.data??{};switch(s){case 1e3:case 1026:case 1033:p({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:p({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:p({header:t("somethingWentWrong")})}return!1},[T,t]),error:i,clearError:(0,a.useCallback)(()=>p(null),[])}}(y),G=(0,P.f)(C),E=(0,a.useRef)(null);I&&(E.current=I);let T=E.current;return(0,t.jsxs)(t.Fragment,{children:[!(_&&w)&&(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=>{G.current?.(e)}}),z(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script",strategy:_?"lazyOnload":"afterInteractive"}),T&&(0,t.jsx)(j.N,{open:!!I,onOpenChange:e=>!e&&A(),children:(0,t.jsx)(j.J,{showCloseButton:!1,title:T.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:T.body||""}}),primaryAction:{label:x("cancel"),onClick:A}})})]})}],145473)},137688,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1dgd-1au-uut5.js"].map(t=>e.l(t))).then(()=>t(72990)))},576816,703123,e=>{"use strict";var t=e.i(538167),a=e.i(293163),i=e.i(947118),s=e.i(737801);e.s(["f",0,(e={})=>{let l=(0,i.f)(),o=(0,s.f)(),[n,m]=(0,t.useState)(!1),r=(0,t.useRef)(!1),c=(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,a.k)(c)&&!n&&m(!0)},[c,n]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&n&&!r.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,c),r.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${c.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[l,c,n])}],576816);let l=(0,e.i(144683).g)({});e.s(["f",0,l],703123)},711899,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0dbjs_srx7ito.js"].map(t=>e.l(t))).then(()=>t(758048)))},406752,e=>{"use strict";var t=e.i(538167),a=e.i(295553),i=e.i(991511),s=e.i(282446),l=e.i(726249),o=e.i(935807),n=e.i(919101),m=e.i(527091),r=e.i(767685),c=e.i(310847),u=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:h})=>{let d=(0,s.y)(c.d),p=(0,s.y)(c.z),[,b]=(0,s.q)(a.f),g=(0,s.F)(u.f),v=(0,t.useMemo)(()=>{let t,a;return h?(0,r.f)(h,p):(t=(0,n.f)(e.location,d),a=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,l.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,o.e)(t,[],!1,a),name:(0,o.P)(t,[],!1,a),context:(0,o.d)(t,[],!1,a),ianaTimeZone:(0,m.f)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[h,e,d,p]);(0,i.f)([[a.f,v]]);let k=(0,t.useRef)(null);return(0,t.useEffect)(()=>{b(v);let e=v.placeId;k.current!==e&&(g({placeId:v.placeId,geocode:v.geocode,featureId:v.featureId}),k.current=e)},[v,b,g]),null}],406752)},900635,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hzjbmj0sm36b.js"].map(t=>e.l(t))).then(()=>t(629004)))},204395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_cfh3q2a9_ux.js","static/immutable/chunks/11zbnxs9co_20.js"].map(t=>e.l(t))).then(()=>t(240535)))},226535,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0cbht9sgy1_ye.js"].map(t=>e.l(t))).then(()=>t(513722)))},276866,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3iw_6yp4gb9na.js"].map(t=>e.l(t))).then(()=>t(848321)))},837309,e=>{e.v(t=>Promise.all(["static/immutable/chunks/42-8634dp1flw.js"].map(t=>e.l(t))).then(()=>t(136535)))},143334,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hyn6o6gvz5t9.js"].map(t=>e.l(t))).then(()=>t(499484)))},629719,e=>{e.v(t=>Promise.all(["static/immutable/chunks/187zhvpo5j7j3.js"].map(t=>e.l(t))).then(()=>t(904504)))},557537,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2au6lyv-fe4ih.js"].map(t=>e.l(t))).then(()=>t(555575)))},739891,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2yyhhymxklvfs.js"].map(t=>e.l(t))).then(()=>t(507521)))},880074,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0jed3vfk2do11.js"].map(t=>e.l(t))).then(()=>t(95720)))},988740,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1z7jsox9xbr0f.js"].map(t=>e.l(t))).then(()=>t(4498)))},871210,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0e_xdm1m_t55y.js"].map(t=>e.l(t))).then(()=>t(682228)))},788045,e=>{e.v(t=>Promise.all(["static/immutable/chunks/20x21m2n43t8u.js"].map(t=>e.l(t))).then(()=>t(370427)))},155484,e=>{e.v(t=>Promise.all(["static/immutable/chunks/01ar2szr8advw.js"].map(t=>e.l(t))).then(()=>t(268272)))},459658,e=>{e.v(t=>Promise.all(["static/immutable/chunks/02h97q0_a7hq1.js"].map(t=>e.l(t))).then(()=>t(741904)))},105879,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0rfzc9yx3jr2z.js"].map(t=>e.l(t))).then(()=>t(538911)))},456925,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2gs_09g-f6_n5.js"].map(t=>e.l(t))).then(()=>t(831433)))},961808,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2m1ot2izdp8u3.js"].map(t=>e.l(t))).then(()=>t(331097)))},657044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3hpoxftbytfu_.js"].map(t=>e.l(t))).then(()=>t(737953)))},722501,e=>{e.v(t=>Promise.all(["static/immutable/chunks/310u75tuyk7e8.js"].map(t=>e.l(t))).then(()=>t(210223)))},815637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0oqqcly9ii8yz.js"].map(t=>e.l(t))).then(()=>t(359759)))},826256,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1rtdkwvb2ckg3.js"].map(t=>e.l(t))).then(()=>t(3603)))},99975,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p6dtrtmk2gko.js"].map(t=>e.l(t))).then(()=>t(81906)))},110539,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s5d2a1j84j7k.js"].map(t=>e.l(t))).then(()=>t(141096)))},109892,e=>{e.v(t=>Promise.all(["static/immutable/chunks/22qnd1fep5g3m.js"].map(t=>e.l(t))).then(()=>t(130980)))},587313,e=>{e.v(t=>Promise.all(["static/immutable/chunks/08-t9shuexxkb.js"].map(t=>e.l(t))).then(()=>t(698310)))},568089,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44s2f0dc_191a.js"].map(t=>e.l(t))).then(()=>t(849402)))},15859,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1baxyfyk0uw4a.js","static/immutable/chunks/3-h4hg5wwe65o.js"].map(t=>e.l(t))).then(()=>t(831033)))},151775,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2bw_cre76r-hr.js"].map(t=>e.l(t))).then(()=>t(585553)))},168876,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2kje6weuquxvu.js"].map(t=>e.l(t))).then(()=>t(69917)))},831163,e=>{e.v(t=>Promise.all(["static/immutable/chunks/18bqem20n7n97.js"].map(t=>e.l(t))).then(()=>t(53945)))},520848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0ojng79pchr14.js"].map(t=>e.l(t))).then(()=>t(721423)))},553277,e=>{e.v(t=>Promise.all(["static/immutable/chunks/25z3mbe3eowc8.js"].map(t=>e.l(t))).then(()=>t(329823)))},850863,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1nfc0ajazn6nt.js"].map(t=>e.l(t))).then(()=>t(539371)))},434989,e=>{e.v(t=>Promise.all(["static/immutable/chunks/43m7bj8q63cl6.js"].map(t=>e.l(t))).then(()=>t(7225)))},550029,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0e8v-uozy8bi5.js"].map(t=>e.l(t))).then(()=>t(906603)))},155945,e=>{e.v(t=>Promise.all(["static/immutable/chunks/27t6n6vy6k_6h.js","static/immutable/chunks/0e6gkttc7gwwl.js"].map(t=>e.l(t))).then(()=>t(822342)))},403403,e=>{e.v(t=>Promise.all(["static/immutable/chunks/04afuedyil20q.js"].map(t=>e.l(t))).then(()=>t(749045)))},937491,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44w-7e3akhzd3.js"].map(t=>e.l(t))).then(()=>t(416649)))},874846,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_jljhmarjnhq.js"].map(t=>e.l(t))).then(()=>t(70726)))},298729,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3h-_g4xjw02hf.js"].map(t=>e.l(t))).then(()=>t(775668)))},709637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2_e3bv20ia8s-.js"].map(t=>e.l(t))).then(()=>t(589563)))},296976,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1yts2r8va3dd5.js"].map(t=>e.l(t))).then(()=>t(208772)))},670279,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(526932),s=e.i(204782);e.s(["Newsroom",0,({pageTemplate:e,pageDashboard:l})=>{let o=(0,s.f)();return((0,a.useEffect)(()=>{o&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),l&&window._newsroom.push({pageDashboard:l}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[o,e,l]),o&&e)?(0,t.jsx)(i.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null}])},808110,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3xed0rr42a2uw.js"].map(t=>e.l(t))).then(()=>t(738587)))},460988,e=>{e.v(t=>Promise.all(["static/immutable/chunks/21ul0r6rwg-o8.js","static/immutable/chunks/0_linbrivktz5.js","static/immutable/chunks/27pfmgqfs7ct6.js","static/immutable/chunks/44_4h5svnh4t5.js","static/immutable/chunks/11esi59vuay38.js","static/immutable/chunks/3bsueb31c8b2z.js"].map(t=>e.l(t))).then(()=>t(636705)))},404893,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},61284,e=>{"use strict";e.s(["f",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])}]);