var __ttkBase=(function(){if(typeof window!=="undefined"&&window.__TTK_ASSETS_BASE)return window.__TTK_ASSETS_BASE;return"/ttk-clone/assets";})();
var __ttkOrigin=(function(){try{return typeof window!=="undefined"&&window.location?window.location.origin:"";}catch(e){return"";}})();
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=(function(){var b=__ttkOrigin+__ttkBase+"/";return[b+"RedeemRewards-CZb5da5L.js",b+"use-go-back-R1EMj995.js",b+"coin-p-BTqgdHPT.js",b+"credit-card-DVuEp50a.js",b+"PointsHistory-DVKmjl4F.js",b+"WithdrawConfirm-DG0_r5IV.js",b+"use-pix-payment-DR6HpRO6.js",b+"receita-federal-new-C9waySsF.js",b+"shield-check-CziwC_Cm.js",b+"lock-DhruU8A0.js",b+"FAQ-BezqcwA_.js",b+"Upsell1-CDFw70GX.js",b+"tiktok-logo-full-DIcxqYI2.js",b+"PixPaymentPopup-DGy7H7fg.js",b+"zap-BqCULKZO.js",b+"triangle-alert-B4cvJ3pZ.js",b+"Upsell2-BwAPgtX0.js",b+"shield-DF9eUqcN.js",b+"Upsell3-C3GpDZJi.js",b+"Upsell4-DlsNiMzY.js",b+"Upsell5-CA3Ey9HV.js",b+"BackRedirect-DB9PDfKJ.js"]})())))=>i.map(i=>d[i]);
var wc=e=>{throw TypeError(e)};var fl=(e,t,n)=>t.has(e)||wc("Cannot "+n);var T=(e,t,n)=>(fl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?wc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Te=(e,t,n)=>(fl(e,t,"access private method"),n);var wi=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return T(e,t,r)}});function Tv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cf={exports:{}},js={},kf={exports:{}},Y={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ai=Symbol.for("react.element"),bv=Symbol.for("react.portal"),Rv=Symbol.for("react.fragment"),Nv=Symbol.for("react.strict_mode"),_v=Symbol.for("react.profiler"),Ov=Symbol.for("react.provider"),Av=Symbol.for("react.context"),jv=Symbol.for("react.forward_ref"),Lv=Symbol.for("react.suspense"),Mv=Symbol.for("react.memo"),Iv=Symbol.for("react.lazy"),xc=Symbol.iterator;function Dv(e){return e===null||typeof e!="object"?null:(e=xc&&e[xc]||e["@@iterator"],typeof e=="function"?e:null)}var Pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tf=Object.assign,bf={};function no(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Pf}no.prototype.isReactComponent={};no.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};no.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rf(){}Rf.prototype=no.prototype;function tu(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Pf}var nu=tu.prototype=new Rf;nu.constructor=tu;Tf(nu,no.prototype);nu.isPureReactComponent=!0;var Ec=Array.isArray,Nf=Object.prototype.hasOwnProperty,ru={current:null},_f={key:!0,ref:!0,__self:!0,__source:!0};function Of(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Nf.call(t,r)&&!_f.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:ai,type:e,key:i,ref:s,props:o,_owner:ru.current}}function zv(e,t){return{$$typeof:ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ou(e){return typeof e=="object"&&e!==null&&e.$$typeof===ai}function Fv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sc=/\/+/g;function pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fv(""+e.key):t.toString(36)}function Bi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ai:case bv:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+pl(s,0):r,Ec(o)?(n="",e!=null&&(n=e.replace(Sc,"$&/")+"/"),Bi(o,t,n,"",function(u){return u})):o!=null&&(ou(o)&&(o=zv(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Sc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Ec(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+pl(i,l);s+=Bi(i,t,n,a,o)}else if(a=Dv(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+pl(i,l++),s+=Bi(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function xi(e,t,n){if(e==null)return e;var r=[],o=0;return Bi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function $v(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ie={current:null},Vi={transition:null},Uv={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:Vi,ReactCurrentOwner:ru};function Af(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:xi,forEach:function(e,t,n){xi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xi(e,function(){t++}),t},toArray:function(e){return xi(e,function(t){return t})||[]},only:function(e){if(!ou(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=no;Y.Fragment=Rv;Y.Profiler=_v;Y.PureComponent=tu;Y.StrictMode=Nv;Y.Suspense=Lv;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uv;Y.act=Af;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Tf({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ru.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Nf.call(t,a)&&!_f.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ai,type:e.type,key:o,ref:i,props:r,_owner:s}};Y.createContext=function(e){return e={$$typeof:Av,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ov,_context:e},e.Consumer=e};Y.createElement=Of;Y.createFactory=function(e){var t=Of.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:jv,render:e}};Y.isValidElement=ou;Y.lazy=function(e){return{$$typeof:Iv,_payload:{_status:-1,_result:e},_init:$v}};Y.memo=function(e,t){return{$$typeof:Mv,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Vi.transition;Vi.transition={};try{e()}finally{Vi.transition=t}};Y.unstable_act=Af;Y.useCallback=function(e,t){return Ie.current.useCallback(e,t)};Y.useContext=function(e){return Ie.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ie.current.useEffect(e,t)};Y.useId=function(){return Ie.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ie.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};Y.useRef=function(e){return Ie.current.useRef(e)};Y.useState=function(e){return Ie.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ie.current.useTransition()};Y.version="18.3.1";kf.exports=Y;var y=kf.exports;const O=Sf(y),jf=Tv({__proto__:null,default:O},[y]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bv=y,Vv=Symbol.for("react.element"),Wv=Symbol.for("react.fragment"),Hv=Object.prototype.hasOwnProperty,Qv=Bv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kv={key:!0,ref:!0,__self:!0,__source:!0};function Lf(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Hv.call(t,r)&&!Kv.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Vv,type:e,key:i,ref:s,props:o,_owner:Qv.current}}js.Fragment=Wv;js.jsx=Lf;js.jsxs=Lf;Cf.exports=js;var S=Cf.exports,Mf={exports:{}},Ze={},If={exports:{}},Df={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(b,R){var M=b.length;b.push(R);e:for(;0<M;){var V=M-1>>>1,z=b[V];if(0<o(z,R))b[V]=R,b[M]=z,M=V;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var R=b[0],M=b.pop();if(M!==R){b[0]=M;e:for(var V=0,z=b.length,K=z>>>1;V<K;){var G=2*(V+1)-1,he=b[G],Pe=G+1,J=b[Pe];if(0>o(he,M))Pe<z&&0>o(J,he)?(b[V]=J,b[Pe]=M,V=Pe):(b[V]=he,b[G]=M,V=G);else if(Pe<z&&0>o(J,M))b[V]=J,b[Pe]=M,V=Pe;else break e}}return R}function o(b,R){var M=b.sortIndex-R.sortIndex;return M!==0?M:b.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,h=3,f=!1,x=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(b){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=b)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function E(b){if(g=!1,v(b),!x)if(n(a)!==null)x=!0,$(C);else{var R=n(u);R!==null&&W(E,R.startTime-b)}}function C(b,R){x=!1,g&&(g=!1,m(N),N=-1),f=!0;var M=h;try{for(v(R),d=n(a);d!==null&&(!(d.expirationTime>R)||b&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,h=d.priorityLevel;var z=V(d.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(a)&&r(a),v(R)}else r(a);d=n(a)}if(d!==null)var K=!0;else{var G=n(u);G!==null&&W(E,G.startTime-R),K=!1}return K}finally{d=null,h=M,f=!1}}var k=!1,P=null,N=-1,j=5,A=-1;function F(){return!(e.unstable_now()-A<j)}function D(){if(P!==null){var b=e.unstable_now();A=b;var R=!0;try{R=P(!0,b)}finally{R?Q():(k=!1,P=null)}}else k=!1}var Q;if(typeof p=="function")Q=function(){p(D)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,X=L.port2;L.port1.onmessage=D,Q=function(){X.postMessage(null)}}else Q=function(){w(D,0)};function $(b){P=b,k||(k=!0,Q())}function W(b,R){N=w(function(){b(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(b){b.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,$(C))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(b){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var M=h;h=R;try{return b()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,R){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var M=h;h=b;try{return R()}finally{h=M}},e.unstable_scheduleCallback=function(b,R,M){var V=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?V+M:V):M=V,b){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=M+z,b={id:c++,callback:R,priorityLevel:b,startTime:M,expirationTime:z,sortIndex:-1},M>V?(b.sortIndex=M,t(u,b),n(a)===null&&b===n(u)&&(g?(m(N),N=-1):g=!0,W(E,M-V))):(b.sortIndex=z,t(a,b),x||f||(x=!0,$(C))),b},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(b){var R=h;return function(){var M=h;h=R;try{return b.apply(this,arguments)}finally{h=M}}}})(Df);If.exports=Df;var Yv=If.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gv=y,qe=Yv;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zf=new Set,Do={};function ar(e,t){Kr(e,t),Kr(e+"Capture",t)}function Kr(e,t){for(Do[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Xv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cc={},kc={};function qv(e){return Kl.call(kc,e)?!0:Kl.call(Cc,e)?!1:Xv.test(e)?kc[e]=!0:(Cc[e]=!0,!1)}function Zv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jv(e,t,n,r){if(t===null||typeof t>"u"||Zv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var iu=/[\-:]([a-z])/g;function su(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iu,su);ke[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iu,su);ke[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iu,su);ke[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function lu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jv(t,n,o,r)&&(n=null),r||o===null?qv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Xt=Gv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ei=Symbol.for("react.element"),wr=Symbol.for("react.portal"),xr=Symbol.for("react.fragment"),au=Symbol.for("react.strict_mode"),Yl=Symbol.for("react.profiler"),Ff=Symbol.for("react.provider"),$f=Symbol.for("react.context"),uu=Symbol.for("react.forward_ref"),Gl=Symbol.for("react.suspense"),Xl=Symbol.for("react.suspense_list"),cu=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Uf=Symbol.for("react.offscreen"),Pc=Symbol.iterator;function po(e){return e===null||typeof e!="object"?null:(e=Pc&&e[Pc]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,hl;function Co(e){if(hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hl=t&&t[1]||""}return`
`+hl+e}var ml=!1;function vl(e,t){if(!e||ml)return"";ml=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Co(e):""}function eg(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function ql(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xr:return"Fragment";case wr:return"Portal";case Yl:return"Profiler";case au:return"StrictMode";case Gl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Ff:return(e._context.displayName||"Context")+".Provider";case uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:ql(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return ql(e(t))}catch{}}return null}function tg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ql(t);case 8:return t===au?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ng(e){var t=Bf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Si(e){e._valueTracker||(e._valueTracker=ng(e))}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zl(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wf(e,t){t=t.checked,t!=null&&lu(e,"checked",t,!1)}function Jl(e,t){Wf(e,t);var n=Rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ea(e,t.type,n):t.hasOwnProperty("defaultValue")&&ea(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ea(e,t,n){(t!=="number"||rs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ko=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Rn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ta(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Rc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ko(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Rn(n)}}function Hf(e,t){var n=Rn(t.value),r=Rn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Nc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function na(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ci,Kf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ci=Ci||document.createElement("div"),Ci.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rg=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){rg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function Yf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function Gf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Yf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var og=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ra(e,t){if(t){if(og[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function oa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ia=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,Ar=null,jr=null;function _c(e){if(e=di(e)){if(typeof sa!="function")throw Error(_(280));var t=e.stateNode;t&&(t=zs(t),sa(e.stateNode,e.type,t))}}function Xf(e){Ar?jr?jr.push(e):jr=[e]:Ar=e}function qf(){if(Ar){var e=Ar,t=jr;if(jr=Ar=null,_c(e),t)for(e=0;e<t.length;e++)_c(t[e])}}function Zf(e,t){return e(t)}function Jf(){}var gl=!1;function ep(e,t,n){if(gl)return e(t,n);gl=!0;try{return Zf(e,t,n)}finally{gl=!1,(Ar!==null||jr!==null)&&(Jf(),qf())}}function Fo(e,t){var n=e.stateNode;if(n===null)return null;var r=zs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var la=!1;if(Wt)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){la=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{la=!1}function ig(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ro=!1,os=null,is=!1,aa=null,sg={onError:function(e){Ro=!0,os=e}};function lg(e,t,n,r,o,i,s,l,a){Ro=!1,os=null,ig.apply(sg,arguments)}function ag(e,t,n,r,o,i,s,l,a){if(lg.apply(this,arguments),Ro){if(Ro){var u=os;Ro=!1,os=null}else throw Error(_(198));is||(is=!0,aa=u)}}function ur(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Oc(e){if(ur(e)!==e)throw Error(_(188))}function ug(e){var t=e.alternate;if(!t){if(t=ur(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Oc(o),e;if(i===r)return Oc(o),t;i=i.sibling}throw Error(_(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function np(e){return e=ug(e),e!==null?rp(e):null}function rp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rp(e);if(t!==null)return t;e=e.sibling}return null}var op=qe.unstable_scheduleCallback,Ac=qe.unstable_cancelCallback,cg=qe.unstable_shouldYield,dg=qe.unstable_requestPaint,pe=qe.unstable_now,fg=qe.unstable_getCurrentPriorityLevel,fu=qe.unstable_ImmediatePriority,ip=qe.unstable_UserBlockingPriority,ss=qe.unstable_NormalPriority,pg=qe.unstable_LowPriority,sp=qe.unstable_IdlePriority,Ls=null,At=null;function hg(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Ls,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:gg,mg=Math.log,vg=Math.LN2;function gg(e){return e>>>=0,e===0?32:31-(mg(e)/vg|0)|0}var ki=64,Pi=4194304;function Po(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ls(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Po(l):(i&=s,i!==0&&(r=Po(i)))}else s=n&~o,s!==0?r=Po(s):i!==0&&(r=Po(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-wt(t),o=1<<n,r|=e[n],t&=~o;return r}function yg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-wt(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=yg(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function ua(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lp(){var e=ki;return ki<<=1,!(ki&4194240)&&(ki=64),e}function yl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function xg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function pu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ee=0;function ap(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var up,hu,cp,dp,fp,ca=!1,Ti=[],xn=null,En=null,Sn=null,$o=new Map,Uo=new Map,cn=[],Eg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jc(e,t){switch(e){case"focusin":case"focusout":xn=null;break;case"dragenter":case"dragleave":En=null;break;case"mouseover":case"mouseout":Sn=null;break;case"pointerover":case"pointerout":$o.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(t.pointerId)}}function mo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=di(t),t!==null&&hu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Sg(e,t,n,r,o){switch(t){case"focusin":return xn=mo(xn,e,t,n,r,o),!0;case"dragenter":return En=mo(En,e,t,n,r,o),!0;case"mouseover":return Sn=mo(Sn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return $o.set(i,mo($o.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Uo.set(i,mo(Uo.get(i)||null,e,t,n,r,o)),!0}return!1}function pp(e){var t=Wn(e.target);if(t!==null){var n=ur(t);if(n!==null){if(t=n.tag,t===13){if(t=tp(n),t!==null){e.blockedOn=t,fp(e.priority,function(){cp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=da(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ia=r,n.target.dispatchEvent(r),ia=null}else return t=di(n),t!==null&&hu(t),e.blockedOn=n,!1;t.shift()}return!0}function Lc(e,t,n){Wi(e)&&n.delete(t)}function Cg(){ca=!1,xn!==null&&Wi(xn)&&(xn=null),En!==null&&Wi(En)&&(En=null),Sn!==null&&Wi(Sn)&&(Sn=null),$o.forEach(Lc),Uo.forEach(Lc)}function vo(e,t){e.blockedOn===t&&(e.blockedOn=null,ca||(ca=!0,qe.unstable_scheduleCallback(qe.unstable_NormalPriority,Cg)))}function Bo(e){function t(o){return vo(o,e)}if(0<Ti.length){vo(Ti[0],e);for(var n=1;n<Ti.length;n++){var r=Ti[n];r.blockedOn===e&&(r.blockedOn=null)}}for(xn!==null&&vo(xn,e),En!==null&&vo(En,e),Sn!==null&&vo(Sn,e),$o.forEach(t),Uo.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)pp(n),n.blockedOn===null&&cn.shift()}var Lr=Xt.ReactCurrentBatchConfig,as=!0;function kg(e,t,n,r){var o=ee,i=Lr.transition;Lr.transition=null;try{ee=1,mu(e,t,n,r)}finally{ee=o,Lr.transition=i}}function Pg(e,t,n,r){var o=ee,i=Lr.transition;Lr.transition=null;try{ee=4,mu(e,t,n,r)}finally{ee=o,Lr.transition=i}}function mu(e,t,n,r){if(as){var o=da(e,t,n,r);if(o===null)Rl(e,t,r,us,n),jc(e,r);else if(Sg(o,e,t,n,r))r.stopPropagation();else if(jc(e,r),t&4&&-1<Eg.indexOf(e)){for(;o!==null;){var i=di(o);if(i!==null&&up(i),i=da(e,t,n,r),i===null&&Rl(e,t,r,us,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Rl(e,t,r,null,n)}}var us=null;function da(e,t,n,r){if(us=null,e=du(r),e=Wn(e),e!==null)if(t=ur(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return us=e,null}function hp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fg()){case fu:return 1;case ip:return 4;case ss:case pg:return 16;case sp:return 536870912;default:return 16}default:return 16}}var gn=null,vu=null,Hi=null;function mp(){if(Hi)return Hi;var e,t=vu,n=t.length,r,o="value"in gn?gn.value:gn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Hi=o.slice(e,1<r?1-r:void 0)}function Qi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bi(){return!0}function Mc(){return!1}function Je(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?bi:Mc,this.isPropagationStopped=Mc,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gu=Je(ro),ci=ce({},ro,{view:0,detail:0}),Tg=Je(ci),wl,xl,go,Ms=ce({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==go&&(go&&e.type==="mousemove"?(wl=e.screenX-go.screenX,xl=e.screenY-go.screenY):xl=wl=0,go=e),wl)},movementY:function(e){return"movementY"in e?e.movementY:xl}}),Ic=Je(Ms),bg=ce({},Ms,{dataTransfer:0}),Rg=Je(bg),Ng=ce({},ci,{relatedTarget:0}),El=Je(Ng),_g=ce({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),Og=Je(_g),Ag=ce({},ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jg=Je(Ag),Lg=ce({},ro,{data:0}),Dc=Je(Lg),Mg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ig={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dg[e])?!!t[e]:!1}function yu(){return zg}var Fg=ce({},ci,{key:function(e){if(e.key){var t=Mg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ig[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$g=Je(Fg),Ug=ce({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zc=Je(Ug),Bg=ce({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),Vg=Je(Bg),Wg=ce({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hg=Je(Wg),Qg=ce({},Ms,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kg=Je(Qg),Yg=[9,13,27,32],wu=Wt&&"CompositionEvent"in window,No=null;Wt&&"documentMode"in document&&(No=document.documentMode);var Gg=Wt&&"TextEvent"in window&&!No,vp=Wt&&(!wu||No&&8<No&&11>=No),Fc=" ",$c=!1;function gp(e,t){switch(e){case"keyup":return Yg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function Xg(e,t){switch(e){case"compositionend":return yp(t);case"keypress":return t.which!==32?null:($c=!0,Fc);case"textInput":return e=t.data,e===Fc&&$c?null:e;default:return null}}function qg(e,t){if(Er)return e==="compositionend"||!wu&&gp(e,t)?(e=mp(),Hi=vu=gn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vp&&t.locale!=="ko"?null:t.data;default:return null}}var Zg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zg[e.type]:t==="textarea"}function wp(e,t,n,r){Xf(r),t=cs(t,"onChange"),0<t.length&&(n=new gu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _o=null,Vo=null;function Jg(e){_p(e,0)}function Is(e){var t=kr(e);if(Vf(t))return e}function ey(e,t){if(e==="change")return t}var xp=!1;if(Wt){var Sl;if(Wt){var Cl="oninput"in document;if(!Cl){var Bc=document.createElement("div");Bc.setAttribute("oninput","return;"),Cl=typeof Bc.oninput=="function"}Sl=Cl}else Sl=!1;xp=Sl&&(!document.documentMode||9<document.documentMode)}function Vc(){_o&&(_o.detachEvent("onpropertychange",Ep),Vo=_o=null)}function Ep(e){if(e.propertyName==="value"&&Is(Vo)){var t=[];wp(t,Vo,e,du(e)),ep(Jg,t)}}function ty(e,t,n){e==="focusin"?(Vc(),_o=t,Vo=n,_o.attachEvent("onpropertychange",Ep)):e==="focusout"&&Vc()}function ny(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Is(Vo)}function ry(e,t){if(e==="click")return Is(t)}function oy(e,t){if(e==="input"||e==="change")return Is(t)}function iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:iy;function Wo(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Kl.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function Wc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hc(e,t){var n=Wc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wc(n)}}function Sp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cp(){for(var e=window,t=rs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rs(e.document)}return t}function xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sy(e){var t=Cp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sp(n.ownerDocument.documentElement,n)){if(r!==null&&xu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Hc(n,i);var s=Hc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ly=Wt&&"documentMode"in document&&11>=document.documentMode,Sr=null,fa=null,Oo=null,pa=!1;function Qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pa||Sr==null||Sr!==rs(r)||(r=Sr,"selectionStart"in r&&xu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Oo&&Wo(Oo,r)||(Oo=r,r=cs(fa,"onSelect"),0<r.length&&(t=new gu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Ri(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:Ri("Animation","AnimationEnd"),animationiteration:Ri("Animation","AnimationIteration"),animationstart:Ri("Animation","AnimationStart"),transitionend:Ri("Transition","TransitionEnd")},kl={},kp={};Wt&&(kp=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);function Ds(e){if(kl[e])return kl[e];if(!Cr[e])return e;var t=Cr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kp)return kl[e]=t[n];return e}var Pp=Ds("animationend"),Tp=Ds("animationiteration"),bp=Ds("animationstart"),Rp=Ds("transitionend"),Np=new Map,Kc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function In(e,t){Np.set(e,t),ar(t,[e])}for(var Pl=0;Pl<Kc.length;Pl++){var Tl=Kc[Pl],ay=Tl.toLowerCase(),uy=Tl[0].toUpperCase()+Tl.slice(1);In(ay,"on"+uy)}In(Pp,"onAnimationEnd");In(Tp,"onAnimationIteration");In(bp,"onAnimationStart");In("dblclick","onDoubleClick");In("focusin","onFocus");In("focusout","onBlur");In(Rp,"onTransitionEnd");Kr("onMouseEnter",["mouseout","mouseover"]);Kr("onMouseLeave",["mouseout","mouseover"]);Kr("onPointerEnter",["pointerout","pointerover"]);Kr("onPointerLeave",["pointerout","pointerover"]);ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cy=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function Yc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ag(r,t,void 0,e),e.currentTarget=null}function _p(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;Yc(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;Yc(o,l,u),i=a}}}if(is)throw e=aa,is=!1,aa=null,e}function oe(e,t){var n=t[ya];n===void 0&&(n=t[ya]=new Set);var r=e+"__bubble";n.has(r)||(Op(t,e,2,!1),n.add(r))}function bl(e,t,n){var r=0;t&&(r|=4),Op(n,e,r,t)}var Ni="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[Ni]){e[Ni]=!0,zf.forEach(function(n){n!=="selectionchange"&&(cy.has(n)||bl(n,!1,e),bl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ni]||(t[Ni]=!0,bl("selectionchange",!1,t))}}function Op(e,t,n,r){switch(hp(t)){case 1:var o=kg;break;case 4:o=Pg;break;default:o=mu}n=o.bind(null,t,n,e),o=void 0,!la||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Rl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=Wn(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}ep(function(){var u=i,c=du(n),d=[];e:{var h=Np.get(e);if(h!==void 0){var f=gu,x=e;switch(e){case"keypress":if(Qi(n)===0)break e;case"keydown":case"keyup":f=$g;break;case"focusin":x="focus",f=El;break;case"focusout":x="blur",f=El;break;case"beforeblur":case"afterblur":f=El;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Rg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Vg;break;case Pp:case Tp:case bp:f=Og;break;case Rp:f=Hg;break;case"scroll":f=Tg;break;case"wheel":f=Kg;break;case"copy":case"cut":case"paste":f=jg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=zc}var g=(t&4)!==0,w=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var p=u,v;p!==null;){v=p;var E=v.stateNode;if(v.tag===5&&E!==null&&(v=E,m!==null&&(E=Fo(p,m),E!=null&&g.push(Qo(p,E,v)))),w)break;p=p.return}0<g.length&&(h=new f(h,x,null,n,c),d.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==ia&&(x=n.relatedTarget||n.fromElement)&&(Wn(x)||x[Ht]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?Wn(x):null,x!==null&&(w=ur(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=u),f!==x)){if(g=Ic,E="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=zc,E="onPointerLeave",m="onPointerEnter",p="pointer"),w=f==null?h:kr(f),v=x==null?h:kr(x),h=new g(E,p+"leave",f,n,c),h.target=w,h.relatedTarget=v,E=null,Wn(c)===u&&(g=new g(m,p+"enter",x,n,c),g.target=v,g.relatedTarget=w,E=g),w=E,f&&x)t:{for(g=f,m=x,p=0,v=g;v;v=yr(v))p++;for(v=0,E=m;E;E=yr(E))v++;for(;0<p-v;)g=yr(g),p--;for(;0<v-p;)m=yr(m),v--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=yr(g),m=yr(m)}g=null}else g=null;f!==null&&Gc(d,h,f,g,!1),x!==null&&w!==null&&Gc(d,w,x,g,!0)}}e:{if(h=u?kr(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var C=ey;else if(Uc(h))if(xp)C=oy;else{C=ny;var k=ty}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=ry);if(C&&(C=C(e,u))){wp(d,C,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&ea(h,"number",h.value)}switch(k=u?kr(u):window,e){case"focusin":(Uc(k)||k.contentEditable==="true")&&(Sr=k,fa=u,Oo=null);break;case"focusout":Oo=fa=Sr=null;break;case"mousedown":pa=!0;break;case"contextmenu":case"mouseup":case"dragend":pa=!1,Qc(d,n,c);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":Qc(d,n,c)}var P;if(wu)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Er?gp(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(vp&&n.locale!=="ko"&&(Er||N!=="onCompositionStart"?N==="onCompositionEnd"&&Er&&(P=mp()):(gn=c,vu="value"in gn?gn.value:gn.textContent,Er=!0)),k=cs(u,N),0<k.length&&(N=new Dc(N,e,null,n,c),d.push({event:N,listeners:k}),P?N.data=P:(P=yp(n),P!==null&&(N.data=P)))),(P=Gg?Xg(e,n):qg(e,n))&&(u=cs(u,"onBeforeInput"),0<u.length&&(c=new Dc("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}_p(d,t)})}function Qo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cs(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Fo(e,n),i!=null&&r.unshift(Qo(e,i,o)),i=Fo(e,t),i!=null&&r.push(Qo(e,i,o))),e=e.return}return r}function yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gc(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=Fo(n,i),a!=null&&s.unshift(Qo(n,a,l))):o||(a=Fo(n,i),a!=null&&s.push(Qo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var dy=/\r\n?/g,fy=/\u0000|\uFFFD/g;function Xc(e){return(typeof e=="string"?e:""+e).replace(dy,`
`).replace(fy,"")}function _i(e,t,n){if(t=Xc(t),Xc(e)!==t&&n)throw Error(_(425))}function ds(){}var ha=null,ma=null;function va(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ga=typeof setTimeout=="function"?setTimeout:void 0,py=typeof clearTimeout=="function"?clearTimeout:void 0,qc=typeof Promise=="function"?Promise:void 0,hy=typeof queueMicrotask=="function"?queueMicrotask:typeof qc<"u"?function(e){return qc.resolve(null).then(e).catch(my)}:ga;function my(e){setTimeout(function(){throw e})}function Nl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Bo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Bo(t)}function Cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var oo=Math.random().toString(36).slice(2),Ot="__reactFibe€"+oo,Ko="__reactProps$"+oo,Ht="__reactContaine€"+oo,ya="__reactEvents$"+oo,vy="__reactListeners$"+oo,gy="__reactHandles$"+oo;function Wn(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ht]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zc(e);e!==null;){if(n=e[Ot])return n;e=Zc(e)}return t}e=n,n=e.parentNode}return null}function di(e){return e=e[Ot]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function zs(e){return e[Ko]||null}var wa=[],Pr=-1;function Dn(e){return{current:e}}function ie(e){0>Pr||(e.current=wa[Pr],wa[Pr]=null,Pr--)}function ne(e,t){Pr++,wa[Pr]=e.current,e.current=t}var Nn={},Oe=Dn(Nn),Ue=Dn(!1),nr=Nn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function fs(){ie(Ue),ie(Oe)}function Jc(e,t,n){if(Oe.current!==Nn)throw Error(_(168));ne(Oe,t),ne(Ue,n)}function Ap(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,tg(e)||"Unknown",o));return ce({},n,r)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,nr=Oe.current,ne(Oe,e),ne(Ue,Ue.current),!0}function ed(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Ap(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ue),ie(Oe),ne(Oe,e)):ie(Ue),ne(Ue,n)}var Ft=null,Fs=!1,_l=!1;function jp(e){Ft===null?Ft=[e]:Ft.push(e)}function yy(e){Fs=!0,jp(e)}function zn(){if(!_l&&Ft!==null){_l=!0;var e=0,t=ee;try{var n=Ft;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ft=null,Fs=!1}catch(o){throw Ft!==null&&(Ft=Ft.slice(e+1)),op(fu,zn),o}finally{ee=t,_l=!1}}return null}var Tr=[],br=0,hs=null,ms=0,nt=[],rt=0,rr=null,Ut=1,Bt="";function Bn(e,t){Tr[br++]=ms,Tr[br++]=hs,hs=e,ms=t}function Lp(e,t,n){nt[rt++]=Ut,nt[rt++]=Bt,nt[rt++]=rr,rr=e;var r=Ut;e=Bt;var o=32-wt(r)-1;r&=~(1<<o),n+=1;var i=32-wt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ut=1<<32-wt(t)+o|n<<o|r,Bt=i+e}else Ut=1<<i|n<<o|r,Bt=e}function Eu(e){e.return!==null&&(Bn(e,1),Lp(e,1,0))}function Su(e){for(;e===hs;)hs=Tr[--br],Tr[br]=null,ms=Tr[--br],Tr[br]=null;for(;e===rr;)rr=nt[--rt],nt[rt]=null,Bt=nt[--rt],nt[rt]=null,Ut=nt[--rt],nt[rt]=null}var Ge=null,Ye=null,le=!1,yt=null;function Mp(e,t){var n=ot(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function td(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ge=e,Ye=Cn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ge=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=rr!==null?{id:Ut,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ot(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ge=e,Ye=null,!0):!1;default:return!1}}function xa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ea(e){if(le){var t=Ye;if(t){var n=t;if(!td(e,t)){if(xa(e))throw Error(_(418));t=Cn(n.nextSibling);var r=Ge;t&&td(e,t)?Mp(r,n):(e.flags=e.flags&-4097|2,le=!1,Ge=e)}}else{if(xa(e))throw Error(_(418));e.flags=e.flags&-4097|2,le=!1,Ge=e}}}function nd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ge=e}function Oi(e){if(e!==Ge)return!1;if(!le)return nd(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!va(e.type,e.memoizedProps)),t&&(t=Ye)){if(xa(e))throw Ip(),Error(_(418));for(;t;)Mp(e,t),t=Cn(t.nextSibling)}if(nd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=Cn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Ge?Cn(e.stateNode.nextSibling):null;return!0}function Ip(){for(var e=Ye;e;)e=Cn(e.nextSibling)}function Gr(){Ye=Ge=null,le=!1}function Cu(e){yt===null?yt=[e]:yt.push(e)}var wy=Xt.ReactCurrentBatchConfig;function yo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Ai(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rd(e){var t=e._init;return t(e._payload)}function Dp(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function o(m,p){return m=bn(m,p),m.index=0,m.sibling=null,m}function i(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,v,E){return p===null||p.tag!==6?(p=Dl(v,m.mode,E),p.return=m,p):(p=o(p,v),p.return=m,p)}function a(m,p,v,E){var C=v.type;return C===xr?c(m,p,v.props.children,E,v.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===an&&rd(C)===p.type)?(E=o(p,v.props),E.ref=yo(m,p,v),E.return=m,E):(E=Ji(v.type,v.key,v.props,null,m.mode,E),E.ref=yo(m,p,v),E.return=m,E)}function u(m,p,v,E){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=zl(v,m.mode,E),p.return=m,p):(p=o(p,v.children||[]),p.return=m,p)}function c(m,p,v,E,C){return p===null||p.tag!==7?(p=er(v,m.mode,E,C),p.return=m,p):(p=o(p,v),p.return=m,p)}function d(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Dl(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ei:return v=Ji(p.type,p.key,p.props,null,m.mode,v),v.ref=yo(m,null,p),v.return=m,v;case wr:return p=zl(p,m.mode,v),p.return=m,p;case an:var E=p._init;return d(m,E(p._payload),v)}if(ko(p)||po(p))return p=er(p,m.mode,v,null),p.return=m,p;Ai(m,p)}return null}function h(m,p,v,E){var C=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return C!==null?null:l(m,p,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ei:return v.key===C?a(m,p,v,E):null;case wr:return v.key===C?u(m,p,v,E):null;case an:return C=v._init,h(m,p,C(v._payload),E)}if(ko(v)||po(v))return C!==null?null:c(m,p,v,E,null);Ai(m,v)}return null}function f(m,p,v,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return m=m.get(v)||null,l(p,m,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Ei:return m=m.get(E.key===null?v:E.key)||null,a(p,m,E,C);case wr:return m=m.get(E.key===null?v:E.key)||null,u(p,m,E,C);case an:var k=E._init;return f(m,p,v,k(E._payload),C)}if(ko(E)||po(E))return m=m.get(v)||null,c(p,m,E,C,null);Ai(p,E)}return null}function x(m,p,v,E){for(var C=null,k=null,P=p,N=p=0,j=null;P!==null&&N<v.length;N++){P.index>N?(j=P,P=null):j=P.sibling;var A=h(m,P,v[N],E);if(A===null){P===null&&(P=j);break}e&&P&&A.alternate===null&&t(m,P),p=i(A,p,N),k===null?C=A:k.sibling=A,k=A,P=j}if(N===v.length)return n(m,P),le&&Bn(m,N),C;if(P===null){for(;N<v.length;N++)P=d(m,v[N],E),P!==null&&(p=i(P,p,N),k===null?C=P:k.sibling=P,k=P);return le&&Bn(m,N),C}for(P=r(m,P);N<v.length;N++)j=f(P,m,N,v[N],E),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?N:j.key),p=i(j,p,N),k===null?C=j:k.sibling=j,k=j);return e&&P.forEach(function(F){return t(m,F)}),le&&Bn(m,N),C}function g(m,p,v,E){var C=po(v);if(typeof C!="function")throw Error(_(150));if(v=C.call(v),v==null)throw Error(_(151));for(var k=C=null,P=p,N=p=0,j=null,A=v.next();P!==null&&!A.done;N++,A=v.next()){P.index>N?(j=P,P=null):j=P.sibling;var F=h(m,P,A.value,E);if(F===null){P===null&&(P=j);break}e&&P&&F.alternate===null&&t(m,P),p=i(F,p,N),k===null?C=F:k.sibling=F,k=F,P=j}if(A.done)return n(m,P),le&&Bn(m,N),C;if(P===null){for(;!A.done;N++,A=v.next())A=d(m,A.value,E),A!==null&&(p=i(A,p,N),k===null?C=A:k.sibling=A,k=A);return le&&Bn(m,N),C}for(P=r(m,P);!A.done;N++,A=v.next())A=f(P,m,N,A.value,E),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?N:A.key),p=i(A,p,N),k===null?C=A:k.sibling=A,k=A);return e&&P.forEach(function(D){return t(m,D)}),le&&Bn(m,N),C}function w(m,p,v,E){if(typeof v=="object"&&v!==null&&v.type===xr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ei:e:{for(var C=v.key,k=p;k!==null;){if(k.key===C){if(C=v.type,C===xr){if(k.tag===7){n(m,k.sibling),p=o(k,v.props.children),p.return=m,m=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===an&&rd(C)===k.type){n(m,k.sibling),p=o(k,v.props),p.ref=yo(m,k,v),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}v.type===xr?(p=er(v.props.children,m.mode,E,v.key),p.return=m,m=p):(E=Ji(v.type,v.key,v.props,null,m.mode,E),E.ref=yo(m,p,v),E.return=m,m=E)}return s(m);case wr:e:{for(k=v.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=o(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=zl(v,m.mode,E),p.return=m,m=p}return s(m);case an:return k=v._init,w(m,p,k(v._payload),E)}if(ko(v))return x(m,p,v,E);if(po(v))return g(m,p,v,E);Ai(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,v),p.return=m,m=p):(n(m,p),p=Dl(v,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return w}var Xr=Dp(!0),zp=Dp(!1),vs=Dn(null),gs=null,Rr=null,ku=null;function Pu(){ku=Rr=gs=null}function Tu(e){var t=vs.current;ie(vs),e._currentValue=t}function Sa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mr(e,t){gs=e,ku=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(ku!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(gs===null)throw Error(_(308));Rr=e,gs.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var Hn=null;function bu(e){Hn===null?Hn=[e]:Hn.push(e)}function Fp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,bu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function Ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qt(e,n)}return o=r.interleaved,o===null?(t.next=t,bu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qt(e,n)}function Ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}function od(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ys(e,t,n,r){var o=e.updateQueue;un=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=null,l=i;do{var h=l.lane,f=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,g=l;switch(h=t,f=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){d=x.call(f,d,h);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,h=typeof x=="function"?x.call(f,d,h):x,h==null)break e;d=ce({},d,h);break e;case 2:un=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else f={eventTime:f,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,a=d):c=c.next=f,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ir|=s,e.lanes=s,e.memoizedState=d}}function id(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(_(191,o));o.call(r)}}}var fi={},jt=Dn(fi),Yo=Dn(fi),Go=Dn(fi);function Qn(e){if(e===fi)throw Error(_(174));return e}function Nu(e,t){switch(ne(Go,t),ne(Yo,e),ne(jt,fi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:na(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=na(t,e)}ie(jt),ne(jt,t)}function qr(){ie(jt),ie(Yo),ie(Go)}function Up(e){Qn(Go.current);var t=Qn(jt.current),n=na(t,e.type);t!==n&&(ne(Yo,e),ne(jt,n))}function _u(e){Yo.current===e&&(ie(jt),ie(Yo))}var ae=Dn(0);function ws(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ol=[];function Ou(){for(var e=0;e<Ol.length;e++)Ol[e]._workInProgressVersionPrimary=null;Ol.length=0}var Yi=Xt.ReactCurrentDispatcher,Al=Xt.ReactCurrentBatchConfig,or=0,ue=null,ve=null,xe=null,xs=!1,Ao=!1,Xo=0,xy=0;function be(){throw Error(_(321))}function Au(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function ju(e,t,n,r,o,i){if(or=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=e===null||e.memoizedState===null?ky:Py,e=n(r,o),Ao){i=0;do{if(Ao=!1,Xo=0,25<=i)throw Error(_(301));i+=1,xe=ve=null,t.updateQueue=null,Yi.current=Ty,e=n(r,o)}while(Ao)}if(Yi.current=Es,t=ve!==null&&ve.next!==null,or=0,xe=ve=ue=null,xs=!1,t)throw Error(_(300));return e}function Lu(){var e=Xo!==0;return Xo=0,e}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xe===null?ue.memoizedState=xe=e:xe=xe.next=e,xe}function lt(){if(ve===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=xe===null?ue.memoizedState:xe.next;if(t!==null)xe=t,ve=e;else{if(e===null)throw Error(_(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},xe===null?ue.memoizedState=xe=e:xe=xe.next=e}return xe}function qo(e,t){return typeof t=="function"?t(e):t}function jl(e){var t=lt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=ve,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var c=u.lane;if((or&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,s=r):a=a.next=d,ue.lanes|=c,ir|=c}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,Et(r,t.memoizedState)||($e=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ue.lanes|=i,ir|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ll(e){var t=lt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Et(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Bp(){}function Vp(e,t){var n=ue,r=lt(),o=t(),i=!Et(r.memoizedState,o);if(i&&(r.memoizedState=o,$e=!0),r=r.queue,Mu(Qp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||xe!==null&&xe.memoizedState.tag&1){if(n.flags|=2048,Zo(9,Hp.bind(null,n,r,o,t),void 0,null),Ee===null)throw Error(_(349));or&30||Wp(n,t,o)}return o}function Wp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hp(e,t,n,r){t.value=n,t.getSnapshot=r,Kp(t)&&Yp(e)}function Qp(e,t,n){return n(function(){Kp(t)&&Yp(e)})}function Kp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Yp(e){var t=Qt(e,1);t!==null&&xt(t,e,1,-1)}function sd(e){var t=bt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t.queue=e,e=e.dispatch=Cy.bind(null,ue,e),[t.memoizedState,e]}function Zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Gp(){return lt().memoizedState}function Gi(e,t,n,r){var o=bt();ue.flags|=e,o.memoizedState=Zo(1|t,n,void 0,r===void 0?null:r)}function $s(e,t,n,r){var o=lt();r=r===void 0?null:r;var i=void 0;if(ve!==null){var s=ve.memoizedState;if(i=s.destroy,r!==null&&Au(r,s.deps)){o.memoizedState=Zo(t,n,i,r);return}}ue.flags|=e,o.memoizedState=Zo(1|t,n,i,r)}function ld(e,t){return Gi(8390656,8,e,t)}function Mu(e,t){return $s(2048,8,e,t)}function Xp(e,t){return $s(4,2,e,t)}function qp(e,t){return $s(4,4,e,t)}function Zp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jp(e,t,n){return n=n!=null?n.concat([e]):null,$s(4,4,Zp.bind(null,t,e),n)}function Iu(){}function eh(e,t){var n=lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Au(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function th(e,t){var n=lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Au(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nh(e,t,n){return or&21?(Et(n,t)||(n=lp(),ue.lanes|=n,ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function Ey(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),t()}finally{ee=n,Al.transition=r}}function rh(){return lt().memoizedState}function Sy(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oh(e))ih(t,n);else if(n=Fp(e,t,n,r),n!==null){var o=Me();xt(n,e,r,o),sh(n,t,r)}}function Cy(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oh(e))ih(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Et(l,s)){var a=t.interleaved;a===null?(o.next=o,bu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Fp(e,t,o,r),n!==null&&(o=Me(),xt(n,e,r,o),sh(n,t,r))}}function oh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ih(e,t){Ao=xs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}var Es={readContext:st,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},ky={readContext:st,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:ld,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gi(4194308,4,Zp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var n=bt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Sy.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:sd,useDebugValue:Iu,useDeferredValue:function(e){return bt().memoizedState=e},useTransition:function(){var e=sd(!1),t=e[0];return e=Ey.bind(null,e[1]),bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=bt();if(le){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Ee===null)throw Error(_(349));or&30||Wp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ld(Qp.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,Hp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bt(),t=Ee.identifierPrefix;if(le){var n=Bt,r=Ut;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Py={readContext:st,useCallback:eh,useContext:st,useEffect:Mu,useImperativeHandle:Jp,useInsertionEffect:Xp,useLayoutEffect:qp,useMemo:th,useReducer:jl,useRef:Gp,useState:function(){return jl(qo)},useDebugValue:Iu,useDeferredValue:function(e){var t=lt();return nh(t,ve.memoizedState,e)},useTransition:function(){var e=jl(qo)[0],t=lt().memoizedState;return[e,t]},useMutableSource:Bp,useSyncExternalStore:Vp,useId:rh,unstable_isNewReconciler:!1},Ty={readContext:st,useCallback:eh,useContext:st,useEffect:Mu,useImperativeHandle:Jp,useInsertionEffect:Xp,useLayoutEffect:qp,useMemo:th,useReducer:Ll,useRef:Gp,useState:function(){return Ll(qo)},useDebugValue:Iu,useDeferredValue:function(e){var t=lt();return ve===null?t.memoizedState=e:nh(t,ve.memoizedState,e)},useTransition:function(){var e=Ll(qo)[0],t=lt().memoizedState;return[e,t]},useMutableSource:Bp,useSyncExternalStore:Vp,useId:rh,unstable_isNewReconciler:!1};function pt(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ca(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={isMounted:function(e){return(e=e._reactInternals)?ur(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),o=Tn(e),i=Vt(r,o);i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,o),t!==null&&(xt(t,e,o,r),Ki(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),o=Tn(e),i=Vt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,o),t!==null&&(xt(t,e,o,r),Ki(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=Tn(e),o=Vt(n,r);o.tag=2,t!=null&&(o.callback=t),t=kn(e,o,r),t!==null&&(xt(t,e,r,n),Ki(t,e,r))}};function ad(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Wo(n,r)||!Wo(o,i):!0}function lh(e,t,n){var r=!1,o=Nn,i=t.contextType;return typeof i=="object"&&i!==null?i=st(i):(o=Be(t)?nr:Oe.current,r=t.contextTypes,i=(r=r!=null)?Yr(e,o):Nn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Us,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ud(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function ka(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ru(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=st(i):(i=Be(t)?nr:Oe.current,o.context=Yr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ca(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Us.enqueueReplaceState(o,o.state,null),ys(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Zr(e,t){try{var n="",r=t;do n+=eg(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ml(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Pa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var by=typeof WeakMap=="function"?WeakMap:Map;function ah(e,t,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cs||(Cs=!0,Ma=r),Pa(e,t)},n}function uh(e,t,n){n=Vt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Pa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Pa(e,t),typeof r!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function cd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new by;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Uy.bind(null,e,t,n),t.then(e,e))}function dd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vt(-1,1),t.tag=2,kn(n,t,1))),n.lanes|=1),e)}var Ry=Xt.ReactCurrentOwner,$e=!1;function je(e,t,n,r){t.child=e===null?zp(t,null,n,r):Xr(t,e.child,n,r)}function pd(e,t,n,r,o){n=n.render;var i=t.ref;return Mr(t,o),r=ju(e,t,n,r,i,o),n=Lu(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Kt(e,t,o)):(le&&n&&Eu(t),t.flags|=1,je(e,t,r,o),t.child)}function hd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Wu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ch(e,t,i,r,o)):(e=Ji(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Wo,n(s,r)&&e.ref===t.ref)return Kt(e,t,o)}return t.flags|=1,e=bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ch(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Wo(i,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,Kt(e,t,o)}return Ta(e,t,n,r,o)}function dh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(_r,Qe),Qe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(_r,Qe),Qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ne(_r,Qe),Qe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ne(_r,Qe),Qe|=r;return je(e,t,o,n),t.child}function fh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ta(e,t,n,r,o){var i=Be(n)?nr:Oe.current;return i=Yr(t,i),Mr(t,o),n=ju(e,t,n,r,i,o),r=Lu(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Kt(e,t,o)):(le&&r&&Eu(t),t.flags|=1,je(e,t,n,o),t.child)}function md(e,t,n,r,o){if(Be(n)){var i=!0;ps(t)}else i=!1;if(Mr(t,o),t.stateNode===null)Xi(e,t),lh(t,n,r),ka(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=st(u):(u=Be(n)?nr:Oe.current,u=Yr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&ud(t,s,r,u),un=!1;var h=t.memoizedState;s.state=h,ys(t,r,s,o),a=t.memoizedState,l!==r||h!==a||Ue.current||un?(typeof c=="function"&&(Ca(t,n,c,r),a=t.memoizedState),(l=un||ad(t,n,l,r,h,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,$p(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:pt(t.type,l),s.props=u,d=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=st(a):(a=Be(n)?nr:Oe.current,a=Yr(t,a));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||h!==a)&&ud(t,s,r,a),un=!1,h=t.memoizedState,s.state=h,ys(t,r,s,o);var x=t.memoizedState;l!==d||h!==x||Ue.current||un?(typeof f=="function"&&(Ca(t,n,f,r),x=t.memoizedState),(u=un||ad(t,n,u,r,h,x,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ba(e,t,n,r,i,o)}function ba(e,t,n,r,o,i){fh(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ed(t,n,!1),Kt(e,t,i);r=t.stateNode,Ry.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Xr(t,e.child,null,i),t.child=Xr(t,null,l,i)):je(e,t,l,i),t.memoizedState=r.state,o&&ed(t,n,!0),t.child}function ph(e){var t=e.stateNode;t.pendingContext?Jc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jc(e,t.context,!1),Nu(e,t.containerInfo)}function vd(e,t,n,r,o){return Gr(),Cu(o),t.flags|=256,je(e,t,n,r),t.child}var Ra={dehydrated:null,treeContext:null,retryLane:0};function Na(e){return{baseLanes:e,cachePool:null,transitions:null}}function hh(e,t,n){var r=t.pendingProps,o=ae.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ae,o&1),e===null)return Ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Ws(s,r,0,null),e=er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Na(n),t.memoizedState=Ra,e):Du(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ny(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=bn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=bn(l,i):(i=er(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Na(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Ra,r}return i=e.child,e=i.sibling,r=bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Du(e,t){return t=Ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ji(e,t,n,r){return r!==null&&Cu(r),Xr(t,e.child,null,n),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ny(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ml(Error(_(422))),ji(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ws({mode:"visible",children:r.children},o,0,null),i=er(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Xr(t,e.child,null,s),t.child.memoizedState=Na(s),t.memoizedState=Ra,i);if(!(t.mode&1))return ji(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(_(419)),r=Ml(i,r,void 0),ji(e,t,s,r)}if(l=(s&e.childLanes)!==0,$e||l){if(r=Ee,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Qt(e,o),xt(r,e,o,-1))}return Vu(),r=Ml(Error(_(421))),ji(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=By.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ye=Cn(o.nextSibling),Ge=t,le=!0,yt=null,e!==null&&(nt[rt++]=Ut,nt[rt++]=Bt,nt[rt++]=rr,Ut=e.id,Bt=e.overflow,rr=t),t=Du(t,r.children),t.flags|=4096,t)}function gd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sa(e.return,t,n)}function Il(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function mh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(je(e,t,r.children,n),r=ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gd(e,n,t);else if(e.tag===19)gd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(ae,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ws(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Il(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ws(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Il(t,!0,n,null,i);break;case"together":Il(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _y(e,t,n){switch(t.tag){case 3:ph(t),Gr();break;case 5:Up(t);break;case 1:Be(t.type)&&ps(t);break;case 4:Nu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ne(vs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?hh(e,t,n):(ne(ae,ae.current&1),e=Kt(e,t,n),e!==null?e.sibling:null);ne(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,dh(e,t,n)}return Kt(e,t,n)}var vh,_a,gh,yh;vh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_a=function(){};gh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qn(jt.current);var i=null;switch(n){case"input":o=Zl(e,o),r=Zl(e,r),i=[];break;case"select":o=ce({},o,{value:void 0}),r=ce({},r,{value:void 0}),i=[];break;case"textarea":o=ta(e,o),r=ta(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ds)}ra(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Do.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Do.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&oe("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};yh=function(e,t,n,r){n!==r&&(t.flags|=4)};function wo(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Oy(e,t,n){var r=t.pendingProps;switch(Su(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Be(t.type)&&fs(),Re(t),null;case 3:return r=t.stateNode,qr(),ie(Ue),ie(Oe),Ou(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(za(yt),yt=null))),_a(e,t),Re(t),null;case 5:_u(t);var o=Qn(Go.current);if(n=t.type,e!==null&&t.stateNode!=null)gh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Re(t),null}if(e=Qn(jt.current),Oi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ot]=t,r[Ko]=i,e=(t.mode&1)!==0,n){case"dialog":oe("cancel",r),oe("close",r);break;case"iframe":case"object":case"embed":oe("load",r);break;case"video":case"audio":for(o=0;o<To.length;o++)oe(To[o],r);break;case"source":oe("error",r);break;case"img":case"image":case"link":oe("error",r),oe("load",r);break;case"details":oe("toggle",r);break;case"input":Tc(r,i),oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},oe("invalid",r);break;case"textarea":Rc(r,i),oe("invalid",r)}ra(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&_i(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&_i(r.textContent,l,e),o=["children",""+l]):Do.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&oe("scroll",r)}switch(n){case"input":Si(r),bc(r,i,!0);break;case"textarea":Si(r),Nc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ds)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ot]=t,e[Ko]=r,vh(e,t,!1,!1),t.stateNode=e;e:{switch(s=oa(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;o<To.length;o++)oe(To[o],e);o=r;break;case"source":oe("error",e),o=r;break;case"img":case"image":case"link":oe("error",e),oe("load",e),o=r;break;case"details":oe("toggle",e),o=r;break;case"input":Tc(e,r),o=Zl(e,r),oe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ce({},r,{value:void 0}),oe("invalid",e);break;case"textarea":Rc(e,r),o=ta(e,r),oe("invalid",e);break;default:o=r}ra(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?Gf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Kf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&zo(e,a):typeof a=="number"&&zo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Do.hasOwnProperty(i)?a!=null&&i==="onScroll"&&oe("scroll",e):a!=null&&lu(e,i,a,s))}switch(n){case"input":Si(e),bc(e,r,!1);break;case"textarea":Si(e),Nc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Rn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ds)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Re(t),null;case 6:if(e&&t.stateNode!=null)yh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Qn(Go.current),Qn(jt.current),Oi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ot]=t,(i=r.nodeValue!==n)&&(e=Ge,e!==null))switch(e.tag){case 3:_i(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_i(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ot]=t,t.stateNode=r}return Re(t),null;case 13:if(ie(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(le&&Ye!==null&&t.mode&1&&!(t.flags&128))Ip(),Gr(),t.flags|=98560,i=!1;else if(i=Oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[Ot]=t}else Gr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),i=!1}else yt!==null&&(za(yt),yt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ae.current&1?ye===0&&(ye=3):Vu())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return qr(),_a(e,t),e===null&&Ho(t.stateNode.containerInfo),Re(t),null;case 10:return Tu(t.type._context),Re(t),null;case 17:return Be(t.type)&&fs(),Re(t),null;case 19:if(ie(ae),i=t.memoizedState,i===null)return Re(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)wo(i,!1);else{if(ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ws(e),s!==null){for(t.flags|=128,wo(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ne(ae,ae.current&1|2),t.child}e=e.sibling}i.tail!==null&&pe()>Jr&&(t.flags|=128,r=!0,wo(i,!1),t.lanes=4194304)}else{if(!r)if(e=ws(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return Re(t),null}else 2*pe()-i.renderingStartTime>Jr&&n!==1073741824&&(t.flags|=128,r=!0,wo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return Bu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function Ay(e,t){switch(Su(t),t.tag){case 1:return Be(t.type)&&fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),ie(Ue),ie(Oe),Ou(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _u(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return qr(),null;case 10:return Tu(t.type._context),null;case 22:case 23:return Bu(),null;case 24:return null;default:return null}}var Li=!1,_e=!1,jy=typeof WeakSet=="function"?WeakSet:Set,I=null;function Nr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Oa(e,t,n){try{n()}catch(r){fe(e,t,r)}}var yd=!1;function Ly(e,t){if(ha=as,e=Cp(),xu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var f;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ma={focusedElem:e,selectionRange:n},as=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,w=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:pt(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return x=yd,yd=!1,x}function jo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Oa(t,n,i)}o=o.next}while(o!==r)}}function Bs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Aa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ot],delete t[Ko],delete t[ya],delete t[vy],delete t[gy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xh(e){return e.tag===5||e.tag===3||e.tag===4}function wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ja(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ds));else if(r!==4&&(e=e.child,e!==null))for(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}function La(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(La(e,t,n),e=e.sibling;e!==null;)La(e,t,n),e=e.sibling}var Se=null,gt=!1;function rn(e,t,n){for(n=n.child;n!==null;)Eh(e,t,n),n=n.sibling}function Eh(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Ls,n)}catch{}switch(n.tag){case 5:_e||Nr(n,t);case 6:var r=Se,o=gt;Se=null,rn(e,t,n),Se=r,gt=o,Se!==null&&(gt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(gt?(e=Se,n=n.stateNode,e.nodeType===8?Nl(e.parentNode,n):e.nodeType===1&&Nl(e,n),Bo(e)):Nl(Se,n.stateNode));break;case 4:r=Se,o=gt,Se=n.stateNode.containerInfo,gt=!0,rn(e,t,n),Se=r,gt=o;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Oa(n,t,s),o=o.next}while(o!==r)}rn(e,t,n);break;case 1:if(!_e&&(Nr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,rn(e,t,n),_e=r):rn(e,t,n);break;default:rn(e,t,n)}}function xd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jy),t.forEach(function(r){var o=Vy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Se=l.stateNode,gt=!1;break e;case 3:Se=l.stateNode.containerInfo,gt=!0;break e;case 4:Se=l.stateNode.containerInfo,gt=!0;break e}l=l.return}if(Se===null)throw Error(_(160));Eh(i,s,o),Se=null,gt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){fe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sh(t,e),t=t.sibling}function Sh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dt(t,e),Tt(e),r&4){try{jo(3,e,e.return),Bs(3,e)}catch(g){fe(e,e.return,g)}try{jo(5,e,e.return)}catch(g){fe(e,e.return,g)}}break;case 1:dt(t,e),Tt(e),r&512&&n!==null&&Nr(n,n.return);break;case 5:if(dt(t,e),Tt(e),r&512&&n!==null&&Nr(n,n.return),e.flags&32){var o=e.stateNode;try{zo(o,"")}catch(g){fe(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Wf(o,i),oa(l,s);var u=oa(l,i);for(s=0;s<a.length;s+=2){var c=a[s],d=a[s+1];c==="style"?Gf(o,d):c==="dangerouslySetInnerHTML"?Kf(o,d):c==="children"?zo(o,d):lu(o,c,d,u)}switch(l){case"input":Jl(o,i);break;case"textarea":Hf(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Or(o,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?Or(o,!!i.multiple,i.defaultValue,!0):Or(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ko]=i}catch(g){fe(e,e.return,g)}}break;case 6:if(dt(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){fe(e,e.return,g)}}break;case 3:if(dt(t,e),Tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bo(t.containerInfo)}catch(g){fe(e,e.return,g)}break;case 4:dt(t,e),Tt(e);break;case 13:dt(t,e),Tt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||($u=pe())),r&4&&xd(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(_e=(u=_e)||c,dt(t,e),_e=u):dt(t,e),Tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(I=e,c=e.child;c!==null;){for(d=I=c;I!==null;){switch(h=I,f=h.child,h.tag){case 0:case 11:case 14:case 15:jo(4,h,h.return);break;case 1:Nr(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){fe(r,n,g)}}break;case 5:Nr(h,h.return);break;case 22:if(h.memoizedState!==null){Sd(d);continue}}f!==null?(f.return=h,I=f):Sd(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Yf("display",s))}catch(g){fe(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){fe(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:dt(t,e),Tt(e),r&4&&xd(e);break;case 21:break;default:dt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xh(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(zo(o,""),r.flags&=-33);var i=wd(e);La(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=wd(e);ja(e,l,s);break;default:throw Error(_(161))}}catch(a){fe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function My(e,t,n){I=e,Ch(e)}function Ch(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Li;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||_e;l=Li;var u=_e;if(Li=s,(_e=a)&&!u)for(I=o;I!==null;)s=I,a=s.child,s.tag===22&&s.memoizedState!==null?Cd(o):a!==null?(a.return=s,I=a):Cd(o);for(;i!==null;)I=i,Ch(i),i=i.sibling;I=o,Li=l,_e=u}Ed(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,I=i):Ed(e)}}function Ed(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_e||Bs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!_e)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:pt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&id(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}id(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Bo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}_e||t.flags&512&&Aa(t)}catch(h){fe(t,t.return,h)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Sd(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function Cd(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bs(4,t)}catch(a){fe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){fe(t,o,a)}}var i=t.return;try{Aa(t)}catch(a){fe(t,i,a)}break;case 5:var s=t.return;try{Aa(t)}catch(a){fe(t,s,a)}}}catch(a){fe(t,t.return,a)}if(t===e){I=null;break}var l=t.sibling;if(l!==null){l.return=t.return,I=l;break}I=t.return}}var Iy=Math.ceil,Ss=Xt.ReactCurrentDispatcher,zu=Xt.ReactCurrentOwner,it=Xt.ReactCurrentBatchConfig,q=0,Ee=null,me=null,Ce=0,Qe=0,_r=Dn(0),ye=0,Jo=null,ir=0,Vs=0,Fu=0,Lo=null,Fe=null,$u=0,Jr=1/0,zt=null,Cs=!1,Ma=null,Pn=null,Mi=!1,yn=null,ks=0,Mo=0,Ia=null,qi=-1,Zi=0;function Me(){return q&6?pe():qi!==-1?qi:qi=pe()}function Tn(e){return e.mode&1?q&2&&Ce!==0?Ce&-Ce:wy.transition!==null?(Zi===0&&(Zi=lp()),Zi):(e=ee,e!==0||(e=window.event,e=e===void 0?16:hp(e.type)),e):1}function xt(e,t,n,r){if(50<Mo)throw Mo=0,Ia=null,Error(_(185));ui(e,n,r),(!(q&2)||e!==Ee)&&(e===Ee&&(!(q&2)&&(Vs|=n),ye===4&&dn(e,Ce)),Ve(e,r),n===1&&q===0&&!(t.mode&1)&&(Jr=pe()+500,Fs&&zn()))}function Ve(e,t){var n=e.callbackNode;wg(e,t);var r=ls(e,e===Ee?Ce:0);if(r===0)n!==null&&Ac(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ac(n),t===1)e.tag===0?yy(kd.bind(null,e)):jp(kd.bind(null,e)),hy(function(){!(q&6)&&zn()}),n=null;else{switch(ap(r)){case 1:n=fu;break;case 4:n=ip;break;case 16:n=ss;break;case 536870912:n=sp;break;default:n=ss}n=Oh(n,kh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kh(e,t){if(qi=-1,Zi=0,q&6)throw Error(_(327));var n=e.callbackNode;if(Ir()&&e.callbackNode!==n)return null;var r=ls(e,e===Ee?Ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ps(e,r);else{t=r;var o=q;q|=2;var i=Th();(Ee!==e||Ce!==t)&&(zt=null,Jr=pe()+500,Jn(e,t));do try{Fy();break}catch(l){Ph(e,l)}while(!0);Pu(),Ss.current=i,q=o,me!==null?t=0:(Ee=null,Ce=0,t=ye)}if(t!==0){if(t===2&&(o=ua(e),o!==0&&(r=o,t=Da(e,o))),t===1)throw n=Jo,Jn(e,0),dn(e,r),Ve(e,pe()),n;if(t===6)dn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Dy(o)&&(t=Ps(e,r),t===2&&(i=ua(e),i!==0&&(r=i,t=Da(e,i))),t===1))throw n=Jo,Jn(e,0),dn(e,r),Ve(e,pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Vn(e,Fe,zt);break;case 3:if(dn(e,r),(r&130023424)===r&&(t=$u+500-pe(),10<t)){if(ls(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ga(Vn.bind(null,e,Fe,zt),t);break}Vn(e,Fe,zt);break;case 4:if(dn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-wt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Iy(r/1960))-r,10<r){e.timeoutHandle=ga(Vn.bind(null,e,Fe,zt),r);break}Vn(e,Fe,zt);break;case 5:Vn(e,Fe,zt);break;default:throw Error(_(329))}}}return Ve(e,pe()),e.callbackNode===n?kh.bind(null,e):null}function Da(e,t){var n=Lo;return e.current.memoizedState.isDehydrated&&(Jn(e,t).flags|=256),e=Ps(e,t),e!==2&&(t=Fe,Fe=n,t!==null&&za(t)),e}function za(e){Fe===null?Fe=e:Fe.push.apply(Fe,e)}function Dy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Et(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dn(e,t){for(t&=~Fu,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function kd(e){if(q&6)throw Error(_(327));Ir();var t=ls(e,0);if(!(t&1))return Ve(e,pe()),null;var n=Ps(e,t);if(e.tag!==0&&n===2){var r=ua(e);r!==0&&(t=r,n=Da(e,r))}if(n===1)throw n=Jo,Jn(e,0),dn(e,t),Ve(e,pe()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,Fe,zt),Ve(e,pe()),null}function Uu(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Jr=pe()+500,Fs&&zn())}}function sr(e){yn!==null&&yn.tag===0&&!(q&6)&&Ir();var t=q;q|=1;var n=it.transition,r=ee;try{if(it.transition=null,ee=1,e)return e()}finally{ee=r,it.transition=n,q=t,!(q&6)&&zn()}}function Bu(){Qe=_r.current,ie(_r)}function Jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,py(n)),me!==null)for(n=me.return;n!==null;){var r=n;switch(Su(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fs();break;case 3:qr(),ie(Ue),ie(Oe),Ou();break;case 5:_u(r);break;case 4:qr();break;case 13:ie(ae);break;case 19:ie(ae);break;case 10:Tu(r.type._context);break;case 22:case 23:Bu()}n=n.return}if(Ee=e,me=e=bn(e.current,null),Ce=Qe=t,ye=0,Jo=null,Fu=Vs=ir=0,Fe=Lo=null,Hn!==null){for(t=0;t<Hn.length;t++)if(n=Hn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Hn=null}return e}function Ph(e,t){do{var n=me;try{if(Pu(),Yi.current=Es,xs){for(var r=ue.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}xs=!1}if(or=0,xe=ve=ue=null,Ao=!1,Xo=0,zu.current=null,n===null||n.return===null){ye=1,Jo=t,me=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=Ce,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=dd(s);if(f!==null){f.flags&=-257,fd(f,s,l,i,t),f.mode&1&&cd(i,u,t),t=f,a=u;var x=t.updateQueue;if(x===null){var g=new Set;g.add(a),t.updateQueue=g}else x.add(a);break e}else{if(!(t&1)){cd(i,u,t),Vu();break e}a=Error(_(426))}}else if(le&&l.mode&1){var w=dd(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),fd(w,s,l,i,t),Cu(Zr(a,l));break e}}i=a=Zr(a,l),ye!==4&&(ye=2),Lo===null?Lo=[i]:Lo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=ah(i,a,t);od(i,m);break e;case 1:l=a;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Pn===null||!Pn.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=uh(i,l,t);od(i,E);break e}}i=i.return}while(i!==null)}Rh(n)}catch(C){t=C,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function Th(){var e=Ss.current;return Ss.current=Es,e===null?Es:e}function Vu(){(ye===0||ye===3||ye===2)&&(ye=4),Ee===null||!(ir&268435455)&&!(Vs&268435455)||dn(Ee,Ce)}function Ps(e,t){var n=q;q|=2;var r=Th();(Ee!==e||Ce!==t)&&(zt=null,Jn(e,t));do try{zy();break}catch(o){Ph(e,o)}while(!0);if(Pu(),q=n,Ss.current=r,me!==null)throw Error(_(261));return Ee=null,Ce=0,ye}function zy(){for(;me!==null;)bh(me)}function Fy(){for(;me!==null&&!cg();)bh(me)}function bh(e){var t=_h(e.alternate,e,Qe);e.memoizedProps=e.pendingProps,t===null?Rh(e):me=t,zu.current=null}function Rh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ay(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ye=6,me=null;return}}else if(n=Oy(n,t,Qe),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ye===0&&(ye=5)}function Vn(e,t,n){var r=ee,o=it.transition;try{it.transition=null,ee=1,$y(e,t,n,r)}finally{it.transition=o,ee=r}return null}function $y(e,t,n,r){do Ir();while(yn!==null);if(q&6)throw Error(_(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(xg(e,i),e===Ee&&(me=Ee=null,Ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mi||(Mi=!0,Oh(ss,function(){return Ir(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=it.transition,it.transition=null;var s=ee;ee=1;var l=q;q|=4,zu.current=null,Ly(e,n),Sh(n,e),sy(ma),as=!!ha,ma=ha=null,e.current=n,My(n),dg(),q=l,ee=s,it.transition=i}else e.current=n;if(Mi&&(Mi=!1,yn=e,ks=o),i=e.pendingLanes,i===0&&(Pn=null),hg(n.stateNode),Ve(e,pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Cs)throw Cs=!1,e=Ma,Ma=null,e;return ks&1&&e.tag!==0&&Ir(),i=e.pendingLanes,i&1?e===Ia?Mo++:(Mo=0,Ia=e):Mo=0,zn(),null}function Ir(){if(yn!==null){var e=ap(ks),t=it.transition,n=ee;try{if(it.transition=null,ee=16>e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,ks=0,q&6)throw Error(_(331));var o=q;for(q|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(I=u;I!==null;){var c=I;switch(c.tag){case 0:case 11:case 15:jo(8,c,i)}var d=c.child;if(d!==null)d.return=c,I=d;else for(;I!==null;){c=I;var h=c.sibling,f=c.return;if(wh(c),c===u){I=null;break}if(h!==null){h.return=f,I=h;break}I=f}}}var x=i.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}I=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,I=s;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:jo(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,I=m;break e}I=i.return}}var p=e.current;for(I=p;I!==null;){s=I;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,I=v;else e:for(s=p;I!==null;){if(l=I,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Bs(9,l)}}catch(C){fe(l,l.return,C)}if(l===s){I=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,I=E;break e}I=l.return}}if(q=o,zn(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Ls,e)}catch{}r=!0}return r}finally{ee=n,it.transition=t}}return!1}function Pd(e,t,n){t=Zr(n,t),t=ah(e,t,1),e=kn(e,t,1),t=Me(),e!==null&&(ui(e,1,t),Ve(e,t))}function fe(e,t,n){if(e.tag===3)Pd(e,e,n);else for(;t!==null;){if(t.tag===3){Pd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Pn===null||!Pn.has(r))){e=Zr(n,e),e=uh(t,e,1),t=kn(t,e,1),e=Me(),t!==null&&(ui(t,1,e),Ve(t,e));break}}t=t.return}}function Uy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(Ce&n)===n&&(ye===4||ye===3&&(Ce&130023424)===Ce&&500>pe()-$u?Jn(e,0):Fu|=n),Ve(e,t)}function Nh(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=Me();e=Qt(e,t),e!==null&&(ui(e,t,n),Ve(e,n))}function By(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nh(e,n)}function Vy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Nh(e,n)}var _h;_h=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,_y(e,t,n);$e=!!(e.flags&131072)}else $e=!1,le&&t.flags&1048576&&Lp(t,ms,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var o=Yr(t,Oe.current);Mr(t,n),o=ju(null,t,r,e,o,n);var i=Lu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(i=!0,ps(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ru(t),o.updater=Us,t.stateNode=o,o._reactInternals=t,ka(t,r,e,n),t=ba(null,t,r,!0,i,n)):(t.tag=0,le&&i&&Eu(t),je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Hy(r),e=pt(r,e),o){case 0:t=Ta(null,t,r,e,n);break e;case 1:t=md(null,t,r,e,n);break e;case 11:t=pd(null,t,r,e,n);break e;case 14:t=hd(null,t,r,pt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Ta(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),md(e,t,r,o,n);case 3:e:{if(ph(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,$p(e,t),ys(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Zr(Error(_(423)),t),t=vd(e,t,r,n,o);break e}else if(r!==o){o=Zr(Error(_(424)),t),t=vd(e,t,r,n,o);break e}else for(Ye=Cn(t.stateNode.containerInfo.firstChild),Ge=t,le=!0,yt=null,n=zp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===o){t=Kt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Up(t),e===null&&Ea(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,va(r,o)?s=null:i!==null&&va(r,i)&&(t.flags|=32),fh(e,t),je(e,t,s,n),t.child;case 6:return e===null&&Ea(t),null;case 13:return hh(e,t,n);case 4:return Nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),pd(e,t,r,o,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(vs,r._currentValue),r._currentValue=s,i!==null)if(Et(i.value,s)){if(i.children===o.children&&!Ue.current){t=Kt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Vt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Sa(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(_(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Sa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mr(t,n),o=st(o),r=r(o),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,o=pt(r,t.pendingProps),o=pt(r.type,o),hd(e,t,r,o,n);case 15:return ch(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Xi(e,t),t.tag=1,Be(r)?(e=!0,ps(t)):e=!1,Mr(t,n),lh(t,r,o),ka(t,r,o,n),ba(null,t,r,!0,e,n);case 19:return mh(e,t,n);case 22:return dh(e,t,n)}throw Error(_(156,t.tag))};function Oh(e,t){return op(e,t)}function Wy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ot(e,t,n,r){return new Wy(e,t,n,r)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hy(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uu)return 11;if(e===cu)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ji(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Wu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xr:return er(n.children,o,i,t);case au:s=8,o|=8;break;case Yl:return e=ot(12,n,t,o|2),e.elementType=Yl,e.lanes=i,e;case Gl:return e=ot(13,n,t,o),e.elementType=Gl,e.lanes=i,e;case Xl:return e=ot(19,n,t,o),e.elementType=Xl,e.lanes=i,e;case Uf:return Ws(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ff:s=10;break e;case $f:s=9;break e;case uu:s=11;break e;case cu:s=14;break e;case an:s=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function er(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function Ws(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function zl(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,o,i,s,l,a){return e=new Qy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ru(i),e}function Ky(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ah(e){if(!e)return Nn;e=e._reactInternals;e:{if(ur(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Be(n))return Ap(e,n,t)}return t}function jh(e,t,n,r,o,i,s,l,a){return e=Hu(n,r,!0,e,o,i,s,l,a),e.context=Ah(null),n=e.current,r=Me(),o=Tn(n),i=Vt(r,o),i.callback=t??null,kn(n,i,o),e.current.lanes=o,ui(e,o,r),Ve(e,r),e}function Hs(e,t,n,r){var o=t.current,i=Me(),s=Tn(o);return n=Ah(n),t.context===null?t.context=n:t.pendingContext=n,t=Vt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kn(o,t,s),e!==null&&(xt(e,o,s,i),Ki(e,o,s)),s}function Ts(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qu(e,t){Td(e,t),(e=e.alternate)&&Td(e,t)}function Yy(){return null}var Lh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}Qs.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Hs(e,t,null,null)};Qs.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sr(function(){Hs(null,e,null,null)}),t[Ht]=null}};function Qs(e){this._internalRoot=e}Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=dp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&pp(e)}};function Yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bd(){}function Gy(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ts(s);i.call(u)}}var s=jh(t,r,e,0,null,!1,!1,"",bd);return e._reactRootContainer=s,e[Ht]=s.current,Ho(e.nodeType===8?e.parentNode:e),sr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Ts(a);l.call(u)}}var a=Hu(e,0,!1,null,null,!1,!1,"",bd);return e._reactRootContainer=a,e[Ht]=a.current,Ho(e.nodeType===8?e.parentNode:e),sr(function(){Hs(t,a,n,r)}),a}function Ys(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=Ts(s);l.call(a)}}Hs(t,s,e,o)}else s=Gy(n,t,e,o,r);return Ts(s)}up=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Po(t.pendingLanes);n!==0&&(pu(t,n|1),Ve(t,pe()),!(q&6)&&(Jr=pe()+500,zn()))}break;case 13:sr(function(){var r=Qt(e,1);if(r!==null){var o=Me();xt(r,e,1,o)}}),Qu(e,1)}};hu=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var n=Me();xt(t,e,134217728,n)}Qu(e,134217728)}};cp=function(e){if(e.tag===13){var t=Tn(e),n=Qt(e,t);if(n!==null){var r=Me();xt(n,e,t,r)}Qu(e,t)}};dp=function(){return ee};fp=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};sa=function(e,t,n){switch(t){case"input":if(Jl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=zs(r);if(!o)throw Error(_(90));Vf(r),Jl(r,o)}}}break;case"textarea":Hf(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};Zf=Uu;Jf=sr;var Xy={usingClientEntryPoint:!1,Events:[di,kr,zs,Xf,qf,Uu]},xo={findFiberByHostInstance:Wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qy={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=np(e),e===null?null:e.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||Yy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Ls=Ii.inject(qy),At=Ii}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xy;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yu(t))throw Error(_(200));return Ky(e,t,null,n)};Ze.createRoot=function(e,t){if(!Yu(e))throw Error(_(299));var n=!1,r="",o=Lh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hu(e,1,!1,null,null,n,!1,r,o),e[Ht]=t.current,Ho(e.nodeType===8?e.parentNode:e),new Ku(t)};Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=np(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return sr(e)};Ze.hydrate=function(e,t,n){if(!Ks(t))throw Error(_(200));return Ys(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Lh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=jh(t,null,e,1,n??null,o,!1,i,s),e[Ht]=t.current,Ho(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qs(t)};Ze.render=function(e,t,n){if(!Ks(t))throw Error(_(200));return Ys(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(_(40));return e._reactRootContainer?(sr(function(){Ys(null,null,e,!1,function(){e._reactRootContainer=null,e[Ht]=null})}),!0):!1};Ze.unstable_batchedUpdates=Uu;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ks(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Ys(e,t,n,!1,r)};Ze.version="18.3.1-next-f1338f8080-20240426";function Mh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mh)}catch(e){console.error(e)}}Mh(),Mf.exports=Ze;var pi=Mf.exports;const Ih=Sf(pi);var Dh,Rd=pi;Dh=Rd.createRoot,Rd.hydrateRoot;const Zy="modulepreload",Jy=function(e){return(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//"))?e:"/"+e},Nd={},Pt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=Jy(a),a in Nd)return;Nd[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Zy,u||(d.as="script"),d.crossOrigin="",d.href=a,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},e0=1,t0=1e6;let Fl=0;function n0(){return Fl=(Fl+1)%Number.MAX_SAFE_INTEGER,Fl.toString()}const $l=new Map,_d=e=>{if($l.has(e))return;const t=setTimeout(()=>{$l.delete(e),Io({type:"REMOVE_TOAST",toastId:e})},t0);$l.set(e,t)},r0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,e0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?_d(n):e.toasts.forEach(r=>{_d(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},es=[];let ts={toasts:[]};function Io(e){ts=r0(ts,e),es.forEach(t=>{t(ts)})}function o0({...e}){const t=n0(),n=o=>Io({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Io({type:"DISMISS_TOAST",toastId:t});return Io({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function i0(){const[e,t]=y.useState(ts);return y.useEffect(()=>(es.push(t),()=>{const n=es.indexOf(t);n>-1&&es.splice(n,1)}),[e]),{...e,toast:o0,dismiss:n=>Io({type:"DISMISS_TOAST",toastId:n})}}function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Od(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Od(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Od(e[o],null)}}}}function St(...e){return y.useCallback(zh(...e),e)}function WS(e,t){const n=y.createContext(t),r=i=>{const{children:s,...l}=i,a=y.useMemo(()=>l,Object.values(l));return S.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=y.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Gs(e,t=[]){let n=[];function r(i,s){const l=y.createContext(s),a=n.length;n=[...n,s];const u=d=>{var m;const{scope:h,children:f,...x}=d,g=((m=h==null?void 0:h[e])==null?void 0:m[a])||l,w=y.useMemo(()=>x,Object.values(x));return S.jsx(g.Provider,{value:w,children:f})};u.displayName=i+"Provider";function c(d,h){var g;const f=((g=h==null?void 0:h[e])==null?void 0:g[a])||l,x=y.useContext(f);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>y.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,s0(o,...t)]}function s0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...l,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Fa(e){const t=l0(e),n=y.forwardRef((r,o)=>{const{children:i,...s}=r,l=y.Children.toArray(i),a=l.find(u0);if(a){const u=a.props.children,c=l.map(d=>d===a?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return S.jsx(t,{...s,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return S.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function l0(e){const t=y.forwardRef((n,r)=>{const{children:o,...i}=n;if(y.isValidElement(o)){const s=d0(o),l=c0(i,o.props);return o.type!==y.Fragment&&(l.ref=r?zh(r,s):s),y.cloneElement(o,l)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fh=Symbol("radix.slottable");function a0(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fh,t}function u0(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fh}function c0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function d0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function f0(e){const t=e+"CollectionProvider",[n,r]=Gs(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:w,children:m}=g,p=O.useRef(null),v=O.useRef(new Map).current;return S.jsx(o,{scope:w,itemMap:v,collectionRef:p,children:m})};s.displayName=t;const l=e+"CollectionSlot",a=Fa(l),u=O.forwardRef((g,w)=>{const{scope:m,children:p}=g,v=i(l,m),E=St(w,v.collectionRef);return S.jsx(a,{ref:E,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=Fa(c),f=O.forwardRef((g,w)=>{const{scope:m,children:p,...v}=g,E=O.useRef(null),C=St(w,E),k=i(c,m);return O.useEffect(()=>(k.itemMap.set(E,{ref:E,...v}),()=>void k.itemMap.delete(E))),S.jsx(h,{[d]:"",ref:C,children:p})});f.displayName=c;function x(g){const w=i(e+"CollectionConsumer",g);return O.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((k,P)=>v.indexOf(k.ref.current)-v.indexOf(P.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},x,r]}var p0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=p0.reduce((e,t)=>{const n=Fa(`Primitive.${t}`),r=y.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $h(e,t){e&&pi.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function h0(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var m0="DismissableLayer",$a="dismissableLayer.update",v0="dismissableLayer.pointerDownOutside",g0="dismissableLayer.focusOutside",Ad,Uh=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gu=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=y.useContext(Uh),[c,d]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),x=St(t,P=>d(P)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(w),p=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=m,C=w0(P=>{const N=P.target,j=[...u.branches].some(A=>A.contains(N));!E||j||(o==null||o(P),s==null||s(P),P.defaultPrevented||l==null||l())},h),k=x0(P=>{const N=P.target;[...u.branches].some(A=>A.contains(N))||(i==null||i(P),s==null||s(P),P.defaultPrevented||l==null||l())},h);return h0(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},h),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ad=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),jd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ad)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),jd())},[c,u]),y.useEffect(()=>{const P=()=>f({});return document.addEventListener($a,P),()=>document.removeEventListener($a,P)},[]),S.jsx(We.div,{...a,ref:x,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,C.onPointerDownCapture)})});Gu.displayName=m0;var y0="DismissableLayerBranch",Bh=y.forwardRef((e,t)=>{const n=y.useContext(Uh),r=y.useRef(null),o=St(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(We.div,{...e,ref:o})});Bh.displayName=y0;function w0(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Vh(v0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function x0(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=y.useRef(!1);return y.useEffect(()=>{const o=i=>{i.target&&!r.current&&Vh(g0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jd(){const e=new CustomEvent($a);document.dispatchEvent(e)}function Vh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$h(o,i):o.dispatchEvent(i)}var E0=Gu,S0=Bh,On=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},C0="Portal",Wh=y.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=y.useState(!1);On(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Ih.createPortal(S.jsx(We.div,{...r,ref:t}),s):null});Wh.displayName=C0;function k0(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Xu=e=>{const{present:t,children:n}=e,r=P0(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=St(r.ref,T0(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:i}):null};Xu.displayName="Presence";function P0(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),i=y.useRef("none"),s=e?"mounted":"unmounted",[l,a]=k0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Di(r.current);i.current=l==="mounted"?u:"none"},[l]),On(()=>{const u=r.current,c=o.current;if(c!==e){const h=i.current,f=Di(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),On(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const g=Di(r.current).includes(f.animationName);if(f.target===t&&g&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=f=>{f.target===t&&(i.current=Di(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Di(e){return(e==null?void 0:e.animationName)||"none"}function T0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b0=jf[" useInsertionEffect ".trim().toString()]||On;function R0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=N0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=y.useRef(e!==void 0);y.useEffect(()=>{const d=c.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. 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.`),c.current=l},[l,r])}const u=y.useCallback(c=>{var d;if(l){const h=_0(c)?c(e):c;h!==e&&((d=s.current)==null||d.call(s,h))}else i(c)},[l,e,i,s]);return[a,u]}function N0({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),i=y.useRef(t);return b0(()=>{i.current=t},[t]),y.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function _0(e){return typeof e=="function"}var O0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),A0="VisuallyHidden",Xs=y.forwardRef((e,t)=>S.jsx(We.span,{...e,ref:t,style:{...O0,...e.style}}));Xs.displayName=A0;var j0=Xs,qu="ToastProvider",[Zu,L0,M0]=f0("Toast"),[Hh,HS]=Gs("Toast",[M0]),[I0,qs]=Hh(qu),Qh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=y.useState(null),[u,c]=y.useState(0),d=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qu}\`. Expected non-empty \`string\`.`),S.jsx(Zu.Provider,{scope:t,children:S.jsx(I0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:y.useCallback(()=>c(f=>f+1),[]),onToastRemove:y.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:s})})};Qh.displayName=qu;var Kh="ToastViewport",D0=["F8"],Ua="toast.viewportPause",Ba="toast.viewportResume",Yh=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=D0,label:o="Notifications ({hotkey})",...i}=e,s=qs(Kh,n),l=L0(n),a=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=St(t,d,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;y.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=a.current,m=d.current;if(x&&w&&m){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(Ua);m.dispatchEvent(k),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(Ba);m.dispatchEvent(k),s.isClosePausedRef.current=!1}},E=k=>{!w.contains(k.relatedTarget)&&v()},C=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",E),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",E),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[x,s.isClosePausedRef]);const g=y.useCallback(({tabbingDirection:w})=>{const p=l().map(v=>{const E=v.ref.current,C=[E,...X0(E)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return y.useEffect(()=>{const w=d.current;if(w){const m=p=>{var C,k,P;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const N=document.activeElement,j=p.shiftKey;if(p.target===w&&j){(C=u.current)==null||C.focus();return}const D=g({tabbingDirection:j?"backwards":"forwards"}),Q=D.findIndex(L=>L===N);Ul(D.slice(Q+1))?p.preventDefault():j?(k=u.current)==null||k.focus():(P=c.current)==null||P.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,g]),S.jsxs(S0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&S.jsx(Va,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});Ul(w)}}),S.jsx(Zu.Slot,{scope:n,children:S.jsx(We.ol,{tabIndex:-1,...i,ref:h})}),x&&S.jsx(Va,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});Ul(w)}})]})});Yh.displayName=Kh;var Gh="ToastFocusProxy",Va=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=qs(Gh,n);return S.jsx(Xs,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Va.displayName=Gh;var hi="Toast",z0="toast.swipeStart",F0="toast.swipeMove",$0="toast.swipeCancel",U0="toast.swipeEnd",Xh=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=R0({prop:r,defaultProp:o??!0,onChange:i,caller:hi});return S.jsx(Xu,{present:n||l,children:S.jsx(W0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:_n(e.onPause),onResume:_n(e.onResume),onSwipeStart:ge(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ge(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),a(!1)})})})});Xh.displayName=hi;var[B0,V0]=Hh(hi,{onClose(){}}),W0=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...x}=e,g=qs(hi,n),[w,m]=y.useState(null),p=St(t,L=>m(L)),v=y.useRef(null),E=y.useRef(null),C=o||g.duration,k=y.useRef(0),P=y.useRef(C),N=y.useRef(0),{onToastAdd:j,onToastRemove:A}=g,F=_n(()=>{var X;(w==null?void 0:w.contains(document.activeElement))&&((X=g.viewport)==null||X.focus()),s()}),D=y.useCallback(L=>{!L||L===1/0||(window.clearTimeout(N.current),k.current=new Date().getTime(),N.current=window.setTimeout(F,L))},[F]);y.useEffect(()=>{const L=g.viewport;if(L){const X=()=>{D(P.current),u==null||u()},$=()=>{const W=new Date().getTime()-k.current;P.current=P.current-W,window.clearTimeout(N.current),a==null||a()};return L.addEventListener(Ua,$),L.addEventListener(Ba,X),()=>{L.removeEventListener(Ua,$),L.removeEventListener(Ba,X)}}},[g.viewport,C,a,u,D]),y.useEffect(()=>{i&&!g.isClosePausedRef.current&&D(C)},[i,C,g.isClosePausedRef,D]),y.useEffect(()=>(j(),()=>A()),[j,A]);const Q=y.useMemo(()=>w?rm(w):null,[w]);return g.viewport?S.jsxs(S.Fragment,{children:[Q&&S.jsx(H0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),S.jsx(B0,{scope:n,onClose:F,children:pi.createPortal(S.jsx(Zu.ItemSlot,{scope:n,children:S.jsx(E0,{asChild:!0,onEscapeKeyDown:ge(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||F(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(We.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ge(e.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:ge(e.onPointerDown,L=>{L.button===0&&(v.current={x:L.clientX,y:L.clientY})}),onPointerMove:ge(e.onPointerMove,L=>{if(!v.current)return;const X=L.clientX-v.current.x,$=L.clientY-v.current.y,W=!!E.current,b=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,M=b?R(0,X):0,V=b?0:R(0,$),z=L.pointerType==="touch"?10:2,K={x:M,y:V},G={originalEvent:L,delta:K};W?(E.current=K,zi(F0,d,G,{discrete:!1})):Ld(K,g.swipeDirection,z)?(E.current=K,zi(z0,c,G,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(X)>z||Math.abs($)>z)&&(v.current=null)}),onPointerUp:ge(e.onPointerUp,L=>{const X=E.current,$=L.target;if($.hasPointerCapture(L.pointerId)&&$.releasePointerCapture(L.pointerId),E.current=null,v.current=null,X){const W=L.currentTarget,b={originalEvent:L,delta:X};Ld(X,g.swipeDirection,g.swipeThreshold)?zi(U0,f,b,{discrete:!0}):zi($0,h,b,{discrete:!0}),W.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),H0=e=>{const{__scopeToast:t,children:n,...r}=e,o=qs(hi,t),[i,s]=y.useState(!1),[l,a]=y.useState(!1);return Y0(()=>s(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:S.jsx(Wh,{asChild:!0,children:S.jsx(Xs,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},Q0="ToastTitle",qh=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(We.div,{...r,ref:t})});qh.displayName=Q0;var K0="ToastDescription",Zh=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(We.div,{...r,ref:t})});Zh.displayName=K0;var Jh="ToastAction",em=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(nm,{altText:n,asChild:!0,children:S.jsx(Ju,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Jh}\`. Expected non-empty \`string\`.`),null)});em.displayName=Jh;var tm="ToastClose",Ju=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=V0(tm,n);return S.jsx(nm,{asChild:!0,children:S.jsx(We.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,o.onClose)})})});Ju.displayName=tm;var nm=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function rm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),G0(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...rm(r))}}),t}function zi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$h(o,i):o.dispatchEvent(i)}var Ld=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Y0(e=()=>{}){const t=_n(e);On(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function G0(e){return e.nodeType===e.ELEMENT_NODE}function X0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ul(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var q0=Qh,om=Yh,im=Xh,sm=qh,lm=Zh,am=em,um=Ju;function cm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=cm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cm(e))&&(r&&(r+=" "),r+=t);return r}const Md=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Id=dm,Z0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Id(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const h=Md(c)||Md(d);return o[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(x=>{let[g,w]=x;return Array.isArray(w)?w.includes({...i,...l}[g]):{...i,...l}[g]===w})?[...u,d,h]:u},[]);return Id(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var ew={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tw=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>y.createElement("svg",{ref:a,...ew,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fm("lucide",o),...l},[...s.map(([u,c])=>y.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cr=(e,t)=>{const n=y.forwardRef(({className:r,...o},i)=>y.createElement(tw,{ref:i,iconNode:t,className:fm(`lucide-${J0(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pm=cr("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nw=cr("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rw=cr("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ow=cr("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iw=cr("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sw=cr("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lw=cr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ec="-",aw=e=>{const t=cw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(ec);return l[0]===""&&l.length!==1&&l.shift(),hm(l,t)||uw(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},hm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?hm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(ec);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Dd=/^\[(.+)\]$/,uw=e=>{if(Dd.test(e)){const t=Dd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fw(Object.entries(e.classGroups),n).forEach(([i,s])=>{Wa(s,r,i,t)}),r},Wa=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:zd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(dw(o)){Wa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Wa(s,zd(t,i),n,r)})})},zd=(e,t)=>{let n=e;return t.split(ec).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dw=e=>e.isThemeGetter,fw=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,pw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},mm="!",hw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,d;for(let w=0;w<l.length;w++){let m=l[w];if(u===0){if(m===o&&(r||l.slice(w,w+i)===t)){a.push(l.slice(c,w)),c=w+i;continue}if(m==="/"){d=w;continue}}m==="["?u++:m==="]"&&u--}const h=a.length===0?l:l.substring(c),f=h.startsWith(mm),x=f?h.substring(1):h,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:s}):s},mw=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vw=e=>({cache:pw(e.cacheSize),parseClassName:hw(e),...aw(e)}),gw=/\s+/,yw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(gw);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let x=!!f,g=r(x?h.substring(0,f):h);if(!g){if(!x){l=u+(l.length>0?" "+l:l);continue}if(g=r(h),!g){l=u+(l.length>0?" "+l:l);continue}x=!1}const w=mw(c).join(":"),m=d?w+mm:w,p=m+g;if(i.includes(p))continue;i.push(p);const v=o(g,x);for(let E=0;E<v.length;++E){const C=v[E];i.push(m+C)}l=u+(l.length>0?" "+l:l)}return l};function ww(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vm(t))&&(r&&(r+=" "),r+=n);return r}const vm=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vm(e[r]))&&(n&&(n+=" "),n+=t);return n};function xw(e,...t){let n,r,o,i=s;function s(a){const u=t.reduce((c,d)=>d(c),e());return n=vw(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=yw(a,n);return o(a,c),c}return function(){return i(ww.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},gm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ew=/^\d+\/\d+$/,Sw=new Set(["px","full","screen"]),Cw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>Dr(e)||Sw.has(e)||Ew.test(e),on=e=>io(e,"length",Mw),Dr=e=>!!e&&!Number.isNaN(Number(e)),Bl=e=>io(e,"number",Dr),Eo=e=>!!e&&Number.isInteger(Number(e)),Rw=e=>e.endsWith("%")&&Dr(e.slice(0,-1)),H=e=>gm.test(e),sn=e=>Cw.test(e),Nw=new Set(["length","size","percentage"]),_w=e=>io(e,Nw,ym),Ow=e=>io(e,"position",ym),Aw=new Set(["image","url"]),jw=e=>io(e,Aw,Dw),Lw=e=>io(e,"",Iw),So=()=>!0,io=(e,t,n)=>{const r=gm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Mw=e=>kw.test(e)&&!Pw.test(e),ym=()=>!1,Iw=e=>Tw.test(e),Dw=e=>bw.test(e),zw=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),d=re("invert"),h=re("gap"),f=re("gradientColorStops"),x=re("gradientColorStopPositions"),g=re("inset"),w=re("margin"),m=re("opacity"),p=re("padding"),v=re("saturate"),E=re("scale"),C=re("sepia"),k=re("skew"),P=re("space"),N=re("translate"),j=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",H,t],D=()=>[H,t],Q=()=>["",It,on],L=()=>["auto",Dr,H],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",H],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Dr,H];return{cacheSize:500,separator:":",theme:{colors:[So],spacing:[It,on],blur:["none","",sn,H],brightness:V(),borderColor:[e],borderRadius:["none","","full",sn,H],borderSpacing:D(),borderWidth:Q(),contrast:V(),grayscale:R(),hueRotate:V(),invert:R(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Rw,on],inset:F(),margin:F(),opacity:V(),padding:D(),saturate:V(),scale:V(),sepia:R(),skew:V(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),H]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Eo,H]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Eo,H]}],"grid-cols":[{"grid-cols":[So]}],"col-start-end":[{col:["auto",{span:["full",Eo,H]},H]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[So]}],"row-start-end":[{row:["auto",{span:[Eo,H]},H]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...b()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...b(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...b(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bl]}],"font-family":[{font:[So]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",Dr,Bl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,on]}],"underline-offset":[{"underline-offset":["auto",It,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Ow]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_w]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[It,H]}],"outline-w":[{outline:[It,on]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[It,on]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,Lw]}],"shadow-color":[{shadow:[So]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",sn,H]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Eo,H]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,on,Bl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Fw=xw(zw);function dr(...e){return Fw(dm(e))}const $w=q0,wm=y.forwardRef(({className:e,...t},n)=>S.jsx(om,{ref:n,className:dr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));wm.displayName=om.displayName;const Uw=Z0("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xm=y.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(im,{ref:r,className:dr(Uw({variant:t}),e),...n}));xm.displayName=im.displayName;const Bw=y.forwardRef(({className:e,...t},n)=>S.jsx(am,{ref:n,className:dr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Bw.displayName=am.displayName;const Em=y.forwardRef(({className:e,...t},n)=>S.jsx(um,{ref:n,className:dr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(lw,{className:"h-4 w-4"})}));Em.displayName=um.displayName;const Sm=y.forwardRef(({className:e,...t},n)=>S.jsx(sm,{ref:n,className:dr("text-sm font-semibold",e),...t}));Sm.displayName=sm.displayName;const Cm=y.forwardRef(({className:e,...t},n)=>S.jsx(lm,{ref:n,className:dr("text-sm opacity-90",e),...t}));Cm.displayName=lm.displayName;function Vw(){const{toasts:e}=i0();return S.jsxs($w,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(xm,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(Sm,{children:n}),r&&S.jsx(Cm,{children:r})]}),o,S.jsx(Em,{})]},t)}),S.jsx(wm,{})]})}var Fd=["light","dark"],Ww="(prefers-color-scheme: dark)",Hw=y.createContext(void 0),Qw={setTheme:e=>{},themes:[]},Kw=()=>{var e;return(e=y.useContext(Hw))!=null?e:Qw};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Fd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(x,g=!1,w=!0)=>{let m=s?s[x]:x,p=g?x+"|| ''":`'${m}'`,v="";return o&&w&&!g&&Fd.includes(x)&&(v+=`d.style.colorScheme = '${x}';`),n==="class"?g||m?v+=`c.add(${p})`:v+="null":m&&(v+=`d[s](n,${p})`),v},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Ww}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return y.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var Yw=e=>{switch(e){case"success":return qw;case"info":return Jw;case"warning":return Zw;case"error":return e1;default:return null}},Gw=Array(12).fill(0),Xw=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},Gw.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),qw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Zw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Jw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),e1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),t1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),n1=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ha=1,r1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ha++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],O.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(i1(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ha++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new r1,o1=(e,t)=>{let n=(t==null?void 0:t.id)||Ha++;return ze.addToast({title:e,...t,id:n}),n},i1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",s1=o1,l1=()=>ze.toasts,a1=()=>ze.getActiveToasts();Object.assign(s1,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:l1,getToasts:a1});function u1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}u1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function Fi(e){return e.label!==void 0}var c1=3,d1="32px",f1="16px",$d=4e3,p1=356,h1=14,m1=20,v1=200;function ft(...e){return e.filter(Boolean).join(" ")}function g1(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var y1=e=>{var t,n,r,o,i,s,l,a,u,c,d;let{invert:h,toast:f,unstyled:x,interacting:g,setHeights:w,visibleToasts:m,heights:p,index:v,toasts:E,expanded:C,removeToast:k,defaultRichColors:P,closeButton:N,style:j,cancelButtonStyle:A,actionButtonStyle:F,className:D="",descriptionClassName:Q="",duration:L,position:X,gap:$,loadingIcon:W,expandByDefault:b,classNames:R,icons:M,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:z}=e,[K,G]=O.useState(null),[he,Pe]=O.useState(null),[J,fr]=O.useState(!1),[qt,Fn]=O.useState(!1),[Zt,pr]=O.useState(!1),[Jt,vi]=O.useState(!1),[al,gi]=O.useState(!1),[ul,co]=O.useState(0),[hr,pc]=O.useState(0),fo=O.useRef(f.duration||L||$d),hc=O.useRef(null),$n=O.useRef(null),gv=v===0,yv=v+1<=m,et=f.type,mr=f.dismissible!==!1,wv=f.className||"",xv=f.descriptionClassName||"",yi=O.useMemo(()=>p.findIndex(U=>U.toastId===f.id)||0,[p,f.id]),Ev=O.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:N},[f.closeButton,N]),mc=O.useMemo(()=>f.duration||L||$d,[f.duration,L]),cl=O.useRef(0),vr=O.useRef(0),vc=O.useRef(0),gr=O.useRef(null),[Sv,Cv]=X.split("-"),gc=O.useMemo(()=>p.reduce((U,te,se)=>se>=yi?U:U+te.height,0),[p,yi]),yc=n1(),kv=f.invert||h,dl=et==="loading";vr.current=O.useMemo(()=>yi*$+gc,[yi,gc]),O.useEffect(()=>{fo.current=mc},[mc]),O.useEffect(()=>{fr(!0)},[]),O.useEffect(()=>{let U=$n.current;if(U){let te=U.getBoundingClientRect().height;return pc(te),w(se=>[{toastId:f.id,height:te,position:f.position},...se]),()=>w(se=>se.filter(at=>at.toastId!==f.id))}},[w,f.id]),O.useLayoutEffect(()=>{if(!J)return;let U=$n.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,pc(se),w(at=>at.find(ut=>ut.toastId===f.id)?at.map(ut=>ut.toastId===f.id?{...ut,height:se}:ut):[{toastId:f.id,height:se,position:f.position},...at])},[J,f.title,f.description,w,f.id]);let en=O.useCallback(()=>{Fn(!0),co(vr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{k(f)},v1)},[f,k,w,vr]);O.useEffect(()=>{if(f.promise&&et==="loading"||f.duration===1/0||f.type==="loading")return;let U;return C||g||z&&yc?(()=>{if(vc.current<cl.current){let te=new Date().getTime()-cl.current;fo.current=fo.current-te}vc.current=new Date().getTime()})():fo.current!==1/0&&(cl.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=f.onAutoClose)==null||te.call(f,f),en()},fo.current)),()=>clearTimeout(U)},[C,g,f,et,z,yc,en]),O.useEffect(()=>{f.delete&&en()},[en,f.delete]);function Pv(){var U,te,se;return M!=null&&M.loading?O.createElement("div",{className:ft(R==null?void 0:R.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":et==="loading"},M.loading):W?O.createElement("div",{className:ft(R==null?void 0:R.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":et==="loading"},W):O.createElement(Xw,{className:ft(R==null?void 0:R.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:et==="loading"})}return O.createElement("li",{tabIndex:0,ref:$n,className:ft(D,wv,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[et],(n=f==null?void 0:f.classNames)==null?void 0:n[et]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:P,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":al,"data-removed":qt,"data-visible":yv,"data-y-position":Sv,"data-x-position":Cv,"data-index":v,"data-front":gv,"data-swiping":Zt,"data-dismissible":mr,"data-type":et,"data-invert":kv,"data-swipe-out":Jt,"data-swipe-direction":he,"data-expanded":!!(C||b&&J),style:{"--index":v,"--toasts-before":v,"--z-index":E.length-v,"--offset":`${qt?ul:vr.current}px`,"--initial-height":b?"auto":`${hr}px`,...j,...f.style},onDragEnd:()=>{pr(!1),G(null),gr.current=null},onPointerDown:U=>{dl||!mr||(hc.current=new Date,co(vr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(pr(!0),gr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,se,at;if(Jt||!mr)return;gr.current=null;let ut=Number(((U=$n.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tn=Number(((te=$n.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Un=new Date().getTime()-((se=hc.current)==null?void 0:se.getTime()),ct=K==="x"?ut:tn,nn=Math.abs(ct)/Un;if(Math.abs(ct)>=m1||nn>.11){co(vr.current),(at=f.onDismiss)==null||at.call(f,f),Pe(K==="x"?ut>0?"right":"left":tn>0?"down":"up"),en(),vi(!0),gi(!1);return}pr(!1),G(null)},onPointerMove:U=>{var te,se,at,ut;if(!gr.current||!mr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let tn=U.clientY-gr.current.y,Un=U.clientX-gr.current.x,ct=(se=e.swipeDirections)!=null?se:g1(X);!K&&(Math.abs(Un)>1||Math.abs(tn)>1)&&G(Math.abs(Un)>Math.abs(tn)?"x":"y");let nn={x:0,y:0};K==="y"?(ct.includes("top")||ct.includes("bottom"))&&(ct.includes("top")&&tn<0||ct.includes("bottom")&&tn>0)&&(nn.y=tn):K==="x"&&(ct.includes("left")||ct.includes("right"))&&(ct.includes("left")&&Un<0||ct.includes("right")&&Un>0)&&(nn.x=Un),(Math.abs(nn.x)>0||Math.abs(nn.y)>0)&&gi(!0),(at=$n.current)==null||at.style.setProperty("--swipe-amount-x",`${nn.x}px`),(ut=$n.current)==null||ut.style.setProperty("--swipe-amount-y",`${nn.y}px`)}},Ev&&!f.jsx?O.createElement("button",{"aria-label":V,"data-disabled":dl,"data-close-button":!0,onClick:dl||!mr?()=>{}:()=>{var U;en(),(U=f.onDismiss)==null||U.call(f,f)},className:ft(R==null?void 0:R.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=M==null?void 0:M.close)!=null?i:t1):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:O.createElement(O.Fragment,null,et||f.icon||f.promise?O.createElement("div",{"data-icon":"",className:ft(R==null?void 0:R.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Pv():null,f.type!=="loading"?f.icon||(M==null?void 0:M[et])||Yw(et):null):null,O.createElement("div",{"data-content":"",className:ft(R==null?void 0:R.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:ft(R==null?void 0:R.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?O.createElement("div",{"data-description":"",className:ft(Q,xv,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&Fi(f.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:U=>{var te,se;Fi(f.cancel)&&mr&&((se=(te=f.cancel).onClick)==null||se.call(te,U),en())},className:ft(R==null?void 0:R.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&Fi(f.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||F,onClick:U=>{var te,se;Fi(f.action)&&((se=(te=f.action).onClick)==null||se.call(te,U),!U.defaultPrevented&&en())},className:ft(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Ud(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function w1(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?f1:d1;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var x1=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:x=c1,toastOptions:g,dir:w=Ud(),gap:m=h1,loadingIcon:p,icons:v,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:C}=e,[k,P]=O.useState([]),N=O.useMemo(()=>Array.from(new Set([r].concat(k.filter(z=>z.position).map(z=>z.position)))),[k,r]),[j,A]=O.useState([]),[F,D]=O.useState(!1),[Q,L]=O.useState(!1),[X,$]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=O.useRef(null),b=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=O.useRef(null),M=O.useRef(!1),V=O.useCallback(z=>{P(K=>{var G;return(G=K.find(he=>he.id===z.id))!=null&&G.delete||ze.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return O.useEffect(()=>ze.subscribe(z=>{if(z.dismiss){P(K=>K.map(G=>G.id===z.id?{...G,delete:!0}:G));return}setTimeout(()=>{Ih.flushSync(()=>{P(K=>{let G=K.findIndex(he=>he.id===z.id);return G!==-1?[...K.slice(0,G),{...K[G],...z},...K.slice(G+1)]:[z,...K]})})})}),[]),O.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{$(K?"dark":"light")})}catch{z.addListener(({matches:G})=>{try{$(G?"dark":"light")}catch(he){console.error(he)}})}},[c]),O.useEffect(()=>{k.length<=1&&D(!1)},[k]),O.useEffect(()=>{let z=K=>{var G,he;o.every(Pe=>K[Pe]||K.code===Pe)&&(D(!0),(G=W.current)==null||G.focus()),K.code==="Escape"&&(document.activeElement===W.current||(he=W.current)!=null&&he.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),O.useEffect(()=>{if(W.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,M.current=!1)}},[W.current]),O.createElement("section",{ref:t,"aria-label":`${E} ${b}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((z,K)=>{var G;let[he,Pe]=z.split("-");return k.length?O.createElement("ol",{key:z,dir:w==="auto"?Ud():w,tabIndex:-1,ref:W,className:l,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":he,"data-lifted":F&&k.length>1&&!i,"data-x-position":Pe,style:{"--front-toast-height":`${((G=j[0])==null?void 0:G.height)||0}px`,"--width":`${p1}px`,"--gap":`${m}px`,...f,...w1(a,u)},onBlur:J=>{M.current&&!J.currentTarget.contains(J.relatedTarget)&&(M.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M.current||(M.current=!0,R.current=J.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Q||D(!1)},onDragEnd:()=>D(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},k.filter(J=>!J.position&&K===0||J.position===z).map((J,fr)=>{var qt,Fn;return O.createElement(y1,{key:J.id,icons:v,index:fr,toast:J,defaultRichColors:d,duration:(qt=g==null?void 0:g.duration)!=null?qt:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Fn=g==null?void 0:g.closeButton)!=null?Fn:s,interacting:Q,position:z,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:V,toasts:k.filter(Zt=>Zt.position==J.position),heights:j.filter(Zt=>Zt.position==J.position),setHeights:A,expandByDefault:i,gap:m,loadingIcon:p,expanded:F,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const E1=({...e})=>{const{theme:t="system"}=Kw();return S.jsx(x1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},S1=["top","right","bottom","left"],An=Math.min,Ke=Math.max,bs=Math.round,$i=Math.floor,jn=e=>({x:e,y:e}),C1={left:"right",right:"left",bottom:"top",top:"bottom"},k1={start:"end",end:"start"};function Qa(e,t,n){return Ke(e,An(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function Gt(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function tc(e){return e==="x"?"y":"x"}function nc(e){return e==="y"?"height":"width"}function Ln(e){return["top","bottom"].includes(Gt(e))?"y":"x"}function rc(e){return tc(Ln(e))}function P1(e,t,n){n===void 0&&(n=!1);const r=so(e),o=rc(e),i=nc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Rs(s)),[s,Rs(s)]}function T1(e){const t=Rs(e);return[Ka(e),t,Ka(t)]}function Ka(e){return e.replace(/start|end/g,t=>k1[t])}function b1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function R1(e,t,n,r){const o=so(e);let i=b1(Gt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ka)))),i}function Rs(e){return e.replace(/left|right|bottom|top/g,t=>C1[t])}function N1(e){return{top:0,right:0,bottom:0,left:0,...e}}function km(e){return typeof e!="number"?N1(e):{top:e,right:e,bottom:e,left:e}}function Ns(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Bd(e,t,n){let{reference:r,floating:o}=e;const i=Ln(t),s=rc(t),l=nc(s),a=Gt(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(so(t)){case"start":f[s]-=h*(n&&u?-1:1);break;case"end":f[s]+=h*(n&&u?-1:1);break}return f}const _1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Bd(u,r,a),h=r,f={},x=0;for(let g=0;g<l.length;g++){const{name:w,fn:m}=l[g],{x:p,y:v,data:E,reset:C}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});c=p??c,d=v??d,f={...f,[w]:{...f[w],...E}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:c,y:d}=Bd(u,h,a)),g=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function ei(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Yt(t,e),x=km(f),w=l[h?d==="floating"?"reference":"floating":d],m=Ns(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),p=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},C=Ns(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:p,offsetParent:v,strategy:a}):p);return{top:(m.top-C.top+x.top)/E.y,bottom:(C.bottom-m.bottom+x.bottom)/E.y,left:(m.left-C.left+x.left)/E.x,right:(C.right-m.right+x.right)/E.x}}const O1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Yt(e,t)||{};if(u==null)return{};const d=km(c),h={x:n,y:r},f=rc(o),x=nc(f),g=await s.getDimensions(u),w=f==="y",m=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",E=i.reference[x]+i.reference[f]-h[f]-i.floating[x],C=h[f]-i.reference[f],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=k?k[v]:0;(!P||!await(s.isElement==null?void 0:s.isElement(k)))&&(P=l.floating[v]||i.floating[x]);const N=E/2-C/2,j=P/2-g[x]/2-1,A=An(d[m],j),F=An(d[p],j),D=A,Q=P-g[x]-F,L=P/2-g[x]/2+N,X=Qa(D,L,Q),$=!a.arrow&&so(o)!=null&&L!==X&&i.reference[x]/2-(L<D?A:F)-g[x]/2<0,W=$?L<D?L-D:L-Q:0;return{[f]:h[f]+W,data:{[f]:X,centerOffset:L-X-W,...$&&{alignmentOffset:W}},reset:$}}}),A1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...w}=Yt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Gt(o),p=Ln(l),v=Gt(l)===l,E=await(a.isRTL==null?void 0:a.isRTL(u.floating)),C=h||(v||!g?[Rs(l)]:T1(l)),k=x!=="none";!h&&k&&C.push(...R1(l,g,x,E));const P=[l,...C],N=await ei(t,w),j=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&j.push(N[m]),d){const L=P1(o,s,E);j.push(N[L[0]],N[L[1]])}if(A=[...A,{placement:o,overflows:j}],!j.every(L=>L<=0)){var F,D;const L=(((F=i.flip)==null?void 0:F.index)||0)+1,X=P[L];if(X)return{data:{index:L,overflows:A},reset:{placement:X}};let $=(D=A.filter(W=>W.overflows[0]<=0).sort((W,b)=>W.overflows[1]-b.overflows[1])[0])==null?void 0:D.placement;if(!$)switch(f){case"bestFit":{var Q;const W=(Q=A.filter(b=>{if(k){const R=Ln(b.placement);return R===p||R==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((b,R)=>b[1]-R[1])[0])==null?void 0:Q[0];W&&($=W);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Vd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wd(e){return S1.some(t=>e[t]>=0)}const j1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Yt(e,t);switch(r){case"referenceHidden":{const i=await ei(t,{...o,elementContext:"reference"}),s=Vd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wd(s)}}}case"escaped":{const i=await ei(t,{...o,altBoundary:!0}),s=Vd(i,n.floating);return{data:{escapedOffsets:s,escaped:Wd(s)}}}default:return{}}}}};async function L1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Gt(n),l=so(n),a=Ln(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&a?-1:1,d=Yt(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof x=="number"&&(f=l==="end"?x*-1:x),a?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const M1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await L1(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},I1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:m,y:p}=w;return{x:m,y:p}}},...a}=Yt(e,t),u={x:n,y:r},c=await ei(t,a),d=Ln(Gt(o)),h=tc(d);let f=u[h],x=u[d];if(i){const w=h==="y"?"top":"left",m=h==="y"?"bottom":"right",p=f+c[w],v=f-c[m];f=Qa(p,f,v)}if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=x+c[w],v=x-c[m];x=Qa(p,x,v)}const g=l.fn({...t,[h]:f,[d]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},D1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Yt(e,t),c={x:n,y:r},d=Ln(o),h=tc(d);let f=c[h],x=c[d];const g=Yt(l,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const v=h==="y"?"height":"width",E=i.reference[h]-i.floating[v]+w.mainAxis,C=i.reference[h]+i.reference[v]-w.mainAxis;f<E?f=E:f>C&&(f=C)}if(u){var m,p;const v=h==="y"?"width":"height",E=["top","left"].includes(Gt(o)),C=i.reference[d]-i.floating[v]+(E&&((m=s.offset)==null?void 0:m[d])||0)+(E?0:w.crossAxis),k=i.reference[d]+i.reference[v]+(E?0:((p=s.offset)==null?void 0:p[d])||0)-(E?w.crossAxis:0);x<C?x=C:x>k&&(x=k)}return{[h]:f,[d]:x}}}},z1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Yt(e,t),c=await ei(t,u),d=Gt(o),h=so(o),f=Ln(o)==="y",{width:x,height:g}=i.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=d,w=h==="end"?"top":"bottom");const p=g-c.top-c.bottom,v=x-c.left-c.right,E=An(g-c[w],p),C=An(x-c[m],v),k=!t.middlewareData.shift;let P=E,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=p),k&&!h){const A=Ke(c.left,0),F=Ke(c.right,0),D=Ke(c.top,0),Q=Ke(c.bottom,0);f?N=x-2*(A!==0||F!==0?A+F:Ke(c.left,c.right)):P=g-2*(D!==0||Q!==0?D+Q:Ke(c.top,c.bottom))}await a({...t,availableWidth:N,availableHeight:P});const j=await s.getDimensions(l.floating);return x!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function Zs(){return typeof window<"u"}function lo(e){return Pm(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mt(e){var t;return(t=(Pm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pm(e){return Zs()?e instanceof Node||e instanceof Xe(e).Node:!1}function Ct(e){return Zs()?e instanceof Element||e instanceof Xe(e).Element:!1}function Lt(e){return Zs()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Hd(e){return!Zs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}function mi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function F1(e){return["table","td","th"].includes(lo(e))}function Js(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function oc(e){const t=ic(),n=Ct(e)?kt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $1(e){let t=Mn(e);for(;Lt(t)&&!eo(t);){if(oc(t))return t;if(Js(t))return null;t=Mn(t)}return null}function ic(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eo(e){return["html","body","#document"].includes(lo(e))}function kt(e){return Xe(e).getComputedStyle(e)}function el(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hd(e)&&e.host||Mt(e);return Hd(t)?t.host:t}function Tm(e){const t=Mn(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&mi(t)?t:Tm(t)}function ti(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Tm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xe(o);if(i){const l=Ya(s);return t.concat(s,s.visualViewport||[],mi(o)?o:[],l&&n?ti(l):[])}return t.concat(o,ti(o,[],n))}function Ya(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bm(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=bs(n)!==i||bs(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function sc(e){return Ct(e)?e:e.contextElement}function zr(e){const t=sc(e);if(!Lt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bm(t);let s=(i?bs(n.width):n.width)/r,l=(i?bs(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const U1=jn(0);function Rm(e){const t=Xe(e);return!ic()||!t.visualViewport?U1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=sc(e);let s=jn(1);t&&(r?Ct(r)&&(s=zr(r)):s=zr(e));const l=B1(i,n,r)?Rm(i):jn(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const h=Xe(i),f=r&&Ct(r)?Xe(r):r;let x=h,g=Ya(x);for(;g&&r&&f!==x;){const w=zr(g),m=g.getBoundingClientRect(),p=kt(g),v=m.left+(g.clientLeft+parseFloat(p.paddingLeft))*w.x,E=m.top+(g.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,d*=w.y,a+=v,u+=E,x=Xe(g),g=Ya(x)}}return Ns({width:c,height:d,x:a,y:u})}function V1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Mt(r),l=t?Js(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=jn(1);const c=jn(0),d=Lt(r);if((d||!d&&!i)&&((lo(r)!=="body"||mi(s))&&(a=el(r)),Lt(r))){const h=lr(r);u=zr(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function W1(e){return Array.from(e.getClientRects())}function Ga(e,t){const n=el(e).scrollLeft;return t?t.left+n:lr(Mt(e)).left+n}function H1(e){const t=Mt(e),n=el(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ga(e);const l=-n.scrollTop;return kt(r).direction==="rtl"&&(s+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Q1(e,t){const n=Xe(e),r=Mt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=ic();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function K1(e,t){const n=lr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Lt(e)?zr(e):jn(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Qd(e,t,n){let r;if(t==="viewport")r=Q1(e,n);else if(t==="document")r=H1(Mt(e));else if(Ct(t))r=K1(t,n);else{const o=Rm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ns(r)}function Nm(e,t){const n=Mn(e);return n===t||!Ct(n)||eo(n)?!1:kt(n).position==="fixed"||Nm(n,t)}function Y1(e,t){const n=t.get(e);if(n)return n;let r=ti(e,[],!1).filter(l=>Ct(l)&&lo(l)!=="body"),o=null;const i=kt(e).position==="fixed";let s=i?Mn(e):e;for(;Ct(s)&&!eo(s);){const l=kt(s),a=oc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||mi(s)&&!a&&Nm(e,s))?r=r.filter(c=>c!==s):o=l,s=Mn(s)}return t.set(e,r),r}function G1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Js(t)?[]:Y1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=Qd(t,c,o);return u.top=Ke(d.top,u.top),u.right=An(d.right,u.right),u.bottom=An(d.bottom,u.bottom),u.left=Ke(d.left,u.left),u},Qd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function X1(e){const{width:t,height:n}=bm(e);return{width:t,height:n}}function q1(e,t,n){const r=Lt(t),o=Mt(t),i=n==="fixed",s=lr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=jn(0);if(r||!r&&!i)if((lo(t)!=="body"||mi(o))&&(l=el(t)),r){const f=lr(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&(a.x=Ga(o));let u=0,c=0;if(o&&!r&&!i){const f=o.getBoundingClientRect();c=f.top+l.scrollTop,u=f.left+l.scrollLeft-Ga(o,f)}const d=s.left+l.scrollLeft-a.x-u,h=s.top+l.scrollTop-a.y-c;return{x:d,y:h,width:s.width,height:s.height}}function Vl(e){return kt(e).position==="static"}function Kd(e,t){if(!Lt(e)||kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mt(e)===n&&(n=n.ownerDocument.body),n}function _m(e,t){const n=Xe(e);if(Js(e))return n;if(!Lt(e)){let o=Mn(e);for(;o&&!eo(o);){if(Ct(o)&&!Vl(o))return o;o=Mn(o)}return n}let r=Kd(e,t);for(;r&&F1(r)&&Vl(r);)r=Kd(r,t);return r&&eo(r)&&Vl(r)&&!oc(r)?n:r||$1(e)||n}const Z1=async function(e){const t=this.getOffsetParent||_m,n=this.getDimensions,r=await n(e.floating);return{reference:q1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function J1(e){return kt(e).direction==="rtl"}const ex={convertOffsetParentRelativeRectToViewportRelativeRect:V1,getDocumentElement:Mt,getClippingRect:G1,getOffsetParent:_m,getElementRects:Z1,getClientRects:W1,getDimensions:X1,getScale:zr,isElement:Ct,isRTL:J1};function tx(e,t){let n=null,r;const o=Mt(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(l||t(),!d||!h)return;const f=$i(c),x=$i(o.clientWidth-(u+d)),g=$i(o.clientHeight-(c+h)),w=$i(u),p={rootMargin:-f+"px "+-x+"px "+-g+"px "+-w+"px",threshold:Ke(0,An(1,a))||1};let v=!0;function E(C){const k=C[0].intersectionRatio;if(k!==a){if(!v)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(E,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(e)}return s(!0),i}function nx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=sc(e),c=o||i?[...u?ti(u):[],...ti(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&l?tx(u,n):null;let h=-1,f=null;s&&(f=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let x,g=a?lr(e):null;a&&w();function w(){const m=lr(e);g&&(m.x!==g.x||m.y!==g.y||m.width!==g.width||m.height!==g.height)&&n(),g=m,x=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,a&&cancelAnimationFrame(x)}}const rx=M1,ox=I1,ix=A1,sx=z1,lx=j1,Yd=O1,ax=D1,ux=(e,t,n)=>{const r=new Map,o={platform:ex,...n},i={...o.platform,_c:r};return _1(e,t,{...o,platform:i})};var ns=typeof document<"u"?y.useLayoutEffect:y.useEffect;function _s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_s(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_s(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Om(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gd(e,t){const n=Om(e);return Math.round(t*n)/n}function Wl(e){const t=y.useRef(e);return ns(()=>{t.current=e}),t}function cx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=y.useState(r);_s(h,r)||f(r);const[x,g]=y.useState(null),[w,m]=y.useState(null),p=y.useCallback(b=>{b!==k.current&&(k.current=b,g(b))},[]),v=y.useCallback(b=>{b!==P.current&&(P.current=b,m(b))},[]),E=i||x,C=s||w,k=y.useRef(null),P=y.useRef(null),N=y.useRef(c),j=a!=null,A=Wl(a),F=Wl(o),D=Wl(u),Q=y.useCallback(()=>{if(!k.current||!P.current)return;const b={placement:t,strategy:n,middleware:h};F.current&&(b.platform=F.current),ux(k.current,P.current,b).then(R=>{const M={...R,isPositioned:D.current!==!1};L.current&&!_s(N.current,M)&&(N.current=M,pi.flushSync(()=>{d(M)}))})},[h,t,n,F,D]);ns(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(b=>({...b,isPositioned:!1})))},[u]);const L=y.useRef(!1);ns(()=>(L.current=!0,()=>{L.current=!1}),[]),ns(()=>{if(E&&(k.current=E),C&&(P.current=C),E&&C){if(A.current)return A.current(E,C,Q);Q()}},[E,C,Q,A,j]);const X=y.useMemo(()=>({reference:k,floating:P,setReference:p,setFloating:v}),[p,v]),$=y.useMemo(()=>({reference:E,floating:C}),[E,C]),W=y.useMemo(()=>{const b={position:n,left:0,top:0};if(!$.floating)return b;const R=Gd($.floating,c.x),M=Gd($.floating,c.y);return l?{...b,transform:"translate("+R+"px, "+M+"px)",...Om($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:M}},[n,l,$.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:Q,refs:X,elements:$,floatingStyles:W}),[c,Q,X,$,W])}const dx=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yd({element:r.current,padding:o}).fn(n):{}:r?Yd({element:r,padding:o}).fn(n):{}}}},fx=(e,t)=>({...rx(e),options:[e,t]}),px=(e,t)=>({...ox(e),options:[e,t]}),hx=(e,t)=>({...ax(e),options:[e,t]}),mx=(e,t)=>({...ix(e),options:[e,t]}),vx=(e,t)=>({...sx(e),options:[e,t]}),gx=(e,t)=>({...lx(e),options:[e,t]}),yx=(e,t)=>({...dx(e),options:[e,t]});var wx="Arrow",Am=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(We.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Am.displayName=wx;var xx=Am;function Ex(e){const[t,n]=y.useState(void 0);return On(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var jm="Popper",[Lm,Mm]=Gs(jm),[QS,Im]=Lm(jm),Dm="PopperAnchor",zm=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Im(Dm,n),s=y.useRef(null),l=St(t,s);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(We.div,{...o,ref:l})});zm.displayName=Dm;var lc="PopperContent",[Sx,Cx]=Lm(lc),Fm=y.forwardRef((e,t)=>{var J,fr,qt,Fn,Zt,pr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:x,...g}=e,w=Im(lc,n),[m,p]=y.useState(null),v=St(t,Jt=>p(Jt)),[E,C]=y.useState(null),k=Ex(E),P=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,j=r+(i!=="center"?"-"+i:""),A=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},F=Array.isArray(u)?u:[u],D=F.length>0,Q={padding:A,boundary:F.filter(Px),altBoundary:D},{refs:L,floatingStyles:X,placement:$,isPositioned:W,middlewareData:b}=cx({strategy:"fixed",placement:j,whileElementsMounted:(...Jt)=>nx(...Jt,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[fx({mainAxis:o+N,alignmentAxis:s}),a&&px({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hx():void 0,...Q}),a&&mx({...Q}),vx({...Q,apply:({elements:Jt,rects:vi,availableWidth:al,availableHeight:gi})=>{const{width:ul,height:co}=vi.reference,hr=Jt.floating.style;hr.setProperty("--radix-popper-available-width",`${al}px`),hr.setProperty("--radix-popper-available-height",`${gi}px`),hr.setProperty("--radix-popper-anchor-width",`${ul}px`),hr.setProperty("--radix-popper-anchor-height",`${co}px`)}}),E&&yx({element:E,padding:l}),Tx({arrowWidth:P,arrowHeight:N}),h&&gx({strategy:"referenceHidden",...Q})]}),[R,M]=Bm($),V=_n(x);On(()=>{W&&(V==null||V())},[W,V]);const z=(J=b.arrow)==null?void 0:J.x,K=(fr=b.arrow)==null?void 0:fr.y,G=((qt=b.arrow)==null?void 0:qt.centerOffset)!==0,[he,Pe]=y.useState();return On(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),S.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:W?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Fn=b.transformOrigin)==null?void 0:Fn.x,(Zt=b.transformOrigin)==null?void 0:Zt.y].join(" "),...((pr=b.hide)==null?void 0:pr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(Sx,{scope:n,placedSide:R,onArrowChange:C,arrowX:z,arrowY:K,shouldHideArrow:G,children:S.jsx(We.div,{"data-side":R,"data-align":M,...g,ref:v,style:{...g.style,animation:W?void 0:"none"}})})})});Fm.displayName=lc;var $m="PopperArrow",kx={top:"bottom",right:"left",bottom:"top",left:"right"},Um=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Cx($m,r),s=kx[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(xx,{...o,ref:n,style:{...o.style,display:"block"}})})});Um.displayName=$m;function Px(e){return e!==null}var Tx=e=>({name:"transformOrigin",options:e,fn(t){var w,m,p;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Bm(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,f=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let x="",g="";return u==="bottom"?(x=s?d:`${h}px`,g=`${-a}px`):u==="top"?(x=s?d:`${h}px`,g=`${r.floating.height+a}px`):u==="right"?(x=`${-a}px`,g=s?d:`${f}px`):u==="left"&&(x=`${r.floating.width+a}px`,g=s?d:`${f}px`),{data:{x,y:g}}}});function Bm(e){const[t,n="center"]=e.split("-");return[t,n]}var bx=zm,Rx=Fm,Nx=Um,[tl,KS]=Gs("Tooltip",[Mm]),ac=Mm(),Vm="TooltipProvider",_x=700,Xd="tooltip.open",[Ox,Wm]=tl(Vm),Hm=e=>{const{__scopeTooltip:t,delayDuration:n=_x,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=y.useRef(!0),l=y.useRef(!1),a=y.useRef(0);return y.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),S.jsx(Ox,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:y.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Hm.displayName=Vm;var Qm="Tooltip",[YS,nl]=tl(Qm),Xa="TooltipTrigger",Ax=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nl(Xa,n),i=Wm(Xa,n),s=ac(n),l=y.useRef(null),a=St(t,l,o.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),d=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),S.jsx(bx,{asChild:!0,...s,children:S.jsx(We.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ge(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ge(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ge(e.onBlur,o.onClose),onClick:ge(e.onClick,o.onClose)})})});Ax.displayName=Xa;var jx="TooltipPortal",[GS,Lx]=tl(jx,{forceMount:void 0}),to="TooltipContent",Km=y.forwardRef((e,t)=>{const n=Lx(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nl(to,e.__scopeTooltip);return S.jsx(Xu,{present:r||s.open,children:s.disableHoverableContent?S.jsx(Ym,{side:o,...i,ref:t}):S.jsx(Mx,{side:o,...i,ref:t})})}),Mx=y.forwardRef((e,t)=>{const n=nl(to,e.__scopeTooltip),r=Wm(to,e.__scopeTooltip),o=y.useRef(null),i=St(t,o),[s,l]=y.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,h=y.useCallback(()=>{l(null),d(!1)},[d]),f=y.useCallback((x,g)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},p=$x(m,w.getBoundingClientRect()),v=Ux(m,p),E=Bx(g.getBoundingClientRect()),C=Wx([...v,...E]);l(C),d(!0)},[d]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(a&&c){const x=w=>f(w,c),g=w=>f(w,a);return a.addEventListener("pointerleave",x),c.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",g)}}},[a,c,f,h]),y.useEffect(()=>{if(s){const x=g=>{const w=g.target,m={x:g.clientX,y:g.clientY},p=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),v=!Vx(m,s);p?h():v&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,c,s,u,h]),S.jsx(Ym,{...e,ref:i})}),[Ix,Dx]=tl(Qm,{isInside:!1}),zx=a0("TooltipContent"),Ym=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=nl(to,n),u=ac(n),{onClose:c}=a;return y.useEffect(()=>(document.addEventListener(Xd,c),()=>document.removeEventListener(Xd,c)),[c]),y.useEffect(()=>{if(a.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(a.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,c]),S.jsx(Gu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:S.jsxs(Rx,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(zx,{children:r}),S.jsx(Ix,{scope:n,isInside:!0,children:S.jsx(j0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Km.displayName=to;var Gm="TooltipArrow",Fx=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ac(n);return Dx(Gm,n).isInside?null:S.jsx(Nx,{...o,...r,ref:t})});Fx.displayName=Gm;function $x(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ux(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Bx(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Vx(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,c=l.y,d=a.x,h=a.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function Wx(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Hx(t)}function Hx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Qx=Hm,Xm=Km;const Kx=Qx,Yx=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(Xm,{ref:r,sideOffset:t,className:dr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Yx.displayName=Xm.displayName;var rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ol=typeof window>"u"||"Deno"in globalThis;function ht(){}function Gx(e,t){return typeof e=="function"?e(t):e}function Xx(e){return typeof e=="number"&&e>=0&&e!==1/0}function qx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qa(e,t){return typeof e=="function"?e(t):e}function Zx(e,t){return typeof e=="function"?e(t):e}function qd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==uc(s,t.options))return!1}else if(!ri(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function Zd(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ni(t.options.mutationKey)!==ni(i))return!1}else if(!ri(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function uc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ni)(e)}function ni(e){return JSON.stringify(e,(t,n)=>Za(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ri(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ri(e[n],t[n])):!1}function qm(e,t){if(e===t)return e;const n=Jd(e)&&Jd(t);if(n||Za(e)&&Za(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c<s;c++){const d=n?c:i[c];(!n&&a.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,u++):(l[d]=qm(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&u++)}return o===s&&u===o?e:l}return t}function Jd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Za(e){if(!ef(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ef(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ef(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jx(e){return new Promise(t=>{setTimeout(t,e)})}function eE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qm(e,t):t}function tE(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function nE(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var cc=Symbol();function Zm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Kn,fn,Fr,hf,rE=(hf=class extends rl{constructor(){super();Z(this,Kn);Z(this,fn);Z(this,Fr);B(this,Fr,t=>{if(!ol&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,fn)||this.setEventListener(T(this,Fr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,fn))==null||t.call(this),B(this,fn,void 0))}setEventListener(t){var n;B(this,Fr,t),(n=T(this,fn))==null||n.call(this),B(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Kn)!==t&&(B(this,Kn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Kn)=="boolean"?T(this,Kn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Kn=new WeakMap,fn=new WeakMap,Fr=new WeakMap,hf),Jm=new rE,$r,pn,Ur,mf,oE=(mf=class extends rl{constructor(){super();Z(this,$r,!0);Z(this,pn);Z(this,Ur);B(this,Ur,t=>{if(!ol&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,pn)||this.setEventListener(T(this,Ur))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,pn))==null||t.call(this),B(this,pn,void 0))}setEventListener(t){var n;B(this,Ur,t),(n=T(this,pn))==null||n.call(this),B(this,pn,t(this.setOnline.bind(this)))}setOnline(t){T(this,$r)!==t&&(B(this,$r,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,$r)}},$r=new WeakMap,pn=new WeakMap,Ur=new WeakMap,mf),Os=new oE;function iE(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function sE(e){return Math.min(1e3*2**e,3e4)}function ev(e){return(e??"online")==="online"?Os.isOnline():!0}var tv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Hl(e){return e instanceof tv}function nv(e){let t=!1,n=0,r=!1,o;const i=iE(),s=g=>{var w;r||(h(new tv(g)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Jm.isFocused()&&(e.networkMode==="always"||Os.isOnline())&&e.canRun(),c=()=>ev(e.networkMode)&&e.canRun(),d=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),o==null||o(),i.resolve(g))},h=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),o==null||o(),i.reject(g))},f=()=>new Promise(g=>{var w;o=m=>{(r||u())&&g(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),x=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(d).catch(m=>{var k;if(r)return;const p=e.retry??(ol?0:3),v=e.retryDelay??sE,E=typeof v=="function"?v(n,m):v,C=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,m);if(t||!C){h(m);return}n++,(k=e.onFail)==null||k.call(e,n,m),Jx(E).then(()=>u()?void 0:f()).then(()=>{t?h(m):x()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?x():f().then(x),i)}}var lE=e=>setTimeout(e,0);function aE(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=lE;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Le=aE(),Yn,vf,rv=(vf=class{constructor(){Z(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xx(this.gcTime)&&B(this,Yn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ol?1/0:5*60*1e3))}clearGcTimeout(){T(this,Yn)&&(clearTimeout(T(this,Yn)),B(this,Yn,void 0))}},Yn=new WeakMap,vf),Br,Gn,tt,Xn,Ne,si,qn,mt,Dt,gf,uE=(gf=class extends rv{constructor(t){super();Z(this,mt);Z(this,Br);Z(this,Gn);Z(this,tt);Z(this,Xn);Z(this,Ne);Z(this,si);Z(this,qn);B(this,qn,!1),B(this,si,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,Xn,t.client),B(this,tt,T(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Br,dE(this.options)),this.state=t.state??T(this,Br),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ne))==null?void 0:t.promise}setOptions(t){this.options={...T(this,si),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,tt).remove(this)}setData(t,n){const r=eE(this.state.data,t,this.options);return Te(this,mt,Dt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Te(this,mt,Dt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,Ne))==null?void 0:r.promise;return(o=T(this,Ne))==null||o.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Br))}isActive(){return this.observers.some(t=>Zx(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>qa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ne))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ne))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ne)&&(T(this,qn)?T(this,Ne).cancel({revert:!0}):T(this,Ne).cancelRetry()),this.scheduleGc()),T(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,mt,Dt).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ne))return T(this,Ne).continueRetry(),T(this,Ne).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(B(this,qn,!0),r.signal)})},i=()=>{const h=Zm(this.options,n),x=(()=>{const g={client:T(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(g),g})();return B(this,qn,!1),this.options.persister?this.options.persister(h,x,this):h(x)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Xn),state:this.state,fetchFn:i};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),B(this,Gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Te(this,mt,Dt).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta});const a=h=>{var f,x,g,w;Hl(h)&&h.silent||Te(this,mt,Dt).call(this,{type:"error",error:h}),Hl(h)||((x=(f=T(this,tt).config).onError)==null||x.call(f,h,this),(w=(g=T(this,tt).config).onSettled)==null||w.call(g,this.state.data,h,this)),this.scheduleGc()};return B(this,Ne,nv({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,x,g,w;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){a(m);return}(x=(f=T(this,tt).config).onSuccess)==null||x.call(f,h,this),(w=(g=T(this,tt).config).onSettled)==null||w.call(g,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,f)=>{Te(this,mt,Dt).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Te(this,mt,Dt).call(this,{type:"pause"})},onContinue:()=>{Te(this,mt,Dt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),T(this,Ne).start()}},Br=new WeakMap,Gn=new WeakMap,tt=new WeakMap,Xn=new WeakMap,Ne=new WeakMap,si=new WeakMap,qn=new WeakMap,mt=new WeakSet,Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...cE(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,Gn,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Hl(o)&&o.revert&&T(this,Gn)?{...T(this,Gn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,tt).notify({query:this,type:"updated",action:t})})},gf);function cE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ev(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Rt,yf,fE=(yf=class extends rl{constructor(t={}){super();Z(this,Rt);this.config=t,B(this,Rt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??uc(o,n);let s=this.get(i);return s||(s=new uE({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){T(this,Rt).has(t.queryHash)||(T(this,Rt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Rt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Rt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Le.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Rt).get(t)}getAll(){return[...T(this,Rt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qd(t,r)):n}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rt=new WeakMap,yf),Nt,Ae,Zn,_t,ln,wf,pE=(wf=class extends rv{constructor(t){super();Z(this,_t);Z(this,Nt);Z(this,Ae);Z(this,Zn);this.mutationId=t.mutationId,B(this,Ae,t.mutationCache),B(this,Nt,[]),this.state=t.state||hE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Nt).includes(t)||(T(this,Nt).push(t),this.clearGcTimeout(),T(this,Ae).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Nt,T(this,Nt).filter(n=>n!==t)),this.scheduleGc(),T(this,Ae).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Nt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ae).remove(this))}continue(){var t;return((t=T(this,Zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,d,h,f,x,g,w,m,p,v,E,C,k,P,N;const n=()=>{Te(this,_t,ln).call(this,{type:"continue"})};B(this,Zn,nv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,A)=>{Te(this,_t,ln).call(this,{type:"failed",failureCount:j,error:A})},onPause:()=>{Te(this,_t,ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ae).canRun(this)}));const r=this.state.status==="pending",o=!T(this,Zn).canStart();try{if(r)n();else{Te(this,_t,ln).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=T(this,Ae).config).onMutate)==null?void 0:s.call(i,t,this));const A=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));A!==this.state.context&&Te(this,_t,ln).call(this,{type:"pending",context:A,variables:t,isPaused:o})}const j=await T(this,Zn).start();return await((c=(u=T(this,Ae).config).onSuccess)==null?void 0:c.call(u,j,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,j,t,this.state.context)),await((x=(f=T(this,Ae).config).onSettled)==null?void 0:x.call(f,j,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,j,null,t,this.state.context)),Te(this,_t,ln).call(this,{type:"success",data:j}),j}catch(j){try{throw await((p=(m=T(this,Ae).config).onError)==null?void 0:p.call(m,j,t,this.state.context,this)),await((E=(v=this.options).onError)==null?void 0:E.call(v,j,t,this.state.context)),await((k=(C=T(this,Ae).config).onSettled)==null?void 0:k.call(C,void 0,j,this.state.variables,this.state.context,this)),await((N=(P=this.options).onSettled)==null?void 0:N.call(P,void 0,j,t,this.state.context)),j}finally{Te(this,_t,ln).call(this,{type:"error",error:j})}}finally{T(this,Ae).runNext(this)}}},Nt=new WeakMap,Ae=new WeakMap,Zn=new WeakMap,_t=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{T(this,Nt).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ae).notify({mutation:this,type:"updated",action:t})})},wf);function hE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,vt,li,xf,mE=(xf=class extends rl{constructor(t={}){super();Z(this,$t);Z(this,vt);Z(this,li);this.config=t,B(this,$t,new Set),B(this,vt,new Map),B(this,li,0)}build(t,n,r){const o=new pE({mutationCache:this,mutationId:++wi(this,li)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,$t).add(t);const n=Ui(t);if(typeof n=="string"){const r=T(this,vt).get(n);r?r.push(t):T(this,vt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,$t).delete(t)){const n=Ui(t);if(typeof n=="string"){const r=T(this,vt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,vt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ui(t);if(typeof n=="string"){const r=T(this,vt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ui(t);if(typeof n=="string"){const o=(r=T(this,vt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Le.batch(()=>{T(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,$t).clear(),T(this,vt).clear()})}getAll(){return Array.from(T(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zd(n,r))}findAll(t={}){return this.getAll().filter(n=>Zd(t,n))}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Le.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},$t=new WeakMap,vt=new WeakMap,li=new WeakMap,xf);function Ui(e){var t;return(t=e.options.scope)==null?void 0:t.id}function tf(e){return{onFetch:(t,n)=>{var c,d,h,f,x;const r=t.options,o=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let g=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Zm(t.options,t.fetchOptions),p=async(v,E,C)=>{if(g)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);const P=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};return w(F),F})(),N=await m(P),{maxPages:j}=t.options,A=C?nE:tE;return{pages:A(v.pages,N,j),pageParams:A(v.pageParams,E,j)}};if(o&&i.length){const v=o==="backward",E=v?vE:nf,C={pages:i,pageParams:s},k=E(r,C);l=await p(C,k,v)}else{const v=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:nf(r,l);if(a>0&&E==null)break;l=await p(l,E),a++}while(a<v)}return l};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function nf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vE(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var de,hn,mn,Vr,Wr,vn,Hr,Qr,Ef,gE=(Ef=class{constructor(e={}){Z(this,de);Z(this,hn);Z(this,mn);Z(this,Vr);Z(this,Wr);Z(this,vn);Z(this,Hr);Z(this,Qr);B(this,de,e.queryCache||new fE),B(this,hn,e.mutationCache||new mE),B(this,mn,e.defaultOptions||{}),B(this,Vr,new Map),B(this,Wr,new Map),B(this,vn,0)}mount(){wi(this,vn)._++,T(this,vn)===1&&(B(this,Hr,Jm.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,de).onFocus())})),B(this,Qr,Os.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,de).onOnline())})))}unmount(){var e,t;wi(this,vn)._--,T(this,vn)===0&&((e=T(this,Hr))==null||e.call(this),B(this,Hr,void 0),(t=T(this,Qr))==null||t.call(this),B(this,Qr,void 0))}isFetching(e){return T(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=Gx(t,i);if(s!==void 0)return T(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Le.batch(()=>T(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,de);Le.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,de);return Le.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Le.batch(()=>T(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e,t={}){return Le.batch(()=>(T(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Le.batch(()=>T(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,de).build(this,t);return n.isStaleByTime(qa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e.behavior=tf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e.behavior=tf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Os.isOnline()?T(this,hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,de)}getMutationCache(){return T(this,hn)}getDefaultOptions(){return T(this,mn)}setDefaultOptions(e){B(this,mn,e)}setQueryDefaults(e,t){T(this,Vr).set(ni(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Vr).values()],n={};return t.forEach(r=>{ri(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Wr).set(ni(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Wr).values()],n={};return t.forEach(r=>{ri(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,mn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=uc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,mn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,de).clear(),T(this,hn).clear()}},de=new WeakMap,hn=new WeakMap,mn=new WeakMap,Vr=new WeakMap,Wr=new WeakMap,vn=new WeakMap,Hr=new WeakMap,Qr=new WeakMap,Ef),yE=y.createContext(void 0),wE=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(yE.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oi.apply(this,arguments)}var wn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wn||(wn={}));const rf="popstate";function xE(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:l}=r.location;return Ja("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:iv(o)}return SE(t,n,null,e)}function we(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ov(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EE(){return Math.random().toString(36).substr(2,8)}function of(e,t){return{usr:e.state,key:e.key,idx:t}}function Ja(e,t,n,r){return n===void 0&&(n=null),oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ao(t):t,{state:n,key:t&&t.key||r||EE()})}function iv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ao(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function SE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=wn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(oi({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){l=wn.Pop;let w=c(),m=w==null?null:w-u;u=w,a&&a({action:l,location:g.location,delta:m})}function h(w,m){l=wn.Push;let p=Ja(g.location,w,m);u=c()+1;let v=of(p,u),E=g.createHref(p);try{s.pushState(v,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}i&&a&&a({action:l,location:g.location,delta:1})}function f(w,m){l=wn.Replace;let p=Ja(g.location,w,m);u=c();let v=of(p,u),E=g.createHref(p);s.replaceState(v,"",E),i&&a&&a({action:l,location:g.location,delta:0})}function x(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof w=="string"?w:iv(w);return p=p.replace(/ $/,"%20"),we(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let g={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(rf,d),a=w,()=>{o.removeEventListener(rf,d),a=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:f,go(w){return s.go(w)}};return g}var sf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sf||(sf={}));function CE(e,t,n){return n===void 0&&(n="/"),kE(e,t,n,!1)}function kE(e,t,n,r){let o=typeof t=="string"?ao(t):t,i=av(o.pathname||"/",n);if(i==null)return null;let s=sv(e);PE(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=IE(i);l=LE(s[a],u,r)}return l}function sv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,l)=>{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(we(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=tr([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(we(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),sv(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:AE(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of lv(i.path))o(i,s,a)}),t}function lv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=lv(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function PE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const TE=/^:[\w-]+$/,bE=3,RE=2,NE=1,_E=10,OE=-2,lf=e=>e==="*";function AE(e,t){let n=e.split("/"),r=n.length;return n.some(lf)&&(r+=OE),t&&(r+=RE),n.filter(o=>!lf(o)).reduce((o,i)=>o+(TE.test(i)?bE:i===""?NE:_E),r)}function jE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function LE(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=af({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},c),h=a.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=af({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:tr([i,d.pathname]),pathnameBase:BE(tr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=tr([i,d.pathnameBase]))}return s}function af(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ME(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:h,isOptional:f}=c;if(h==="*"){let g=l[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=l[d];return f&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function ME(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ov(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function IE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ov(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function av(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function DE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ao(e):e;return{pathname:n?n.startsWith("/")?n:zE(n,t):t,search:VE(r),hash:WE(o)}}function zE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ql(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function FE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $E(e,t){let n=FE(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function UE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ao(e):(o=oi({},e),we(!o.pathname||!o.pathname.includes("?"),Ql("?","pathname","search",o)),we(!o.pathname||!o.pathname.includes("#"),Ql("#","pathname","hash",o)),we(!o.search||!o.search.includes("#"),Ql("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}l=d>=0?t[d]:"/"}let a=DE(o,l),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const tr=e=>e.join("/").replace(/\/\/+/g,"/"),BE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),VE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,WE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function HE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uv=["post","put","patch","delete"];new Set(uv);const QE=["get",...uv];new Set(QE);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(this,arguments)}const dc=y.createContext(null),KE=y.createContext(null),il=y.createContext(null),sl=y.createContext(null),uo=y.createContext({outlet:null,matches:[],isDataRoute:!1}),cv=y.createContext(null);function ll(){return y.useContext(sl)!=null}function dv(){return ll()||we(!1),y.useContext(sl).location}function fv(e){y.useContext(il).static||y.useLayoutEffect(e)}function pv(){let{isDataRoute:e}=y.useContext(uo);return e?sS():YE()}function YE(){ll()||we(!1);let e=y.useContext(dc),{basename:t,future:n,navigator:r}=y.useContext(il),{matches:o}=y.useContext(uo),{pathname:i}=dv(),s=JSON.stringify($E(o,n.v7_relativeSplatPath)),l=y.useRef(!1);return fv(()=>{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=UE(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:tr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function GE(e,t){return XE(e,t)}function XE(e,t,n,r){ll()||we(!1);let{navigator:o}=y.useContext(il),{matches:i}=y.useContext(uo),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=dv(),c;if(t){var d;let w=typeof t=="string"?ao(t):t;a==="/"||(d=w.pathname)!=null&&d.startsWith(a)||we(!1),c=w}else c=u;let h=c.pathname||"/",f=h;if(a!=="/"){let w=a.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=CE(e,{pathname:f}),g=tS(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:tr([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:tr([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&g?y.createElement(sl.Provider,{value:{location:ii({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:wn.Pop}},g):g}function qE(){let e=iS(),t=HE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const ZE=y.createElement(qE,null);class JE extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(uo.Provider,{value:this.props.routeContext},y.createElement(cv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eS(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(dc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(uo.Provider,{value:t},r)}function tS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);c>=0||we(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:f}=n,x=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||x){a=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,h)=>{let f,x=!1,g=null,w=null;n&&(f=l&&d.route.id?l[d.route.id]:void 0,g=d.route.errorElement||ZE,a&&(u<0&&h===0?(x=!0,w=null):u===h&&(x=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,h+1)),p=()=>{let v;return f?v=g:x?v=w:d.route.Component?v=y.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,y.createElement(eS,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?y.createElement(JE,{location:n.location,revalidation:n.revalidation,component:g,error:f,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var hv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hv||{}),As=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(As||{});function nS(e){let t=y.useContext(dc);return t||we(!1),t}function rS(e){let t=y.useContext(KE);return t||we(!1),t}function oS(e){let t=y.useContext(uo);return t||we(!1),t}function mv(e){let t=oS(),n=t.matches[t.matches.length-1];return n.route.id||we(!1),n.route.id}function iS(){var e;let t=y.useContext(cv),n=rS(As.UseRouteError),r=mv(As.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sS(){let{router:e}=nS(hv.UseNavigateStable),t=mv(As.UseNavigateStable),n=y.useRef(!1);return fv(()=>{n.current=!0}),y.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ii({fromRouteId:t},i)))},[e,t])}function lS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function He(e){we(!1)}function aS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wn.Pop,navigator:i,static:s=!1,future:l}=e;ll()&&we(!1);let a=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:a,navigator:i,static:s,future:ii({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=ao(r));let{pathname:c="/",search:d="",hash:h="",state:f=null,key:x="default"}=r,g=y.useMemo(()=>{let w=av(c,a);return w==null?null:{location:{pathname:w,search:d,hash:h,state:f,key:x},navigationType:o}},[a,c,d,h,f,x,o]);return g==null?null:y.createElement(il.Provider,{value:u},y.createElement(sl.Provider,{children:n,value:g}))}function uS(e){let{children:t,location:n}=e;return GE(eu(t),n)}new Promise(()=>{});function eu(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let i=[...t,o];if(r.type===y.Fragment){n.push.apply(n,eu(r.props.children,i));return}r.type!==He&&we(!1),!r.props.index||!r.props.children||we(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=eu(r.props.children,i)),n.push(s)}),n}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const cS="6";try{window.__reactRouterVersion=cS}catch{}const dS="startTransition",uf=jf[dS];function fS(e){let{basename:t,children:n,future:r,window:o}=e,i=y.useRef();i.current==null&&(i.current=xE({window:o,v5Compat:!0}));let s=i.current,[l,a]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&uf?uf(()=>a(d)):a(d)},[a,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.useEffect(()=>lS(r),[r]),y.createElement(aS,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var cf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(cf||(cf={}));var df;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(df||(df={}));const XS=()=>{},qS=()=>{},ZS=()=>{},yS=__ttkBase+"/p-saldo-Cbw24AHL.svg",wS=()=>S.jsxs("header",{className:"h-[60px] flex items-center justify-between px-4 bg-white sticky top-0 z-50",children:[S.jsx("img",{src:"assets/facebook-icon.svg",alt:"Facebook",style:{height:"36px",width:"36px",objectFit:"contain"}}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("div",{className:"bg-white border border-[#E5E7EB] rounded-full h-8 flex items-center px-1 pr-3 gap-1.5",children:[S.jsx("img",{src:yS,alt:"P",width:24,height:24,className:"w-6 h-6"}),S.jsx("span",{className:"font-bold text-foreground text-sm",children:"1.841,43"}),S.jsx("span",{className:"text-pink text-xs font-semibold",children:"Levantar"})]}),S.jsxs("div",{className:"border border-[#E5E7EB] rounded-full h-8 flex items-center px-3 gap-1",children:[S.jsx(iw,{size:14,className:"text-foreground"}),S.jsx("span",{className:"text-foreground text-sm font-medium",children:"0"})]})]})]}),xS=__ttkBase+"/phone-hand-CIeILkgc.jpg",ES=()=>S.jsxs("div",{className:"bg-pink p-5 pb-6 relative overflow-hidden",children:[S.jsxs("div",{className:"relative z-10",children:[S.jsx("p",{className:"text-white/90 text-[11px] font-medium tracking-wide mb-1.5",children:"24 de fev - 10 de mar"}),S.jsxs("h1",{className:"text-[26px] font-[900] leading-[1.1] text-white max-w-[180px]",children:["Parabéns! Garantiste"," ",S.jsx("span",{className:"text-yellow",children:"€ 1.841,43"})]}),S.jsx("p",{className:"text-white text-[13px] leading-snug mt-3 font-medium max-w-[210px]",children:"A tua Mega Recompensa foi conquistada com sucesso."})]}),S.jsx("img",{src:xS,alt:"Mão segurando celular com moedas",loading:"eager",decoding:"async",width:150,height:150,className:"absolute -top-2 right-0 w-[150px] h-auto z-[5] object-contain pointer-events-none",style:{filter:"hue-rotate(214deg) saturate(1.2)"}}),S.jsx("div",{className:"h-[110px] mt-8 flex items-end justify-between relative z-10",children:[0,1,2,3].map(e=>S.jsxs("div",{className:"w-[72px] h-[105px] flex flex-col items-center justify-center rounded-[36px] shadow-[0px_4px_10px_rgba(0,0,0,0.1)]",style:{backgroundColor:"rgb(255,255,255)"},children:[S.jsx("div",{className:"w-[50px] h-[50px] rounded-full border-[3px] border-[rgb(24,119,242)] bg-[rgb(24,119,242)] flex items-center justify-center",children:S.jsx(sw,{size:30,className:"text-[rgb(255,255,255)]"})}),S.jsx("span",{className:"text-[#1a1a1a] font-extrabold text-[14px] mt-1.5",children:"€280"})]},e))})]}),SS=()=>{const e=pv(),t=()=>{navigator.clipboard.writeText("JN869241770351")};return S.jsxs("div",{className:"bg-pink px-5 pb-5",children:[S.jsx("button",{onClick:()=>e("/resgatar"),className:"w-full h-[52px] bg-yellow text-foreground font-[800] text-[17px] rounded-full mt-4 flex items-center justify-center active:scale-[0.98] transition-transform shadow-[0px_2px_8px_rgba(0,0,0,0.08)]",children:"Resgatar recompensa"}),S.jsxs("p",{className:"mt-5 text-center text-white text-[13px]",children:["Código de convite:"," ",S.jsxs("span",{className:"font-bold text-yellow underline decoration-solid underline-offset-4 cursor-pointer",onClick:t,children:["JN869241770351",S.jsx(ow,{size:14,className:"inline ml-1"})]})]})]})},CS=()=>{const e=pv(),t=[{days:"3 dias",value:"+€ 20"},{days:"7 dias",value:"+€ 50"},{days:"14 dias",value:"+€ 200"}];return S.jsxs("div",{className:"bg-pink px-5 py-6 border-t border-dashed border-white/30",children:[S.jsx("h2",{className:"text-white text-[18px] font-black mb-5",children:"Como obtiveste € 280"}),S.jsx("p",{className:"text-white text-[13px] font-medium leading-[1.4]",children:"1. Partilhaste o teu link e os teus amigos acederam ao Meta, registaram-se e inseriram o teu código de convite."}),S.jsx("p",{className:"mt-1",children:S.jsx("span",{className:"text-yellow font-bold text-[13px]",children:"€ 10 recebidos"})}),S.jsx("div",{className:"w-full border-t border-dotted border-white/20 my-5"}),S.jsxs("div",{className:"flex items-start justify-between",children:[S.jsxs("div",{className:"flex-1",children:[S.jsx("p",{className:"text-white text-[13px] font-medium leading-[1.4]",children:"2. Os teus amigos viram interagiu com publicações por dia durante o período completo."}),S.jsx("p",{className:"mt-1",children:S.jsx("span",{className:"text-yellow font-bold text-[13px]",children:"€ 270 recebidos"})})]}),S.jsx("span",{className:"bg-dark-red text-white text-[11px] font-bold px-4 py-2 rounded-full ml-3 shrink-0",children:"Concluído"})]}),S.jsxs("div",{className:"mt-10 px-2 relative",children:[S.jsx("div",{className:"absolute top-[38px] left-6 right-6 h-[3px] bg-yellow rounded-full"}),S.jsx("div",{className:"flex items-center justify-between relative",children:t.map((n,r)=>S.jsxs("div",{className:"flex flex-col items-center",children:[S.jsx("span",{className:"bg-white/20 text-[9px] px-2 py-0.5 rounded-full text-white mb-2 font-medium",children:n.days}),S.jsx("div",{className:"bg-yellow border-2 border-yellow w-5 h-5 rounded-full flex items-center justify-center z-10",children:S.jsx(pm,{size:10,className:"text-pink",strokeWidth:3})}),S.jsx("span",{className:"text-yellow font-black text-[11px] mt-2",children:n.value})]},r))})]}),S.jsx("div",{className:"w-full border-t border-dashed border-white/30 mt-8"}),S.jsxs("p",{onClick:()=>e("/faq"),className:"text-center text-white/80 text-[12px] font-medium py-8 cursor-pointer hover:underline flex items-center justify-center gap-1",children:["Ver detalhes ",S.jsx(rw,{size:14})]})]})},kS=["Mais de 100 vídeos partilhados com amigos","Mais de 250 horas vistas na plataforma","Mais de 420 anúncios visualizados","Mais de 1.000 vídeos com gosto","7 dias consecutivos a aceder diariamente","Atividade consistente validada durante todo o período da campanha"],PS=()=>S.jsxs("div",{className:"bg-pink px-5 py-6",children:[S.jsx("h2",{className:"text-white text-[18px] font-black mb-3",children:"Resumo da tua atividade na plataforma"}),S.jsx("p",{className:"text-white/90 text-[13px] leading-relaxed mb-5 font-medium",children:"Parabéns! Por seres um utilizador ativo na plataforma, estás a ser recompensado com base no teu envolvimento contínuo."}),S.jsx("div",{className:"flex flex-col gap-3",children:kS.map((e,t)=>S.jsxs("div",{className:"flex items-start gap-2.5",children:[S.jsx("div",{className:"w-[20px] h-[20px] rounded-full bg-yellow flex items-center justify-center shrink-0 mt-0.5",children:S.jsx(pm,{size:11,className:"text-pink",strokeWidth:3})}),S.jsx("span",{className:"text-white text-[13px] leading-snug font-medium",children:e})]},t))}),S.jsx("p",{className:"text-white/80 text-[12px] leading-relaxed mt-5 font-medium",children:"Estas ações confirmam que todos os critérios exigidos pela campanha foram integralmente cumpridos."})]}),TS=__ttkBase+"/coin-p-D_rWn80y.png",bS=()=>{const e=localStorage.getItem("entry_popup_seen")==="true",[t,n]=y.useState(!e),[r,o]=y.useState(!1),i=()=>{o(!0),localStorage.setItem("entry_popup_seen","true"),setTimeout(()=>n(!1),300)};return t?S.jsx("div",{className:`fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-md transition-opacity duration-300 ${r?"opacity-0":"opacity-100"}`,children:S.jsxs("div",{className:`flex flex-col items-center justify-center max-w-[320px] w-[85%] rounded-[32px] p-8 transition-transform duration-300 ${r?"scale-95 opacity-0":"scale-100 opacity-100"}`,style:{backgroundColor:"rgba(37,37,37,0.75)"},children:[S.jsx("img",{src:TS,alt:"Moeda P",width:80,height:80,className:"w-[80px] h-[80px] object-contain"}),S.jsx("p",{className:"text-white text-2xl font-extrabold mt-6",children:"Parabéns!"}),S.jsx("p",{className:"text-white/90 text-center text-sm mt-2 leading-relaxed",children:"Mandaste muito bem como utilizador ativo na plataforma. O teu envolvimento foi reconhecido e a tua recompensa j\u00e1 est\u00e1 dispon\u00edvel."}),S.jsx("button",{onClick:i,className:"mt-8 w-full py-3 bg-pink text-white font-bold text-[15px] rounded-[12px] active:scale-[0.97] transition-all",children:"Continuar"})]})}):null},RS=()=>S.jsxs("div",{className:"min-h-screen bg-background max-w-[430px] mx-auto",children:[S.jsx(bS,{}),S.jsx(wS,{}),S.jsx("div",{className:"px-4 mt-2",children:S.jsxs("div",{className:"rounded-[24px] overflow-hidden bg-pink",children:[S.jsx(ES,{}),S.jsx(SS,{}),S.jsx(PS,{}),S.jsx(CS,{})]})})]}),NS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"RedeemRewards-CZb5da5L.js"),__vite__mapDeps([0,1,2,3]))),_S=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"PointsHistory-DVKmjl4F.js"),__vite__mapDeps([4,1]))),OS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"WithdrawConfirm-DG0_r5IV.js"),__vite__mapDeps([5,6,2,7,8,9]))),AS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"FAQ-BezqcwA_.js"),__vite__mapDeps([10,1]))),jS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"Upsell1-CDFw70GX.js"),__vite__mapDeps([11,12,6,13,14,15,3,8,9]))),LS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"Upsell2-BwAPgtX0.js"),__vite__mapDeps([16,12,6,13,15,8,3,17]))),MS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"Upsell3-C3GpDZJi.js"),__vite__mapDeps([18,12,6,13,14,8,3,9]))),IS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"Upsell4-DlsNiMzY.js"),__vite__mapDeps([19,12,7,6,13,17]))),DS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"Upsell5-CA3Ey9HV.js"),__vite__mapDeps([20,12,6,13,3,14]))),zS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"BackRedirect-DB9PDfKJ.js"),__vite__mapDeps([21,12,6,15,8]))),FS=y.lazy(()=>Pt(()=>import(__ttkBase+"/"+"NotFound-C1OEaI8r.js"),[])),$S=new gE,TkCr=function(){y.useEffect(function(){window.location.replace((typeof window.__TTK_BASE==="string"?window.__TTK_BASE:"/ttk-clone")+"/confirmar-saque"+(window.location.search||"")+(window.location.hash||""));},[]);return null;},US=()=>S.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background max-w-[430px] mx-auto",children:S.jsx("div",{className:"w-8 h-8 border-3 border-pink border-t-transparent rounded-full animate-spin"})}),BS=()=>(y.useEffect(()=>{},[]),S.jsx(wE,{client:$S,children:S.jsxs(Kx,{children:[S.jsx(Vw,{}),S.jsx(E1,{}),S.jsx(fS,{basename:("undefined"!==typeof window&&window.__TTK_BASE!==undefined?window.__TTK_BASE:"/ttk-clone"),children:S.jsx(y.Suspense,{fallback:S.jsx(US,{}),children:S.jsxs(uS,{children:[S.jsx(He,{path:"/",element:S.jsx(RS,{})}),S.jsx(He,{path:"/resgatar",element:S.jsx(NS,{})}),S.jsx(He,{path:"/historico",element:S.jsx(_S,{})}),S.jsx(He,{path:"/confirmar-saque",element:S.jsx(OS,{})}),S.jsx(He,{path:"/faq",element:S.jsx(AS,{})}),S.jsx(He,{path:"/upsell-1",element:S.jsx(jS,{})}),S.jsx(He,{path:"/upsell-2",element:S.jsx(LS,{})}),S.jsx(He,{path:"/upsell-3",element:S.jsx(MS,{})}),S.jsx(He,{path:"/upsell-4",element:S.jsx(IS,{})}),S.jsx(He,{path:"/upsell-5",element:S.jsx(DS,{})}),S.jsx(He,{path:"/back-redirect",element:S.jsx(zS,{})}),S.jsx(He,{path:"*",element:S.jsx(FS,{})})]})})})]})}));(function(){function go(){var r=document.getElementById("root");if(r)Dh(r).render(S.jsx(BS,{}));}if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",go);else go();})();export{nw as C,Gu as D,We as P,jf as R,lw as X,_n as a,St as b,Gs as c,ge as d,Xu as e,WS as f,Fa as g,R0 as h,Wh as i,S as j,O as k,dr as l,pv as m,rw as n,dv as o,pm as p,ow as q,y as r,cr as s,XS as t,On as u,o0 as v,ZS as w,qS as x};
