(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,185945,e=>{"use strict";var t=e.i(288906),r=e.i(247865),i=e.i(725287);function n(){return false}function a(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(i.current)e.route&&i.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let i=document.createElement("script");return i.src=r,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.3.1",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint?i.dataset.endpoint=e.endpoint:e.basePath&&(i.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(i.dataset.dsn=e.dsn),n()&&!1===e.debug&&(i.dataset.debug="false"),i.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(i.current=r.setRoute)}},[e.route]),null}function s(e){let n=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,r=(0,i.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!n)return r;let o=r;try{let e=Object.entries(n);for(let[t,r]of e)if(!Array.isArray(r)){let e=a(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=a(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(s,{...e}))}])},538946,e=>{"use strict";var t,r=e.i(288906),i={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_5Q8o6E4YrbWqG2fHyM2H54g2R23A":void 0},n=e.i(247865),a=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,n.useEffect)(()=>(e&&a&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(i,e);let r=document.createElement("script");for(let[n,a]of(r.src=`${i.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((i.ownerId&&i.projectId?{"data-owner-id":i.ownerId,"data-project-id":i.projectId,"data-branch":t??i.branch}:i.deploymentId?{"data-deployment-id":i.deploymentId}:void 0)??{})))a&&r.setAttribute(n,a);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),a=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],538946)},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:i}={}){let n,a=null,o=null!=i&&i.includes("leading"),s=null==i||i.includes("trailing"),l=()=>{null!==a&&(e.apply(n,a),n=void 0,a=null)},u=null,c=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,s&&l(),d()},t)},d=()=>{null!==u&&(clearTimeout(u),u=null),n=void 0,a=null},p=function(...e){if(r?.aborted)return;n=this,a=e;let t=null==u;c(),o&&t&&l()};return p.schedule=c,p.cancel=d,p.flush=()=>{l()},r?.addEventListener("abort",d,{once:!0}),p}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(276247),o=e.r(788443),s=e.r(955011)},866137,723469,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["adBlockAtom",0,t],866137);var r=e.i(247865),i=e.i(725287),n=e.i(546446),a=e.i(540768),o=e.i(682142),s=e.i(782937),l=e.i(695881),u=e.i(333350),c=e.i(64412),d=e.i(950771),p=e.i(537989),f=e.i(695203),m=e.i(158662),g=e.i(358273),S=e.i(122124),w=e.i(777638),E=e.i(924776),v=e.i(409628),A=e.i(605781);let y=(0,l.createLogger)("useTrackString");e.s(["useTrackString",0,()=>{let e=(0,n.useAtomValue)(p.pageIdAtom),t=(0,n.useAtomValue)(d.pageLocaleAtom),l=(0,n.useAtomValue)(f.deviceClassAtom),h=(0,n.useAtomValue)(m.experimentJoinListAtom),C=(0,i.usePathname)(),{location:k}=(0,c.useLocation)(),b=(0,E.useIsHightouchReady)(),I=(0,r.useCallback)(r=>{let i=(0,o.getCICookie)(),n=i?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),u=i?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),c=i?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",p=window.DprSdk?.getCcpaSaleOptInString()??"",f=window.navigator?.globalPrivacyControl??!1,m=d?.includes("functional-technology")??!1,E=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,A=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,y=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),b=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),I=navigator?.cookieEnabled??!1,_=(0,a.getCookie)("partner")||"",x=(0,s.getPartnerByPattern)(_)??_,P=(0,g.getMetricsSession)(),T=P?.sessionId||"",O=new Date(P?.sessionStartTime||0).toISOString(),R=new Date,D=R.getHours(),L=v.WEEK_DAYS[R.getDay()]??"",V="article"===e||"video"===e?(0,S.stripLastPartOfSlug)(C??""):(0,S.getAnonymizedPath)(C??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:V,referrer:document.referrer,locale:t,deviceClass:l,partner:x,sessionId:T,sessionStartTime:O,siteMode:"normal",dayOfWeek:L,hourOfDay:D,regime:c??"",cookiesEnabled:I,gpcSignalOptOut:f,functionalTechnologies:m,geographicallyRelevantAds:E,interestBasedAds:A,priv:d,privProducts:p,saleOfData:y,saleOfDataAuthorization:y,sensitiveDataAuthorization:b,campaign:(0,w.getCampaign)(),experimentJoinList:h,weatherMode:"normal",physicalCountry:n??"",physicalState:u??"",wlocCity:k?.city??null,wlocCountry:k?.countryCode??null,wlocState:k?.adminDistrictCode??null,wlocDMA:k?.dmaCd??null,samsungVersion:(0,w.getSamsungVersion)(),appVersion:"c6fbd5a7980e55c71a4aafe9ccdf49dfaf7d97a9".slice(0,10)}},[e,t,l,h,C,k]);return(0,r.useCallback)(e=>{if(u.default&&e){if(!b)return void y.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,A.trackTrackString)(I(e)),y.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){y.error('Hightouch: Event "track-string" failed',{error:e})}}},[b,I])}],723469)},800462,50727,e=>{"use strict";var t=e.i(284007);let r=(0,t.atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,r],800462);let i=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,i],50727)},688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},128541,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,i])},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},320209,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(725287),i=e.i(546446),n=e.i(540768),a=e.i(682142),o=e.i(782937),s=e.i(695881),l=e.i(333350),u=e.i(64412),c=e.i(950771),d=e.i(537989),p=e.i(695203),f=e.i(158662),m=e.i(358273),g=e.i(122124),S=e.i(777638),w=e.i(924776),E=e.i(409628),v=e.i(605781);let A=(0,s.createLogger)("useTrackAssetViewed"),y=[],h=null;function C(e){try{(0,v.trackAssetViewed)(e),A.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){A.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{h?.(e)}catch(e){A.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),s=(0,i.useAtomValue)(d.pageIdAtom),v=(0,i.useAtomValue)(c.pageLocaleAtom),A=(0,i.useAtomValue)(p.deviceClassAtom),h=(0,i.useAtomValue)(f.experimentJoinListAtom),{location:k}=(0,u.useLocation)(),b=(0,w.useIsHightouchReady)(),I=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:i,title:l,pos:u,tagsKeyword:c})=>{let d=(0,a.getCICookie)(),p=d?.["TWC-GeoIP-Country"]??(0,n.getCookie)("twc-location-country"),f=d?.["TWC-GeoIP-Region"]??(0,n.getCookie)("twc-location-region"),w=d?.["TWC-Privacy"]??(0,n.getCookie)("twc-privacy"),y=window.DprSdk?.getGdprConsentOptInsString()??"",C=window.DprSdk?.getCcpaSaleOptInString()??"",b=window.navigator?.globalPrivacyControl??!1,I=y?.includes("functional-technology")??!1,_=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,x=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,P=navigator?.cookieEnabled??!1,T=(0,n.getCookie)("partner")||"",O=(0,o.getPartnerByPattern)(T)??T,R=(0,m.getMetricsSession)(),D=R?.sessionId||"",L=new Date(R?.sessionStartTime||0).toISOString(),V=new Date,N=V.getHours(),U=E.WEEK_DAYS[V.getDay()]??"",M="article"===s||"video"===s?(0,g.stripLastPartOfSlug)(e??""):(0,g.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:i,title:l,pos:String(u),tagsKeyword:c??null,pageId:s??"",url:M,referrer:document.referrer,locale:v,deviceClass:A,partner:O,sessionId:D,sessionStartTime:L,siteMode:"normal",dayOfWeek:U,hourOfDay:N,regime:w??"",cookiesEnabled:P,gpcSignalOptOut:b,functionalTechnologies:I,geographicallyRelevantAds:_,interestBasedAds:x,priv:y,privProducts:C,campaign:(0,S.getCampaign)(),experimentJoinList:h,weatherMode:"normal",physicalCountry:p??"",physicalState:f??"",wlocCity:k?.city??null,wlocCountry:k?.countryCode??null,wlocState:k?.adminDistrictCode??null,wlocDMA:k?.dmaCd??null,samsungVersion:(0,S.getSamsungVersion)(),appVersion:"c6fbd5a7980e55c71a4aafe9ccdf49dfaf7d97a9".slice(0,10)}},[e,s,v,A,h,k]);return(0,t.useEffect)(()=>{if(!b||0===y.length)return;let e=y;y=[],e.forEach(C)},[b]),(0,t.useCallback)(e=>{if(!l.default)return;let t=I(e);b?C(t):y.push(t)},[b,I])})();(0,t.useEffect)(()=>(h=e,()=>{h===e&&(h=null)}),[e])}])},328343,680810,562209,e=>{"use strict";var t=e.i(247865),r=e.i(546446),i=e.i(737801),n=e.i(688070);e.s(["useEnrolledInExperimentEvent",0,()=>{let e=(0,i.useEventAttributes)(),a=(0,r.useAtomValue)(n.isWebViewOnlyAtom);return(0,t.useCallback)((t,r={})=>{if(a)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!t)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!t.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${t.flag_key} - no experiment_key (feature flag only)`);try{let i={...e,newVariant:t.variant||"",newExperiment:t.flag_key,newExperimentKey:t.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,i,r),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${t.flag_key||"unknown"}:${t.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[e,a])}],328343);var a=e.i(288906),o=e.i(540768),s=e.i(682142),l=e.i(782937),u=e.i(695881),c=e.i(333350),d=e.i(64412),p=e.i(950771),f=e.i(537989),m=e.i(695203),g=e.i(358273),S=e.i(777638),w=e.i(924776),E=e.i(409628),v=e.i(605781);let A=(0,u.createLogger)("useTrackEnrolledInExperiment"),y=[];function h(e){try{(0,v.trackEnrolledInExperiment)(e),A.info(`Hightouch: Event "enrolled-in-experiment" tracked - ${e.newExperiment}:${e.newVariant}`)}catch(e){A.error("Hightouch: Failed to track enrolled-in-experiment",e)}}e.s(["useTrackEnrolledInExperiment",0,()=>{let e=(0,r.useAtomValue)(f.pageIdAtom),i=(0,r.useAtomValue)(p.pageLocaleAtom),a=(0,r.useAtomValue)(m.deviceClassAtom),u=(0,r.useAtomValue)(n.isWebViewOnlyAtom),{location:v}=(0,d.useLocation)(),A=(0,w.useIsHightouchReady)(),C=(0,t.useCallback)((t,r)=>{let n=(0,s.getCICookie)(),u=n?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),c=n?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),d=n?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),p=window.DprSdk?.getGdprConsentOptInsString()??"",f=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,w=p?.includes("functional-technology")??!1,A=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,y=navigator?.cookieEnabled??!1,h=(0,o.getCookie)("partner")||"",C=(0,l.getPartnerByPattern)(h)??h,k=(0,g.getMetricsSession)(),b=k?.sessionId||"",I=k?.sessionStartTime||0,_=new Date,x=_.getHours(),P=E.WEEK_DAYS[_.getDay()]??"",T=-_.getTimezoneOffset()/60;return{newExperiment:t.flag_key,newVariant:t.variant||"",newExperimentReceivedAt:Date.now(),experimentJoinList:r,pageId:e??"",referrer:document.referrer,locale:i,deviceClass:a,partner:C,sessionId:b,sessionStartTime:I,dayOfWeek:P,hourOfDay:x,deviceTimeZone:T,regime:d??"",cookiesEnabled:y,gpcSignalOptOut:m,functionalTechnologies:w,geographicallyRelevantAds:A,priv:p,privProducts:f,campaign:(0,S.getCampaign)()??void 0,weatherMode:"normal",physicalCountry:u??"",physicalState:c??"",wlocCity:v?.city??null,wlocCountry:v?.countryCode??null,wlocState:v?.adminDistrictCode??null,wlocDMA:v?.dmaCd??null,samsungVersion:(0,S.getSamsungVersion)(),appVersion:"c6fbd5a7980e55c71a4aafe9ccdf49dfaf7d97a9".slice(0,10)}},[e,i,a,v]);return(0,t.useEffect)(()=>{if(!A||0===y.length)return;let e=y;y=[],e.forEach(h)},[A]),(0,t.useCallback)((e,t)=>{if(!c.default||u||!e.experiment_key)return;let r=C(e,t);A?h(r):y.push(r)},[A,u,C])}],680810);var C=e.i(553329);let k="production"!==a.default.env.VERCEL_TARGET_ENV,b=new Set;e.s(["resetTrackedExposures",0,function(){b.clear()},"trackAmplitudeExposure",0,function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){k&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){k&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let i=`${e.flag_key}::${e.variant??""}`;if(b.has(i)){k&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${i}`);return}b.add(i);let n={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:k?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,C.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0}));return r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):k&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}],562209)},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),i=e.i(546446),n=e.i(293163),a=e.i(160317),o=e.i(382602),s=e.i(540768),l=e.i(310847),u=e.i(333350),c=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:p,subscriptionTier:f}}=(0,c.useUser)(),[m,g]=(0,t.useState)(!1),[S,w]=(0,t.useState)(!1),E=p??!1,v=(0,a.getSubscriptionTierKey)(f),A=(0,i.useAtomValue)(o.userFirstNameAtom),y=(0,i.useAtomValue)(o.userGenderAtom),h=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),C=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),k=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,b=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,I=(0,s.getCookie)("subscription")??"",{productID:_=null,expirationDateTime:x=null,transactionDateTime:P=null,firstTransactionDateTime:T=null,autoRenew:O=null,price:R=null,productName:D=null}=(0,n.jwtDecoder)(I)||{},L=(0,t.useMemo)(()=>({premium:E,premiumProductTier:v,premiumExpiration:x,premiumStart:P,premiumFirstTransactionDate:T,premiumProductId:_,premiumProductAutoRenew:O,premiumPrice:R,premiumProductName:D,isRegisteredUser:d||C||!1,isLoggedIn:d,"Amplitude.device_id":h,$Gender:y,$FirstName:A,saleOfDataAuthorization:k,sensitiveDataAuthorization:b,devUser:!1}),[E,v,x,P,T,_,O,R,D,h,d,C,A,y,k,b]);(0,t.useEffect)(()=>{(0,n.areObjectValuesDefined)(L)&&!m&&g(!0)},[L,m]);let V=(0,t.useCallback)(()=>{for(let e in L)void 0===L[e]&&delete L[e];if(e&&m&&!S){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(L),w(!0),console.debug("MParticle: User attributes set - ",L)}},[e,L,m,S]);return{userAttributes:L,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let i=window.mParticle?.Identity?.getCurrentUser?.();i?(i.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:V,removeUserAttribute:(0,t.useCallback)(t=>{if(!e)return void console.warn("MParticle is not initialized");let r=window.mParticle?.Identity?.getCurrentUser?.();r?(r.removeUserAttribute(t),console.debug(`MParticle: User attribute removed - ${t}`)):console.warn("MParticle: No current user")},[e])}}])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},742436,e=>{"use strict";e.s(["ExperimentContext",()=>g,"ExperimentProvider",()=>S,"default",()=>E,"useExperimentContext",()=>w],742436);var t=e.i(288906),r=e.i(902875),i=e.i(247865),n=e.i(533760),a=e.i(333350),o=e.i(546446),s=e.i(328343),l=e.i(680810),u=e.i(158662),c=e.i(528600),d=e.i(562209),p=e.i(283366);let f="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",m="production"!==t.default.env.VERCEL_TARGET_ENV,g=(0,i.createContext)(null),S=({children:e,scriptSrc:t})=>{let S=(0,s.useEnrolledInExperimentEvent)(),w=(0,l.useTrackEnrolledInExperiment)(),E=(0,o.useSetAtom)(u.experimentJoinListAtom),{user:v}=(0,c.useUser)(),[A,y]=(0,i.useState)(!1),[h,C]=(0,i.useState)(!1),[,k]=(0,i.useState)(0),b=(0,i.useRef)(void 0),I=(0,i.useRef)(void 0);b.current=v.userID||void 0,I.current=v.anonId||void 0;let _=(0,i.useRef)(new Set),x=(0,i.useRef)({}),P=function(e,t){let r=(0,i.useRef)(null),[n,o]=(0,i.useState)(!1),s=(0,i.useRef)(e);return s.current=e,(0,i.useEffect)(()=>{if(!n&&a.default&&f&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{r.current=window.Experiment.initialize(f,{debug:m,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:e=>{try{s.current(e),m&&console.debug("[Experiment] Exposure tracked:",e)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},source:"localStorage"}),o(!0),m&&console.debug("[Experiment] SDK initialized (will fetch from API)")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[n,t]),r.current}((0,i.useCallback)(e=>{let t=(0,p.getExposureVariantOverride)(e.flag_key),r=void 0!==t?{...e,variant:t}:e,i=`${r.flag_key}::${r.variant??""}`;if(_.current.has(i))return;_.current.add(i);let[n]=JSON.parse(JSON.stringify(Object.entries({[r.flag_key]:{key:r.variant}}).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`})));n&&(x.current={...x.current,[r.flag_key]:n},E(JSON.stringify(Object.values(x.current))),(0,p.writeJoinListEntry)(r.flag_key,n)),S(r),(0,d.trackAmplitudeExposure)({exposure:r,userId:b.current,deviceId:I.current});let a=Object.values(x.current);w(r,a.length>0?JSON.stringify(a):null)},[S,w,E]),A);return(0,i.useEffect)(()=>{(async()=>{if(!P)return;let e=v.anonId;if(!e&&!v.userID){m&&console.debug("[Experiment] No user identifier available"),C(!0);return}let t={device_id:e,...v.userID?{user_id:v.userID}:{},user_properties:{}};m&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await P.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{C(!0)}})()},[P,v.anonId,v.userID]),(0,i.useEffect)(()=>{_.current.clear(),(0,d.resetTrackedExposures)(),(0,p.resetExposures)(),x.current={},E(null),k(e=>e+1);let e=(0,p.readJoinListEntries)();Object.keys(e).length>0&&(x.current=e,E(JSON.stringify(Object.values(e))))},[v.userID,E]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{src:t,strategy:"afterInteractive",onLoad:()=>{y(!0),m&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(g.Provider,{value:{client:P,variant:(e,t)=>{if(!P)return t;let r=P.variant(e,t);return m&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!P)return Promise.resolve();if(!e){let e=v.anonId;if(e||v.userID){let t={device_id:e,...v.userID?{user_id:v.userID}:{},user_properties:{}};return P.fetch(t)}}return P.fetch(e)},isFetchComplete:h},children:e})]})},w=()=>{let e=(0,i.useContext)(g);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},E=S},283366,e=>{"use strict";e.s(["getExposureVariantOverride",()=>v,"readJoinListEntries",()=>m,"resetExposures",()=>A,"useExposure",()=>y,"writeJoinListEntry",()=>g]);var t=e.i(247865),r=e.i(695881),i=e.i(333350),n=e.i(358273),a=e.i(742436);let o=(0,r.createLogger)("useExposure"),s="wxu-exp-exposed:",l=new Set,u=()=>{try{return(0,n.getMetricsSession)()?.sessionId||null}catch{return null}},c=(e,t)=>{for(let r=localStorage.length-1;r>=0;r--){let i=localStorage.key(r);i?.startsWith(e)&&i!==e+t&&localStorage.removeItem(i)}},d=e=>{try{let t=localStorage.getItem(s+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},p=(e,t)=>{try{c(s,e),localStorage.setItem(s+e,JSON.stringify([...t]))}catch{}},f="wxu-exp-joinlist:",m=()=>{let e=u();if(!e)return{};try{let t=localStorage.getItem(f+e);return t?JSON.parse(t):{}}catch{return{}}},g=(e,t)=>{let r=u();if(r)try{c(f,r);let i=m();localStorage.setItem(f+r,JSON.stringify({...i,[e]:t}))}catch{}},S=e=>{if(0===l.size)return;let t=d(e);for(let e of l)t.add(e);p(e,t),l.clear()},w=e=>{let t=u();return t?(S(t),d(t).has(e)):l.has(e)},E=new Map;function v(e){return E.get(e)}function A(){l.clear(),E.clear();let e=u();if(e)try{localStorage.removeItem(s+e)}catch{}}function y(e,r){let n=void 0!==r,s=r?.variant,c=(0,t.useContext)(a.ExperimentContext);(0,t.useEffect)(()=>{if(!i.default||!c||w(e)||n&&void 0===s)return;let{client:t}=c;if(!t)return;let r=()=>{if(!w(e)){(e=>{let t=u();if(!t)return l.add(e);S(t);let r=d(t);r.add(e),p(t,r)})(e),void 0!==s&&E.set(e,s);try{t.exposure(e)}catch(e){o.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?r():window.mParticle?.ready?.(r)},[c,e,n,s])}},456215,e=>{"use strict";e.s(["isSnowCastWebView",0,function(e){return"snowcast"===e||e.startsWith("snowcast-")},"isWebViewIos",0,function(e){return"ios"===e||e.endsWith("-ios")}])},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},752496,e=>{"use strict";var t=e.i(247865),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:n,page:a,onUpdateData:o,onSetPageData:s}){let{updateComponentData:l,setPageData:u}=(0,r.useDebugSystem)(),c=(0,t.useRef)(!1),d=o||l,p=s||u;return(0,t.useEffect)(()=>{if(n)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(n),hasPerformance:!!n.performance,hasContext:!!n.context}),d(e,{...n,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,n,d]),(0,t.useEffect)(()=>{a&&!c.current&&(i.lifecycle("Setting page metadata",{title:a.title,assetName:a.assetName,collection:a.collection}),p({...a,_updatedAt:new Date().toISOString()}),c.current=!0)},[a,p]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,n]=(0,t.useAtom)(i),a=(0,r.useCallback)((e,t)=>{n(r=>{let i=r?.[e]||{},n="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:n}})},[n]),o=(0,r.useCallback)((e,t)=>{n(r=>{let i=r||{timestamp:new Date().toISOString()},n=i.components||{};if(null===t){let t={...n};return delete t[e],{...i,components:t}}return{...i,components:{...n,[e]:t}}})},[n]),s=(0,r.useCallback)(e=>{a("page",e)},[a]),l=(0,r.useCallback)(e=>{a("route",e)},[a]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&a(e,t)})},[a]);return{debugData:e,updateSection:a,updateComponentData:o,setPageData:s,clearAllDebugData:(0,r.useCallback)(()=>{n({timestamp:new Date().toISOString()})},[n]),updateRouteInfo:l,updatePageDebug:u}}],609858)},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},725296,e=>{"use strict";var t,r=e.i(965586),i=((t={}).CA="ca",t.CA_QC="ca-qc",t.EXEMPT="exempt",t.GDPR="gdpr",t.JP="jp",t.KR="kr",t.LATAM_CO="latam-co",t.LATAM_DO="latam-do",t.LATAM_PE="latam-pe",t.LGPD="lgpd",t.PIPL="pipl",t.TR_KVKK="tr-kvkk",t.USA="usa",t.USA_CCPA="usa-ccpa",t.USA_CO="usa-co",t.USA_CT="usa-ct",t.USA_VA="usa-va",t);Object.values(i);let n={"usa-ut":"usa"},a=e=>e?n[e]??e:void 0;e.s(["RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>i,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,i,"getRegime",0,()=>(()=>{let e=(0,r.getCookie)("ci")?.toString();if(e)for(let t of e.split("&")){let e=t.indexOf("=");if(e>-1&&"TWC-Privacy"===t.slice(0,e))return a(t.slice(e+1))}})()??a((0,r.getCookie)("twc-privacy")?.toString())??"exempt"])},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},45846,e=>{"use strict";e.i(288906);let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},378869,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["emailPreferencesAtom",0,t])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let i=(0,t.atom)(e=>e(r.userProfileAtom)?.email),n=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),a=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,i,"userFirstNameAtom",0,n,"userGenderAtom",0,a])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),n=e.i(310847);let a=Object.freeze({});function o(){let e=(0,t.useSetAtom)(n.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let n=[];t.placeId&&n.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&n.push((0,i.formatGeocode)(t.geocode)),0!==n.length&&e(e=>{let t=e??{};if(!n.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of n)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(n.wxuUserLocationFeatureIdsAtom)??a,s=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,i.formatGeocode)(t.geocode)];if(r)return r}},[e]),l=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:s,hasResolvedPlaceId:l,recordFeatureId:o()}},"useRecordFeatureId",0,o])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),i=e.i(301904),n=e.i(901351),a=e.i(310847),o=e.i(528600),s=e.i(617874),l=e.i(540768),u=e.i(553329),c=e.i(247865),d=e.i(245943);let p=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:t}}=(0,o.useUser)();return{saveMapSettings:(0,c.useCallback)(async r=>{if(!t)return!1;let{error:i}=await (0,u.tryCatch)(n.upsxClient.preference.updateMapSettings(e,r));if(!i)return!0;if(i instanceof d.APIError&&404===i.code){let{error:t}=await (0,u.tryCatch)(n.upsxClient.preference.createMapSettings(e,r));return!t||(p.warn("Failed to create map settings",t),!1)}return p.warn("Failed to update map settings",i),!1},[t,e])}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,o.useUser)(),[c,d]=(0,t.useAtom)(r.userPreferencesAtom),[p,f]=(0,t.useAtom)(a.wxuUserPreferenceAtom),m=async()=>{let{data:e,error:t}=await (0,u.tryCatch)(n.upsxClient.preference.getMapSettings("twc"));if(t||!e)return null;let{animationSpeed:r,autoplay:i,opacity:a,roadOverlay:o,style:s}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==i&&{autoplay:i},...void 0!==a&&{opacity:a},...void 0!==o&&{roadOverlay:o},...void 0!==s&&{style:s}};return Object.keys(l).length>0?l:null},g=async e=>{try{await n.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},S=async(t,r=!0)=>{try{let i,n=(i={...c,...t},d(i),f({...p,...t,locations:i.locations}),i);if(t?.unit){let e=(0,s.unitsSystemByName)(t.unit),r=e?.code||"e";(0,l.setCookie)(s.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await g(n),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let[e,t]=await Promise.all([n.upsxClient.preference.getPreference(),m()]);if(!e?.userID)return null;let{mapSettings:r,...a}=e,o={...a,mapSettings:{...i.DEFAULT_MAP_SETTINGS,...t}};return S(o,!1),o}catch{return null}},updatePreferences:S}}],776169)},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(981030),n=e.i(889753);let a=(0,e.i(174960).focusAtom)(n.userPreferencesAtom,e=>e.prop("locations")),o=(0,i.atom)(e=>e(n.userPreferencesAtom)?.locations||[]);(0,i.atom)(e=>{let t=e(o);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,i.atom)(e=>(e(o)?.length||0)>0),e.s(["userLocationsAtom",0,a,"userLocationsGetAtom",0,o],579310);var s=e.i(310847),l=e.i(247865);let u=Object.freeze([]),c=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),i=(0,t.useAtomValue)(a),n=(0,l.useMemo)(()=>i?[...i].sort((e,t)=>e.position-t.position):u,[i]),[o,d]=(0,t.useAtom)(s.wxuUserRecentLocationsAtom),[,p]=(0,t.useAtom)(s.wxuUserRecentAddressesAtom),f=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...n.map(e=>e.position),0)+1};e({locations:[...n,r]})},[n,e]),m=(0,l.useCallback)(t=>{e({locations:n.filter(e=>e.placeID!==t)})},[n,e]),g=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),S=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),w=(0,l.useCallback)(()=>{d([])},[d]),E=(0,l.useCallback)(e=>{p(t=>(t||[]).filter(t=>t.placeId!==e))},[p]),v=(0,l.useCallback)(e=>{m(e),S(e),E(e)},[m,S,E]);return{addFavoriteLocation:f,removeFavoriteLocation:m,addRecentLocation:g,removeRecentLocation:S,removeRecentAddress:E,clearRecentLocations:w,deleteLocation:v,recentLocations:o||c,favoriteLocations:n}}],145651)},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["clearPurchaseChecked",0,()=>{try{localStorage.removeItem(t)}catch{}},"markPurchaseChecked",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"purchaseCheckedRecently",0,()=>{try{let e=localStorage.getItem(t);if(!e)return!1;let r=Number(e);if(!Number.isFinite(r))return!1;return Date.now()-r{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])}]);