(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),a=e.i(405341),n=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,o]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,a.getCjConfig)();e&&(0,n.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),a=e.i(553329),n=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,n.getCjConfig)();t&&(0,o.isCjEligible)()&&(c.current=!0,(0,a.tryCatch)((async()=>{var e;let a,o,s;return e={orderId:i,amount:l,actionTrackerId:u?n.CJ_ACTION_ID_TRIAL_SIGNUP:n.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(a=window).cj=a.cj||{},a.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)},281468,e=>{"use strict";var t=e.i(288906),r=e.i(247865),i=e.i(725287);function a(){return false}function n(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:a()?"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),a()&&!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 a=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,r=(0,i.usePathname)();if(!e)return null;let a=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!a)return r;let o=r;try{let e=Object.entries(a);for(let[t,r]of e)if(!Array.isArray(r)){let e=n(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=n(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:a,...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_E4eFCVWxX8ENbSxYncKGbNM6WY6C":void 0},a=e.i(247865),n=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,a.useEffect)(()=>(e&&n&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(i,e);let r=document.createElement("script");for(let[a,n]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)??{})))n&&r.setAttribute(a,n);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),n=!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 a;let n,o=(0,t.useStore)(i),s=(a=o,(n=r.get(a))||(n=new WeakSet,r.set(a,n)),n);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 n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let n=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])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,a=0,n=()=>"function"==typeof window.mParticle?.init,o=()=>{void 0!==t&&(clearInterval(t),t=void 0)},s=()=>{if(!n()||(o(),0===i.size))return;let e=[...i];for(let t of(i.clear(),e))t()},l=()=>{void 0===t&&(a=0,t=setInterval(()=>{a+=100,s(),a>=3e4&&o()},100))},u=e=>(i.add(e),l(),()=>{i.delete(e)}),c=e=>n()?(e(),()=>{}):u(e),d=e=>n()?()=>{}:u(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,c,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,n,m),"watchForSdkLoad",0,e=>{if("u"{};if(n())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),a=e.i(293163),n=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),[A,w]=(0,t.useState)(!1),C=s??!1,E=(0,n.getSubscriptionTierKey)(l),v=(0,i.useAtomValue)(u),I=(0,i.useAtomValue)(c),b=(0,i.useAtomValue)(m.wxuUserAnonymousIdAtom),h=(0,i.useAtomValue)(m.userHasLoggedInBeforeAtom),_=f.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,y=f.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,P=(0,d.getCookie)("subscription")??"",{productID:R=null,expirationDateTime:T=null,transactionDateTime:O=null,firstTransactionDateTime:k=null,autoRenew:L=null,price:N=null,productName:D=null}=(0,a.jwtDecoder)(P)||{},U=(0,t.useMemo)(()=>({premium:C,premiumProductTier:E,premiumExpiration:T,premiumStart:O,premiumFirstTransactionDate:k,premiumProductId:R,premiumProductAutoRenew:L,premiumPrice:N,premiumProductName:D,isRegisteredUser:o||h||!1,isLoggedIn:o,"Amplitude.device_id":b,$Gender:I,$FirstName:v,saleOfDataAuthorization:_,sensitiveDataAuthorization:y,devUser:!1}),[C,E,T,O,k,R,L,N,D,b,o,h,v,I,_,y]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,a.areObjectValuesDefined)(r)&&!g&&S(!0)},[U,g]);let j=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&g&&!A){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),w(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,g,A]);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:j,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)},678651,(e,t,r)=>{"use strict";function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))void 0!==i&&t.append(r,i);return t}Object.defineProperty(r,"__esModule",{value:!0}),r.queryStringToSearchParams=i,r.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let r=new URL(`https://${e}`);return Object.assign(r,{...t,hostname:e}),t.query&&(r.search=i(t.query).toString()),r}},671525,e=>{"use strict";var t=e.i(725287);let r=()=>{let e=(0,t.useRouter)();return{navigate:(t,r={})=>{let{mpa:i=!0,replace:a=!1}=r;i?a?window.location.replace(t):window.location.href=t:a?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:r=!0}=t;r?window.location.reload():e.refresh()},router:e}};e.s(["default",0,r,"usePageNavigation",0,r])},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:a,page:n,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(a)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(a),hasPerformance:!!a.performance,hasContext:!!a.context}),d(e,{...a,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,a,d]),(0,t.useEffect)(()=>{n&&!c.current&&(i.lifecycle("Setting page metadata",{title:n.title,assetName:n.assetName,collection:n.collection}),m({...n,_updatedAt:new Date().toISOString()}),c.current=!0)},[n,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,a]=(0,t.useAtom)(i),n=(0,r.useCallback)((e,t)=>{a(r=>{let i=r?.[e]||{},a="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:a}})},[a]),o=(0,r.useCallback)((e,t)=>{a(r=>{let i=r||{timestamp:new Date().toISOString()},a=i.components||{};if(null===t){let t={...a};return delete t[e],{...i,components:t}}return{...i,components:{...a,[e]:t}}})},[a]),s=(0,r.useCallback)(e=>{n("page",e)},[n]),l=(0,r.useCallback)(e=>{n("route",e)},[n]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&n(e,t)})},[n]);return{debugData:e,updateSection:n,updateComponentData:o,setPageData:s,clearAllDebugData:(0,r.useCallback)(()=>{a({timestamp:new Date().toISOString()})},[a]),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])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),i=e.i(671525),a=e.i(889753),n=e.i(810564),o=e.i(45846),s=e.i(284007),l=e.i(756227),u=e.i(358273),c=e.i(247865),d=e.i(540768),m=e.i(682142),f=e.i(782937),p=e.i(695881),g=e.i(333350),S=e.i(64412),A=e.i(950771),w=e.i(537989),C=e.i(695203),E=e.i(158662),v=e.i(777638),I=e.i(924776),b=e.i(409628),h=e.i(605781);let _=(0,p.createLogger)("useUserLoggedOut");var y=e.i(658547),P=e.i(553329),R=e.i(472925),T=e.i(529603),O=e.i(160317),k=e.i(543512);let L={isLoggedIn:!1,upsxId:"",registeredEmail:void 0,premium:!1,premiumProductTier:(0,O.getSubscriptionTierKey)(k.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}={}){let p=(0,t.useSetAtom)(a.userPreferencesAtom),O=(0,l.useResetAuthState)(),{refresh:k}=(0,i.usePageNavigation)(),N=((e={})=>{let r=(0,t.useAtomValue)(w.pageIdAtom),i=(0,t.useAtomValue)(A.pageLocaleAtom),a=(0,t.useAtomValue)(C.deviceClassAtom),n=(0,t.useAtomValue)(E.experimentJoinListAtom),{location:o}=(0,S.useLocation)(),s=(0,I.useIsHightouchReady)(),{url:l,logoutMethod:p}=e;return(0,c.useCallback)(()=>{if(!g.default||!s)return;let e=(0,m.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,d.getCookie)("twc-location-country"),c=e?.["TWC-GeoIP-Region"]??(0,d.getCookie)("twc-location-region"),S=e?.["TWC-Privacy"]??(0,d.getCookie)("twc-privacy"),A=window.DprSdk?.getGdprConsentOptInsString()??"",w=window.DprSdk?.getCcpaSaleOptInString()??"",C=window.navigator?.globalPrivacyControl??!1,E=A?.includes("functional-technology")??!1,I=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,y=navigator?.cookieEnabled??!1,P=(0,d.getCookie)("partner")||"",R=(0,f.getPartnerByPattern)(P)??P,T=(0,u.getMetricsSession)(),O=T?.sessionId||"",k=T?.sessionStartTime||0,L=new Date,N=L.getHours(),D=b.WEEK_DAYS[L.getDay()]??"",U=-L.getTimezoneOffset()/60,j=document.referrer,M={url:l??window.location.pathname,logoutMethod:p??"manual",referrer:j,privProducts:w,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:a,sessionId:O,sessionStartTime:k,partner:R,wlocCity:o?.city??null,wlocCountry:o?.countryCode??null,wlocState:o?.adminDistrictCode??null,wlocDMA:o?.dmaCd??null,dayOfWeek:D,regime:S??"",cookiesEnabled:y,gpcSignalOptOut:C,functionalTechnologies:E,geographicallyRelevantAds:I,priv:A,hourOfDay:N,physicalCountry:t??"",physicalState:c??"",campaign:(0,v.getCampaign)()??void 0,tpcc:(0,v.getTpcc)(),linkReferral:(0,v.getLinkReferral)(),experimentJoinList:n,weatherMode:"normal",samsungVersion:(0,v.getSamsungVersion)(),appVersion:"aacd3e67acaea153a697c1fafdbb2a7a31b520e7".slice(0,10)};try{let e=(0,h.trackUserLoggedout)(M);return _.info('Hightouch: Event "user-loggedout" tracked'),e}catch(e){_.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,p,r,i,a,n,o,s])})(),{logout:D}=(0,y.useUserIdentity)();return async()=>{try{return await o.upsxClient.auth.logout(),await (0,R.settleWithin)(()=>N(),1e3),O(),await (0,P.tryCatch)(D()),(0,T.setSignInTraits)(L),(0,u.regenerateMetricsSession)(),p(s.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,n.upsxCookieDomain)(window.location.hostname)}),e&&k({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}],731672)},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])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),a=e.i(310847);let n=Object.freeze({});function o(){let e=(0,t.useSetAtom)(a.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let a=[];t.placeId&&a.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&a.push((0,i.formatGeocode)(t.geocode)),0!==a.length&&e(e=>{let t=e??{};if(!a.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of a)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(a.wxuUserLocationFeatureIdsAtom)??n,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),a=e.i(310847),n=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,n.useMemo)(()=>l?[...l].sort((e,t)=>e.position-t.position):o,[l]),[c,d]=(0,t.useAtom)(a.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(a.wxuUserRecentAddressesAtom),f=(0,n.useCallback)(t=>{let r={...t,position:Math.max(...u.map(e=>e.position),0)+1};e({locations:[...u,r]})},[u,e]),p=(0,n.useCallback)(t=>{e({locations:u.filter(e=>e.placeID!==t)})},[u,e]),g=(0,n.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),S=(0,n.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),A=(0,n.useCallback)(()=>{d([])},[d]),w=(0,n.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),C=(0,n.useCallback)(e=>{p(e),S(e),w(e)},[p,S,w]);return{addFavoriteLocation:f,removeFavoriteLocation:p,addRecentLocation:g,removeRecentLocation:S,removeRecentAddress:w,clearRecentLocations:A,deleteLocation:C,recentLocations:c||s,favoriteLocations:u}}])},402525,e=>{"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:a}=await (0,r.tryCatch)(t);a||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 a=(0,i.useStore)(),n=(0,t.useRef)(e);n.current=e,(0,t.useEffect)(()=>{for(let[e,t]of n.current)a.get(e)!==t&&a.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])},553329,e=>{"use strict";async function t(e){try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}}e.s(["tryCatch",0,t])}]);