(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,590238,e=>{"use strict";var t=e.i(537989),r=e.i(827049),l=e.i(695203),a=e.i(604323),i=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[l.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[i.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},855602,e=>{"use strict";var t=e.i(297647),r=e.i(477716),l=e.i(1567),a=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:i,variant:n="frontend",children:o})=>{let s=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),u=(0,r.useRef)(null),m=(0,l.useTrackModuleViewed)();return"admin"===n?(0,t.jsx)(t.Fragment,{children:o}):((0,r.useEffect)(()=>{if(c||!a.default||!s.current)return;let t=s.current,r=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?u.current||(u.current=setTimeout(()=>{m({moduleId:e,modulePosition:i}),d(!0),u.current=null},2e3)):u.current&&(clearTimeout(u.current),u.current=null)})},{threshold:1});r.observe(t);let l=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return l.top>=0&&l.left>=0&&l.bottom{m({moduleId:e,modulePosition:i}),d(!0),u.current=null},2e3)),()=>{u.current&&clearTimeout(u.current),r.disconnect()}},[c,e,i,m]),(0,t.jsx)("div",{ref:s,className:"hide-empty","data-module-id":e,children:o}))}])},703123,e=>{"use strict";let t=(0,e.i(751931).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(694914);var t=e.i(297647),r=e.i(241722),l=e.i(477716),a=e.i(475566),i=e.i(352194),n=e.i(671525),o=e.i(901351),s=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),h=e.i(404893),g=e.i(367810),f=e.i(251392);function b({onLoad:e,prompt:b=!0,isUserLoggedIn:x}){let p=(0,i.useTranslations)("GoogleLogin"),v=(0,a.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:w,error:j,clearError:y}=function(){let e=(0,i.useTranslations)("GoogleLogin"),[t,r]=(0,l.useState)(null),h=(0,a.useSetAtom)(s.userHasLoggedInBeforeAtom),g=(0,a.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:f}=(0,d.useEmailPreferences)(),{refresh:b}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:x}=(0,c.usePreferences)(),{authSuccess:p,authRedirect:v}=(0,u.useUserLogin)();return{loginWithGoogle:(0,l.useCallback)(async t=>{let{credential:l}=t;r(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:l}),t=e?.isFirstLogin;await p({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:r,weekly:a,marketing:i,alwaysSubscribe:n}=g||{};return(t||n)&&await f({newsletter:r,weekly:a,marketing:i}).catch(e=>{console.error("Failed to update email subscriptions",e)}),v(),!0}catch(t){console.error("Failed to login with Google",t);try{let l=t?.data,a=l?.messageCode;if(!a)throw Error("No Error Message");switch(a){case 1e3:case 1026:case 1033:r({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:r({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){r({header:e("somethingWentWrong")})}return!1}},[h,x,b,p,v,f,g]),error:t,clearError:(0,l.useCallback)(()=>{r(null)},[])}}(),k=(0,f.useRefMemo)(w);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.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=>{k.current?.(e)}}),v(!0)),e?.(),!x&&b&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(g.Dialog,{open:!!j,onOpenChange:e=>!e&&y(),children:(0,t.jsx)(g.BasicDialog,{showCloseButton:!1,title:j?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:j?.body||""}}),primaryAction:{label:p("cancel")}})})]})}e.s(["GoogleAuthScript",()=>b],874905)},622958,e=>{"use strict";var t=e.i(297647),r=e.i(274432),l=e.i(632137),a=e.i(352194);let i=()=>{let e=(0,a.useTranslations)("Header");return(0,t.jsx)("div",{className:(0,l.cn)("relative z-105 mx-4 my-2 md:hidden"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{style:{boxShadow:"0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 0 32px 0 rgba(0, 0, 0, 0.12)"},className:(0,l.cn)("box-border flex h-12 w-full items-center rounded-3xl border-2 border-[#3A61CC00] bg-white! pl-9.5 text-gray-900 outline-0! transition-all hover:border-blue-500 focus-visible:border-blue-500 focus-visible:text-gray-400"),type:"button",onClick:()=>{document?.querySelector?.(".twcSearchTrigger")?.click?.()},children:e("searchPlaceholderText")}),(0,t.jsx)(r.Search,{className:"absolute top-1/2 left-4 flex size-4 -translate-y-1/2 transform items-center text-gray-900"})]})})};e.s(["FakeSearchBar",0,i,"default",0,i])},633647,e=>{"use strict";var t=e.i(297647),r=e.i(523084),l=e.i(47524),a=e.i(632137),i=e.i(477716);let n={left:r.ChevronLeft,right:l.ChevronRight};e.s(["default",0,({buttonClassName:e,containerClassName:r,onClick:l,tabIndex:o,direction:s,...c})=>{let[d,u]=(0,i.useState)(!1),m=n[s];return(0,t.jsx)("div",{className:(0,a.cn)("absolute",r),children:(0,t.jsx)("button",{className:(0,a.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",d&&"!h-11 !w-11"),onClick:()=>{u(!0),setTimeout(()=>u(!1),75),l?.()},tabIndex:o,...c,children:(0,t.jsx)(m,{className:(0,a.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",d&&"!h-6 !w-6")})})})}])},890972,e=>{"use strict";var t=e.i(297647),r=e.i(147732),l=e.i(477716),a=e.i(240058),i=e.i(375570),n=e.i(632137),o=e.i(475566),s=e.i(663333),c=e.i(633647),d=e.i(88483);let u=(0,l.memo)(({links:e,basePath:u,className:m,mpa:h,showAtThreshold:g})=>{let[f,b]=(0,l.useState)(!1),[x,p]=(0,l.useState)(!1),[v,w]=(0,l.useState)(!1),[j,y]=(0,l.useState)(!1),k=(0,l.useRef)(null),C=(0,l.useRef)(null),N=(0,l.useRef)(null),A=(0,l.useRef)(null),I=(0,d.useForceCollapsedNavbar)(),L=(0,l.useRef)(!1),S=(0,o.useAtomValue)(s.deviceClassAtom),E="mobile"!==S&&"tablet"!==S,B=(0,i.usePathname)(),P=(()=>{if(B===u||B===`${u}/`)return 0;if(u.includes("/weather")){let t=e.findIndex(e=>{let t=e.slug.split("/")[0];return B.includes(`/weather/${t}/`)});return -1!==t?t:0}{let t=e.findIndex(e=>B.includes(`${u}/${e.slug}`));return -1!==t?t:0}})(),_=(0,l.useCallback)(()=>{let e=k.current;if(!e||!E){b(!1),p(!1);return}let{scrollLeft:t,scrollWidth:r,clientWidth:l}=e,a=Math.abs(t),i=a>2,n=a+l(0,r.debounce)(_,150),[_]),T=(0,l.useCallback)(()=>{null===N.current&&(N.current=requestAnimationFrame(()=>{_(),N.current=null}))},[_]);(0,l.useEffect)(()=>{let e=k.current;e&&(L.current="rtl"===getComputedStyle(e).direction),_();let t=k.current;return t&&(t.addEventListener("scroll",T),window.addEventListener("resize",R)),()=>{null!==N.current&&(cancelAnimationFrame(N.current),N.current=null),t&&t.removeEventListener("scroll",T),R.cancel(),window.removeEventListener("resize",R)}},[e,_,T,R]);let F=(0,l.useCallback)(()=>{null===A.current&&(A.current=requestAnimationFrame(()=>{y(!!(g&&window.scrollY>g)),C.current&&w(C.current.getBoundingClientRect().top(F(),window.addEventListener("scroll",F,{passive:!0}),()=>{null!==A.current&&(cancelAnimationFrame(A.current),A.current=null),window.removeEventListener("scroll",F)}),[F]);let G=(0,l.useCallback)(()=>{k.current?.scrollBy({left:-200,behavior:"smooth"})},[]),M=(0,l.useCallback)(()=>{k.current?.scrollBy({left:200,behavior:"smooth"})},[]);return(0,t.jsx)("div",{ref:C,className:(0,n.cn)("pointer-events-none sticky top-0 z-104 md:px-4 md:py-2 md:text-center",{"fixed w-full max-w-screen transform-[translateY(-100%)] transition-[transform] md:max-w-[calc(100vw-73px)]":g,"xl:max-w-[calc(100vw-261px)]":g&&!I,"transform-[translateY(0)]":g&&j}),children:(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-auto overflow-hidden backdrop-blur-md max-md:bg-[linear-gradient(180deg,#FFF_0%,rgba(255,255,255,0.90)_50%,rgba(255,255,255,0.50)_100%)]","md:top-2 md:mx-auto md:w-fit md:max-w-[min(958px,100%)] md:rounded-[28px] md:bg-[#ffffffd6] md:p-1 md:transition-[box-shadow]",(v||g)&&"md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",m),"data-testid":"subnavigation",children:(0,t.jsxs)("div",{className:(0,n.cn)("relative max-md:py-2"),children:[(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -left-25 z-[5] h-16 w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":f}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,n.cn)("absolute top-[50%] -left-17.5 z-10 transition-[left]",{"left-9.5 md:left-6":f}),onClick:G,tabIndex:f?0:-1,"aria-hidden":!f,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{ref:k,className:(0,n.cn)("scrollbar-hide flex h-12 items-center gap-2 overflow-x-auto px-1 max-md:px-5"),children:e.map((e,r)=>{let l=P===r,i=e.href??("/"===e.slug?u||"/":`${u}/${e.slug}`),o=(0,n.cn)("h-11 rounded-full px-4 py-2 text-sm whitespace-nowrap transition-[outline-color,border-color,outline-width] duration-150 ease-out","border border-[#0000001a] bg-transparent text-black","inline-flex items-center focus-visible:ring-1 focus-visible:ring-black focus-visible:outline-none",l?"border-transparent font-semibold outline outline-2 outline-black":"font-semibold hover:border-transparent hover:outline hover:outline-2 hover:outline-black");return(0,t.jsx)(a.default,{href:i,mpa:h,className:o,"aria-current":l?"page":void 0,sourceModule:"subnavigation",children:e.label},e.slug)})}),(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -right-25 z-[5] h-16 w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":x}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,n.cn)("absolute top-[50%] -right-17.5 z-10 transition-[right]",{"right-9.5 md:right-6":x}),onClick:M,tabIndex:x?0:-1,"aria-hidden":!x,"aria-label":"Scroll right",direction:"right"})]})})})},(e,t)=>e.basePath===t.basePath&&e.mpa===t.mpa&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));u.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,u])},275466,e=>{"use strict";var t=e.i(297647),r=e.i(477716),l=e.i(352194),a=e.i(959194),i=e.i(890972);function n({links:e,locale:n,showAtThreshold:o}){let s=(0,l.useTranslations)("ExploreSubnav"),c=(0,a.getPartner)(),d=s("topStories"),{navLinks:u,basePath:m}=(0,r.useMemo)(()=>({navLinks:[{label:d,slug:"/"},...e.map(e=>({...e,slug:`explore/${e.slug}`}))],basePath:"en-US"===n?"":`/${n}`}),[e,n,d]);return"samsung"===c?null:(0,t.jsx)(i.SubnavigationUI,{links:u,basePath:m,showAtThreshold:o})}e.s(["ExploreSubnav",()=>n])},499746,e=>{"use strict";var t=e.i(297647),r=e.i(477716),l=e.i(475566),a=e.i(405052),i=e.i(472737),n=e.i(147732),o=e.i(381477),s=e.i(240058),c=e.i(316078),d=e.i(180193),u=e.i(368847),m=e.i(889951),h=e.i(343277),g=e.i(674885),f=e.i(617874),b=e.i(375570),x=e.i(693796),p=e.i(747961);let v=(0,r.forwardRef)(({title:e,titleId:r,desc:l,descId:a,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":a,...i,children:[l?(0,t.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Current Location"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M2 6.491a.5.5 0 0 0 .315.473l4.8 1.92 1.92 4.801A.5.5 0 0 0 9.5 14h.008a.5.5 0 0 0 .462-.329l4-11a.5.5 0 0 0-.64-.64l-11 4A.5.5 0 0 0 2 6.49"})]})),w=r.default.forwardRef((e,r)=>(0,t.jsx)(p.BaseIcon,{ref:r,icon:v,...e}));w.displayName="CurrentLocationFilled";var j=e.i(222127);let y=({identifier:e})=>{let r=(0,b.useParams)(),a=r?.locale||"en-US",i=(0,l.useAtomValue)(g.userUnitPreferenceAtom),n=(0,f.unitsSystemByName)(i)?.code,{fromLocationPoint:p}=(0,x.useLocationData)(),v=e.geocode?["/v3/location/point/geocode",e.geocode,a]:e.placeId?["/v3/location/point/placeId",e.placeId,a]:null,{data:y,isLoading:k}=(0,o.default)(v,()=>e.geocode?(0,h.getLocationPointByGeocode)(e.geocode,a):e.placeId?(0,h.getLocationPointByPlaceId)(e.placeId,a):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),C=y?p(y):void 0,{data:N,isLoading:A}=(0,o.default)(C?.geocode?["observations",C.geocode,n,a]:null,([e,t,r,l])=>(0,m.getCurrentObservations)({geocode:t,units:r,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),I=y?.location?.placeId??e.placeId,{path:L,isGeolocationLoading:S}=(0,j.default)(I||""),E=k||A||!C||S,B=N?.temperature,P=N?.wxPhraseLong,_=N?.iconCode??-1,R=e.name||C?.name||C?.city||C?.displayName,T=(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":R?`${R} 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.jsxs)(u.default,{isLoading:E,skeletonClassName:"h-5 w-28",className:"truncate leading-[1.4] font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(w,{className:"mr-2 h-4 w-4"}),R]}),(0,t.jsx)(c.WxIcon,{isLoading:E,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:_,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(d.Temperature,{value:B})})," ",(E||P)&&(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:P})]})]}),(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.jsxs)(u.default,{isLoading:E,skeletonClassName:"h-5 w-28",className:"truncate text-xl leading-normal font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(w,{className:"mr-2 h-4 w-4"}),R]}),(E||P)&&(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:P})]}),(0,t.jsx)(c.WxIcon,{isLoading:E,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:_,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(d.Temperature,{value:B})})]})]});return L?(0,t.jsx)(s.default,{href:L,className:"no-underline md:block md:w-full",children:T}):T};var k=e.i(633647),C=e.i(632137);let N=({locationIdentifiers:e,showScrollButtons:l})=>{let[a,i]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(!1),m=(0,r.useCallback)(()=>{let e=c.current;if(!e||!l){i(!1),s(!1);return}let{scrollLeft:t,offsetWidth:r,scrollWidth:a}=e,n=Math.abs(t),o=n>0,d=n+r(0,n.debounce)(m,150),[m]);(0,r.useEffect)(()=>{let e=c.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 g=(0,r.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),f=(0,r.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),b=(0,r.useCallback)(()=>{c.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[l&&(0,t.jsx)(k.default,{containerClassName:(0,C.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":a}),onClick:f,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:g,ref:c,children:e.map((e,r)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(y,{identifier:e})},e.placeId??e.geocode??r))}),l&&(0,t.jsx)(k.default,{containerClassName:(0,C.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":o}),onClick:b,tabIndex:o?0:-1,"aria-hidden":!o,"aria-label":"Scroll right",direction:"right"})]})};var A=e.i(663333),I=e.i(145651);let L=()=>{let{effectiveLocation:e}=(0,i.useLocationSource)({}),{favoriteLocations:n,recentLocations:o}=(0,I.default)(),s=(0,l.useAtomValue)(A.deviceClassAtom),c=(0,r.useMemo)(()=>{let t=[],r=new Set;for(let l of(e&&(t.push({geocode:e.geocode,name:e.name??void 0,isGeoIPLocation:!0}),r.add(e.geocode)),n)){if(t.length>=5)break;if(!l.coordinate)continue;let e=(0,a.formatGeocode)(l.coordinate);r.has(e)||(t.push({geocode:e,placeId:l.placeID??void 0,name:l.name??void 0}),r.add(e))}for(let r of o.filter(t=>!n.some(e=>e.placeID===t)&&t!==e?.placeId)){if(t.length>=5)break;t.push({placeId:r})}return t},[n,o,e]);return 0===c.length?null:(0,t.jsx)(N,{locationIdentifiers:c,showScrollButtons:"mobile"!==s&&"tablet"!==s})};e.s(["ForecastModule",0,L,"default",0,L],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/8198254d842f31ab.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);