(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,695203,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},158662,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["experimentJoinListAtom",0,t])},609717,e=>{"use strict";e.i(950771),e.s([])},605781,e=>{"use strict";let t;function a(){if(void 0===t)throw Error("Call setHtEvents(analytics) before emitting events.");return t}function r(e,t,a){if(0===t.length)return e;let r={...e},n=r;for(let e=0;e{"use strict";var t=e.i(546446),a=e.i(981030);let r=(0,a.atom)(!1);e.s(["isHtEventsReadyAtom",0,r],128713);let n=(0,a.atom)(!1);e.s(["isTraitsPluginRegisteredAtom",0,n],423356);let o=(0,a.atom)(!1);e.s(["isWebFeedPluginRegisteredAtom",0,o],851736);let i=(0,a.atom)(!1);e.s(["isFullMetricsConsentPluginRegisteredAtom",0,i],650556);let s=(0,a.atom)(null),c=(0,a.atom)(!1);e.s(["areTraitsReadyAtom",0,c,"traitsAtom",0,s],45587);let l=(0,e.i(284007).atomWithStorage)("wx-ht-identified",!1,void 0,{getOnInit:!0});e.s(["isIdentifiedAtom",0,l],576688),e.s(["useIsHightouchReady",0,()=>{let e=(0,t.useAtomValue)(r),a=(0,t.useAtomValue)(n),s=(0,t.useAtomValue)(o),u=(0,t.useAtomValue)(i),p=(0,t.useAtomValue)(c),d=(0,t.useAtomValue)(l);return e&&a&&s&&u&&p&&d}],924776)},122124,e=>{"use strict";var t=e.i(388706);let a=Object.fromEntries(t.PAGE_TYPE_CONFIG.map(e=>[e.suffix,e.urlType])),r=RegExp(`^(?/[a-z]{2}-[A-Z]{2})?/.+/(?:city|locality|neighborhood|postcode|poi|ski|airport)/[^/]+/(?${t.SUFFIX_ALTERNATION})(?:/day-[1-9][0-9]*)?$`);e.s(["getAnonymizedPath",0,function(e){var t,n;let o,i,s,c,l,u=(o=e,i=e?.indexOf?.("?"),s=e?.indexOf?.("#"),i>-1?o=o.substring(0,i):s>-1&&(o=o.substring(0,s)),o);if(t=u,c=r.exec(t)?.groups,n=u=(l=c?.suffix?a[c.suffix]:void 0)?`${c?.locale??""}/${l}/l`:t,"/index.html"===(u=n?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===u||""===u)u="/";else{let e=u?.split("/")||[],t=e.length-1,a=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(a.match(/[A-Z]/)||a.match(/[0-9]/)||a.match(/[@#$%&!*:]/)||""===a)&&e.pop(),u=e.join("/")}return u},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}])},777638,e=>{"use strict";var t=e.i(333350),a=e.i(540768);let r=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace(/\+/g,"%2B")).entries()):{};e.s(["getCampaign",0,()=>{let e=r(),t=null,n=!0,o=[];return e.cm_ven&&o.push(e.cm_ven),e.cm_date&&o.push(e.cm_date),e.cm_cat&&o.push(e.cm_cat),e.cm_pla&&o.push(e.cm_pla),e.cm_ite&&o.push(e.cm_ite),o.length>0?t=o.join(":"):(t=(0,a.getCookie)("campaign-values")||null,n=!1),n&&t&&(0,a.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},"getLinkReferral",0,()=>r()?.traffic_source||null,"getSamsungVersion",0,()=>{let e=r()?.samsung_ver;return e?((0,a.setCookie)("samsung-version",e,{domain:".weather.com",path:"/",maxAge:7200}),e):(0,a.getCookie)("samsung-version")||null},"getTpcc",0,()=>{let e=r()?.tpcc||(0,a.getCookie)("tpcc")||null;return e&&(0,a.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"getUtmParams",0,()=>{let e=r(),t=e?.utm_source||e?.traffic_source||null,a=e?.utm_medium||null,n=e?.utm_campaign||null;return{utmSource:t,utmMedium:a,utmCampaign:n,utmContent:e?.utm_content||null,utmTerm:e?.utm_term||null}}])},409628,e=>{"use strict";e.s(["WEEK_DAYS",0,["SUN","MON","TUE","WED","THU","FRI","SAT"]])},737801,540223,867059,673915,181848,727365,e=>{"use strict";var t=e.i(546446),a=e.i(725287),r=e.i(981030);let n=(0,r.atom)(null);e.s(["pageViewAtom",0,n],540223);let o=()=>{let e=(0,a.usePathname)(),r=(0,t.useAtomValue)(n);return r&&r.pathname===e?r.count:void 0};e.s(["usePageViewCount",0,o],867059);var i=e.i(358273),s=e.i(521350),c=e.i(293163),l=e.i(537989),u=e.i(247865);e.i(609717);var p=e.i(950771),d=e.i(695203),m=e.i(158662);let g=(0,r.atom)("");e.s(["fromStringAtom",0,g],673915);var f=e.i(333350);let h=["campaign","geoDma","pageQuery","referrer","wlocCity","wlocCountry","wlocDMA","wlocState"];function y(){return!!f.default&&(window.DprSdk?.getFeatureFlags?.()?.mParticleFullMetrics??!1)}let v=(e,t)=>{let a="US"===t?h:[...h,"geoRegion"],r={...e};return a.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e)&&(r[e]="privacy_opt_out")}),r};e.s(["applyPrivacyOptOut",0,v,"getAllowFullMetrics",0,y],181848);var k=e.i(540768),w=e.i(682142),S=e.i(64412);let x={postcode:"postal",city:"city",locality:"locality",neighborhood:"neighborhood",airport:"airport",poi:"poi",ski:"ski"};function T(e){return e?x[e]??null:null}e.s(["normalizeWlocType",0,T],727365);var A=e.i(896363);e.s(["useEventAttributes",0,()=>{let e=(0,c.getCampaign)(),r=(0,c.getTpcc)(),n=(0,c.getPartner)(),h=(0,s.areCookiesEnabled)(),x=(0,w.getCICookie)(),_=x?.["TWC-GeoIP-Country"]??(0,k.getCookie)("twc-location-country"),C=x?.["TWC-GeoIP-Region"]??(0,k.getCookie)("twc-location-region"),E=(0,i.getMetricsSession)(),b=E?.sessionId||"",V=E?.sessionStartTime||0,P=(0,t.useAtomValue)(m.experimentJoinListAtom),I=(0,t.useAtomValue)(g),O=(0,t.useAtomValue)(l.pageIdAtom)||"",L=(0,t.useAtomValue)(p.pageLocaleAtom),N=(0,t.useAtomValue)(d.deviceClassAtom),D=(0,a.usePathname)(),R=o(),U=["article","video"].includes(O)?(0,c.stripLastPartOfSlug)(D):(0,c.getAnonymizedPath)(D),M=(0,c.getLinkReferral)(),{utmSource:j,utmMedium:F,utmCampaign:K}=(0,c.getUtmParams)(),G="u">typeof document?document.referrer:null,{location:$}=(0,S.useLocation)(),B=$?.city??null,H=$?.countryCode??null,W=$?.adminDistrictCode??null,z=$?.dmaCd??null,Y=$?.placeId??null,q=$?.featureId??null,Q=T($?.type),Z=$?.featureSource??null,J=$?.tags?.length?(0,A.parseArrayToString)($.tags):null,X=new Date,ee=X.getHours(),et=X.getDay(),ea=c.WEEK_DAYS[et]||null,er=x?.["TWC-Privacy"]??(0,k.getCookie)("twc-privacy"),en=f.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",eo=f.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",ei=!!f.default&&(window.navigator?.globalPrivacyControl??!1),es=eo?.includes("functional-technology")??!1,ec=eo?.includes("geographically-relevant-advertising")??!1,el=y();return(0,u.useMemo)(()=>{let t={campaign:e,tpcc:r,cookiesEnabled:h,physicalCountry:_??"",physicalState:C??"",pageId:O,partner:n,locale:L,deviceClass:N,url:U,linkReferral:M,referrer:G,pageCount:R,sessionId:b,sessionStartTime:V,schemaVersion:"nextgen",hourOfDay:ee,dayOfWeek:ea,wlocCity:B,wlocCountry:H,wlocState:W,wlocDMA:z,wlocId:Y,wlocFeatureId:q,wlocType:Q,wlocFeatureSource:Z,wlocTags:J,privProducts:en,priv:eo,gpcSignalOptOut:ei,functionalTechnologies:es,geographicallyRelevantAds:ec,regime:er??"",appVersion:"b1f2a8b9d69b0e3e05fe6d294ee6a35cce1a3921".slice(0,10),weatherMode:"normal",mParticleGranted:el,...null!=P&&{experimentJoinList:P},fromString:I??"",utmSource:j,utmMedium:F,utmCampaign:K};return el?t:v(t,t.physicalCountry)},[e,r,h,_,C,O,n,L,U,M,G,R,b,V,ee,ea,B,H,W,z,Y,q,Q,Z,J,eo,en,ei,es,ec,er,P,I,j,F,K,el])}],737801)},947118,e=>{"use strict";var t=e.i(247865);let a=e=>(window.mParticle?.ready?.(e),()=>{}),r=()=>!!window.mParticle?.isInitialized?.(),n=()=>!1;e.s(["useIsInitialized",0,()=>(0,t.useSyncExternalStore)(a,r,n)])},293163,896363,283821,e=>{"use strict";var t=e.i(333350),a=e.i(782937),r=e.i(132084),n=e.i(682142),o=e.i(540768);let i=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((a,r)=>{t+=`'${a}'${r!==e.length-1?",":""}`}),t+="]"};e.s(["parseArrayToString",0,i],896363);let s=(0,e.i(695881).createLogger)("getTimezoneOffsetInHours");e.s(["getTimezoneOffsetInHours",0,function(e,t=new Date){if(!e)throw Error("Invalid timeZone provided.");try{let a=t.getTime(),r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(t).reduce((e,t)=>{if("literal"!==t.type){let a=parseInt(t.value,10);"hour"===t.type&&24===a&&(a=0),e[t.type]=a}return e},{});return(Date.UTC(r.year??0,(r.month??1)-1,r.day??1,r.hour??0,r.minute??0,r.second??0)-a)/36e5}catch(e){return e instanceof Error&&s.error(e.message),0}}],283821);let c=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace(/\+/g,"%2B")).entries()):{};(0,n.getCICookie)()?.["TWC-GeoIP-DMA"],e.s(["WEEK_DAYS",0,["SUN","MON","TUE","WED","THU","FRI","SAT"],"areObjectValuesDefined",0,e=>Object.keys(e).every(t=>void 0!==e[t]),"getAnonymizedPath",0,function(e){var t;let a,r,n,o=(a=e,r=e?.indexOf?.("?"),n=e?.indexOf?.("#"),r>-1?a=a.substring(0,r):n>-1&&(a=a.substring(0,n)),a);if(t=o,"/index.html"===(o=t?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===o||""===o)o="/";else{let e=o?.split("/")||[],t=e.length-1,a=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(a.match(/[A-Z]/)||a.match(/[0-9]/)||a.match(/[@#$%&!*:]/)||""===a)&&e.pop(),o=e.join("/")}return o},"getCampaign",0,()=>{let e=c(),t=null,a=!0,r=[];return e.cm_ven&&r.push(e.cm_ven),e.cm_date&&r.push(e.cm_date),e.cm_cat&&r.push(e.cm_cat),e.cm_pla&&r.push(e.cm_pla),e.cm_ite&&r.push(e.cm_ite),r.length>0?t=r.join(":"):(t=(0,o.getCookie)("campaign-values")||null,a=!1),a&&t&&(0,o.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},"getLinkReferral",0,()=>c()?.traffic_source||null,"getPartner",0,()=>{let e=(0,o.getCookie)("partner")||"";return(0,a.getPartnerByPattern)(e)??e},"getSamsungVietnamPartner",0,()=>{let e=(0,o.getCookie)("partner")||"";return(0,a.isSamsungVietnamPartner)(e)?r.SAMSUNG_VIETNAM_PARTNER:""},"getTpcc",0,()=>{let e=c()?.tpcc||(0,o.getCookie)("tpcc")||null;return e&&(0,o.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"getUtmParams",0,()=>{let e=c(),t=e?.utm_source||e?.traffic_source||null;return{utmSource:t,utmMedium:e?.utm_medium||null,utmCampaign:e?.utm_campaign||null}},"jwtDecoder",0,function(e){if(!e)return{};let t=e.split("."),a=(Array.isArray(t)&&t.length>=2&&t[1]||"").replace("-","+").replace("_","/");try{return JSON.parse(window.atob(a))||{}}catch{return{}}},"mapIabTagsToIabContent",0,e=>{let t=[];return e?.v1&&t.push(e.v1),e?.v2&&t.push(e.v2),e?.v3&&t.push(e.v3),i(t)},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}],293163)},358273,e=>{"use strict";var t=e.i(540768),a=e.i(521350),r=e.i(990033);let n="new-metrics-session",o="wx-ht-new-metrics-session",i="wxu-metrics-session",s="metric-session-last-active-time",c=()=>{let e=(0,t.getCookie)(i);if(!e)return null;let[a="",r="",n=""]=e.split(":"),o=parseInt(r,10);return{sessionId:a,sessionStartTime:o,pageCount:parseInt(n,10)}},l=e=>{let a=new Date().getTime(),n=e&&!m();g(a);let o=n?e:{};n||(p=null);let s=o.sessionId||(0,r.v4)(),c=o.sessionStartTime||a,l=o.pageCount||0,u=`${s}:${c}:${l}`;(0,t.setCookie)(i,decodeURIComponent(u),{domain:".weather.com",path:"/",maxAge:1800,secure:!0})},u="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random()}`,p=null,d=()=>{(0,a.isLocalStorageAvailable)()&&(localStorage.setItem(n,"true"),localStorage.setItem(o,"true"))},m=(e=30)=>{try{let t=new Date().getTime(),a=f(),r=new Date(a).getTime(),n=new Date(t).getTime();if(Number.isNaN(r)||Number.isNaN(n))return console.error("Invalid timestamp"),!1;return Math.abs(r-n)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},g=e=>{(0,a.isLocalStorageAvailable)()&&localStorage.setItem(s,e.toString())},f=()=>{if(!(0,a.isLocalStorageAvailable)())return"";let e=localStorage.getItem(s);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,m,"deleteIsNewHightouchSession",0,()=>{(0,a.isLocalStorageAvailable)()&&localStorage.removeItem(o)},"deleteIsNewMestricsSession",0,()=>{(0,a.isLocalStorageAvailable)()&&localStorage.removeItem(n)},"getMetricsSession",0,c,"incrementPageViewCount",0,e=>{let t=`${u}:${e}`;if(p!==t){let e;p=t,(e=c())&&l({...e,pageCount:e?.pageCount+1})}},"isNewHightouchSession",0,()=>{if((0,a.isLocalStorageAvailable)())return localStorage.getItem(o)},"isNewMetricsSession",0,()=>{if((0,a.isLocalStorageAvailable)())return localStorage.getItem(n)},"regenerateMetricsSession",0,()=>{d(),l(null)},"setIsNewMestricsSession",0,d,"setMetricsSession",0,l],358273)},521350,e=>{"use strict";var t=e.i(333350);e.s(["areCookiesEnabled",0,function(){if(t.default){document.cookie="cookietest=1; max-age=1";let e=document?.cookie?.indexOf?.("cookietest=")!==-1;return document.cookie="cookietest=1; max-age=0",e}return!1},"isLocalStorageAvailable",0,function(){if(t.default)try{return localStorage.setItem("__storage_test__","__storage_test__"),localStorage.removeItem("__storage_test__"),!0}catch(e){if(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length)return!0}return!1}])},388706,e=>{"use strict";let t=[{pageType:"today",urlKey:"today",urlType:"weather/today",suffix:"today",base:"/weather/today/",sidebarCanonical:!1,navType:"forecast",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-today"},{pageType:"hourbyhour",urlKey:"hourly",urlType:"weather/hourbyhour",suffix:"hourbyhour",base:"/weather/hourly/",sidebarCanonical:!1,navType:"forecast",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-hourly"},{pageType:"tenday",urlKey:"tenday",urlType:"weather/tenday",suffix:"tenday",base:"/weather/tenday/",sidebarCanonical:!1,navType:"forecast",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-tenday"},{pageType:"localalerts",urlKey:"alerts",urlType:"weather/alerts/localalerts",suffix:"localalerts",base:"/weather/alerts/localalerts/",sidebarCanonical:!0,navType:"forecast",sitemapExcluded:!0,canonicalEligible:!0,weatherCacheTag:"weather-alerts"},{pageType:"allergy",urlKey:"allergy",urlType:"forecast/allergy",suffix:"allergy",base:"/forecast/allergy/",sidebarCanonical:!0,navType:"forecast",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-allergy"},{pageType:"air-quality",urlKey:"airQuality",urlType:"forecast/air-quality",suffix:"air-quality",base:"/weather/air-quality/",sidebarCanonical:!0,navType:"forecast",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-air-quality"},{pageType:"cold-flu",urlKey:"coldFlu",urlType:"forecast/cold-flu",suffix:"cold-flu",base:"/forecast/cold-flu/",sidebarCanonical:!0,navType:"forecast",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-cold-flu"},{pageType:"radar",urlKey:"radar",urlType:"weather/radar/interactive",suffix:"radar",base:"/weather/radar/interactive/",sidebarCanonical:!0,navType:"radar",sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-radar-interactive"}],a=t.map(e=>e.pageType);Object.fromEntries(t.map(e=>[e.urlType,e.pageType]));let r=Object.fromEntries(t.map(e=>[e.suffix,e.pageType])),n=Object.fromEntries(t.map(e=>[e.pageType,e.base])),o=Object.fromEntries(t.map(e=>[e.pageType,e.urlKey])),i=Object.fromEntries(t.map(e=>[e.pageType,e.suffix])),s=Object.fromEntries(t.map(e=>[e.pageType,e.navType]));t.filter(e=>"forecast"===e.navType).map(e=>e.pageType),t.filter(e=>"radar"===e.navType).map(e=>e.pageType);let c=Object.fromEntries(t.map(e=>[e.pageType,e.canonicalEligible]));t.map(e=>e.urlType).join("|");let l=t.map(e=>e.suffix).join("|");t.filter(e=>e.sitemapExcluded).map(e=>e.pageType),t.filter(e=>!e.sitemapExcluded).map(e=>e.pageType);let u=t.filter(e=>e.sidebarCanonical).map(e=>({urlKey:e.urlKey,segment:e.suffix}));e.s(["BASE_BY_PAGE",0,n,"CANONICAL_ELIGIBLE_BY_PAGE",0,c,"CANONICAL_PAGE_TYPES",0,a,"PAGE_TYPE_CONFIG",0,t,"PAGE_TYPE_TO_SUFFIX",0,i,"PAGE_TYPE_TO_URL_KEY",0,o,"SIDEBAR_CANONICAL_LINKS",0,u,"SUFFIX_ALTERNATION",0,l,"navTypeForSuffix",0,function(e){let t=e?r[e]:void 0;return t?s[t]:null}])},132084,e=>{"use strict";var t,a=((t={}).APPLE="apple_widget",t.SAMSUNG="samsung_widget",t.OPPO="oppo_widget",t.TRANSSION="transsion",t.ONEPLUS="oneplus",t.TIKTOK="tiktok_search",t);Object.values(a),e.s(["Partner",()=>a,"SAMSUNG_VIETNAM_PARTNER",0,"samsungVietnam","partnersByPattern",0,{weatherapptodaywidget:"apple_widget",apple_:"apple_widget",samsung:"samsung_widget",oppo_:"oppo_widget","oppo-":"oppo_widget",transsion:"transsion",oneplus:"oneplus",tiktok_:"tiktok_search"}])},782937,e=>{"use strict";var t=e.i(132084);e.s(["getPartnerByPattern",0,function(e){for(let[a,r]of Object.entries(t.partnersByPattern))if(e.toLowerCase().includes(a))return r;return null},"isSamsungMoroccoPartner",0,function(e){return e.toLowerCase().replace(/[_-]/g,"").includes("samsungmsc")},"isSamsungVietnamPartner",0,function(e){return e.toLowerCase().replace(/[_-]/g,"").includes("samsungvsc")}])}]);