(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,543836,e=>{"use strict";var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),r=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return n(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function i(e){if(!r)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function a(e){return"IFRAME"===e.tagName}n(o,"composeEventHandlers"),n(function(e){if(!r)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(i,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:r}=i(t);if(!r?.nodeName)return null;if(a(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=i(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),n(a,"isFrame"),e.s(["composeEventHandlers",0,o])},899300,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},271359,e=>{"use strict";var t=e.i(247865),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(247865),n=e.i(902875),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,r=[]){let s=[];function u(r,i){let a=t.createContext(i);a.displayName=r+"Context";let u=s.length;s=[...s,i];let l=o(r=>{let{scope:o,children:i,...s}=r,l=o?.[e]?.[u]||a,c=t.useMemo(()=>s,Object.values(s));return(0,n.jsx)(l.Provider,{value:c,children:i})},"Provider");function c(n,o,s={}){let{optional:l=!1}=s,d=o?.[e]?.[u]||a,f=t.useContext(d);if(f)return f;if(void 0!==i)return i;if(!l)throw Error(`\`${n}\` must be used within \`${r}\``)}return l.displayName=r+"Provider",o(c,"useContext"),[l,c]}o(u,"createContext");let l=o(()=>{let n=s.map(e=>t.createContext(e));return o(function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return l.scopeName=e,[u,a(l,...r)]}function a(...e){let n=e[0];if(1===e.length)return n;let r=o(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=n.scopeName,r}o(function(e,r){let i=t.createContext(r);i.displayName=e+"Context";let a=o(e=>{let{children:r,...o}=e,a=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(i.Provider,{value:a,children:r})},"Provider");function s(n,o={}){let{optional:a=!1}=o,u=t.useContext(i);if(u)return u;if(void 0!==r)return r;if(!a)throw Error(`\`${n}\` must be used within \`${e}\``)}return a.displayName=e+"Provider",o(s,"useContext"),[a,s]},"createContext"),o(i,"createContextScope"),o(a,"composeContextScopes"),e.s(["createContextScope",0,i])},296994,e=>{"use strict";var t=e.i(247865),n=e.i(714035),r=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),i=0;function a(e){let[r,a]=t.useState(o());return(0,n.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(r?`radix-${r}`:"")}r(a,"name",{value:"useId",configurable:!0}),e.s(["useId",0,a])},312610,e=>{"use strict";var t=e.i(247865),n=e.i(714035),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}o(i,"useStateMachine");var a=o(e=>{let{present:n,children:r}=e,o=s(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=l(o.ref,d(i));return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:a}):null},"Presence");function s(e){let[r,a]=t.useState(),s=t.useRef(null),u=t.useRef(e),l=t.useRef("none"),d=t.useRef(void 0),[f,p]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===f?(l.current=d.current??c(s.current),d.current=void 0):l.current="none"},[f]),(0,n.useLayoutEffect)(()=>{let t=s.current,n=u.current;if(n!==e){let r=l.current,o=c(t);e?(d.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=o(n=>{let o=c(s.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(p("ANIMATION_END"),!u.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},"handleAnimationEnd"),i=o(e=>{e.target===r&&(l.current=c(s.current))},"handleAnimationStart");return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,d.current=c(t)}else s.current=null;a(e)},[])}}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){let n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,r=!1,o=t.map(t=>{let n=u(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e{"use strict";var t=e.i(247865),n=e.i(352825),r=e.i(982538),o=e.i(902875),i=Object.defineProperty,a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,r.createSlot)(`Primitive.${n}`),a=t.forwardRef((e,t)=>{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(r?i:n,{...a,ref:t})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});function s(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}i(s,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,s])},803976,e=>{"use strict";var t=e.i(247865),n=e.i(899300),r=e.i(714035),o=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],a=t[" useInsertionEffect ".trim().toString()];function s(e){if("function"==typeof i)return i(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof a?a(()=>{n.current=e}):(0,r.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}o(s,"name",{value:"useEffectEvent",configurable:!0});var u=Object.defineProperty,l=(e,t)=>u(e,"name",{value:t,configurable:!0}),c=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function d({prop:e,defaultProp:r,onChange:o=l(()=>{},"onChange"),caller:i}){let[a,s,u]=f({defaultProp:r,onChange:o}),c=void 0!==e,m=c?e:a;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=c},[c,i])}return[m,t.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&u.current?.(n)}else s(t)},[c,e,s,u])]}function f({defaultProp:e,onChange:n}){let[r,o]=t.useState(e),i=t.useRef(r),a=t.useRef(n);return c(()=>{a.current=n},[n]),t.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}function p(e){return"function"==typeof e}l(d,"useControllableState"),l(f,"useUncontrolledState"),l(p,"isFunction");var m=Symbol("RADIX:SYNC_STATE");l(function(e,r,o,i){let{prop:a,defaultProp:u,onChange:l,caller:c}=r,d=void 0!==a,f=s(l);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==a);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"controlled":"uncontrolled";console.warn(`${c} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=d},[d,c])}let p=[{...o,state:u}];i&&p.push(i);let[g,v]=t.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let r=e(t,n);return d&&!Object.is(r.state,t.state)&&f(r.state),r},...p),h=g.state,y=t.useRef(h);t.useEffect(()=>{y.current!==h&&(y.current=h,d||f(h))},[h,y,d]);let x=t.useMemo(()=>void 0!==a?{...g,state:a}:g,[g,a]);return t.useEffect(()=>{d&&!Object.is(a,g.state)&&v({type:m,state:a})},[a,g.state,d]),[x,v]},"useControllableStateReducer"),e.s(["useControllableState",0,d],803976)},714035,e=>{"use strict";var t=e.i(247865),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},18358,e=>{"use strict";var t=e.i(487709),n=e.i(737801),r=e.i(247865);e.s(["useTrackEvent",0,()=>{let e=(0,n.useEventAttributes)(),o=(0,r.useCallback)((n,r={},i={})=>{let a={...e,...r};if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");try{if(window.mParticle?.logEvent(n,window.mParticle.EventType.Other,a),i.flushImmediately)try{window.mParticle.upload?.()}catch{}console.debug(`MParticle: Event "${n}" tracked`,a)}catch(e){console.error(`MParticle: Event "${n}" failed`,e)}return o},[e]);return o}])},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])},459598,e=>{"use strict";let t=()=>{let e,t=!1;return{suppressNext:()=>{t=!0,clearTimeout(e),e=setTimeout(()=>{t=!1},2e3)},consume:()=>!!t&&(t=!1,clearTimeout(e),!0)}},n=t(),r=t(),o=n.suppressNext,i=n.consume,a=r.suppressNext,s=r.consume;e.s(["consumeHightouchPurchaseAbandonSuppression",0,s,"consumePurchaseAbandonSuppression",0,i,"suppressNextHightouchPurchaseAbandon",0,a,"suppressNextPurchaseAbandon",0,o])},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])},725296,e=>{"use strict";var t,n=e.i(965586),r=((t={}).CA="ca",t.CA_QC="ca-qc",t.EXEMPT="exempt",t.GDPR="gdpr",t.JP="jp",t.KR="kr",t.LATAM_CO="latam-co",t.LATAM_DO="latam-do",t.LATAM_PE="latam-pe",t.LGPD="lgpd",t.PIPL="pipl",t.TR_KVKK="tr-kvkk",t.USA="usa",t.USA_CCPA="usa-ccpa",t.USA_CO="usa-co",t.USA_CT="usa-ct",t.USA_VA="usa-va",t);Object.values(r);let o={"usa-ut":"usa"},i=e=>e?o[e]??e:void 0;e.s(["RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>r,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,r,"getRegime",0,()=>(()=>{let e=(0,n.getCookie)("ci")?.toString();if(e)for(let t of e.split("&")){let e=t.indexOf("=");if(e>-1&&"TWC-Privacy"===t.slice(0,e))return i(t.slice(e+1))}})()??i((0,n.getCookie)("twc-privacy")?.toString())??"exempt"])},62544,396817,634177,e=>{"use strict";var t=e.i(902875),n=e.i(247865),r=e.i(543836),o=e.i(271359),i=e.i(855128),a=e.i(296994),s=e.i(803976),u=e.i(698900),l=e.i(546504),c=e.i(778469),d=e.i(312610),f=e.i(942928),p=e.i(235453),m=e.i(714035),g=e.i(621790),v=e.i(73772),h=e.i(982538),y=Object.defineProperty,x=(e,t)=>y(e,"name",{value:t,configurable:!0}),C="Dialog",[b,E]=(0,i.createContextScope)(C),[S,w]=b(C),P=x(e=>{let{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:l,modal:c=!0}=e,d=n.useRef(null),f=n.useRef(null),[p,m]=(0,s.useControllableState)({prop:i,defaultProp:u??!1,onChange:l,caller:C}),[g,v]=n.useState(0),[h,y]=n.useState(0);return(0,t.jsx)(S,{scope:r,triggerRef:d,contentRef:f,contentId:(0,a.useId)(),titleId:(0,a.useId)(),descriptionId:(0,a.useId)(),titlePresent:g>0,descriptionPresent:h>0,setTitleCount:v,setDescriptionCount:y,open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:o})},"Dialog"),R=n.forwardRef(x(function(e,n){let{__scopeDialog:i,...a}=e,s=w("DialogTrigger",i),u=(0,o.useComposedRefs)(n,s.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":W(s.open),...a,ref:u,onClick:(0,r.composeEventHandlers)(e.onClick,s.onOpenToggle)})},"DialogTrigger")),D="DialogPortal",[A,O]=b(D,{forceMount:void 0}),N=x(e=>{let{__scopeDialog:r,forceMount:o,children:i,container:a}=e,s=w(D,r);return(0,t.jsx)(A,{scope:r,forceMount:o,children:n.Children.map(i,e=>(0,t.jsx)(d.Presence,{present:o||s.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),j="DialogOverlay",I=n.forwardRef(x(function(e,n){let r=O(j,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=w(j,e.__scopeDialog);return a.modal?(0,t.jsx)(d.Presence,{present:o||a.open,children:(0,t.jsx)(_,{...i,ref:n})}):null},"DialogOverlay")),T=(0,h.createSlot)("DialogOverlay.RemoveScroll"),_=n.forwardRef(x(function(e,n){let{__scopeDialog:r,...i}=e,a=w(j,r),s=(0,u.useDismissableLayerSurface)(),l=(0,o.useComposedRefs)(n,s);return(0,t.jsx)(g.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":W(a.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),M="DialogContent",k=n.forwardRef(x(function(e,n){let r=O(M,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=w(M,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:o||a.open,children:a.modal?(0,t.jsx)(L,{...i,ref:n}):(0,t.jsx)(U,{...i,ref:n})})},"DialogContent")),L=n.forwardRef(x(function(e,i){let a=w(M,e.__scopeDialog),s=n.useRef(null),u=(0,o.useComposedRefs)(i,a.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(F,{...e,ref:u,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),U=n.forwardRef(x(function(e,r){let o=w(M,e.__scopeDialog),i=n.useRef(!1),a=n.useRef(!1);return(0,t.jsx)(F,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),F=n.forwardRef(x(function(e,n){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,c=w(M,r);return(0,p.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,t.jsx)(u.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionPresent?c.descriptionId:void 0,"aria-labelledby":c.titlePresent?c.titleId:void 0,"data-state":W(c.open),...s,ref:n,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})},"DialogContentImpl")),$=n.forwardRef(x(function(e,n){let{__scopeDialog:r,...o}=e,i=w("DialogTitle",r),{setTitleCount:a}=i;return(0,m.useLayoutEffect)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(f.Primitive.h2,{id:i.titleId,...o,ref:n})},"DialogTitle")),V=n.forwardRef(x(function(e,n){let{__scopeDialog:r,...o}=e,i=w("DialogDescription",r),{setDescriptionCount:a}=i;return(0,m.useLayoutEffect)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(f.Primitive.p,{id:i.descriptionId,...o,ref:n})},"DialogDescription")),H=n.forwardRef(x(function(e,n){let{__scopeDialog:o,...i}=e,a=w("DialogClose",o);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function W(e){return e?"open":"closed"}x(W,"getState"),e.s(["Close",0,H,"Content",0,k,"Description",0,V,"Overlay",0,I,"Portal",0,N,"Root",0,P,"Title",0,$,"Trigger",0,R],396817);var B=e.i(226602),K=e.i(632137),G=e.i(877957),z=e.i(294237);e.i(368847);let X=(0,z.cva)("",{variants:{type:{overlay:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-overlay bg-black/50",content:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-overlay w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-white shadow-lg duration-200 sm:max-w-md p-6",header:"mb-4 text-center",footer:"mt-6 flex flex-col-reverse gap-2 text-center"}},defaultVariants:{type:"content"}});function J({...e}){return(0,t.jsx)(N,{"data-slot":"dialog-portal",...e})}function q({className:e,...n}){return(0,t.jsx)(I,{"data-slot":"dialog-overlay",className:(0,K.cn)(X({type:"overlay"}),e),...n})}function Q({className:e,overlayClassName:n,children:r,showCloseButton:o=!0,...i}){return(0,t.jsxs)(J,{"data-slot":"dialog-portal",children:[(0,t.jsx)(q,{className:n}),(0,t.jsxs)(k,{"data-slot":"dialog-content",className:(0,K.cn)(X({type:"content"}),e),...i,children:[r,o&&(0,t.jsxs)(H,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)(B.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Y({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,K.cn)(X({type:"header"}),e),...n})}function Z({className:e,children:n,...r}){return(0,t.jsx)($,{"data-slot":"dialog-title",className:(0,K.cn)("pt-4 text-center",e),...r,children:n})}function ee({className:e,children:n,...r}){return(0,t.jsx)(V,{"data-slot":"dialog-description",className:(0,K.cn)("pb-4 text-center",e),...r,children:n})}function et({primary:e,secondary:n,className:r}){return(0,t.jsxs)("div",{className:(0,K.cn)("flex flex-col-reverse gap-3",r),children:[n&&(0,t.jsx)(G.Button,{variant:"secondary",onClick:n.onClick,className:"w-full",children:n.label}),e&&(0,t.jsx)(G.Button,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["dialogStyles",0,X],634177),e.s(["BasicDialog",0,function({title:e,description:n,primaryAction:r,secondaryAction:o,showCloseButton:i=!0,className:a,children:s,...u}){return(0,t.jsxs)(Q,{showCloseButton:i,className:(0,K.cn)("p-6",a),...u,children:[(0,t.jsx)(Y,{children:(0,t.jsx)(Z,{children:e})}),(0,t.jsx)(ee,{children:n}),s,(r||o)&&(0,t.jsx)(et,{primary:r,secondary:o})]})},"Dialog",0,function({...e}){return(0,t.jsx)(P,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(H,{"data-slot":"dialog-close",...e})},"DialogContent",0,Q,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,K.cn)(X({type:"footer"}),e),...n})},"DialogHeader",0,Y,"DialogTitle",0,Z,"DialogTrigger",0,function({...e}){return(0,t.jsx)(R,{"data-slot":"dialog-trigger",...e})}],62544)},756227,e=>{"use strict";var t=e.i(546446),n=e.i(284007),r=e.i(889753),o=e.i(905059),i=e.i(310847),a=e.i(960576),s=e.i(317298),u=e.i(391174),l=e.i(735526),c=e.i(90543);e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(r.userProfileAtom),d=(0,t.useSetAtom)(i.wxuUserAccountUserAccountResponseAtom),f=(0,t.useSetAtom)(o.mapLayerOrderAtom);return()=>{(0,u.invalidateUpsxCache)(),(0,s.clearNextSessionIntent)(),e(n.RESET),d(null),f(n.RESET),(0,a.clearEarlyAnonId)(),(0,l.clearAccountCreated)(),(0,c.bumpAuthEpoch)()}}])},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 n="wxu-auth-epoch",r="wxu-rendered-tier";function o(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function i(e,n){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,n)}e.s(["bumpAuthEpoch",0,function(){i(n,String(Date.now()))},"isStaleRestore",0,function({renderedTier:e,recordedTier:t,epochAtLoad:n,currentEpoch:r}){return null!==t&&t!==e||void 0!==n&&n!==r},"readAuthEpoch",0,function(){return o(n)},"readRecordedTier",0,function(){return o(r)},"recordTier",0,function(e){i(r,e)}])},391174,95870,e=>{"use strict";var t=e.i(613646);e.s(["mutate",()=>t.j],95870);var t=t,n=e.i(892504);e.s(["invalidateUpsxCache",0,()=>{(0,t.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1}),(0,n.clearPurchaseChecked)()}],391174)},45846,e=>{"use strict";e.i(288906);var t=e.i(245943),n=e.i(810564);let r=new t.UPSXClient({baseUrl:(0,n.upsxApiUrl)("https://upsx.weather.com")});e.s(["upsxClient",0,r])},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])},739971,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["subscriptionsEnabledAtom",0,t])},837879,e=>{"use strict";var t=e.i(247865),n=e.i(546446),r=e.i(725287),o=e.i(485737),i=e.i(739971),a=e.i(725296),s=e.i(394481),u=e.i(763886),l=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,n.useAtomValue)(i.subscriptionsEnabledAtom),c=(0,n.useAtomValue)(o.geoipCountry),d=(0,r.useParams)()?.locale,f=(0,n.useAtomValue)(s.privacyRegimeAtom)??a.Regime.EXEMPT,p=(0,n.useAtomValue)(u.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===c&&"en-US"===d&&a.US_REGIMES.includes(f)&&p!==l.Partner.OPPO,[e,c,d,f,p])}])},317298,e=>{"use strict";let t="wxu-next-session-intent",n=["fpdprobnsitop1intent","fpdprobnsitop2intent","fpdprobnsitop3intent"];e.s(["clearNextSessionIntent",0,function(){try{localStorage.removeItem(t)}catch{}},"hasRadarIntent",0,function(e){return!!e&&n.some(t=>{let n=e[t];return"string"==typeof n&&"radar"===n.trim().toLowerCase()})},"readNextSessionIntent",0,function(){try{let e=localStorage.getItem(t);if(!e)return null;let n=JSON.parse(e);if(n&&"object"==typeof n&&"promotesRadar"in n&&"boolean"==typeof n.promotesRadar)return{promotesRadar:n.promotesRadar};return null}catch{return null}},"writeNextSessionIntent",0,function(e){try{localStorage.setItem(t,JSON.stringify({promotesRadar:e.promotesRadar}))}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 n=Number(e);if(!Number.isFinite(n))return!1;return Date.now()-n