(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),o=e.i(405341),n=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,o.getCjConfig)();e&&(0,n.isCjEligible)()&&a(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),o=e.i(553329),n=e.i(405341),a=e.i(829065);let s=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:c})=>{let u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||u.current||!i)return;let t=(0,n.getCjConfig)();t&&(0,a.isCjEligible)()&&(u.current=!0,(0,o.tryCatch)((async()=>{var e;let o,a,s;return e={orderId:i,amount:l,actionTrackerId:c?n.CJ_ACTION_ID_TRIAL_SIGNUP:n.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(o=window).cj=o.cj||{},o.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(),(a=document.createElement("script")).id="cjapitag",a.async=!0,a.src=t.tagSrc,s=document.getElementsByTagName("script")[0],void(s?.parentNode?s.parentNode.insertBefore(a,s):document.body.appendChild(a))})()).then(({error:e})=>{e&&s.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,c])}],560542)},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:i}={}){let o,n=null,a=null!=i&&i.includes("leading"),s=null==i||i.includes("trailing"),l=()=>{null!==n&&(e.apply(o,n),o=void 0,n=null)},c=null,u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,s&&l(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),o=void 0,n=null},g=function(...e){if(r?.aborted)return;o=this,n=e;let t=null==c;u(),a&&t&&l()};return g.schedule=u,g.cancel=d,g.flush=()=>{l()},r?.addEventListener("abort",d,{once:!0}),g}])},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 a.findSourceMapURL}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});let n=e.r(276247),a=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),o=e.i(546446),n=e.i(540768),a=e.i(682142),s=e.i(782937),l=e.i(695881),c=e.i(333350),u=e.i(64412),d=e.i(950771),g=e.i(537989),m=e.i(695203),p=e.i(158662),f=e.i(358273),C=e.i(122124),A=e.i(777638),S=e.i(924776),w=e.i(409628),I=e.i(605781),h=e.i(289681);let E=(0,l.createLogger)("useTrackString");e.s(["useTrackString",0,()=>{let e=(0,o.useAtomValue)(g.pageIdAtom),t=(0,o.useAtomValue)(d.pageLocaleAtom),l=(0,o.useAtomValue)(m.deviceClassAtom),v=(0,o.useAtomValue)(p.experimentJoinListAtom),y=(0,i.usePathname)(),{location:b}=(0,u.useLocation)(),T=(0,S.useIsHightouchReady)(),k=(0,r.useCallback)(r=>{let i=(0,a.getCICookie)(),o=i?.["TWC-GeoIP-Country"]??(0,n.getCookie)("twc-location-country"),c=i?.["TWC-GeoIP-Region"]??(0,n.getCookie)("twc-location-region"),u=i?.["TWC-Privacy"]??(0,n.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",g=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,p=d?.includes("functional-technology")??!1,S=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,I=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,E=(0,h.getConsentAuthorization)("sale-of-data"),T=(0,h.getConsentAuthorization)("sensitive-data"),k=navigator?.cookieEnabled??!1,_=(0,n.getCookie)("partner")||"",P=(0,s.getPartnerByPattern)(_)??_,D=(0,f.getMetricsSession)(),R=D?.sessionId||"",N=new Date(D?.sessionStartTime||0).toISOString(),L=new Date,O=L.getHours(),U=w.WEEK_DAYS[L.getDay()]??"",V="article"===e||"video"===e?(0,C.stripLastPartOfSlug)(y??""):(0,C.getAnonymizedPath)(y??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:V,referrer:document.referrer,locale:t,deviceClass:l,partner:P,sessionId:R,sessionStartTime:N,siteMode:"normal",dayOfWeek:U,hourOfDay:O,regime:u??"",cookiesEnabled:k,gpcSignalOptOut:m,functionalTechnologies:p,geographicallyRelevantAds:S,interestBasedAds:I,priv:d,privProducts:g,saleOfData:E??void 0,saleOfDataAuthorization:E,sensitiveDataAuthorization:T,campaign:(0,A.getCampaign)(),experimentJoinList:v,weatherMode:"normal",physicalCountry:o??"",physicalState:c??"",wlocCity:b?.city??null,wlocCountry:b?.countryCode??null,wlocState:b?.adminDistrictCode??null,wlocDMA:b?.dmaCd??null,samsungVersion:(0,A.getSamsungVersion)(),appVersion:"f8b2958c3bf4e34f803045a5250abc259d5b13bb".slice(0,10)}},[e,t,l,v,y,b]);return(0,r.useCallback)(e=>{if(c.default&&e){if(!T)return void E.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,I.trackTrackString)(k(e)),E.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){E.error('Hightouch: Event "track-string" failed',{error:e})}}},[T,k])}],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)},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),o=e.i(540768),n=e.i(682142),a=e.i(782937),s=e.i(695881),l=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),g=e.i(695203),m=e.i(158662),p=e.i(358273),f=e.i(122124),C=e.i(727365),A=e.i(896363),S=e.i(777638),w=e.i(924776),I=e.i(409628),h=e.i(605781),E=e.i(289681);let v=(0,s.createLogger)("useTrackAssetViewed"),y=[],b=null;function T(e){try{(0,h.trackAssetViewed)(e),v.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){v.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{b?.(e)}catch(e){v.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),s=(0,i.useAtomValue)(d.pageIdAtom),h=(0,i.useAtomValue)(u.pageLocaleAtom),v=(0,i.useAtomValue)(g.deviceClassAtom),b=(0,i.useAtomValue)(m.experimentJoinListAtom),{location:k}=(0,c.useLocation)(),_=(0,w.useIsHightouchReady)(),P=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:i,title:l,pos:c,tagsKeyword:u})=>{let d=(0,n.getCICookie)(),g=d?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),m=d?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),w=d?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),y=window.DprSdk?.getGdprConsentOptInsString()??"",T=window.DprSdk?.getCcpaSaleOptInString()??"",_=window.navigator?.globalPrivacyControl??!1,P=y?.includes("functional-technology")??!1,D=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,R=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,N=(0,E.getConsentAuthorization)("sale-of-data"),L=(0,E.getConsentAuthorization)("sensitive-data"),O=navigator?.cookieEnabled??!1,U=(0,o.getCookie)("partner")||"",V=(0,a.getPartnerByPattern)(U)??U,M=(0,p.getMetricsSession)(),j=M?.sessionId||"",G=new Date(M?.sessionStartTime||0).toISOString(),H=new Date,F=H.getHours(),x=I.WEEK_DAYS[H.getDay()]??"",W="article"===s||"video"===s?(0,f.stripLastPartOfSlug)(e??""):(0,f.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:i,title:l,pos:String(c),tagsKeyword:u??null,pageId:s??"",url:W,referrer:document.referrer,locale:h,deviceClass:v,partner:V,sessionId:j,sessionStartTime:G,siteMode:"normal",dayOfWeek:x,hourOfDay:F,regime:w??"",cookiesEnabled:O,gpcSignalOptOut:_,functionalTechnologies:P,geographicallyRelevantAds:D,interestBasedAds:R,priv:y,privProducts:T,saleOfDataAuthorization:N,sensitiveDataAuthorization:L,campaign:(0,S.getCampaign)(),experimentJoinList:b,weatherMode:"normal",physicalCountry:g??"",physicalState:m??"",wlocCity:k?.city??null,wlocCountry:k?.countryCode??null,wlocState:k?.adminDistrictCode??null,wlocDMA:k?.dmaCd??null,wlocId:k?.placeId??null,wlocFeatureId:k?.featureId??null,wlocTags:k?.tags?.length?(0,A.parseArrayToString)(k.tags):null,wlocType:(0,C.normalizeWlocType)(k?.type),samsungVersion:(0,S.getSamsungVersion)(),appVersion:"f8b2958c3bf4e34f803045a5250abc259d5b13bb".slice(0,10)}},[e,s,h,v,b,k]);return(0,t.useEffect)(()=>{if(!_||0===y.length)return;let e=y;y=[],e.forEach(T)},[_]),(0,t.useCallback)(e=>{if(!l.default)return;let t=P(e);_?T(t):y.push(t)},[_,P])})();(0,t.useEffect)(()=>(b=e,()=>{b===e&&(b=null)}),[e])}])},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),i=e.i(546446),o=e.i(293163),n=e.i(160317),a=e.i(382602),s=e.i(540768),l=e.i(310847),c=e.i(333350),u=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:g,subscriptionTier:m}}=(0,u.useUser)(),[p,f]=(0,t.useState)(!1),[C,A]=(0,t.useState)(!1),S=g??!1,w=(0,n.getSubscriptionTierKey)(m),I=(0,i.useAtomValue)(a.userFirstNameAtom),h=(0,i.useAtomValue)(a.userGenderAtom),E=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),v=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),y=c.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,b=c.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,T=(0,s.getCookie)("subscription")??"",{productID:k=null,expirationDateTime:_=null,transactionDateTime:P=null,firstTransactionDateTime:D=null,autoRenew:R=null,price:N=null,productName:L=null}=(0,o.jwtDecoder)(T)||{},O=(0,t.useMemo)(()=>({premium:S,premiumProductTier:w,premiumExpiration:_,premiumStart:P,premiumFirstTransactionDate:D,premiumProductId:k,premiumProductAutoRenew:R,premiumPrice:N,premiumProductName:L,isRegisteredUser:d||v||!1,isLoggedIn:d,"Amplitude.device_id":E,$Gender:h,$FirstName:I,saleOfDataAuthorization:y,sensitiveDataAuthorization:b,devUser:!1}),[S,w,_,P,D,k,R,N,L,E,d,v,I,h,y,b]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=O;(0,o.areObjectValuesDefined)(r)&&!p&&f(!0)},[O,p]);let U=(0,t.useCallback)(()=>{for(let e in O)void 0===O[e]&&delete O[e];if(e&&p&&!C){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(O),A(!0),console.debug("MParticle: User attributes set - ",O)}},[e,O,p,C]);return{userAttributes:O,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:U,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])}}])},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")}])},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),o=e.i(889753),n=e.i(810564),a=e.i(45846),s=e.i(284007),l=e.i(756227),c=e.i(358273),u=e.i(247865),d=e.i(540768),g=e.i(682142),m=e.i(782937),p=e.i(695881),f=e.i(333350),C=e.i(64412),A=e.i(950771),S=e.i(537989),w=e.i(695203),I=e.i(158662),h=e.i(777638),E=e.i(924776),v=e.i(409628),y=e.i(605781);let b=(0,p.createLogger)("useUserLoggedOut");e.s(["useUserLogout",0,function({reload:e=!0}={}){let p=(0,t.useSetAtom)(o.userPreferencesAtom),T=(0,l.useResetAuthState)(),{refresh:k}=(0,i.usePageNavigation)(),_=((e={})=>{let r=(0,t.useAtomValue)(S.pageIdAtom),i=(0,t.useAtomValue)(A.pageLocaleAtom),o=(0,t.useAtomValue)(w.deviceClassAtom),n=(0,t.useAtomValue)(I.experimentJoinListAtom),{location:a}=(0,C.useLocation)(),s=(0,E.useIsHightouchReady)(),{url:l,logoutMethod:p}=e;return(0,u.useCallback)(()=>{if(!f.default||!s)return;let e=(0,g.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,d.getCookie)("twc-location-country"),u=e?.["TWC-GeoIP-Region"]??(0,d.getCookie)("twc-location-region"),C=e?.["TWC-Privacy"]??(0,d.getCookie)("twc-privacy"),A=window.DprSdk?.getGdprConsentOptInsString()??"",S=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,I=A?.includes("functional-technology")??!1,E=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,T=navigator?.cookieEnabled??!1,k=(0,d.getCookie)("partner")||"",_=(0,m.getPartnerByPattern)(k)??k,P=(0,c.getMetricsSession)(),D=P?.sessionId||"",R=P?.sessionStartTime||0,N=new Date,L=N.getHours(),O=v.WEEK_DAYS[N.getDay()]??"",U=-N.getTimezoneOffset()/60,V=document.referrer,M={url:l??window.location.pathname,logoutMethod:p??"manual",referrer:V,privProducts:S,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:o,sessionId:D,sessionStartTime:R,partner:_,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,dayOfWeek:O,regime:C??"",cookiesEnabled:T,gpcSignalOptOut:w,functionalTechnologies:I,geographicallyRelevantAds:E,priv:A,hourOfDay:L,physicalCountry:t??"",physicalState:u??"",campaign:(0,h.getCampaign)()??void 0,tpcc:(0,h.getTpcc)(),linkReferral:(0,h.getLinkReferral)(),experimentJoinList:n,weatherMode:"normal",samsungVersion:(0,h.getSamsungVersion)(),appVersion:"f8b2958c3bf4e34f803045a5250abc259d5b13bb".slice(0,10)};try{(0,y.trackUserLoggedout)(M),b.info('Hightouch: Event "user-loggedout" tracked')}catch(e){b.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,p,r,i,o,n,a,s])})();return async()=>{try{return(0,c.regenerateMetricsSession)(),await a.upsxClient.auth.logout(),_(),T(),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)},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let i=(0,t.atom)(e=>e(r.userProfileAtom)?.email),o=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),n=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,i,"userFirstNameAtom",0,o,"userGenderAtom",0,n])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),o=e.i(310847);let n=Object.freeze({});function a(){let e=(0,t.useSetAtom)(o.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let o=[];t.placeId&&o.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&o.push((0,i.formatGeocode)(t.geocode)),0!==o.length&&e(e=>{let t=e??{};if(!o.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of o)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(o.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:a()}},"useRecordFeatureId",0,a])},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(981030),o=e.i(889753);let n=(0,e.i(174960).focusAtom)(o.userPreferencesAtom,e=>e.prop("locations")),a=(0,i.atom)(e=>e(o.userPreferencesAtom)?.locations||[]);(0,i.atom)(e=>{let t=e(a);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,i.atom)(e=>(e(a)?.length||0)>0),e.s(["userLocationsAtom",0,n,"userLocationsGetAtom",0,a],579310);var s=e.i(310847),l=e.i(247865);let c=Object.freeze([]),u=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),i=(0,t.useAtomValue)(n),o=(0,l.useMemo)(()=>i?[...i].sort((e,t)=>e.position-t.position):c,[i]),[a,d]=(0,t.useAtom)(s.wxuUserRecentLocationsAtom),[,g]=(0,t.useAtom)(s.wxuUserRecentAddressesAtom),m=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...o.map(e=>e.position),0)+1};e({locations:[...o,r]})},[o,e]),p=(0,l.useCallback)(t=>{e({locations:o.filter(e=>e.placeID!==t)})},[o,e]),f=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),C=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),A=(0,l.useCallback)(()=>{d([])},[d]),S=(0,l.useCallback)(e=>{g(t=>(t||[]).filter(t=>t.placeId!==e))},[g]),w=(0,l.useCallback)(e=>{p(e),C(e),S(e)},[p,C,S]);return{addFavoriteLocation:m,removeFavoriteLocation:p,addRecentLocation:f,removeRecentLocation:C,removeRecentAddress:S,clearRecentLocations:A,deleteLocation:w,recentLocations:a||u,favoriteLocations:o}}],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]}])},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()}])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},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:o}=await (0,r.tryCatch)(t);o||e||i(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])}]);