(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,198050,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(533760),n=e.i(405341),a=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,o]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,n.getCjConfig)();e&&(0,a.isCjEligible)()&&o(e)},[]),e)?(0,t.jsx)(i.default,{id:"cj-site-page",strategy:"afterInteractive",children:`(function (w, d, src, enterpriseId) { w.cj = w.cj || {}; w.cj.sitePage = { enterpriseId: enterpriseId }; if (d.getElementById('cjapitag')) return; var tag = d.createElement('script'); var first = d.getElementsByTagName('script')[0]; tag.id = 'cjapitag'; tag.async = true; tag.src = src; if (first && first.parentNode) first.parentNode.insertBefore(tag, first); else d.body.appendChild(tag); })(window, document, ${JSON.stringify(e.tagSrc)}, ${JSON.stringify(e.enterpriseId)});`}):null}])},405341,829065,e=>{"use strict";e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number("1601099".trim()),t="1377327807670".trim();return Number.isInteger(e)&&!(et.US_REGIMES.includes((0,t.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),i=e.i(695881),n=e.i(553329),a=e.i(405341),o=e.i(829065);let s=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:u})=>{let c=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||c.current||!i)return;let t=(0,a.getCjConfig)();t&&(0,o.isCjEligible)()&&(c.current=!0,(0,n.tryCatch)((async()=>{var e;let n,o,s;return e={orderId:i,amount:l,actionTrackerId:u?a.CJ_ACTION_ID_TRIAL_SIGNUP:a.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(n=window).cj=n.cj||{},n.cj.order={enterpriseId:t.enterpriseId,actionTrackerId:e.actionTrackerId,orderId:e.orderId,pageType:"conversionConfirmation",currency:"USD",amount:e.amount,...e.cjEventId?{cjeventOrder:e.cjEventId}:{}},document.getElementById("cjapitag")?.remove(),(o=document.createElement("script")).id="cjapitag",o.async=!0,o.src=t.tagSrc,s=document.getElementsByTagName("script")[0],void(s?.parentNode?s.parentNode.insertBefore(o,s):document.body.appendChild(o))})()).then(({error:e})=>{e&&s.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,u])}],560542)},302027,e=>{"use strict";e.s(["EMBED_CHECKOUT_MESSAGE",0,"wx-checkout-complete","EMBED_RELOAD_FALLBACK_MS",0,3e3])},281468,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}))}])},175897,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_7e4WzbkVZDKncqmnhezhU2V1CnUa":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}],175897)},806262,e=>{"use strict";e.i(247865);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,i){var n;let a,o=(0,t.useStore)(i),s=(n=o,(a=r.get(n))||(a=new WeakSet,r.set(n,a)),a);for(let[t,...r]of e)(!s.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(s.add(t),o.set(t,...r))}])},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)},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},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)},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},513539,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),i=(0,t.atom)(null);e.s(["activeEventAtom",0,i,"layoutStateAtom",0,r])},236433,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["pageAtomsPathnameAtom",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])},529603,e=>{"use strict";let t=null,r=null,i=e=>{if(t&&e.event.context){let i={...t,...r};e.event.context.traits=e.event.userId?{...i,twcId:String(e.event.userId)}:i}return e};e.s(["setPluginTraits",0,e=>{t=e},"setSignInTraits",0,e=>{r=e},"traitsPlugin",0,{name:"traits-plugin",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:i,page:i}])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,n=0,a=()=>"function"==typeof window.mParticle?.init,o=()=>{void 0!==t&&(clearInterval(t),t=void 0)},s=()=>{if(!a()||(o(),0===i.size))return;let e=[...i];for(let t of(i.clear(),e))t()},l=()=>{void 0===t&&(n=0,t=setInterval(()=>{n+=100,s(),n>=3e4&&o()},100))},u=e=>(i.add(e),l(),()=>{i.delete(e)}),c=e=>a()?(e(),()=>{}):u(e),d=e=>a()?()=>{}:u(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,c,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,a,m),"watchForSdkLoad",0,e=>{if("u"{};if(a())return s(),()=>{};l();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>s();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let f=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):c(()=>{window.mParticle?.ready?.(e),e()}),p=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(f,p,g)],947118)},915044,382602,e=>{"use strict";var t=e.i(247865),r=e.i(947118),i=e.i(546446),n=e.i(293163),a=e.i(160317),o=e.i(981030),s=e.i(889753);let l=(0,o.atom)(e=>e(s.userProfileAtom)?.email),u=(0,o.atom)(e=>e(s.userProfileAtom)?.firstName),c=(0,o.atom)(e=>e(s.userProfileAtom)?.gender);(0,o.atom)(e=>e(s.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,l,"userFirstNameAtom",0,u,"userGenderAtom",0,c],382602);var d=e.i(540768),m=e.i(310847),f=e.i(333350),p=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:o,isUserPremium:s,subscriptionTier:l}}=(0,p.useUser)(),[g,S]=(0,t.useState)(!1),[I,A]=(0,t.useState)(!1),w=s??!1,h=(0,a.getSubscriptionTierKey)(l),C=(0,i.useAtomValue)(u),v=(0,i.useAtomValue)(c),E=(0,i.useAtomValue)(m.wxuUserAnonymousIdAtom),y=(0,i.useAtomValue)(m.userHasLoggedInBeforeAtom),b=f.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,P=f.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,_=(0,d.getCookie)("subscription")??"",{productID:R=null,expirationDateTime:T=null,transactionDateTime:k=null,firstTransactionDateTime:O=null,autoRenew:L=null,price:N=null,productName:D=null}=(0,n.jwtDecoder)(_)||{},U=(0,t.useMemo)(()=>({premium:w,premiumProductTier:h,premiumExpiration:T,premiumStart:k,premiumFirstTransactionDate:O,premiumProductId:R,premiumProductAutoRenew:L,premiumPrice:N,premiumProductName:D,isRegisteredUser:o||y||!1,isLoggedIn:o,"Amplitude.device_id":E,$Gender:v,$FirstName:C,saleOfDataAuthorization:b,sensitiveDataAuthorization:P,devUser:!1}),[w,h,T,k,O,R,L,N,D,E,o,y,C,v,b,P]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,n.areObjectValuesDefined)(r)&&!g&&S(!0)},[U,g]);let x=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&g&&!I){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),A(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,g,I]);return{userAttributes:U,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:x,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])}}],915044)},658547,e=>{"use strict";var t=e.i(247865),r=e.i(839315),i=e.i(491240);let n=(e,t)=>{let i,n=Date.now()+2e3;return(i=!1,Promise.race([new Promise(e=>{let t=()=>{if(!i){if(window.mParticle?.ready)return void window.mParticle.ready(()=>e());setTimeout(t,50)}};t()}),new Promise((e,t)=>{setTimeout(()=>{t(Error("MParticle did not become ready in time"))},2e3)})]).finally(()=>{i=!0})).then(()=>new Promise(i=>{let a=setTimeout(i,Math.max(0,n-Date.now()));window.mParticle?.Identity?.[e]?.(t,e=>{clearTimeout(a);let t=e?.getUser?.()?.getMPID?.();t&&(0,r.setStoredmParticleId)(t),i()})}))};e.s(["useUserIdentity",0,()=>{let e=(0,t.useCallback)(e=>n("identify",{userIdentities:{customerid:e.customerid,email:e.email,other:(0,i.truncateIdentityValue)(e.other)}}),[]);return{identify:e,login:(0,t.useCallback)(e=>n("login",{userIdentities:{customerid:e.customerid,email:e.email,facebook:e.facebook,facebookcustomaudienceid:e.facebookcustomaudienceid,google:e.google,microsoft:e.microsoft,other:(0,i.truncateIdentityValue)(e.other),other2:(0,i.truncateIdentityValue)(e.other2),other3:(0,i.truncateIdentityValue)(e.other3),other4:(0,i.truncateIdentityValue)(e.other4),twitter:e.twitter,yahoo:e.yahoo}}),[]),logout:(0,t.useCallback)(()=>n("logout",{userIdentities:{}}),[])}}])},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])},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,m=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}),m({...a,_updatedAt:new Date().toISOString()}),c.current=!0)},[a,m]),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])},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},756227,e=>{"use strict";var t=e.i(546446),r=e.i(284007),i=e.i(889753),n=e.i(905059),a=e.i(310847),o=e.i(960576),s=e.i(317298),l=e.i(839315),u=e.i(391174),c=e.i(735526),d=e.i(90543),m=e.i(529603);e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(i.userProfileAtom),f=(0,t.useSetAtom)(a.wxuUserAccountUserAccountResponseAtom),p=(0,t.useSetAtom)(n.mapLayerOrderAtom);return()=>{(0,u.invalidateUpsxCache)(),(0,s.clearNextSessionIntent)(),e(r.RESET),f(null),p(r.RESET),(0,o.clearEarlyAnonId)(),(0,c.clearAccountCreated)(),(0,m.setSignInTraits)(null),(0,l.clearStoredmParticleId)(),(0,d.bumpAuthEpoch)()}}])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),i=e.i(671525),n=e.i(889753),a=e.i(810564),o=e.i(553329),s=e.i(45846),l=e.i(284007),u=e.i(756227),c=e.i(358273),d=e.i(247865),m=e.i(540768),f=e.i(682142),p=e.i(782937),g=e.i(695881),S=e.i(333350),I=e.i(64412),A=e.i(950771),w=e.i(537989),h=e.i(695203),C=e.i(158662),v=e.i(777638),E=e.i(924776),y=e.i(409628),b=e.i(605781);let P=(0,g.createLogger)("useUserLoggedOut");var _=e.i(658547),R=e.i(472925),T=e.i(529603),k=e.i(160317),O=e.i(543512);let L={isLoggedIn:!1,upsxId:"",registeredEmail:void 0,premium:!1,premiumProductTier:(0,k.getSubscriptionTierKey)(O.UserSubscriptionTiers.none),$FirstName:"",$Gender:"",emailSubscriptions:"[]",premiumProductId:null,premiumExpiration:null,premiumStart:null,premiumFirstTransactionDate:null,premiumProductAutoRenew:null,premiumPrice:null,premiumProductName:null,premiumProductTerm:null};e.s(["useUserLogout",0,function({reload:e=!0,clearOnError:g=!1}={}){let k=(0,t.useSetAtom)(n.userPreferencesAtom),O=(0,u.useResetAuthState)(),{refresh:N}=(0,i.usePageNavigation)(),D=((e={})=>{let r=(0,t.useAtomValue)(w.pageIdAtom),i=(0,t.useAtomValue)(A.pageLocaleAtom),n=(0,t.useAtomValue)(h.deviceClassAtom),a=(0,t.useAtomValue)(C.experimentJoinListAtom),{location:o}=(0,I.useLocation)(),s=(0,E.useIsHightouchReady)(),{url:l,logoutMethod:u}=e;return(0,d.useCallback)(()=>{if(!S.default||!s)return;let e=(0,f.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,m.getCookie)("twc-location-country"),d=e?.["TWC-GeoIP-Region"]??(0,m.getCookie)("twc-location-region"),g=e?.["TWC-Privacy"]??(0,m.getCookie)("twc-privacy"),I=window.DprSdk?.getGdprConsentOptInsString()??"",A=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,h=I?.includes("functional-technology")??!1,C=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,E=navigator?.cookieEnabled??!1,_=(0,m.getCookie)("partner")||"",R=(0,p.getPartnerByPattern)(_)??_,T=(0,c.getMetricsSession)(),k=T?.sessionId||"",O=T?.sessionStartTime||0,L=new Date,N=L.getHours(),D=y.WEEK_DAYS[L.getDay()]??"",U=-L.getTimezoneOffset()/60,x=document.referrer,j={url:l??window.location.pathname,logoutMethod:u??"manual",referrer:x,privProducts:A,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:n,sessionId:k,sessionStartTime:O,partner:R,wlocCity:o?.city??null,wlocCountry:o?.countryCode??null,wlocState:o?.adminDistrictCode??null,wlocDMA:o?.dmaCd??null,dayOfWeek:D,regime:g??"",cookiesEnabled:E,gpcSignalOptOut:w,functionalTechnologies:h,geographicallyRelevantAds:C,priv:I,hourOfDay:N,physicalCountry:t??"",physicalState:d??"",campaign:(0,v.getCampaign)()??void 0,tpcc:(0,v.getTpcc)(),linkReferral:(0,v.getLinkReferral)(),experimentJoinList:a,weatherMode:"normal",samsungVersion:(0,v.getSamsungVersion)(),appVersion:"a4d101b136e8782701254dc7081d2f3659e224d8".slice(0,10)};try{let e=(0,b.trackUserLoggedout)(j);return P.info('Hightouch: Event "user-loggedout" tracked'),e}catch(e){P.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,u,r,i,n,a,o,s])})(),{logout:U}=(0,_.useUserIdentity)();return async()=>{let{error:t}=await (0,o.tryCatch)(s.upsxClient.auth.logout());return t?(console.error("Failed to log out:",t),g&&(O(),k(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,a.upsxCookieDomain)(window.location.hostname)})),!1):(await (0,R.settleWithin)(()=>D(),1e3),O(),await (0,o.tryCatch)(U()),(0,T.setSignInTraits)(L),(0,c.regenerateMetricsSession)(),k(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,a.upsxCookieDomain)(window.location.hostname)}),e&&N({mpa:!0}),!0)}}],731672)},735526,e=>{"use strict";let t="wx-next/account-created";e.s(["clearAccountCreated",0,function(){try{sessionStorage.removeItem(t)}catch{}},"markAccountCreated",0,function(){try{sessionStorage.setItem(t,"true")}catch{}},"wasAccountCreated",0,function(){try{return"true"===sessionStorage.getItem(t)}catch{return!1}}])},90543,e=>{"use strict";var t=e.i(521350);let r="wxu-auth-epoch",i="wxu-rendered-tier";function n(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function a(e,r){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,r)}e.s(["bumpAuthEpoch",0,function(){a(r,String(Date.now()))},"isStaleRestore",0,function({renderedTier:e,recordedTier:t,epochAtLoad:r,currentEpoch:i}){return null!==t&&t!==e||void 0!==r&&r!==i},"readAuthEpoch",0,function(){return n(r)},"readRecordedTier",0,function(){return n(i)},"recordTier",0,function(e){a(i,e)}])},391174,95870,e=>{"use strict";var t=e.i(613646);e.s(["mutate",()=>t.j],95870);var t=t,r=e.i(892504);e.s(["invalidateUpsxCache",0,()=>{(0,t.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1}),(0,r.clearPurchaseChecked)()}],391174)},45846,e=>{"use strict";e.i(288906);var t=e.i(245943),r=e.i(810564);let i=new t.UPSXClient({baseUrl:(0,r.upsxApiUrl)("https://upsx.weather.com")});e.s(["upsxClient",0,i])},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])},905059,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-next/user:mapLayerOrder",null,void 0,{getOnInit:!0});e.s(["mapLayerOrderAtom",0,t])},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])},145651,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(579310),n=e.i(310847),a=e.i(247865);let o=Object.freeze([]),s=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),l=(0,t.useAtomValue)(i.userLocationsAtom),u=(0,a.useMemo)(()=>l?[...l].sort((e,t)=>e.position-t.position):o,[l]),[c,d]=(0,t.useAtom)(n.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(n.wxuUserRecentAddressesAtom),f=(0,a.useCallback)(t=>{let r={...t,position:Math.max(...u.map(e=>e.position),0)+1};e({locations:[...u,r]})},[u,e]),p=(0,a.useCallback)(t=>{e({locations:u.filter(e=>e.placeID!==t)})},[u,e]),g=(0,a.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),S=(0,a.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),I=(0,a.useCallback)(()=>{d([])},[d]),A=(0,a.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),w=(0,a.useCallback)(e=>{p(e),S(e),A(e)},[p,S,A]);return{addFavoriteLocation:f,removeFavoriteLocation:p,addRecentLocation:g,removeRecentLocation:S,removeRecentAddress:A,clearRecentLocations:I,deleteLocation:w,recentLocations:c||s,favoriteLocations:u}}])},317298,e=>{"use strict";let t="wxu-next-session-intent",r=["fpdprobnsitop1intent","fpdprobnsitop2intent","fpdprobnsitop3intent"];e.s(["clearNextSessionIntent",0,function(){try{localStorage.removeItem(t)}catch{}},"hasRadarIntent",0,function(e){return!!e&&r.some(t=>{let r=e[t];return"string"==typeof r&&"radar"===r.trim().toLowerCase()})},"readNextSessionIntent",0,function(){try{let e=localStorage.getItem(t);if(!e)return null;let r=JSON.parse(e);if(r&&"object"==typeof r&&"promotesRadar"in r&&"boolean"==typeof r.promotesRadar)return{promotesRadar:r.promotesRadar};return null}catch{return null}},"writeNextSessionIntent",0,function(e){try{localStorage.setItem(t,JSON.stringify({promotesRadar:e.promotesRadar}))}catch{}}])},839315,e=>{"use strict";e.i(965586);let t="wxu-web/keyval:mparticleUser";e.s(["clearStoredmParticleId",0,()=>{try{localStorage.removeItem(t)}catch{}},"getStoredmParticleId",0,()=>{try{let e=JSON.parse(localStorage.getItem(t)||"{}");return e?.value?.mpid||null}catch{return null}},"getmParticleCustomerId",0,()=>window?.mParticle?.Identity?.getCurrentUser?.()?.getUserIdentities?.()?.userIdentities?.customerid||null,"getmParticleId",0,()=>{let e=window?.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.();return e||null},"setStoredmParticleId",0,e=>{try{localStorage.setItem(t,JSON.stringify({value:{mpid:e},updatedAt:Date.now()}))}catch{}}])},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";let t=(0,e.i(981030).atom)(null);e.s(["getSmartScriptClickUrl",0,function(e){let t=e?.clickURL;return"string"==typeof t&&t?t:null},"smartScriptClickUrlAtom",0,t,"withCtaAttribution",0,function(e,{trackAdset:t,deepLinkValue:r}){if(!URL.canParse(e))return e;let i=new URL(e);return t&&i.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&i.searchParams.set("deep_link_value",r),i.toString()}])},216809,e=>{"use strict";var t=e.i(247865),r=e.i(553329);e.s(["useAppsFlyerConsent",0,function(){let[e,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:n}=await (0,r.tryCatch)(t);n||e||i(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])},991511,e=>{"use strict";var t=e.i(247865),r=e.i(806262),i=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let n=(0,i.useStore)(),a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{for(let[e,t]of a.current)n.get(e)!==t&&n.set(e,t)})}])},472925,e=>{"use strict";var t=e.i(553329);let r=async(e,r)=>{let i;await (0,t.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{i=setTimeout(e,r)})])),clearTimeout(i)};e.s(["settleWithin",0,r])}]);