(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,127498,e=>{"use strict";var t=e.i(862336),r=e.i(297647);function a({locale:e,...a}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...a})}e.s(["default",()=>a])},647292,e=>{"use strict";let t=(0,e.i(751931).atom)("");e.s(["webViewPlatformAtom",0,t])},248064,e=>{"use strict";var t=e.i(991511),r=e.i(394481),a=e.i(663333),i=e.i(49893),o=e.i(889753),n=e.i(5397),s=e.i(21121);e.i(647872);var l=e.i(279791),c=e.i(584799),u=e.i(523579),d=e.i(726513),m=e.i(566737),p=e.i(39822),f=e.i(427309),w=e.i(688070),g=e.i(647292);e.s(["FlagsBoundaryClient",0,({params:e})=>((0,t.useRehydrateAtoms)([[r.privacyRegimeAtom,e.privacyRegime],[a.deviceClassAtom,e.deviceClass],[o.userTierAtom,e.userTier],[i.adsKillswitchAtom,e.adsKillswitch],[n.showAdminHeaderAtom,e.showAdminHeader],[c.subsCTAVariantAtom,e.subsCTAVariant],[l.showOpenWebCommentsAtom,e.showOpenWebComments],[s.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[u.retroWeatherAtom,e.retroWeather],[f.geoipCountry,e.geoipCountry],[d.subsOfferCopyVariantAtom,e.subsOfferCopyVariant],[m.sidebarSubsFlyoutVariantAtom,e.sidebarSubsFlyoutVariant],[p.editorsPickLocationAwareVariantAtom,e.editorsPickLocationAwareVariant],[g.webViewPlatformAtom,e.webViewPlatform],[w.isWebViewOnlyAtom,e.isWebViewOnly]]),null)])},792302,e=>{"use strict";var t=e.i(297647),r=e.i(929993),a=e.i(475566),i=e.i(5397),o=e.i(477716),n=e.i(538107),s=e.i(674339),l=e.i(375570),c=e.i(695881),u=e.i(609858);let d=(0,c.createLogger)("AtomDebugHydrationBoundaries"),m=({debugData:e})=>{let{updateSection:t}=(0,u.useDebugSystem)(),r=(0,l.usePathname)();return d.info("Initial props received",{hasDebugData:!!e,currentPath:r}),(0,n.useHydrateAtoms)([[s.debugDataAtom,e||{timestamp:new Date().toISOString()}]]),(0,o.useEffect)(()=>{d.lifecycle("Path changed",r);let a=sessionStorage.getItem("lastPath"),i=!a||a===r;d.info("Navigation type",i?"Direct load/refresh":"Client-side navigation"),t("route",r),i&&!e?t("meta",{dataState:"stale",lastConfirmedPath:a||null,currentPath:r,isDirectLoad:!0,timestamp:new Date().toISOString()}):(t("components",{}),e&&(d.info("Updating with new debug data for path",r),e.page&&t("page",e.page),e.match&&t("match",e.match),e.timestamp&&t("timestamp",e.timestamp),e.headers&&t("headers",e.headers),e.environment&&t("environment",e.environment),e.location&&t("location",{...e.location,source:"server-hydration",_updatedAt:new Date().toISOString()}),t("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:i,timestamp:new Date().toISOString()}))),sessionStorage.setItem("lastPath",r??"")},[r,e,t]),d.lifecycle("Hydration complete",{debugData:e,pathname:r}),null};var p=e.i(842096);let f=(0,p.createServerReference)("400b793ff795408421d608d17d785bd6f3e37ae43f",p.callServer,void 0,p.findSourceMapURL,"translateDebugDataAction");var w=e.i(472737);let g=(0,c.createLogger)("LocationCollector"),h=(0,c.createLogger)("DataCollector");function v({pageProps:e,userRoles:t}){let r=(0,l.usePathname)(),a=(0,l.useSearchParams)(),{updateSection:i}=(0,u.useDebugSystem)(),n=(0,o.useRef)(!1);!function(){let{updateSection:e}=(0,u.useDebugSystem)(),{effectiveLocation:t,isLocationLoading:r}=(0,w.useLocationSource)({});(0,o.useEffect)(()=>{t&&!r&&(g.info("Location data updated",t.displayName),e("location",{...t,_observedFrom:"useLocationSource",_collectedBy:"LocationCollector",_updatedAt:new Date().toISOString()}))},[t,r,e])}(),(0,o.useEffect)(()=>{if(t&&t.length>0){let e=Array.isArray(t)?t:[];i("userRoles",e),h.info("DataCollector","User roles updated",e)}},[t,i]);let s=(0,o.useCallback)(async()=>{try{h.info("DataCollector","Collecting data for route:",{path:r,paramsCount:a?Array.from(a.keys()).length:0});let t={};a?.forEach((e,r)=>{t[r]=e}),h.lifecycle("DataCollector","Calling translateDebugDataAction");let o=await f({route:r??"",params:t,pageProps:e});o&&(h.info("DataCollector","Debug data received",{route:o.route,hasPage:!!o.page,hasMatch:!!o.match,hasHeaders:!!o.headers,hasEnvironment:!!o.environment}),o.route&&(i("route",o.route),h.info("DataCollector","Route updated",o.route)),o.page&&(i("page",o.page),h.info("DataCollector","Page data updated",{title:o.page.title,id:o.page.id}),i("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:!1,timestamp:new Date().toISOString()})),o.match&&(i("match",o.match),h.info("DataCollector","Match data updated",{hasMatch:!0,matchKeys:Object.keys(o.match||{})})),o.headers&&(i("headers",o.headers),h.info("DataCollector","Headers updated",{headerCount:Object.keys(o.headers||{}).length})),o.environment&&(i("environment",o.environment),h.info("DataCollector","Environment data updated",{envVarCount:Object.keys(o.environment||{}).length})),i("timestamp",new Date().toISOString()))}catch(e){h.error("DataCollector","Error collecting debug data:",e),i("errors",{dataCollection:{message:e.message,timestamp:new Date().toISOString()}})}},[r,a,e,i]);return(0,o.useEffect)(()=>{h.lifecycle("DataCollector","Setting up data collection for path",r),n.current||(n.current=!0);let e=setTimeout(()=>{s()},200);return()=>{clearTimeout(e),h.lifecycle("DataCollector","Cleanup for path",r)}},[s,r]),null}function S({children:e,pageProps:r}){return(0,t.jsxs)(a.Provider,{children:[(0,t.jsx)(m,{debugData:null}),(0,t.jsx)(v,{pageProps:r}),e]})}let y=(0,r.default)(()=>e.A(186044).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{modules:[451309]},ssr:!1,loading:()=>null});function E({children:e}){return(0,a.useAtomValue)(i.showAdminHeaderAtom)?(0,t.jsxs)(S,{children:[(0,t.jsx)(y,{}),e]}):(0,t.jsx)(t.Fragment,{children:e})}e.s(["AdminHeaderWrapper",()=>E],792302)},800462,e=>{"use strict";let t=(0,e.i(233601).atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,t])},569579,e=>{"use strict";var t=e.i(297647),r=e.i(358273),a=e.i(333350);if(a.default){let e=(0,r.getMetricsSession)();(!e||(0,r.checkSessionTimestampExpired)())&&(0,r.setIsNewMestricsSession)(),(0,r.setMetricsSession)(e)}let i=()=>null;var o=e.i(477716),n=e.i(475566);e.i(694914);var s=e.i(947118),l=e.i(310847),c=e.i(382602),u=e.i(528600),d=e.i(688070),m=e.i(647292),p=e.i(915044),f=e.i(959194),w=e.i(737801),g=e.i(375570),h=e.i(630986),v=e.i(800462),S=e.i(608201),y=e.i(236593),E=e.i(472737),A=e.i(797770);let I=["article","video","liveblog"];var P=e.i(147732);let C=new Date().getTime(),b=(0,P.debounce)(()=>{window.scrollY>D&&(D=window.scrollY)},250);a.default&&window.addEventListener("scroll",b);let D=a.default&&window.innerHeight>0?window.innerHeight:0,T=({scriptSrc:e})=>{let a=(0,n.useAtomValue)(d.isWebViewOnlyAtom);(()=>{let e=(0,n.useAtomValue)(d.isWebViewOnlyAtom),t=(0,n.useAtomValue)(m.webViewPlatformAtom),a="us2-fb061d169ced8343850163112c402d41",i=(0,s.useIsInitialized)(),p=(0,o.useRef)(i),{user:{isUserLoggedIn:f,userID:w}}=(0,u.useUser)(),g=(0,n.useAtomValue)(c.userEmailAtom),h=f?w:null,v=f?g:"",S=(0,n.useAtomValue)(l.wxuUserAnonymousIdAtom),y=(({hasInvokedMPInit:e,apiKey:t,isUserLoggedIn:r,customerid:a,email:i,other:o})=>!e&&t&&o&&(r&&a&&i||!r))({hasInvokedMPInit:p.current,apiKey:a,isUserLoggedIn:f,customerid:h,email:v,other:S});(0,o.useEffect)(()=>{if(y){p.current=!0;let i={isDevelopmentMode:!1,logLevel:"warning",identifyRequest:{userIdentities:{email:v,customerid:h,other:S}},v1SecureServiceUrl:"mparticle.weather.com/webevents/v1/JS/",v2SecureServiceUrl:"mparticle.weather.com/webevents/v2/JS/",v3SecureServiceUrl:"mparticle.weather.com/webevents/v3/JS/",configUrl:"mparticle.weather.com/tags/JS/v2/",identityUrl:"mparticle.weather.com/identity/v1/",aliasUrl:"mparticle.weather.com/webevents/v1/identity/",dataPlan:{planId:"weather_web",planVersion:2},identityCallback:e=>{if(e?.getUser()){let t=e.getUser().getMPID();t&&(console.debug("MParticle: Identity callback triggered",t),(e=>{try{let t=JSON.parse(localStorage.getItem("wxu-web/keyval:mparticleUser")||"{}"),a=t?.value?.mpid;a&&a!==e&&((0,r.setIsNewMestricsSession)(),(0,r.setMetricsSession)(null))}catch(e){console.error("Error in resetMetricSessionWhenMparticleIdChange",e)}})(t),localStorage.setItem("wxu-web/keyval:mparticleUser",JSON.stringify({value:{mpid:t},updatedAt:Date.now()})))}},...e&&{requiredWebviewBridgeName:"appsMparticleWebviewBridge",isIOS:"ios"===t}};console.debug("Mparticle initialized with config:",i),window.mParticle.init(a,i)}},[y,a,!1,h,v,S,t])})();let{setUserAttributes:i}=(0,p.useUserAttributes)(),v=(()=>{let e=(0,s.useIsInitialized)(),t=(0,g.usePathname)(),r=(0,w.useEventAttributes)(),a=(0,h.useCMSAttributes)(),[i,n]=(0,o.useState)(!1),l=(0,o.useRef)(!1),c=(0,o.useMemo)(()=>({author:a?.author||"",contentId:a?.contentId,publishDate:a?.publishDate,provider:a?.provider,title:a?.title,nodeType:a?.nodeType,iabContent:a?.iabContent,tagsAnalytics:a?.tagsAnalytics,tagsLocation:a?.tagsLocation,tagsKeyword:a?.tagsKeyword,tagsStorm:a?.tagsStorm,collection:a?.collection,entitlements:a?.entitlements,createdDate:a?.createdDate,cmsUrl:a?.cmsUrl,...r,url:t?(0,f.stripLastPartOfSlug)(t):""}),[r,a,t]);return(0,o.useEffect)(()=>{(0,f.areObjectValuesDefined)(c)&&!i&&n(!0)},[c,i]),(0,o.useCallback)(async()=>{if(c?.pageId==="article"&&e&&i&&!l.current)try{window.mParticle?.logEvent?.("article-viewed",window.mParticle?.EventType?.Other,c),console.debug(`MParticle: Event "article-viewed" tracked - ${c?.pageId}`),l.current=!0}catch(e){console.error('MParticle: Event "article-viewed" failed',e)}},[e,c,i])})();return((0,o.useEffect)(()=>{i()},[i]),(0,o.useEffect)(()=>{v()},[v]),a)?(0,t.jsx)("script",{id:"mparticle-webview-sdk",dangerouslySetInnerHTML:{__html:`(function(){window.mParticle=window.mParticle||{EventType:{Unknown:0,Navigation:1,Location:2,Search:3,Transaction:4,UserContent:5,UserPreference:6,Social:7,Other:8}};window.mParticle.eCommerce={Cart:{}};window.mParticle.Identity={};window.mParticle.config=window.mParticle.config||{};window.mParticle.config.rq=[];window.mParticle.ready=function(t){window.mParticle.config.rq.push(t)};function e(e,o){return function(){if(o){e=o+"."+e}var t=Array.prototype.slice.call(arguments);t.unshift(e);window.mParticle.config.rq.push(t)}}var o=["endSession","logError","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"];var n=["setCurrencyCode","logCheckout"];var i=["identify","login","logout","modify"];o.forEach(function(t){window.mParticle[t]=e(t)});n.forEach(function(t){window.mParticle.eCommerce[t]=e(t,"eCommerce")});i.forEach(function(t){window.mParticle.Identity[t]=e(t,"Identity")});var r=document.createElement("script");r.type="text/javascript";r.async=true;r.src="${e}";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)})();`}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{}),(0,t.jsx)("script",{src:e})]})},L=()=>{let e,t=(()=>{let e=(0,s.useIsInitialized)(),t=(0,w.useEventAttributes)(),[a,i]=(0,o.useState)(!1),n=(0,o.useRef)(!1),l=(0,o.useMemo)(()=>({...t}),[t]);return(0,o.useEffect)(()=>{(0,f.areObjectValuesDefined)(l)&&!a&&i(!0)},[l,a]),(0,o.useCallback)(async()=>{if((0,r.isNewMetricsSession)()&&e&&a&&!n.current)try{window.mParticle?.logEvent?.("session-start",window.mParticle?.EventType?.Other,l),n.current=!0,(0,r.deleteIsNewMestricsSession)(),console.debug(`MParticle: Event "session-start" tracked - sessionId: ${l.sessionId}`)}catch(e){console.error('MParticle: Event "session-start" failed',e)}},[e,l,a])})(),i=(()=>{let e=(0,s.useIsInitialized)(),t=(0,w.useEventAttributes)(),i=(0,h.useCMSAttributes)(),l=t.pageId,c=a.default&&!["video","article"].includes(l)?window.location.href:"",[u,d]=(0,o.useState)(!1),m=(0,o.useRef)(!1),p=(0,o.useRef)(void 0),[P,C]=(0,n.useAtom)(v.fromSearchResultAtom),[b,D]=(0,n.useAtom)(S.sourcePageAtom),[T,L]=(0,n.useAtom)(y.sourceModuleAtom),_=(0,E.useLocationSource)({}),O=_?.effectiveLocation,R=function(e){try{let t=(e.startsWith("http")?new URL(e).pathname:e.split("?")[0]??"").split("/"),r=t.indexOf("l");if(-1!==r&&r{let e=I.includes(l)&&i?{...null!=i.contentId&&{contentId:i.contentId},...null!=i.collection&&{collection:i.collection},...null!=i.title&&{title:i.title},...null!=i.nodeType&&{nodeType:i.nodeType},...null!=i.iabContent&&{iabContent:i.iabContent},...null!=i.tagsAnalytics&&{tagsAnalytics:i.tagsAnalytics},...null!=i.tagsLocation&&{tagsLocation:i.tagsLocation},...null!=i.tagsKeyword&&{tagsKeyword:i.tagsKeyword},...null!=i.tagsStorm&&{tagsStorm:i.tagsStorm},...null!=i.cmsUrl&&{cmsUrl:i.cmsUrl}}:{};return{...t,...R&&{wlocId:R},...O?.presentationName&&{wlocPresentationName:O?.presentationName},...O?.type&&{wlocType:O?.type},...P&&{fromSearchResult:P},...b&&{sourcePage:b},...T?.id&&{sourceModule:T.id},...T?.position&&{sourcePosition:T.position},...T?.name&&{sourceModuleName:T.name},...N&&{adsMetricsUnitAndZone:N},...e,fullUrl:c}},[t,R,O,P,b,T,N,i,c]);return(0,o.useEffect)(()=>{(0,f.areObjectValuesDefined)(U)&&!u&&d(!0)},[U,u]),(0,o.useCallback)(async()=>{if(p.current!==U.pageId&&(m.current=!1,p.current=U.pageId),e&&u&&!m.current)try{window.mParticle?.logEvent?.("page-viewed",window.mParticle?.EventType?.Other,U),m.current=!0,P&&C(null),b&&D(null),T&&L(null),(0,r.incrementMetricsSessionCount)(),console.debug(`MParticle: Event "page-viewed" tracked - ${U.pageId}`)}catch(e){console.error('MParticle: Event "page-viewed" failed',e)}},[e,U,u,P,C,b,D,T,L])})(),l=(()=>{let{effectiveLocation:e}=(0,E.useLocationSource)({}),t=(0,s.useIsInitialized)(),i=(0,w.useEventAttributes)(),[n,l]=(0,o.useState)(!1),c=(0,o.useRef)(!1),u=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{e?.geocode&&(u.current=e.geocode)},[e?.geocode]);let d=e?.geocode?.split?.(","),m=d?.[0]?parseFloat(d[0]):void 0,p=d?.[1]?parseFloat(d[1]):void 0,g=a.default&&(0,r.isNewMetricsSession)(),h=(0,o.useMemo)(()=>({...i,latitude:m,longitude:p}),[i,m,p]);return(0,o.useEffect)(()=>{(0,f.areObjectValuesDefined)(h)&&!n&&l(!0)},[h,n]),(0,o.useCallback)(async()=>{let r=h.latitude,a=h.longitude;if(t&&n&&!c.current&&r&&a&&g)try{window.mParticle?.logEvent?.("location-viewed",window.mParticle?.EventType?.Other,h),c.current=!0,console.debug(`MParticle: Event "location-viewed" tracked - ${e?.displayName||"Unknown location"}`)}catch(e){console.error('MParticle: Event "location-viewed" failed',e)}},[t,h,n,e,g])})();return e=(0,w.useEventAttributes)(),(0,o.useEffect)(()=>{let t=()=>{if(window.mParticle?.isInitialized?.()){let t,r,a,i=(new Date().getTime()-C)/1e3,o=(t=document.documentElement.scrollHeight,r=window.innerHeight,D=D||window.scrollY,(a=t===r?100:Math.round(D/(t-r)*100))>100?a=100:a{window.removeEventListener("beforeunload",t),window.removeEventListener("blur",t)}},[e]),(0,o.useEffect)(()=>{t()},[t]),(0,o.useEffect)(()=>{i()},[i]),(0,o.useEffect)(()=>{l()},[l]),null},_=({scriptSrc:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i,{}),(0,t.jsx)(T,{scriptSrc:e})]});e.s(["Analytics",0,_,"default",0,_],569579)},987070,e=>{"use strict";var t=e.i(297647),r=e.i(477716),a=e.i(381477),i=e.i(521350);e.s(["SWRProvider",0,({children:e,fallback:o={}})=>{let[n]=(0,r.useState)(()=>new Map);return(0,r.useEffect)(()=>{if(!(0,i.isLocalStorageAvailable)())return;try{let e=localStorage.getItem("app-cache");if(e){let t=JSON.parse(e);Array.isArray(t)&&t.forEach(([e,t])=>{n.get(e)||n.set(e,t)})}}catch(e){console.error("Failed to load cache from localStorage:",e)}let e=()=>{if((0,i.isLocalStorageAvailable)())try{let e=Array.from(n.entries());localStorage.setItem("app-cache",JSON.stringify(e))}catch(e){console.error("Failed to persist cache to localStorage:",e)}};window.addEventListener("beforeunload",e);let t=setInterval(e,3e4);return()=>{window.removeEventListener("beforeunload",e),clearInterval(t)}},[n]),(0,t.jsx)(a.SWRConfig,{value:{provider:()=>n,fallback:o},children:e})}])},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])},85617,e=>{"use strict";var t=e.i(477716),r=e.i(528600),a=e.i(45846),i=e.i(436028),o=e.i(694914),n=e.i(725296),s=e.i(521350),l=e.i(313983);let c=async()=>{try{let e=await m();await p({upsxConsentResponse:e}),await h({upsxConsentResponse:e})}catch(e){console.log(e)}},u=({purpose:e,upsxConsentResponse:t})=>{let r=t?.find?.(t=>t?.purpose===e);return r?.consent},d=async({purpose:e,value:t,setByUser:r})=>{let i={purpose:e,consent:t,setByUser:r,consentDateTime:new Date().toISOString()};await a.upsxClient.consent.createUserConsent(i)},m=async()=>await a.upsxClient.consent.getUserConsent(),p=async({upsxConsentResponse:e})=>{let t=u({purpose:"sale-of-data",upsxConsentResponse:e}),{localSaleOfDataConsent:r,setByUser:a}=f();w({localSaleOfDataConsent:r,upsxSaleOfDataConsent:t}),g({upsxSaleOfDataConsent:t})&&await d({purpose:"sale-of-data",value:r,setByUser:a})},f=()=>{let e=window.DprSdk,t=e?.getUserConsent("sale-of-data"),r="boolean"==typeof t;return{localSaleOfDataConsent:r?t:e?.getRegimePurposeDefaultValue("sale-of-data")??!0,setByUser:r}},w=({localSaleOfDataConsent:e,upsxSaleOfDataConsent:t})=>{let r=window.DprSdk,a=window.navigator.globalPrivacyControl,i=(0,s.isLocalStorageAvailable)()?localStorage.getItem("saleOfDataConflict"):null,o=!0===t&&!1===e&&!a;o&&!i?(0,s.isLocalStorageAvailable)()&&localStorage.setItem("saleOfDataConflict","true"):!o&&i&&(0,s.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),!1===t&&!0===e&&r?.setUserConsents({"sale-of-data":!1},{skipLogUserConsent:!0})},g=({upsxSaleOfDataConsent:e})=>{let t=!1,r=window.navigator.globalPrivacyControl;return("boolean"!=typeof e||r&&!0===e)&&(t=!0),t},h=async({upsxConsentResponse:e})=>{if((0,n.getRegime)()!==n.Regime.USA_CCPA)return;let t=u({purpose:l.Purpose.SENSITIVE_DATA,upsxConsentResponse:e}),{localSensitiveDataConsent:r}=v();S({localSensitiveDataConsent:r,upsxSensitiveDataConsent:t}),function({upsxSensitiveDataConsent:e}){let t=!1;return"boolean"!=typeof e&&(t=!0),t}({upsxSensitiveDataConsent:t})&&await d({purpose:l.Purpose.SENSITIVE_DATA,value:!0,setByUser:!1})},v=()=>{let{DprSdk:e}=window,t=e?.getUserConsent(l.Purpose.SENSITIVE_DATA),r="boolean"==typeof t;return{localSensitiveDataConsent:r?t:e?.getRegimePurposeDefaultValue(l.Purpose.SENSITIVE_DATA)??!0,setByUser:r}},S=async({localSensitiveDataConsent:e,upsxSensitiveDataConsent:t})=>{let{DprSdk:r}=window;"boolean"==typeof t&&t!==e&&r?.setUserConsents({[l.Purpose.SENSITIVE_DATA]:t},{skipLogUserConsent:!0})};e.s(["UserAuthSync",0,()=>(!function(){let[e,l]=(0,t.useState)(!1),[c,u]=(0,t.useState)(null),d=(0,t.useRef)(!1),m=(0,n.getRegime)(),{user:{isUserLoggedIn:p,userID:f,anonId:w}}=(0,r.useUser)(),g=(0,t.useCallback)(async(e={})=>{if(f){l(!0),u(null);try{let t,r,s,l,c,u=await a.upsxClient.applications.getApplications(e.appId||"twc-web-registered",e.endpointId||f),g=u?.partners||[],h=(t=[],(r=o.default.env.NEXT_PUBLIC_OMNITURE_ID||null)&&t.push({name:"omniture",id:r}),(s=function({upsxId:e,anonId:t}){return e||t||null}({upsxId:f,anonId:w}))&&(t.push({name:"amplitude",id:s}),t.push({name:"airlytics",id:s})),(l=o.default.env.NEXT_PUBLIC_MPARTICLE_ID||null)&&t.push({name:"mParticle",id:l}),!p&&l&&t.push({name:"braze",id:l}),p&&f&&(t.push({name:"zuora",id:f}),t.push({name:"braze",id:f})),c=o.default.env.NEXT_PUBLIC_SOURCEPOINT_DSR_ID||null,n.RESTRICTIVE_REGIMES.includes(m)&&c&&t.push({name:"sourcepoint",id:c}),t),v=(0,i.hasLength)(g)?h.filter(e=>{let t=g.find(t=>t.name===e.name);return!t||t.id!==e.id}):h;return v.length&&(u?await a.upsxClient.applications.addPartner(e.appId||"twc-web-registered",e.endpointId||f,{partners:v,version:"1.0.0"}):await a.upsxClient.applications.createApplication({appId:e.appId||"twc-web-registered",endpointId:e.endpointId||f,partners:v,version:"1.0.0"})),d.current=!0,{success:!0,addedOrUpdated:v}}catch(t){let e=t instanceof Error?t:Error("Unknown error occurred");return u(e),{success:!1,error:e.message}}finally{l(!1),(0,s.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","false")}}},[f]);(0,t.useEffect)(()=>{if(!(0,s.isLocalStorageAvailable)())return;let e=localStorage.getItem("PARTNERS_SYNC"),t=e&&JSON.parse(e);p&&f&&t&&!d.current&&(async()=>{await g()})()},[f,p,g])}(),!function(){let e=(0,t.useRef)(!1),{user:{isUserLoggedIn:a}}=(0,r.useUser)();(0,t.useEffect)(()=>{a&&!e.current&&(c(),e.current=!0)},[a])}(),null)],85617)},231457,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["pushlyInitializedAtom",0,t])},959377,e=>{"use strict";var t=e.i(477716),r=e.i(475566),a=e.i(231457);function i(e){let{domainKey:i,serviceWorkerPath:o,enabled:n=!1}=e,[s,l]=(0,r.useAtom)(a.pushlyInitializedAtom);return(0,t.useEffect)(()=>{if(n)try{window.PushlySDK=window.PushlySDK||[],window.pushly=window.pushly||function(...e){window.PushlySDK.push(e)},window.pushly("load",{domainKey:i,sw:o}),l(!0)}catch(e){console.error("Failed to initialize Pushly SDK:",e)}},[i,o,n,l]),{isInitialized:s}}e.s(["useInitializeSdk",()=>i])},330871,e=>{"use strict";var t=e.i(477716),r=e.i(475566),a=e.i(231457);function i(e){let{isPremium:t,isUserLoggedIn:r,userHasLoggedInBefore:a,locationData:i,upsUserId:o}=e;return{is_premium:t,is_registered_user:a||r,place_id:i?.placeId,twc_latitude:i?.latitude,twc_longitude:i?.longitude,twc_postal_code:i?.postalCode,...r&&o&&{upsx_id:o}}}function o(e){let o=(0,t.useRef)(!1),n=(0,t.useRef)(e),s=(0,r.useAtomValue)(a.pushlyInitializedAtom);(0,t.useEffect)(()=>{n.current=e},[e]),(0,t.useEffect)(()=>{if(!s||!window.pushly||!e)return;let{mParticleId:t}=e,r=i(e);try{window.pushly("profile",r),t&&window.pushly("external_id",t),o.current||(o.current=!0,window.pushly("on_permission_allowed",()=>{let e=n.current;if(!e||!window.pushly)return;let t=i(e);window.pushly("profile",t),e.mParticleId&&window.pushly("external_id",e.mParticleId)}))}catch(e){console.error("Failed to set Pushly profile:",e)}},[e,s])}e.s(["usePushlyProfile",()=>o])},369769,e=>{"use strict";e.i(694914);var t=e.i(297647),r=e.i(241722),a=e.i(477716),i=e.i(959377),o=e.i(330871),n=e.i(528600),s=e.i(475566),l=e.i(310847),c=e.i(472737);e.i(186316);let u=()=>{let e=window?.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.();return e||null},d=()=>{let{user:e}=(0,n.useUser)(),t=(0,s.useAtomValue)(l.userHasLoggedInBeforeAtom),{effectiveLocation:r}=(0,c.useLocationSource)({}),[i,d]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e;(e=u())&&e!==i&&d(e);let t=setInterval(()=>{let e=u();e&&(d(e),clearInterval(t))},1e3);return()=>clearInterval(t)},[i]);let{latitude:m,longitude:p}=(e=>{if(!e)return{latitude:void 0,longitude:void 0};let[t,r]=e.split(",");return{latitude:t?parseFloat(t):void 0,longitude:r?parseFloat(r):void 0}})(r?.geocode);return(0,o.usePushlyProfile)({isPremium:e.isUserPremium,isUserLoggedIn:e.isUserLoggedIn,userHasLoggedInBefore:t??!1,locationData:r?{placeId:r.placeId,latitude:m,longitude:p,postalCode:r.postalCode}:void 0,upsUserId:e.userID||void 0,mParticleId:i||void 0}),null},m="samsung_widget",p="en-US";e.s(["Pushly",0,({serviceWorkerPath:e,partner:o,locale:n="en-US"})=>{let[s,l]=(0,a.useState)(!1),c="XJe7TqRv7lQ0gyF5biuPnAchWgRhgAjeQc0h";return((0,i.useInitializeSdk)({domainKey:c||"",serviceWorkerPath:e,enabled:s&&o!==m&&n===p&&!!c}),o===m||n!==p)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{src:`https://cdn.p-n.io/pushly-sdk.min.js?domain_key=${c}`,strategy:"afterInteractive",onLoad:()=>{console.log("Pushly SDK loaded"),l(!0)},onError:e=>{console.error("Failed to load Pushly SDK:",e)}}),(0,t.jsx)(d,{})]})}],369769)},157725,e=>{"use strict";var t=e.i(477716),r=e.i(475566),a=e.i(528600),i=e.i(776169),o=e.i(310847);e.s(["UserPreferenceSync",0,()=>(!function(){let{user:{isUserLoggedIn:e,userID:n},userProfile:s}=(0,a.useUser)(),{updatePreferences:l}=(0,i.usePreferences)(),c=(0,r.useAtomValue)(o.wxuUserPreferenceAtom),u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{(async()=>{if(e&&s&&n&&!u.current){u.current=!0;try{c&&await l(c,!1)}catch(e){console.error("Failed to sync user preferences:",e),u.current=!1}}})()},[e,s,n,l,c])}(),null)],157725)},599827,e=>{"use strict";var t=e.i(477716),r=e.i(186316),a=e.i(528600),i=e.i(543512),o=e.i(901351);function n(){let e=new URLSearchParams(window.location.search),t=e.get("re");e.delete("re"),window.history.replaceState({},"",window.location.href.replace(`${0==[...e].length?"?":""}re=${t}`,"")),t||(e.set("re",Date.now().toString()),window.location.search=e.toString())}e.s(["PurchaseTokenRefresh",0,()=>{let{user:e}=(0,a.useUser)();return(0,t.useEffect)(()=>{let t=e.subscriptionTier===i.UserSubscriptionTiers.standard,a=(0,r.getCookie)("premium"),s=!1;if(a&&"string"==typeof a){let e=a.split(".")[1];if(e)try{let{expirationDateTime:t,iat:r,premium:a}=JSON.parse(atob(e))||{};if(a){let e=new Date(t);e.setDate(e.getDate()-1);let a=new Date,i=new Date(1e3*r);i.setDate(i.getDate()+1),s=a>=i&&a>=e}}catch(e){console.error("Failed to parse premium cookie JWT:",e)}}(t||s)&&(async()=>{try{let e=await o.upsxClient.purchase.getPurchaseToken();t&&e?.premium&&n()}catch(e){console.error("Failed to refresh purchase token:",e)}})()},[e.subscriptionTier]),null},"reloadPageWithLoopCheck",()=>n])},520362,e=>{"use strict";var t=e.i(297647),r=e.i(477716);let a=e=>{let{apiRoute:t,depth:a,refresh:i,serverURL:o}=e,n=(0,r.useRef)(!1),s=(0,r.useCallback)(e=>{e.origin===o&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,o]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),n.current||(n.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:o}),i()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[o,s,a,t,i]),null};var i=e.i(375570);e.s(["LivePreviewListener",0,e=>{let r=(0,i.useRouter)();return(0,t.jsx)(a,{...e,refresh:r.refresh})}],520362)}]);