(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,695018,(e,t,n)=>{function r(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}t.exports=function(e,t){t=t||{};var n,o,i,s,l=typeof e;if("string"===l&&e.length>0){var a=e;if(!((a=String(a)).length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(c){var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===l&&isFinite(e)){return t.long?(o=Math.abs(n=e))>=864e5?r(n,o,864e5,"day"):o>=36e5?r(n,o,36e5,"hour"):o>=6e4?r(n,o,6e4,"minute"):o>=1e3?r(n,o,1e3,"second"):n+" ms":(s=Math.abs(i=e))>=864e5?Math.round(i/864e5)+"d":s>=36e5?Math.round(i/36e5)+"h":s>=6e4?Math.round(i/6e4)+"m":s>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},702660,(e,t,n)=>{t.exports=function(t){function n(e){let t,o,i,s=null;function l(...e){if(!l.enabled)return;let r=Number(new Date);l.diff=r-(t||r),l.prev=t,l.curr=r,t=r,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,r)=>{if("%%"===t)return"%";o++;let i=n.formatters[r];if("function"==typeof i){let n=e[o];t=i.call(l,n),e.splice(o,1),o--}return t}),n.formatArgs.call(l,e),(l.log||n.log).apply(l,e)}return l.namespace=e,l.useColors=n.useColors(),l.color=n.selectColor(e),l.extend=r,l.destroy=n.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==n.namespaces&&(o=n.namespaces,i=n.enabled(e)),i),set:e=>{s=e}}),"function"==typeof n.init&&n.init(l),l}function r(e,t){let r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e,t){let n=0,r=0,o=-1,i=0;for(;n"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){for(let t of(n.save(e),n.namespaces=e,n.names=[],n.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===t[0]?n.skips.push(t.slice(1)):n.names.push(t)},n.enabled=function(e){for(let t of n.skips)if(o(e,t))return!1;for(let t of n.names)if(o(e,t))return!0;return!1},n.humanize=e.r(695018),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(e=>{n[e]=t[e]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n{let r;var o=e.i(426641);n.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),e.splice(o,0,n)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")||n.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==o.default&&"env"in o.default&&(e=o.default.env.DEBUG),e},n.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),r=!1,n.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),t.exports=e.r(702660)(n);let{formatters:i}=t.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},695881,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.createLogger=l,n.log=function(e,t,...n){l(e)(t,...n)};let o=r(e.r(272851));o.default.log=console.info.bind(console);let i=console.error.bind(console),s="wx-next";function l(e){let t=(0,o.default)(`${s}:${e}`),n=(0,o.default)(`${s}:debug:${e}`),r=(0,o.default)(`${s}:error:${e}`),a=(0,o.default)(`${s}:warn:${e}`),c=(0,o.default)(`${s}:lifecycle:${e}`);r.log=i;let u=(e,...n)=>{t(e,...n)};return u.info=(e,...n)=>{t(e,...n)},u.debug=(e,...t)=>{n(e,...t)},u.error=(e,...t)=>{r(e,...t)},u.warn=(e,...t)=>{a(e,...t)},u.lifecycle=(e,...t)=>{c(e,...t)},u.extend=t=>l(`${e}:${t}`),u}},25681,(e,t,n)=>{t.exports=e.r(26467)},294237,e=>{"use strict";var t=e.i(7284);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx;e.s(["cva",0,(e,t)=>o=>{var i;if((null==t?void 0:t.variants)==null)return r(e,null==o?void 0:o.class,null==o?void 0:o.className);let{variants:s,defaultVariants:l}=t,a=Object.keys(s).map(e=>{let t=null==o?void 0:o[e],r=null==l?void 0:l[e];if(null===t)return null;let i=n(t)||n(r);return s[e][i]}),c=o&&Object.entries(o).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return r(e,a,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...c}[t]):({...l,...c})[t]===n})?[...e,n,r]:e},[]),null==o?void 0:o.class,null==o?void 0:o.className)}])},747961,e=>{"use strict";var t=e.i(648198),n=e.i(539922),r=e.i(294237),o=e.i(789876);let i=(0,r.cva)("inline-block",{variants:{size:{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-16 h-16",xxl:"w-32 h-32"},color:{primary:"text-gray-900",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white"}},defaultVariants:{size:"md",color:"primary"}}),s=n.default.forwardRef(({icon:e,size:n,color:r,title:s,desc:l,className:a,ariaHidden:c,...u},d)=>(0,t.jsx)(e,{ref:d,className:(0,o.cn)(i({size:n,color:r}),a),title:s,desc:l,...c&&{"aria-hidden":c},...u}));s.displayName="BaseIcon",e.s(["BaseIcon",0,s])},632137,e=>{"use strict";var t=e.i(7284);let n=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});e.s(["cn",0,function(...e){return n((0,t.clsx)(e))}])},547100,e=>{"use strict";var t=e.i(654623);function n(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let r=n(0,t.useTranslations),o=n(0,t.useFormatter);e.s(["useFormatter",0,o,"useTranslations",0,r])},762073,144977,e=>{"use strict";var t=e.i(539922);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t{let{children:o,...i}=e;if(l(o)&&"function"==typeof s&&(o=s(o._payload)),t.isValidElement(o)){var a;let e,s,l=(a=o,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==t.Fragment&&(c.ref=n?r(n,l):l),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,i),c=t.forwardRef((e,n)=>{let{children:r,...i}=e;l(r)&&"function"==typeof s&&(r=s(r._payload));let c=t.Children.toArray(r),u=c.find(d);if(u){let e=u.props.children,r=c.map(n=>n!==u?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,o.jsx)(a,{...i,ref:n,children:r})});return c.displayName=`${e}.Slot`,c}var c=a("Slot"),u=Symbol("radix.slottable");function d(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}e.s(["Slot",0,c,"createSlot",0,a],762073)},877957,e=>{"use strict";var t=e.i(648198),n=e.i(539922),r=e.i(762073),o=e.i(294237),i=e.i(632137),s=e.i(747961);let l=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:o,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":n,"aria-describedby":o,...i,children:[r?(0,t.jsx)("desc",{id:o,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Loader Circle"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.65 2.926A5.335 5.335 0 1 0 13.335 8a.665.665 0 0 1 1.33 0 6.665 6.665 0 1 1-4.606-6.34.665.665 0 1 1-.41 1.266",clipRule:"evenodd"})]})),a=n.default.forwardRef((e,n)=>(0,t.jsx)(s.BaseIcon,{ref:n,icon:l,...e}));a.displayName="LoaderCircle";let c=(0,o.cva)("rounded-lg cursor-pointer",{variants:{variant:{default:"bg-brand-400 text-primary-foreground hover:bg-[#252C3F] active:bg-[#0C1226] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-0",secondary:"bg-white text-gray-900 active:bg-[#E6E6E6] focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",destructive:"bg-alert-severe hover:bg-[#C1251A] active:bg-[#A70C00] text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",outline:"border-1 border-gray-500 hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",ghost:"hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",link:"text-primary underline-offset-3 underline focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",avatarAccountLink:"text-primary text-[14px]",avatarGoPremium:"bg-gray-900 text-white text-[14px]",avatarSignOut:"text-primary text-[16px]",ghostUI:""},size:{default:"h-10 px-4 py-3",lg:"h-10 px-8 py-3",sm:"h-8 px-3 py-2",xsm:"h-6 px-2",icon:"h-10 w-10",text:""},loading:{true:"pointer-events-none cursor-not-allowed opacity-50",false:""},disabled:{true:"pointer-events-none cursor-not-allowed opacity-30",false:""}},defaultVariants:{variant:"default",size:"default",loading:!1,disabled:!1}}),u=n.forwardRef(({className:e,variant:n="default",size:o,asChild:s=!1,disabled:l=!1,loading:u=!1,children:d,...f},m)=>{let p=s?r.Slot:"button";return(0,t.jsx)(p,{...f,className:(0,i.cn)(c({variant:n,size:o,loading:u,disabled:l}),"inline-flex items-center justify-center",e),ref:m,disabled:l||u,children:s?d:(0,t.jsxs)(t.Fragment,{children:[u&&(0,t.jsx)(a,{size:"sm",className:"mr-2 animate-spin",color:"default"===n||"destructive"===n?"inverse":"primary"}),d]})})});u.displayName="Button",e.s(["Button",0,u],877957)},368847,341669,e=>{"use strict";var t=e.i(648198),n=e.i(539922),r=e.i(294237),o=e.i(632137);let i=({skeletonClassName:e,elementType:n="span"})=>(0,t.jsx)(n,{className:(0,o.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,i],341669);let s={0:"No Clamp",1:"1 Line",2:"2 Lines",3:"3 Lines",4:"4 Lines",5:"5 Lines"};[0,1,2,3,4,5].map(e=>({label:s[e],value:String(e)}));let l=n.default.forwardRef(({className:e,isLoading:n,skeletonClassName:r,variant:s,elementType:l,lineClamp:c,color:u,responsive:d,children:f,...m},p)=>{if(n)return(0,t.jsx)(i,{skeletonClassName:r||""});let g=l||function({variant:e}){switch(e){case"Display.XL":case"Display.L":case"Title.XL":return"h1";case"Display.M":case"Display.S":case"Title.L":case"Title.M":case"Title.S":return"h2";default:return"p"}}({variant:s}),x=(0,t.jsx)(g,{className:(0,o.cn)(a({variant:s,color:u,lineClamp:c,responsive:d}),e),ref:p,...m,children:f});return d?(0,t.jsx)("div",{className:"@container/text",children:x}):x});l.displayName="Text";let a=(0,r.cva)("",{variants:{variant:{"Display.XL":["text-6xl","leading-relaxed","tracking-tighter"],"Display.L":["text-5xl","leading-normal","tracking-tighter","font-medium"],"Display.M":["text-4xl","leading-tight","tracking-tight","font-medium"],"Display.S":["text-xl","leading-relaxed","tracking-tight","font-medium"],"Title.XL":["text-4xl","leading-snug","tracking-tight","font-extrabold"],"Title.L":["text-3xl","leading-normal","tracking-tight","font-extrabold"],"Title.M":["text-2xl","leading-normal","tracking-tight","font-extrabold"],"Title.S":["text-xl","leading-normal","tracking-tight","font-bold"],"Title.XS":["text-base","leading-relaxed","tracking-tight","font-bold"],"Body.L":["text-lg","leading-loose","tracking-normal","font-medium"],"Body.L.Bold":["text-lg","leading-loose","tracking-normal","font-bold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.S":["text-sm","leading-loose","tracking-tight","font-medium"],"Body.S.Bold":["text-sm","leading-loose","tracking-normal","font-bold"],"Caption.M":["text-xs","leading-normal","tracking-normal","font-medium"],"Caption.M.Bold":["text-xs","leading-normal","tracking-normal","font-bold"],"Caption.S":["text-xxs","leading-loose","tracking-tight","font-medium"],"Caption.S.Bold":["text-xxs","leading-loose","tracking-normal","font-bold"]},responsive:{true:"",false:""},color:{primary:"text-gray-900",secondary:"text-gray-500",default:"text-gray-900",disabled:"text-gray-400",placeholder:"text-gray-600",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white",error:"text-[var(--color-alert-severe)]"},lineClamp:{0:"",1:"line-clamp-1 pb-0.5",2:"line-clamp-2 pb-0.5",3:"line-clamp-3 pb-0.5",4:"line-clamp-4 pb-0.5",5:"line-clamp-5 pb-0.5"}},compoundVariants:[{variant:"Display.XL",responsive:!0,class:"text-4xl @sm/text:text-5xl @lg/text:text-6xl"},{variant:"Display.L",responsive:!0,class:"text-2xl @sm/text:text-4xl @lg/text:text-5xl"},{variant:"Display.M",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-4xl"},{variant:"Display.S",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.XL",responsive:!0,class:"text-2xl @sm/text:text-3xl @lg/text:text-4xl"},{variant:"Title.L",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-3xl"},{variant:"Title.M",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.S",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Title.XS",responsive:!0,class:"text-sm @sm/text:text-base"},{variant:"Body.L",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.L.Bold",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.M",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.M.Bold",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.S",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Body.S.Bold",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Caption.M",responsive:!0,class:"text-xxs @sm/text:text-xs @lg/text:text-sm"},{variant:"Caption.S",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"},{variant:"Caption.S.Bold",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"}],defaultVariants:{variant:"Body.M",color:"default",responsive:!1}});e.s(["Text",0,l,"default",0,l,"textVariants",0,a],368847)},671525,e=>{"use strict";var t=e.i(25681);let n=()=>{let e=(0,t.useRouter)();return{navigate:(t,n={})=>{let{mpa:r=!0,replace:o=!1}=n;r?o?window.location.replace(t):window.location.href=t:o?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:n=!0}=t;n?window.location.reload():e.refresh()},router:e}};e.s(["default",0,n,"usePageNavigation",0,n])},710746,e=>{"use strict";var t=e.i(648198),n=e.i(539922),r=e.i(747961);let o=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:o,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":n,"aria-describedby":o,...i,children:[r?(0,t.jsx)("desc",{id:o,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Close"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),i=n.default.forwardRef((e,n)=>(0,t.jsx)(r.BaseIcon,{ref:n,icon:o,...e}));i.displayName="Close",e.s(["Close",0,i])},291967,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}])},156207,e=>{"use strict";var t=e.i(539922),n=e.i(648198);e.s(["createContext",0,function(e,r){let o=t.createContext(r),i=e=>{let{children:r,...i}=e,s=t.useMemo(()=>i,Object.values(i));return(0,n.jsx)(o.Provider,{value:s,children:r})};return i.displayName=e+"Provider",[i,function(n){let i=t.useContext(o);if(i)return i;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,r=[]){let o=[],i=()=>{let n=o.map(e=>t.createContext(e));return function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(r,i){let s=t.createContext(i),l=o.length;o=[...o,i];let a=r=>{let{scope:o,children:i,...a}=r,c=o?.[e]?.[l]||s,u=t.useMemo(()=>a,Object.values(a));return(0,n.jsx)(c.Provider,{value:u,children:i})};return a.displayName=r+"Provider",[a,function(n,o){let a=o?.[e]?.[l]||s,c=t.useContext(a);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return 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])}};return r.scopeName=n.scopeName,r}(i,...r)]}])},556872,93074,e=>{"use strict";var t=e.i(539922),n=e.i(493449),r=e.i(144977),o=e.i(648198);function i(e){var n;let i,s=(n=e,(i=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var s;let e,l,a=(s=o,(l=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(l=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==t.Fragment&&(c.ref=n?(0,r.composeRefs)(n,a):a),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,i),a=t.forwardRef((e,n)=>{let{children:r,...i}=e,a=t.Children.toArray(r),c=a.find(l);if(c){let e=c.props.children,r=a.map(n=>n!==c?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,o.jsx)(s,{...i,ref:n,children:r})});return a.displayName=`${e}.Slot`,a}var s=Symbol("radix.slottable");function l(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}e.s(["createSlot",0,i,"createSlottable",0,function(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}],93074);var a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=i(`Primitive.${n}`),s=t.forwardRef((e,t)=>{let{asChild:i,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:n,{...s,ref:t})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{});e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,function(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}],556872)},127864,e=>{"use strict";var t=e.i(539922),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},653747,e=>{"use strict";var t=e.i(539922),n=e.i(144977),r=e.i(127864),o=e=>{var o;let s,l,{present:a,children:c}=e,u=function(e){var n,o;let[s,l]=t.useState(),a=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,f]=(n=e?"mounted":"unmounted",o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>o[e][t]??e,n));return t.useEffect(()=>{let e=i(a.current);u.current="mounted"===d?e:"none"},[d]),(0,r.useLayoutEffect)(()=>{let t=a.current,n=c.current;if(n!==e){let r=u.current,o=i(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,r.useLayoutEffect)(()=>{if(s){let e,t=s.ownerDocument.defaultView??window,n=n=>{let r=i(a.current).includes(CSS.escape(n.animationName));if(n.target===s&&r&&(f("ANIMATION_END"),!c.current)){let n=s.style.animationFillMode;s.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===s.style.animationFillMode&&(s.style.animationFillMode=n)})}},r=e=>{e.target===s&&(u.current=i(a.current))};return s.addEventListener("animationstart",r),s.addEventListener("animationcancel",n),s.addEventListener("animationend",n),()=>{t.clearTimeout(e),s.removeEventListener("animationstart",r),s.removeEventListener("animationcancel",n),s.removeEventListener("animationend",n)}}f("ANIMATION_END")},[s,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{a.current=e?getComputedStyle(e):null,l(e)},[])}}(a),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),f=(0,n.useComposedRefs)(u.ref,(o=d,(l=(s=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?o.ref:(l=(s=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?o.props.ref:o.props.ref||o.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:f}):null};function i(e){return e?.animationName||"none"}o.displayName="Presence",e.s(["Presence",0,o])},534643,e=>{"use strict";var t=e.i(539922),n=e.i(127864);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:n,onChange:o=()=>{},caller:i}){let[s,l,a]=function({defaultProp:e,onChange:n}){let[o,i]=t.useState(e),s=t.useRef(o),l=t.useRef(n);return r(()=>{l.current=n},[n]),t.useEffect(()=>{s.current!==o&&(l.current?.(o),s.current=o)},[o,s]),[o,i,l]}({defaultProp:n,onChange:o}),c=void 0!==e,u=c?e:s;{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[u,t.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[c,e,l,a])]}],534643)},837879,e=>{"use strict";var t=e.i(539922),n=e.i(475566),r=e.i(25681),o=e.i(682142),i=e.i(725296),s=e.i(394481);e.s(["useSubscriptionsEnabled",0,()=>{let{geoipCountry:e}=(()=>{let[e,n]=(0,t.useState)({}),r=(0,o.getCICookie)();return(0,t.useEffect)(()=>{r&&n({geoipCountry:r["TWC-GeoIP-Country"],geoipRegion:r["TWC-GeoIP-Region"],geoipCity:r["TWC-GeoIP-City"],geoipDma:r["TWC-GeoIP-DMA"],geoipLat:r["TWC-GeoIP-Lat"],geoipLong:r["TWC-GeoIP-Long"],privacy:r["TWC-Privacy"],localeGroup:r["TWC-Locale-Group"],deviceClass:r["TWC-Device-Class"],networkType:r["TWC-Network-Type"],originHint:r["X-Origin-Hint"]})},[r]),e})(),l=(0,r.useParams)()?.locale,a=(0,n.useAtomValue)(s.privacyRegimeAtom)??i.Regime.EXEMPT;return(0,t.useMemo)(()=>"US"===e&&"en-US"===l&&i.US_REGIMES.includes(a),[e,l,a])}],837879)}]);