(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,736593,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return u},getImageProps:function(){return c}};for(var l in a)Object.defineProperty(r,l,{enumerable:!0,get:a[l]});let i=e.r(836437),o=e.r(507631),n=e.r(56930),s=i._(e.r(165613));function c(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1280,1600],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=n.Image},749621,(e,t,r)=>{t.exports=e.r(736593)},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},329017,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(725287),a=e.i(546446),l=e.i(540768),i=e.i(682142),o=e.i(782937),n=e.i(695881),s=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),p=e.i(695203),f=e.i(158662),m=e.i(358273),g=e.i(122124),y=e.i(777638),h=e.i(727365),w=e.i(896363),b=e.i(924776),C=e.i(409628),S=e.i(605781),v=e.i(289681);let x=(0,n.createLogger)("useTrackInteraction"),A=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),P=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]);e.s(["useTrackInteraction",0,()=>{let e=(0,a.useAtomValue)(d.pageIdAtom),n=(0,a.useAtomValue)(u.pageLocaleAtom),I=(0,a.useAtomValue)(p.deviceClassAtom),k=(0,a.useAtomValue)(f.experimentJoinListAtom),L=(0,r.usePathname)(),{location:_}=(0,c.useLocation)(),D=(0,b.useIsHightouchReady)(),E=(0,t.useCallback)(t=>{let r=(0,i.getCICookie)(),a=r?.["TWC-GeoIP-Country"]??(0,l.getCookie)("twc-location-country"),s=r?.["TWC-GeoIP-Region"]??(0,l.getCookie)("twc-location-region"),c=r?.["TWC-Privacy"]??(0,l.getCookie)("twc-privacy"),u=window.DprSdk?.getGdprConsentOptInsString()??"",d=window.DprSdk?.getCcpaSaleOptInString()??"",p=window.navigator?.globalPrivacyControl??!1,f=u?.includes("functional-technology")??!1,b=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,S=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,x=(0,v.getConsentAuthorization)("sale-of-data"),D=(0,v.getConsentAuthorization)("sensitive-data"),E=navigator?.cookieEnabled??!1,j=(0,l.getCookie)("partner")||"",O=(0,o.getPartnerByPattern)(j)??j,T=(0,m.getMetricsSession)(),N=T?.sessionId||"",U=new Date(T?.sessionStartTime||0).toISOString(),F=new Date,R=F.getHours(),$=C.WEEK_DAYS[F.getDay()]??"",M=e&&["article","video"].includes(e)?L?.split("/").slice(0,-1).join("/")??"":(0,g.getAnonymizedPath)(L??""),z=(0,h.normalizeWlocType)(_?.type),W=_?.featureSource??null;return{moduleId:t.moduleId??"",moduleTitle:t.moduleTitle??null,modulePosition:t.modulePosition,interactionType:t.interactionType??"",interactionElement:t.interactionElement??null,lockedContent:t.lockedContent??"false",destinationPageId:t.destinationPageId??null,upsellCampaign:t.upsellCampaign??null,upsellCreative:t.upsellCreative??null,upsellPlacement:t.upsellPlacement,pageId:e??"",url:M,referrer:document.referrer,locale:n,deviceClass:I,partner:O,sessionId:N,sessionStartTime:U,siteMode:"normal",dayOfWeek:$,hourOfDay:R,regime:c??"",cookiesEnabled:E,gpcSignalOptOut:p,functionalTechnologies:f,geographicallyRelevantAds:b,interestBasedAds:S,priv:u,privProducts:d,saleOfDataAuthorization:x,sensitiveDataAuthorization:D,campaign:(0,y.getCampaign)(),experimentJoinList:k,weatherMode:"normal",physicalCountry:a??"",physicalState:s??"",wlocCity:_?.city??null,wlocCountry:_?.countryCode??null,wlocState:_?.adminDistrictCode??null,wlocDMA:_?.dmaCd??null,wlocId:_?.placeId??null,wlocFeatureId:_?.featureId??null,wlocFeatureSource:null!=W&&P.has(W)?W:void 0,wlocTags:_?.tags?.length?(0,w.parseArrayToString)(_.tags):null,wlocType:null!==z&&A.has(z)?z:void 0,samsungVersion:(0,y.getSamsungVersion)(),appVersion:"941bb9e178313d3f20f5cd9e98ec4eb4ab71ebff".slice(0,10)}},[e,n,I,k,L,_]);return(0,t.useCallback)(e=>{if(s.default){if(!D)return void x.warn('Hightouch: Event "interaction" skipped - SDK not ready');try{(0,S.trackInteraction)(E(e)),x.info('Hightouch: Event "interaction" tracked')}catch(e){x.error('Hightouch: Event "interaction" failed',{error:e})}}},[D,E])}])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let a=new Set,l=0,i=()=>"function"==typeof window.mParticle?.init,o=()=>{void 0!==t&&(clearInterval(t),t=void 0)},n=()=>{if(!i()||(o(),0===a.size))return;let e=[...a];for(let t of(a.clear(),e))t()},s=()=>{void 0===t&&(l=0,t=setInterval(()=>{l+=100,n(),l>=3e4&&o()},100))},c=e=>(a.add(e),s(),()=>{a.delete(e)}),u=e=>i()?(e(),()=>{}):c(e),d=e=>i()?()=>{}:c(e),p=()=>!1;e.s(["subscribeSdkLoaded",0,u,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,i,p),"watchForSdkLoad",0,e=>{if("u"{};if(i())return n(),()=>{};s();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>n();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let f=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),m=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(f,m,g)],947118)},598513,e=>{"use strict";var t=e.i(487709),r=e.i(737801),a=e.i(329017),l=e.i(247865);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",i=(0,r.useEventAttributes)(),o=(0,a.useTrackInteraction)();return(0,l.useCallback)((r,a={})=>{o(r);let l={...i,...r};if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,l),a.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,l)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[i,o])}])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},849177,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsDisabledAtom",0,t])},935807,e=>{"use strict";function t(e,r=[],l=!1,i="US",o){let n,s=r.find(t=>t.placeID===e.placeId);if(s&&l){let t=s.userTag||s.name;if(t&&"Other"!==t){let r=e.displayName,l=a(e,i,""),o="address"===e.type?e.address:void 0;if(t!==r&&t!==l&&t!==o)return t}}if(e?.disputedCountries)n=e.displayName||"";else{switch(e?.type){case"address":n=e?.address?.split(",")[0]?.trim()||"";break;case"city":n=e?.locale?.locale2||"";break;case"locality":n=e?.locale?.locale3||"";break;case"neighborhood":n=e?.locale?.locale4||"";break;case"airport":n=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";n=o?`${t} ${r}`.trim():`${t}`.trim();break}default:n=e?.displayName||""}0===n.length&&(n=e?.displayName||"")}return n}function r(e,t=[],l=!1,i="US",o){let n,s=t.find(t=>t.placeID===e.placeId);if(s&&l){let t=s.userTag||s.name;if(t&&"Other"!==t){let r=e.displayName,l=a(e,i,"");if(t!==r&&t!==l)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let r=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,r].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",a=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${a}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,i)}}if(e?.disputedCountries)n=e?.displayName||"";else{let t=i===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",a=e?.postalCode||"",l=e.city||"";switch(e?.type){case"address":n=[l,r,t].filter(Boolean).join(", ");break;case"city":default:n=[r,t].filter(Boolean).join(", ");break;case"locality":n=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":n=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let l=r||e?.locale?.locale2||"";n=[o?`${l} ${a}`.trim():l,t].filter(Boolean).join(", ")}}}return n}function a(e,t,r){let{displayName:a,adminDistrictCode:l,adminDistrict:i,countryCode:o,disputedArea:n,country:s}=e,c=[];return a&&c.push(a),"IL"!==t&&(l?c.push(l):i&&c.push(i)),o!==t&&!1===n&&s&&c.push(s),c.join(r)}e.s(["getLocationContext",0,r,"getLocationName",0,t,"getLocationPresentationName",0,function(e,a=[],l=!1,i="US"){let o=t(e,a,l,i,!1),n=r(e,a,l,i,!0),s=e?.separator?e?.separator:o&&n?", ":"";return`${o}${s}${n}`.trim()}])},919101,e=>{"use strict";e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let r=t.find(t=>t.placeId===e.placeId);return r?{...e,displayName:r.address,address:r.address}: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")}])},697380,e=>{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedBottomAdHeightAtom",0,t])},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 a=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:l,page:i,onUpdateData:o,onSetPageData:n}){let{updateComponentData:s,setPageData:c}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=o||s,p=n||c;return(0,t.useEffect)(()=>{if(l)return a.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(l),hasPerformance:!!l.performance,hasContext:!!l.context}),d(e,{...l,_collectedAt:new Date().toISOString()}),()=>{a.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,l,d]),(0,t.useEffect)(()=>{i&&!u.current&&(a.lifecycle("Setting page metadata",{title:i.title,assetName:i.assetName,collection:i.collection}),p({...i,_updatedAt:new Date().toISOString()}),u.current=!0)},[i,p]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let a=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,a],674339),e.s(["useDebugSystem",0,function(){let[e,l]=(0,t.useAtom)(a),i=(0,r.useCallback)((e,t)=>{l(r=>{let a=r?.[e]||{},l="object"==typeof t&&null!==t&&"object"==typeof a?{...a,...t}:t;return{...r,[e]:l}})},[l]),o=(0,r.useCallback)((e,t)=>{l(r=>{let a=r||{timestamp:new Date().toISOString()},l=a.components||{};if(null===t){let t={...l};return delete t[e],{...a,components:t}}return{...a,components:{...l,[e]:t}}})},[l]),n=(0,r.useCallback)(e=>{i("page",e)},[i]),s=(0,r.useCallback)(e=>{i("route",e)},[i]),c=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&i(e,t)})},[i]);return{debugData:e,updateSection:i,updateComponentData:o,setPageData:n,clearAllDebugData:(0,r.useCallback)(()=>{l({timestamp:new Date().toISOString()})},[l]),updateRouteInfo:s,updatePageDebug:c}}],609858)},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},37429,e=>{"use strict";e.i(288906);var t=e.i(902875),r=e.i(247865),a=e.i(749621),l=e.i(632137);let i={square:"Square (1:1)",video:"Video (16:9)",goldenPortrait:"Golden Portrait (1:1.618)",goldenLandscape:"Golden Landscape (1.618:1)","16/9":"16:9","8/5":"8:5","4/3":"4:3","3/2":"3:2","2/3":"2/3","1/1":"1:1",auto:"Auto"};["square","video","goldenPortrait","goldenLandscape","16/9","8/5","4/3","3/2","2/3","1/1","auto"].map(e=>({label:i[e],value:e}));let o={square:"aspect-square",video:"aspect-video",goldenPortrait:"aspect-[1/1.618]",goldenLandscape:"aspect-[1.618/1]","16/9":"aspect-[16/9]","8/5":"aspect-[8/5]","4/3":"aspect-[4/3]","3/2":"aspect-[3/2]","2/3":"aspect-[2/3]","1/1":"aspect-[1/1]",auto:"h-full w-full"},n=(0,r.forwardRef)(({src:e,alt:r,shadow:i,rounded:n=!0,className:s,wrapperClassName:c,width:u,height:d,quality:p,priority:f=!1,loading:m,isFetchPriority:g=!1,objectFit:y,fill:h=!1,sizes:w,aspectRatio:b,isAnimated:C=!1,unoptimized:S,...v},x)=>{if(!e)return null;let A=C||e.toLowerCase().endsWith(".gif"),P=h||!!b,I=y??(b?"cover":"contain"),k=b?o[b]:"",L=(0,t.jsx)(a.default,{ref:x,src:e,alt:r,width:P?void 0:u??320,height:P?void 0:d??180,quality:p,priority:f,loading:m,fetchPriority:g?"high":void 0,fill:P,sizes:w,unoptimized:S??A,className:(0,l.cn)({"shadow-md":i,"rounded-lg":n,"object-contain":"contain"===I,"object-cover":"cover"===I,"object-fill":"fill"===I,"object-none":"none"===I,"object-scale-down":"scale-down"===I,"h-auto w-full":!P},s),...v});return P?(0,t.jsx)("div",{className:(0,l.cn)("relative overflow-hidden",k,!b&&"h-full w-full",c),children:L}):L});n.displayName="Image",e.s(["ASPECT_RATIO_CLASSES",0,o,"Image",0,n,"default",0,n])},429745,e=>{"use strict";var t=e.i(902875),r=e.i(62544),a=e.i(710746),l=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:i,title:o,headline:n,description:s,imageUrl:c,imageAlt:u="",imageContent:d,getAppHref:p,getAppLabel:f="Get the app",onGetAppClick:m,learnMoreHref:g,learnMoreLabel:y="Learn more",onLearnMoreClick:h,closeLabel:w="Close",onCloseClick:b,dismissLabel:C,onDismissClick:S})=>(0,t.jsx)(r.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(r.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,onOpenAutoFocus:e=>{e.preventDefault(),e.currentTarget.focus()},className:(0,l.cn)("flex flex-col gap-6 overflow-y-auto border-0 border-b border-black/10 bg-white px-8 py-6","pb-[calc(1.5rem+env(safe-area-inset-bottom))]","fixed inset-x-0 top-auto bottom-0 max-h-[90dvh] w-full max-w-none translate-x-0 translate-y-0 sm:max-w-none","rounded-t-3xl rounded-b-none","data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"),children:[(0,t.jsx)(r.DialogClose,{"aria-label":w,onClick:b,className:"absolute top-4 left-4 z-10 flex size-8 cursor-pointer items-center justify-center rounded-2xl bg-[#f5f5f5] text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(a.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),o?(0,t.jsx)(r.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:o}):(0,t.jsx)(r.DialogTitle,{className:"sr-only",children:n}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[d||(c?(0,t.jsx)("div",{className:"relative h-40 w-full",children:(0,t.jsx)("img",{src:c,alt:u,className:"size-full rounded-lg object-cover"})}):null),(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,t.jsx)("p",{className:"text-2xl font-extrabold text-[#252422]",children:n}),(0,t.jsx)("p",{className:"text-base font-medium text-[#676767]",children:s})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("a",{href:p,onClick:m,className:"flex h-12 w-40 items-center justify-center rounded-lg bg-[#252422] text-base font-bold text-white hover:bg-[#3a3a3a] active:bg-black",children:f}),g&&(0,t.jsx)("a",{href:g,onClick:h,className:"flex h-12 w-full max-w-60 items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:y}),!g&&C&&(0,t.jsx)(r.DialogClose,{onClick:S,className:"flex h-12 w-full max-w-60 cursor-pointer items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:C})]})]})})])},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])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),a=e.i(301904),l=e.i(905059),i=e.i(901351),o=e.i(310847),n=e.i(528600),s=e.i(617874),c=e.i(540768),u=e.i(553329),d=e.i(247865),p=e.i(245943);let f=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:r}}=(0,n.useUser)(),a=(0,t.useSetAtom)(l.mapLayerOrderAtom),o=(0,d.useCallback)(async t=>{if(!r)return!1;let{error:a}=await (0,u.tryCatch)(i.upsxClient.preference.updateMapSettings(e,t));if(!a)return!0;if(a instanceof p.APIError&&404===a.code){let{error:r}=await (0,u.tryCatch)(i.upsxClient.preference.createMapSettings(e,t));return!r||(f.warn("Failed to create map settings",r),!1)}return f.warn("Failed to update map settings",a),!1},[r,e]),s=(0,d.useCallback)((e,t)=>{a(e?.layerOrder??t)},[a]),c=(0,d.useCallback)(async t=>{if(!r||0===t.length)return!1;a(t);let{data:l,error:o}=await (0,u.tryCatch)(i.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));if(!o)return s(l,t),!0;if(o instanceof p.APIError&&404===o.code){let{data:r,error:a}=await (0,u.tryCatch)(i.upsxClient.preference.createMapSettings(e,{layerOrder:t}));if(!a)return s(r,t),!0;if(a instanceof p.APIError&&409===a.code){let{data:r,error:a}=await (0,u.tryCatch)(i.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));return a?(f.warn("Failed to reorder map layers after create",a),!1):(s(r,t),!0)}return f.warn("Failed to create map settings layer order",a),!1}return f.warn("Failed to reorder map layers",o),!1},[r,e,s,a]),m=(0,d.useCallback)(async(t,l,o)=>{if(!r)return!1;a(o);let{data:n,error:d}=await (0,u.tryCatch)(i.upsxClient.preference.moveMapSettingsLayer(e,t,{placement:l}));return d?d instanceof p.APIError&&(404===d.code||400===d.code)?c(o):(f.warn("Failed to move map layer",d),!1):(s(n,o),!0)},[r,e,s,c,a]);return{saveMapSettings:o,saveLayerOrder:c,moveLayer:m}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,n.useUser)(),[d,p]=(0,t.useAtom)(r.userPreferencesAtom),[f,m]=(0,t.useAtom)(o.wxuUserPreferenceAtom),g=(0,t.useSetAtom)(l.mapLayerOrderAtom),y=async()=>{let{data:e,error:t}=await (0,u.tryCatch)(i.upsxClient.preference.getMapSettings("twc"));if(t)return{ok:!1,mapSettings:null,layerOrder:null};if(!e)return{ok:!0,mapSettings:null,layerOrder:null};let{animationSpeed:r,autoplay:a,opacity:l,roadOverlay:o,style:n}=e,s={...void 0!==r&&{animationSpeed:r},...void 0!==a&&{autoplay:a},...void 0!==l&&{opacity:l},...void 0!==o&&{roadOverlay:o},...void 0!==n&&{style:n}};return{ok:!0,mapSettings:Object.keys(s).length>0?s:null,layerOrder:e.layerOrder?.length?e.layerOrder:null}},h=async e=>{try{await i.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},w=async(t,r=!0)=>{try{let a,l=(a={...d,...t},p(a),m({...f,...t,locations:a.locations}),a);if(t?.unit){let e=(0,s.unitsSystemByName)(t.unit),r=e?.code||"e";(0,c.setCookie)(s.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await h(l),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let[e,t]=await Promise.all([i.upsxClient.preference.getPreference(),y()]);if(!e?.userID)return null;let{mapSettings:r,layerOrder:l,ok:o}=t;o&&g(l);let{mapSettings:n,...s}=e,c={...s,mapSettings:{...a.DEFAULT_MAP_SETTINGS,...r}};return w(c,!1),c}catch{return null}},updatePreferences:w}}],776169)},726812,16730,e=>{"use strict";let t="com.weather.Weather",r="id295646461",a="https://app.appsflyer.com",l="weather.com",i=`https://apps.apple.com/us/app/the-weather-channel/${r}`,o=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,l,"APPSFLYER_HOST",0,a,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,i,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,r,"PLAY_STORE_URL",0,o],726812);var n=e.i(288906);e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:i,currentUrl:o,allowAppsFlyer:s,deepLinkValue:c}){if(!s||!i||null===e)return"";let u="android"===e?t:r,d=n.default.env.NEXT_PUBLIC_APPSFLYER_ONELINK_URL,p=d||`${a}/${u}`,f=encodeURIComponent(i.replace(/ /g,"_")),m=`${p}?pid=WWW&af_adset=${f}&c=${l}`;return c&&(m+=`&deep_link_value=${encodeURIComponent(c)}`),!d&&"ios"===e&&o&&(m+=`&af_ios_fallback=${encodeURIComponent(o)}`),m}],16730)},881282,e=>{"use strict";e.s(["getPlatform",0,function(e){return/iPhone|iPod|iPad/.test(e)?"ios":/Android/.test(e)?"android":null}])},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 a=new URL(e);return t&&a.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&a.searchParams.set("deep_link_value",r),a.toString()}])},677691,e=>{"use strict";var t=e.i(247865),r=e.i(726812),a=e.i(16730),l=e.i(881282),i=e.i(546446),o=e.i(402525),n=e.i(216809);e.s(["useAppInstallLink",0,function(e,s){let[c,u]=(0,t.useState)(null),[d,p]=(0,t.useState)(null),f=(0,i.useAtomValue)(o.smartScriptClickUrlAtom),m=(0,n.useAppsFlyerConsent)();(0,t.useEffect)(()=>{u((0,l.getPlatform)(navigator.userAgent)),p(window.location.href)},[]);let g=(0,a.getAppsFlyerLink)({platform:c,trackAdset:e,currentUrl:d,allowAppsFlyer:m,deepLinkValue:s}),y="android"===c?r.PLAY_STORE_URL:r.APP_STORE_URL,h=f?(0,o.withCtaAttribution)(f,{trackAdset:e,deepLinkValue:s}):"";return{href:(m&&null!==c?h||g:"")||y,platform:c}}])},216809,e=>{"use strict";var t=e.i(247865),r=e.i(553329);e.s(["useAppsFlyerConsent",0,function(){let[e,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:l}=await (0,r.tryCatch)(t);l||e||a(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])},792461,e=>{"use strict";var t=e.i(247865);e.s(["useRefMemo",0,e=>{let r=(0,t.useRef)(e);return r.current=e,r}])}]);