@queuedash/client 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +23 -23
- package/dist/main.mjs +6304 -6278
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function jx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function i2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o2={exports:{}},Vd={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Nx=Symbol.for("react.transitional.element"),Ax=Symbol.for("react.fragment");function s2(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:Nx,type:e,key:r,ref:t!==void 0?t:null,props:n}}Vd.Fragment=Ax;Vd.jsx=s2;Vd.jsxs=s2;o2.exports=Vd;var c1=o2.exports,u2={exports:{}},Gd={},c2={exports:{}},d2={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(T,
|
|
17
|
+
*/(function(e){function t(T,k){var _=T.length;T.push(k);e:for(;0<_;){var U=_-1>>>1,F=T[U];if(0<a(F,k))T[U]=k,T[_]=F,_=U;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var k=T[0],_=T.pop();if(_!==k){T[0]=_;e:for(var U=0,F=T.length,G=F>>>1;U<G;){var K=2*(U+1)-1,V=T[K],I=K+1,J=T[I];if(0>a(V,_))I<F&&0>a(J,V)?(T[U]=J,T[I]=_,U=I):(T[U]=V,T[K]=_,U=K);else if(I<F&&0>a(J,_))T[U]=J,T[I]=_,U=I;else break e}}return k}function a(T,k){var _=T.sortIndex-k.sortIndex;return _!==0?_:T.id-k.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var s=[],u=[],d=1,c=null,f=3,h=!1,m=!1,b=!1,y=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(T){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=T)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function E(T){if(b=!1,w(T),!m)if(n(s)!==null)m=!0,S||(S=!0,z());else{var k=n(u);k!==null&&P(E,k.startTime-T)}}var S=!1,M=-1,N=5,j=-1;function A(){return y?!0:!(e.unstable_now()-j<N)}function D(){if(y=!1,S){var T=e.unstable_now();j=T;var k=!0;try{e:{m=!1,b&&(b=!1,v(M),M=-1),h=!0;var _=f;try{t:{for(w(T),c=n(s);c!==null&&!(c.expirationTime>T&&A());){var U=c.callback;if(typeof U=="function"){c.callback=null,f=c.priorityLevel;var F=U(c.expirationTime<=T);if(T=e.unstable_now(),typeof F=="function"){c.callback=F,w(T),k=!0;break t}c===n(s)&&r(s),w(T)}else r(s);c=n(s)}if(c!==null)k=!0;else{var G=n(u);G!==null&&P(E,G.startTime-T),k=!1}}break e}finally{c=null,f=_,h=!1}k=void 0}}finally{k?z():S=!1}}}var z;if(typeof x=="function")z=function(){x(D)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,L=B.port2;B.port1.onmessage=D,z=function(){L.postMessage(null)}}else z=function(){g(D,0)};function P(T,k){M=g(function(){T(e.unstable_now())},k)}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(T){T.callback=null},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var k=3;break;default:k=f}var _=f;f=k;try{return T()}finally{f=_}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function(T,k){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var _=f;f=T;try{return k()}finally{f=_}},e.unstable_scheduleCallback=function(T,k,_){var U=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?U+_:U):_=U,T){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=_+F,T={id:d++,callback:k,priorityLevel:T,startTime:_,expirationTime:F,sortIndex:-1},_>U?(T.sortIndex=_,t(u,T),n(s)===null&&T===n(u)&&(b?(v(M),M=-1):b=!0,P(E,_-U))):(T.sortIndex=F,t(s,T),m||h||(m=!0,S||(S=!0,z()))),T},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(T){var k=f;return function(){var _=f;f=k;try{return T.apply(this,arguments)}finally{f=_}}}})(d2);c2.exports=d2;var Lx=c2.exports,f2={exports:{}},ne={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var um=Symbol.for("react.transitional.element"),
|
|
25
|
+
*/var um=Symbol.for("react.transitional.element"),_x=Symbol.for("react.portal"),zx=Symbol.for("react.fragment"),Px=Symbol.for("react.strict_mode"),Hx=Symbol.for("react.profiler"),Kx=Symbol.for("react.consumer"),Ux=Symbol.for("react.context"),Bx=Symbol.for("react.forward_ref"),qx=Symbol.for("react.suspense"),Fx=Symbol.for("react.memo"),h2=Symbol.for("react.lazy"),Vx=Symbol.for("react.activity"),d1=Symbol.iterator;function Gx(e){return e===null||typeof e!="object"?null:(e=d1&&e[d1]||e["@@iterator"],typeof e=="function"?e:null)}var p2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m2=Object.assign,g2={};function Gi(e,t,n){this.props=e,this.context=t,this.refs=g2,this.updater=n||p2}Gi.prototype.isReactComponent={};Gi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};Gi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function v2(){}v2.prototype=Gi.prototype;function cm(e,t,n){this.props=e,this.context=t,this.refs=g2,this.updater=n||p2}var dm=cm.prototype=new v2;dm.constructor=cm;m2(dm,Gi.prototype);dm.isPureReactComponent=!0;var f1=Array.isArray;function bh(){}var De={H:null,A:null,T:null,S:null},b2=Object.prototype.hasOwnProperty;function fm(e,t,n){var r=n.ref;return{$$typeof:um,type:e,key:t,ref:r!==void 0?r:null,props:n}}function Qx(e,t){return fm(e.type,t,e.props)}function hm(e){return typeof e=="object"&&e!==null&&e.$$typeof===um}function Ix(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var h1=/\/+/g;function Pf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ix(""+e.key):t.toString(36)}function Xx(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(bh,bh):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Il(e,t,n,r,a){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case um:case _x:i=!0;break;case h2:return i=e._init,Il(i(e._payload),t,n,r,a)}}if(i)return a=a(e),i=r===""?"."+Pf(e,0):r,f1(a)?(n="",i!=null&&(n=i.replace(h1,"$&/")+"/"),Il(a,t,n,"",function(u){return u})):a!=null&&(hm(a)&&(a=Qx(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(h1,"$&/")+"/")+i)),t.push(a)),1;i=0;var o=r===""?".":r+":";if(f1(e))for(var s=0;s<e.length;s++)r=e[s],l=o+Pf(r,s),i+=Il(r,t,n,l,a);else if(s=Gx(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,l=o+Pf(r,s++),i+=Il(r,t,n,l,a);else if(l==="object"){if(typeof e.then=="function")return Il(Xx(e),t,n,r,a);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 i}function wu(e,t,n){if(e==null)return e;var r=[],a=0;return Il(e,r,"","",function(l){return t.call(n,l,a++)}),r}function Yx(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 p1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Zx={map:wu,forEach:function(e,t,n){wu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wu(e,function(){t++}),t},toArray:function(e){return wu(e,function(t){return t})||[]},only:function(e){if(!hm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Activity=Vx;ne.Children=Zx;ne.Component=Gi;ne.Fragment=zx;ne.Profiler=Hx;ne.PureComponent=cm;ne.StrictMode=Px;ne.Suspense=qx;ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=De;ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return De.H.useMemoCache(e)}};ne.cache=function(e){return function(){return e.apply(null,arguments)}};ne.cacheSignal=function(){return null};ne.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=m2({},e.props),a=e.key;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)!b2.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(r[l]=t[l]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var i=Array(l),o=0;o<l;o++)i[o]=arguments[o+2];r.children=i}return fm(e.type,a,r)};ne.createContext=function(e){return e={$$typeof:Ux,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Kx,_context:e},e};ne.createElement=function(e,t,n){var r,a={},l=null;if(t!=null)for(r in t.key!==void 0&&(l=""+t.key),t)b2.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];a.children=o}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)a[r]===void 0&&(a[r]=i[r]);return fm(e,l,a)};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:Bx,render:e}};ne.isValidElement=hm;ne.lazy=function(e){return{$$typeof:h2,_payload:{_status:-1,_result:e},_init:Yx}};ne.memo=function(e,t){return{$$typeof:Fx,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=De.T,n={};De.T=n;try{var r=e(),a=De.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(bh,p1)}catch(l){p1(l)}finally{t!==null&&n.types!==null&&(t.types=n.types),De.T=t}};ne.unstable_useCacheRefresh=function(){return De.H.useCacheRefresh()};ne.use=function(e){return De.H.use(e)};ne.useActionState=function(e,t,n){return De.H.useActionState(e,t,n)};ne.useCallback=function(e,t){return De.H.useCallback(e,t)};ne.useContext=function(e){return De.H.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e,t){return De.H.useDeferredValue(e,t)};ne.useEffect=function(e,t){return De.H.useEffect(e,t)};ne.useEffectEvent=function(e){return De.H.useEffectEvent(e)};ne.useId=function(){return De.H.useId()};ne.useImperativeHandle=function(e,t,n){return De.H.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return De.H.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return De.H.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return De.H.useMemo(e,t)};ne.useOptimistic=function(e,t){return De.H.useOptimistic(e,t)};ne.useReducer=function(e,t,n){return De.H.useReducer(e,t,n)};ne.useRef=function(e){return De.H.useRef(e)};ne.useState=function(e){return De.H.useState(e)};ne.useSyncExternalStore=function(e,t,n){return De.H.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return De.H.useTransition()};ne.version="19.2.0";f2.exports=ne;var p=f2.exports;const O=i2(p),y2=jx({__proto__:null,default:O},[p]);var x2={exports:{}},Ct={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var $x=p;function w2(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function zr(){}var wt={d:{f:zr,r:function(){throw Error(w2(522))},D:zr,C:zr,L:zr,m:zr,X:zr,S:zr,M:zr},p:0,findDOMNode:null},Wx=Symbol.for("react.portal");function Jx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wx,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var ts=$x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Qd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wt;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(w2(299));return Jx(e,t,null,n)};Ct.flushSync=function(e){var t=ts.T,n=wt.p;try{if(ts.T=null,wt.p=2,e)return e()}finally{ts.T=t,wt.p=n,wt.d.f()}};Ct.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,wt.d.C(e,t))};Ct.prefetchDNS=function(e){typeof e=="string"&&wt.d.D(e)};Ct.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Qd(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?wt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:l}):n==="script"&&wt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ct.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Qd(t.as,t.crossOrigin);wt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&wt.d.M(e)};Ct.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Qd(n,t.crossOrigin);wt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ct.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Qd(t.as,t.crossOrigin);wt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else wt.d.m(e)};Ct.requestFormReset=function(e){wt.d.r(e)};Ct.unstable_batchedUpdates=function(e,t){return e(t)};Ct.useFormState=function(e,t,n){return ts.H.useFormState(e,t,n)};Ct.useFormStatus=function(){return ts.H.useHostTransitionStatus()};Ct.version="19.2.0";function C2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C2)}catch(e){console.error(e)}}C2(),x2.exports=Ct;var Ys=x2.exports;const pm=i2(Ys);/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var We=
|
|
41
|
+
*/var We=Lx,S2=p,ew=Ys;function H(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function E2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zs(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 M2(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 O2(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m1(e){if(Zs(e)!==e)throw Error(H(188))}function tw(e){var t=e.alternate;if(!t){if(t=Zs(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var l=a.alternate;if(l===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return m1(a),e;if(l===r)return m1(a),t;l=l.sibling}throw Error(H(188))}if(n.return!==r.return)n=a,r=l;else{for(var i=!1,o=a.child;o;){if(o===n){i=!0,n=a,r=l;break}if(o===r){i=!0,r=a,n=l;break}o=o.sibling}if(!i){for(o=l.child;o;){if(o===n){i=!0,n=l,r=a;break}if(o===r){i=!0,r=l,n=a;break}o=o.sibling}if(!i)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function R2(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=R2(e),t!==null)return t;e=e.sibling}return null}var je=Object.assign,nw=Symbol.for("react.element"),Cu=Symbol.for("react.transitional.element"),Qo=Symbol.for("react.portal"),ei=Symbol.for("react.fragment"),T2=Symbol.for("react.strict_mode"),yh=Symbol.for("react.profiler"),k2=Symbol.for("react.consumer"),br=Symbol.for("react.context"),mm=Symbol.for("react.forward_ref"),xh=Symbol.for("react.suspense"),wh=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),Vr=Symbol.for("react.lazy"),Ch=Symbol.for("react.activity"),rw=Symbol.for("react.memo_cache_sentinel"),g1=Symbol.iterator;function fo(e){return e===null||typeof e!="object"?null:(e=g1&&e[g1]||e["@@iterator"],typeof e=="function"?e:null)}var aw=Symbol.for("react.client.reference");function Sh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===aw?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ei:return"Fragment";case yh:return"Profiler";case T2:return"StrictMode";case xh:return"Suspense";case wh:return"SuspenseList";case Ch:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Qo:return"Portal";case br:return e.displayName||"Context";case k2:return(e._context.displayName||"Context")+".Consumer";case mm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gm:return t=e.displayName||null,t!==null?t:Sh(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return Sh(e(t))}catch{}}return null}var Io=Array.isArray,W=S2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=ew.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rl={pending:!1,data:null,method:null,action:null},Eh=[],ti=-1;function er(e){return{current:e}}function it(e){0>ti||(e.current=Eh[ti],Eh[ti]=null,ti--)}function Re(e,t){ti++,Eh[ti]=e.current,e.current=t}var Jn=er(null),Ss=er(null),la=er(null),Pc=er(null);function Hc(e,t){switch(Re(la,t),Re(Ss,e),Re(Jn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cv(t),e=Y9(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}it(Jn),Re(Jn,e)}function Oi(){it(Jn),it(Ss),it(la)}function Mh(e){e.memoizedState!==null&&Re(Pc,e);var t=Jn.current,n=Y9(t,e.type);t!==n&&(Re(Ss,e),Re(Jn,n))}function Kc(e){Ss.current===e&&(it(Jn),it(Ss)),Pc.current===e&&(it(Pc),Ls._currentValue=rl)}var Hf,v1;function Ya(e){if(Hf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hf=t&&t[1]||"",v1=-1<n.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+Hf+e+v1}var Kf=!1;function Uf(e,t){if(!e||Kf)return"";Kf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(h){var f=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){f=h}e.call(c.prototype)}}else{try{throw Error()}catch(h){f=h}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=r.DetermineComponentFrameRoot(),i=l[0],o=l[1];if(i&&o){var s=i.split(`
|
|
44
44
|
`),u=o.split(`
|
|
45
45
|
`);for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||s[r]!==u[a]){var d=`
|
|
46
|
-
`+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=a);break}}}finally{Kf=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?
|
|
46
|
+
`+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=a);break}}}finally{Kf=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ya(n):""}function lw(e,t){switch(e.tag){case 26:case 27:case 5:return Ya(e.type);case 16:return Ya("Lazy");case 13:return e.child!==t&&t!==null?Ya("Suspense Fallback"):Ya("Suspense");case 19:return Ya("SuspenseList");case 0:case 15:return Uf(e.type,!1);case 11:return Uf(e.type.render,!1);case 1:return Uf(e.type,!0);case 31:return Ya("Activity");default:return""}}function b1(e){try{var t="",n=null;do t+=lw(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
47
|
Error generating stack: `+r.message+`
|
|
48
|
-
`+r.stack}}var Oh=Object.prototype.hasOwnProperty,vm=We.unstable_scheduleCallback,Bf=We.unstable_cancelCallback,lx=We.unstable_shouldYield,ix=We.unstable_requestPaint,Wt=We.unstable_now,ox=We.unstable_getCurrentPriorityLevel,D2=We.unstable_ImmediatePriority,j2=We.unstable_UserBlockingPriority,Uc=We.unstable_NormalPriority,sx=We.unstable_LowPriority,A2=We.unstable_IdlePriority,ux=We.log,cx=We.unstable_setDisableYieldValue,$s=null,Jt=null;function Wr(e){if(typeof ux=="function"&&cx(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode($s,e)}catch{}}var en=Math.clz32?Math.clz32:hx,dx=Math.log,fx=Math.LN2;function hx(e){return e>>>=0,e===0?32:31-(dx(e)/fx|0)|0}var Su=256,Eu=262144,Mu=4194304;function Za(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xd(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~l,r!==0?a=Za(r):(i&=o,i!==0?a=Za(i):n||(n=o&~e,n!==0&&(a=Za(n))))):(o=r&~l,o!==0?a=Za(o):i!==0?a=Za(i):n||(n=r&~e,n!==0&&(a=Za(n)))),a===0?0:t!==0&&t!==a&&!(t&l)&&(l=a&-a,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:a}function Ws(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function px(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N2(){var e=Mu;return Mu<<=1,!(Mu&62914560)&&(Mu=4194304),e}function qf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Js(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mx(e,t,n,r,a,l){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var d=31-en(n),c=1<<d;o[d]=0,s[d]=-1;var f=u[d];if(f!==null)for(u[d]=null,d=0;d<f.length;d++){var h=f[d];h!==null&&(h.lane&=-536870913)}n&=~c}r!==0&&k2(e,r,0),l!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function k2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-en(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function L2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-en(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function _2(e,t){var n=t&-t;return n=n&42?1:ym(n),n&(e.suspendedLanes|t)?0:n}function ym(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bm(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function z2(){var e=me.p;return e!==0?e:(e=window.event,e===void 0?32:l8(e.type))}function b1(e,t){var n=me.p;try{return me.p=e,t()}finally{me.p=n}}var Oa=Math.random().toString(36).slice(2),dt="__reactFiber$"+Oa,_t="__reactProps$"+Oa,Gi="__reactContainer$"+Oa,Rh="__reactEvents$"+Oa,gx="__reactListeners$"+Oa,vx="__reactHandles$"+Oa,w1="__reactResources$"+Oa,eu="__reactMarker$"+Oa;function wm(e){delete e[dt],delete e[_t],delete e[Rh],delete e[gx],delete e[vx]}function ni(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gi]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Rv(e);e!==null;){if(n=e[dt])return n;e=Rv(e)}return t}e=n,n=e.parentNode}return null}function Qi(e){if(e=e[dt]||e[Gi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(H(33))}function mi(e){var t=e[w1];return t||(t=e[w1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[eu]=!0}var P2=new Set,H2={};function bl(e,t){Ri(e,t),Ri(e+"Capture",t)}function Ri(e,t){for(H2[e]=t,e=0;e<t.length;e++)P2.add(t[e])}var yx=RegExp("^[: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]*$"),x1={},C1={};function bx(e){return Oh.call(C1,e)?!0:Oh.call(x1,e)?!1:yx.test(e)?C1[e]=!0:(x1[e]=!0,!1)}function mc(e,t,n){if(bx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ou(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function lr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function K2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wx(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Th(e){if(!e._valueTracker){var t=K2(e)?"checked":"value";e._valueTracker=wx(e,t,""+e[t])}}function U2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bc(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}}var xx=/[\n"\\]/g;function gn(e){return e.replace(xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dh(e,t,n,r,a,l,i,o){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?jh(e,i,hn(t)):n!=null?jh(e,i,hn(n)):r!=null&&e.removeAttribute("value"),a==null&&l!=null&&(e.defaultChecked=!!l),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+hn(o):e.removeAttribute("name")}function B2(e,t,n,r,a,l,i,o){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){Th(e);return}n=n!=null?""+hn(n):"",t=t!=null?""+hn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Th(e)}function jh(e,t,n){t==="number"&&Bc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function gi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+hn(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function q2(e,t,n){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+hn(n):""}function F2(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(H(92));if(Qo(r)){if(1<r.length)throw Error(H(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=hn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Th(e)}function Ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function S1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Cx.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function V2(e,t,n){if(t!=null&&typeof t!="object")throw Error(H(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&S1(e,a,r)}else for(var l in t)t.hasOwnProperty(l)&&S1(e,l,t[l])}function xm(e){if(e.indexOf("-")===-1)return!1;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 Sx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ex=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function gc(e){return Ex.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function br(){}var Ah=null;function Cm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ri=null,vi=null;function E1(e){var t=Qi(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Dh(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[_t]||null;if(!a)throw Error(H(90));Dh(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&U2(r)}break e;case"textarea":q2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&gi(e,!!n.multiple,t,!1)}}}var Ff=!1;function G2(e,t,n){if(Ff)return e(t,n);Ff=!0;try{var r=e(t);return r}finally{if(Ff=!1,(ri!==null||vi!==null)&&(lf(),ri&&(t=ri,e=vi,vi=ri=null,E1(t),e)))for(t=0;t<e.length;t++)E1(e[t])}}function Ss(e,t){var n=e.stateNode;if(n===null)return null;var r=n[_t]||null;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(H(231,t,typeof n));return n}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nh=!1;if(Mr)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){Nh=!0}}),window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{Nh=!1}var Jr=null,Sm=null,vc=null;function Q2(){if(vc)return vc;var e,t=Sm,n=t.length,r,a="value"in Jr?Jr.value:Jr.textContent,l=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===a[l-r];r++);return vc=a.slice(e,1<r?1-r:void 0)}function yc(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 Ru(){return!0}function M1(){return!1}function zt(e){function t(n,r,a,l,i){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Ru:M1,this.isPropagationStopped=M1,this}return Ae(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=Ru)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ru)},persist:function(){},isPersistent:Ru}),t}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yd=zt(wl),tu=Ae({},wl,{view:0,detail:0}),Mx=zt(tu),Vf,Gf,ho,Id=Ae({},tu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Em,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!==ho&&(ho&&e.type==="mousemove"?(Vf=e.screenX-ho.screenX,Gf=e.screenY-ho.screenY):Gf=Vf=0,ho=e),Vf)},movementY:function(e){return"movementY"in e?e.movementY:Gf}}),O1=zt(Id),Ox=Ae({},Id,{dataTransfer:0}),Rx=zt(Ox),Tx=Ae({},tu,{relatedTarget:0}),Qf=zt(Tx),Dx=Ae({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),jx=zt(Dx),Ax=Ae({},wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nx=zt(Ax),kx=Ae({},wl,{data:0}),R1=zt(kx),Lx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_x={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"},zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Px(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zx[e])?!!t[e]:!1}function Em(){return Px}var Hx=Ae({},tu,{key:function(e){if(e.key){var t=Lx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_x[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Em,charCode:function(e){return e.type==="keypress"?yc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kx=zt(Hx),Ux=Ae({},Id,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),T1=zt(Ux),Bx=Ae({},tu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Em}),qx=zt(Bx),Fx=Ae({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vx=zt(Fx),Gx=Ae({},Id,{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}),Qx=zt(Gx),Xx=Ae({},wl,{newState:0,oldState:0}),Yx=zt(Xx),Ix=[9,13,27,32],Mm=Mr&&"CompositionEvent"in window,ts=null;Mr&&"documentMode"in document&&(ts=document.documentMode);var Zx=Mr&&"TextEvent"in window&&!ts,X2=Mr&&(!Mm||ts&&8<ts&&11>=ts),D1=" ",j1=!1;function Y2(e,t){switch(e){case"keyup":return Ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function $x(e,t){switch(e){case"compositionend":return I2(t);case"keypress":return t.which!==32?null:(j1=!0,D1);case"textInput":return e=t.data,e===D1&&j1?null:e;default:return null}}function Wx(e,t){if(ai)return e==="compositionend"||!Mm&&Y2(e,t)?(e=Q2(),vc=Sm=Jr=null,ai=!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 X2&&t.locale!=="ko"?null:t.data;default:return null}}var Jx={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 A1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jx[e.type]:t==="textarea"}function Z2(e,t,n,r){ri?vi?vi.push(r):vi=[r]:ri=r,t=ld(t,"onChange"),0<t.length&&(n=new Yd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ns=null,Es=null;function eC(e){G9(e,0)}function Zd(e){var t=Xo(e);if(U2(t))return e}function N1(e,t){if(e==="change")return t}var $2=!1;if(Mr){var Xf;if(Mr){var Yf="oninput"in document;if(!Yf){var k1=document.createElement("div");k1.setAttribute("oninput","return;"),Yf=typeof k1.oninput=="function"}Xf=Yf}else Xf=!1;$2=Xf&&(!document.documentMode||9<document.documentMode)}function L1(){ns&&(ns.detachEvent("onpropertychange",W2),Es=ns=null)}function W2(e){if(e.propertyName==="value"&&Zd(Es)){var t=[];Z2(t,Es,e,Cm(e)),G2(eC,t)}}function tC(e,t,n){e==="focusin"?(L1(),ns=t,Es=n,ns.attachEvent("onpropertychange",W2)):e==="focusout"&&L1()}function nC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zd(Es)}function rC(e,t){if(e==="click")return Zd(t)}function aC(e,t){if(e==="input"||e==="change")return Zd(t)}function lC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:lC;function Ms(e,t){if(nn(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 a=n[r];if(!Oh.call(t,a)||!nn(e[a],t[a]))return!1}return!0}function _1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z1(e,t){var n=_1(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=_1(n)}}function J2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?J2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e5(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bc(e.document)}return t}function Om(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")}var iC=Mr&&"documentMode"in document&&11>=document.documentMode,li=null,kh=null,rs=null,Lh=!1;function P1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lh||li==null||li!==Bc(r)||(r=li,"selectionStart"in r&&Om(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}),rs&&Ms(rs,r)||(rs=r,r=ld(kh,"onSelect"),0<r.length&&(t=new Yd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function La(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ii={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},If={},t5={};Mr&&(t5=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function xl(e){if(If[e])return If[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in t5)return If[e]=t[n];return e}var n5=xl("animationend"),r5=xl("animationiteration"),a5=xl("animationstart"),oC=xl("transitionrun"),sC=xl("transitionstart"),uC=xl("transitioncancel"),l5=xl("transitionend"),i5=new Map,_h="abort auxClick beforeToggle 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(" ");_h.push("scrollEnd");function Un(e,t){i5.set(e,t),bl(t,[e])}var qc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],oi=0,Rm=0;function $d(){for(var e=oi,t=Rm=oi=0;t<e;){var n=dn[t];dn[t++]=null;var r=dn[t];dn[t++]=null;var a=dn[t];dn[t++]=null;var l=dn[t];if(dn[t++]=null,r!==null&&a!==null){var i=r.pending;i===null?a.next=a:(a.next=i.next,i.next=a),r.pending=a}l!==0&&o5(n,a,l)}}function Wd(e,t,n,r){dn[oi++]=e,dn[oi++]=t,dn[oi++]=n,dn[oi++]=r,Rm|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Tm(e,t,n,r){return Wd(e,t,n,r),Fc(e)}function Cl(e,t){return Wd(e,null,null,t),Fc(e)}function o5(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,l=e.return;l!==null;)l.childLanes|=n,r=l.alternate,r!==null&&(r.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(a=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,a&&t!==null&&(a=31-en(n),e=l.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),l):null}function Fc(e){if(50<fs)throw fs=0,np=null,Error(H(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function cC(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.refCleanup=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 Qt(e,t,n,r){return new cC(e,t,n,r)}function Dm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xr(e,t){var n=e.alternate;return n===null?(n=Qt(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&65011712,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.refCleanup=e.refCleanup,n}function s5(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bc(e,t,n,r,a,l){var i=0;if(r=e,typeof e=="function")Dm(e)&&(i=1);else if(typeof e=="string")i=mS(e,n,Jn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ch:return e=Qt(31,n,t,a),e.elementType=Ch,e.lanes=l,e;case ei:return al(n.children,a,l,t);case R2:i=8,a|=24;break;case bh:return e=Qt(12,n,t,a|2),e.elementType=bh,e.lanes=l,e;case wh:return e=Qt(13,n,t,a),e.elementType=wh,e.lanes=l,e;case xh:return e=Qt(19,n,t,a),e.elementType=xh,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yr:i=10;break e;case T2:i=9;break e;case mm:i=11;break e;case gm:i=14;break e;case Vr:i=16,r=null;break e}i=29,n=Error(H(130,e===null?"null":typeof e,"")),r=null}return t=Qt(i,n,t,a),t.elementType=e,t.type=r,t.lanes=l,t}function al(e,t,n,r){return e=Qt(7,e,r,t),e.lanes=n,e}function Zf(e,t,n){return e=Qt(6,e,null,t),e.lanes=n,e}function u5(e){var t=Qt(18,null,null,0);return t.stateNode=e,t}function $f(e,t,n){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var H1=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var n=H1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:y1(t)},H1.set(e,t),t)}return{value:e,source:t,stack:y1(t)}}var ui=[],ci=0,Vc=null,Os=0,pn=[],mn=0,ya=null,In=1,Zn="";function gr(e,t){ui[ci++]=Os,ui[ci++]=Vc,Vc=e,Os=t}function c5(e,t,n){pn[mn++]=In,pn[mn++]=Zn,pn[mn++]=ya,ya=e;var r=In;e=Zn;var a=32-en(r)-1;r&=~(1<<a),n+=1;var l=32-en(t)+a;if(30<l){var i=a-a%5;l=(r&(1<<i)-1).toString(32),r>>=i,a-=i,In=1<<32-en(t)+a|n<<a|r,Zn=l+e}else In=1<<l|n<<a|r,Zn=e}function jm(e){e.return!==null&&(gr(e,1),c5(e,1,0))}function Am(e){for(;e===Vc;)Vc=ui[--ci],ui[ci]=null,Os=ui[--ci],ui[ci]=null;for(;e===ya;)ya=pn[--mn],pn[mn]=null,Zn=pn[--mn],pn[mn]=null,In=pn[--mn],pn[mn]=null}function d5(e,t){pn[mn++]=In,pn[mn++]=Zn,pn[mn++]=ya,In=t.id,Zn=t.overflow,ya=e}var ft=null,De=null,se=!1,ia=null,yn=!1,zh=Error(H(519));function ba(e){var t=Error(H(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(vn(t,e)),zh}function K1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[_t]=r,n){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(n=0;n<As.length;n++)le(As[n],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),B2(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),F2(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||X9(t.textContent,n)?(r.popover!=null&&(le("beforetoggle",t),le("toggle",t)),r.onScroll!=null&&le("scroll",t),r.onScrollEnd!=null&&le("scrollend",t),r.onClick!=null&&(t.onclick=br),t=!0):t=!1,t||ba(e,!0)}function U1(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ft=ft.return}}function kl(e){if(e!==ft)return!1;if(!se)return U1(e),se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||op(e.type,e.memoizedProps)),n=!n),n&&De&&ba(e),U1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));De=Ov(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));De=Ov(e)}else t===27?(t=De,Ra(e.type)?(e=dp,dp=null,De=e):De=t):De=ft?xn(e.stateNode.nextSibling):null;return!0}function sl(){De=ft=null,se=!1}function Wf(){var e=ia;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),ia=null),e}function Rs(e){ia===null?ia=[e]:ia.push(e)}var Ph=er(null),Sl=null,wr=null;function Xr(e,t,n){Re(Ph,t._currentValue),t._currentValue=n}function Cr(e){e._currentValue=Ph.current,it(Ph)}function Hh(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 Kh(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){var i=a.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Hh(l.return,n,e),r||(i=null);break e}l=o.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(H(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hh(i,n,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Xi(e,t,n,r){e=null;for(var a=t,l=!1;a!==null;){if(!l){if(a.flags&524288)l=!0;else if(a.flags&262144)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(H(387));if(i=i.memoizedProps,i!==null){var o=a.type;nn(a.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(a===Pc.current){if(i=a.alternate,i===null)throw Error(H(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ks):e=[ks])}a=a.return}e!==null&&Kh(t,e,n,r),t.flags|=262144}function Gc(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){Sl=e,wr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ht(e){return f5(Sl,e)}function Tu(e,t){return Sl===null&&ul(e),f5(e,t)}function f5(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wr===null){if(e===null)throw Error(H(308));wr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wr=wr.next=t;return n}var dC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},fC=We.unstable_scheduleCallback,hC=We.unstable_NormalPriority,Xe={$$typeof:yr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nm(){return{controller:new dC,data:new Map,refCount:0}}function nu(e){e.refCount--,e.refCount===0&&fC(hC,function(){e.controller.abort()})}var as=null,Uh=0,Di=0,yi=null;function pC(e,t){if(as===null){var n=as=[];Uh=0,Di=rg(),yi={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Uh++,t.then(B1,B1),t}function B1(){if(--Uh===0&&as!==null){yi!==null&&(yi.status="fulfilled");var e=as;as=null,Di=0,yi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function mC(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var q1=W.S;W.S=function(e,t){O9=Wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pC(e,t),q1!==null&&q1(e,t)};var ll=er(null);function km(){var e=ll.current;return e!==null?e:Ee.pooledCache}function wc(e,t){t===null?Re(ll,ll.current):Re(ll,t.pool)}function h5(){var e=km();return e===null?null:{parent:Xe._currentValue,pool:e}}var Yi=Error(H(460)),Lm=Error(H(474)),Jd=Error(H(542)),Qc={then:function(){}};function F1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function p5(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(br,br),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,G1(e),e;default:if(typeof t.status=="string")t.then(br,br);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(H(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,G1(e),e}throw il=t,Yi}}function $a(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(il=n,Yi):n}}var il=null;function V1(){if(il===null)throw Error(H(459));var e=il;return il=null,e}function G1(e){if(e===Yi||e===Jd)throw Error(H(483))}var bi=null,Ts=0;function Du(e){var t=Ts;return Ts+=1,bi===null&&(bi=[]),p5(bi,e,t)}function po(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ju(e,t){throw t.$$typeof===tx?Error(H(525)):(e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function m5(e){function t(g,y){if(e){var w=g.deletions;w===null?(g.deletions=[y],g.flags|=16):w.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g){for(var y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function a(g,y){return g=xr(g,y),g.index=0,g.sibling=null,g}function l(g,y,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<y?(g.flags|=67108866,y):w):(g.flags|=67108866,y)):(g.flags|=1048576,y)}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function o(g,y,w,C){return y===null||y.tag!==6?(y=Zf(w,g.mode,C),y.return=g,y):(y=a(y,w),y.return=g,y)}function s(g,y,w,C){var E=w.type;return E===ei?d(g,y,w.props.children,C,w.key):y!==null&&(y.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Vr&&$a(E)===y.type)?(y=a(y,w.props),po(y,w),y.return=g,y):(y=bc(w.type,w.key,w.props,null,g.mode,C),po(y,w),y.return=g,y)}function u(g,y,w,C){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=$f(w,g.mode,C),y.return=g,y):(y=a(y,w.children||[]),y.return=g,y)}function d(g,y,w,C,E){return y===null||y.tag!==7?(y=al(w,g.mode,C,E),y.return=g,y):(y=a(y,w),y.return=g,y)}function c(g,y,w){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Zf(""+y,g.mode,w),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Cu:return w=bc(y.type,y.key,y.props,null,g.mode,w),po(w,y),w.return=g,w;case Go:return y=$f(y,g.mode,w),y.return=g,y;case Vr:return y=$a(y),c(g,y,w)}if(Qo(y)||co(y))return y=al(y,g.mode,w,null),y.return=g,y;if(typeof y.then=="function")return c(g,Du(y),w);if(y.$$typeof===yr)return c(g,Tu(g,y),w);ju(g,y)}return null}function f(g,y,w,C){var E=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return E!==null?null:o(g,y,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Cu:return w.key===E?s(g,y,w,C):null;case Go:return w.key===E?u(g,y,w,C):null;case Vr:return w=$a(w),f(g,y,w,C)}if(Qo(w)||co(w))return E!==null?null:d(g,y,w,C,null);if(typeof w.then=="function")return f(g,y,Du(w),C);if(w.$$typeof===yr)return f(g,y,Tu(g,w),C);ju(g,w)}return null}function h(g,y,w,C,E){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return g=g.get(w)||null,o(y,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Cu:return g=g.get(C.key===null?w:C.key)||null,s(y,g,C,E);case Go:return g=g.get(C.key===null?w:C.key)||null,u(y,g,C,E);case Vr:return C=$a(C),h(g,y,w,C,E)}if(Qo(C)||co(C))return g=g.get(w)||null,d(y,g,C,E,null);if(typeof C.then=="function")return h(g,y,w,Du(C),E);if(C.$$typeof===yr)return h(g,y,w,Tu(y,C),E);ju(y,C)}return null}function m(g,y,w,C){for(var E=null,S=null,M=y,N=y=0,A=null;M!==null&&N<w.length;N++){M.index>N?(A=M,M=null):A=M.sibling;var k=f(g,M,w[N],C);if(k===null){M===null&&(M=A);break}e&&M&&k.alternate===null&&t(g,M),y=l(k,y,N),S===null?E=k:S.sibling=k,S=k,M=A}if(N===w.length)return n(g,M),se&&gr(g,N),E;if(M===null){for(;N<w.length;N++)M=c(g,w[N],C),M!==null&&(y=l(M,y,N),S===null?E=M:S.sibling=M,S=M);return se&&gr(g,N),E}for(M=r(M);N<w.length;N++)A=h(M,g,N,w[N],C),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?N:A.key),y=l(A,y,N),S===null?E=A:S.sibling=A,S=A);return e&&M.forEach(function(j){return t(g,j)}),se&&gr(g,N),E}function v(g,y,w,C){if(w==null)throw Error(H(151));for(var E=null,S=null,M=y,N=y=0,A=null,k=w.next();M!==null&&!k.done;N++,k=w.next()){M.index>N?(A=M,M=null):A=M.sibling;var j=f(g,M,k.value,C);if(j===null){M===null&&(M=A);break}e&&M&&j.alternate===null&&t(g,M),y=l(j,y,N),S===null?E=j:S.sibling=j,S=j,M=A}if(k.done)return n(g,M),se&&gr(g,N),E;if(M===null){for(;!k.done;N++,k=w.next())k=c(g,k.value,C),k!==null&&(y=l(k,y,N),S===null?E=k:S.sibling=k,S=k);return se&&gr(g,N),E}for(M=r(M);!k.done;N++,k=w.next())k=h(M,g,N,k.value,C),k!==null&&(e&&k.alternate!==null&&M.delete(k.key===null?N:k.key),y=l(k,y,N),S===null?E=k:S.sibling=k,S=k);return e&&M.forEach(function(z){return t(g,z)}),se&&gr(g,N),E}function b(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===ei&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Cu:e:{for(var E=w.key;y!==null;){if(y.key===E){if(E=w.type,E===ei){if(y.tag===7){n(g,y.sibling),C=a(y,w.props.children),C.return=g,g=C;break e}}else if(y.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Vr&&$a(E)===y.type){n(g,y.sibling),C=a(y,w.props),po(C,w),C.return=g,g=C;break e}n(g,y);break}else t(g,y);y=y.sibling}w.type===ei?(C=al(w.props.children,g.mode,C,w.key),C.return=g,g=C):(C=bc(w.type,w.key,w.props,null,g.mode,C),po(C,w),C.return=g,g=C)}return i(g);case Go:e:{for(E=w.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),C=a(y,w.children||[]),C.return=g,g=C;break e}else{n(g,y);break}else t(g,y);y=y.sibling}C=$f(w,g.mode,C),C.return=g,g=C}return i(g);case Vr:return w=$a(w),b(g,y,w,C)}if(Qo(w))return m(g,y,w,C);if(co(w)){if(E=co(w),typeof E!="function")throw Error(H(150));return w=E.call(w),v(g,y,w,C)}if(typeof w.then=="function")return b(g,y,Du(w),C);if(w.$$typeof===yr)return b(g,y,Tu(g,w),C);ju(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),C=a(y,w),C.return=g,g=C):(n(g,y),C=Zf(w,g.mode,C),C.return=g,g=C),i(g)):n(g,y)}return function(g,y,w,C){try{Ts=0;var E=b(g,y,w,C);return bi=null,E}catch(M){if(M===Yi||M===Jd)throw M;var S=Qt(29,M,null,g.mode);return S.lanes=C,S.return=g,S}finally{}}}var cl=m5(!0),g5=m5(!1),Gr=!1;function _m(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Fc(e),o5(e,null,n),t}return Wd(e,r,t,n),Fc(e)}function ls(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,L2(e,n)}}function Jf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?a=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?a=l=t:l=l.next=t}else a=l=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qh=!1;function is(){if(qh){var e=yi;if(e!==null)throw e}}function os(e,t,n,r){qh=!1;var a=e.updateQueue;Gr=!1;var l=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,u=s.next;s.next=null,i===null?l=u:i.next=u,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==i&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=s))}if(l!==null){var c=a.baseState;i=0,d=u=s=null,o=l;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(oe&f)===f:(r&f)===f){f!==0&&f===Di&&(qh=!0),d!==null&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,v=o;f=t;var b=n;switch(v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(b,c,f);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,f=typeof m=="function"?m.call(b,c,f):m,f==null)break e;c=Ae({},c,f);break e;case 2:Gr=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=h,s=c):d=d.next=h,i|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);d===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,l===null&&(a.shared.lanes=0),xa|=i,e.lanes=i,e.memoizedState=c}}function v5(e,t){if(typeof e!="function")throw Error(H(191,e));e.call(t)}function y5(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)v5(n[e],t)}var ji=er(null),Xc=er(0);function Q1(e,t){e=Dr,Re(Xc,e),Re(ji,t),Dr=e|t.baseLanes}function Fh(){Re(Xc,Dr),Re(ji,ji.current)}function zm(){Dr=Xc.current,it(ji),it(Xc)}var rn=er(null),wn=null;function Yr(e){var t=e.alternate;Re(Be,Be.current&1),Re(rn,e),wn===null&&(t===null||ji.current!==null||t.memoizedState!==null)&&(wn=e)}function Vh(e){Re(Be,Be.current),Re(rn,e),wn===null&&(wn=e)}function b5(e){e.tag===22?(Re(Be,Be.current),Re(rn,e),wn===null&&(wn=e)):Ir()}function Ir(){Re(Be,Be.current),Re(rn,rn.current)}function Gt(e){it(rn),wn===e&&(wn=null),it(Be)}var Be=er(0);function Yc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||up(n)||cp(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 Or=0,re=null,Ce=null,Ge=null,Ic=!1,wi=!1,dl=!1,Zc=0,Ds=0,xi=null,gC=0;function _e(){throw Error(H(321))}function Pm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function Hm(e,t,n,r,a,l){return Or=l,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e===null||e.memoizedState===null?Z5:Im,dl=!1,l=n(r,a),dl=!1,wi&&(l=x5(t,n,r,a)),w5(e),l}function w5(e){W.H=js;var t=Ce!==null&&Ce.next!==null;if(Or=0,Ge=Ce=re=null,Ic=!1,Ds=0,xi=null,t)throw Error(H(300));e===null||Ye||(e=e.dependencies,e!==null&&Gc(e)&&(Ye=!0))}function x5(e,t,n,r){re=e;var a=0;do{if(wi&&(xi=null),Ds=0,wi=!1,25<=a)throw Error(H(301));if(a+=1,Ge=Ce=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}W.H=$5,l=t(n,r)}while(wi);return l}function vC(){var e=W.H,t=e.useState()[0];return t=typeof t.then=="function"?ru(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(re.flags|=1024),t}function Km(){var e=Zc!==0;return Zc=0,e}function Um(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bm(e){if(Ic){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ic=!1}Or=0,Ge=Ce=re=null,wi=!1,Ds=Zc=0,xi=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function qe(){if(Ce===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ge===null?re.memoizedState:Ge.next;if(t!==null)Ge=t,Ce=e;else{if(e===null)throw re.alternate===null?Error(H(467)):Error(H(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function ef(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ru(e){var t=Ds;return Ds+=1,xi===null&&(xi=[]),e=p5(xi,e,t),t=re,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,W.H=t===null||t.memoizedState===null?Z5:Im),e}function tf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ru(e);if(e.$$typeof===yr)return ht(e)}throw Error(H(438,String(e)))}function qm(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ef(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=nx;return t.index++,n}function Rr(e,t){return typeof t=="function"?t(e):t}function xc(e){var t=qe();return Fm(t,Ce,e)}function Fm(e,t,n){var r=e.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=n;var a=e.baseQueue,l=r.pending;if(l!==null){if(a!==null){var i=a.next;a.next=l.next,l.next=i}t.baseQueue=a=l,r.pending=null}if(l=e.baseState,a===null)e.memoizedState=l;else{t=a.next;var o=i=null,s=null,u=t,d=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(oe&c)===c:(Or&c)===c){var f=u.revertLane;if(f===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===Di&&(d=!0);else if((Or&f)===f){u=u.next,f===Di&&(d=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=c,i=l):s=s.next=c,re.lanes|=f,xa|=f;c=u.action,dl&&n(l,c),l=u.hasEagerState?u.eagerState:n(l,c)}else f={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=f,i=l):s=s.next=f,re.lanes|=c,xa|=c;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!nn(l,e.memoizedState)&&(Ye=!0,d&&(n=yi,n!==null)))throw n;e.memoizedState=l,e.baseState=i,e.baseQueue=s,r.lastRenderedState=l}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function e0(e){var t=qe(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,l=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do l=e(l,i.action),i=i.next;while(i!==a);nn(l,t.memoizedState)||(Ye=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function C5(e,t,n){var r=re,a=qe(),l=se;if(l){if(n===void 0)throw Error(H(407));n=n()}else n=t();var i=!nn((Ce||a).memoizedState,n);if(i&&(a.memoizedState=n,Ye=!0),a=a.queue,Vm(M5.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||Ge!==null&&Ge.memoizedState.tag&1){if(r.flags|=2048,Ai(9,{destroy:void 0},E5.bind(null,r,a,n,t),null),Ee===null)throw Error(H(349));l||Or&127||S5(r,t,n)}return n}function S5(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=ef(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function E5(e,t,n,r){t.value=n,t.getSnapshot=r,O5(t)&&R5(e)}function M5(e,t,n){return n(function(){O5(t)&&R5(e)})}function O5(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function R5(e){var t=Cl(e,2);t!==null&&Lt(t,e,2)}function Gh(e){var t=yt();if(typeof e=="function"){var n=e;if(e=n(),dl){Wr(!0);try{n()}finally{Wr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:e},t}function T5(e,t,n,r){return e.baseState=n,Fm(e,Ce,typeof r=="function"?r:Rr)}function yC(e,t,n,r,a){if(rf(e))throw Error(H(485));if(e=t.action,e!==null){var l={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};W.T!==null?n(!0):l.isTransition=!1,r(l),n=t.pending,n===null?(l.next=t.pending=l,D5(t,l)):(l.next=n.next,t.pending=n.next=l)}}function D5(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var l=W.T,i={};W.T=i;try{var o=n(a,r),s=W.S;s!==null&&s(i,o),X1(e,t,o)}catch(u){Qh(e,t,u)}finally{l!==null&&i.types!==null&&(l.types=i.types),W.T=l}}else try{l=n(a,r),X1(e,t,l)}catch(u){Qh(e,t,u)}}function X1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Y1(e,t,r)},function(r){return Qh(e,t,r)}):Y1(e,t,n)}function Y1(e,t,n){t.status="fulfilled",t.value=n,j5(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,D5(e,n)))}function Qh(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,j5(t),t=t.next;while(t!==r)}e.action=null}function j5(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function A5(e,t){return t}function I1(e,t){if(se){var n=Ee.formState;if(n!==null){e:{var r=re;if(se){if(De){t:{for(var a=De,l=yn;a.nodeType!==8;){if(!l){a=null;break t}if(a=xn(a.nextSibling),a===null){a=null;break t}}l=a.data,a=l==="F!"||l==="F"?a:null}if(a){De=xn(a.nextSibling),r=a.data==="F!";break e}}ba(r)}r=!1}r&&(t=n[0])}}return n=yt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A5,lastRenderedState:t},n.queue=r,n=X5.bind(null,re,r),r.dispatch=n,r=Gh(!1),l=Ym.bind(null,re,!1,r.queue),r=yt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=yC.bind(null,re,a,l,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Z1(e){var t=qe();return N5(t,Ce,e)}function N5(e,t,n){if(t=Fm(e,t,A5)[0],e=xc(Rr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ru(t)}catch(i){throw i===Yi?Jd:i}else r=t;t=qe();var a=t.queue,l=a.dispatch;return n!==t.memoizedState&&(re.flags|=2048,Ai(9,{destroy:void 0},bC.bind(null,a,n),null)),[r,l,e]}function bC(e,t){e.action=t}function $1(e){var t=qe(),n=Ce;if(n!==null)return N5(t,n,e);qe(),t=t.memoizedState,n=qe();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ai(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=re.updateQueue,t===null&&(t=ef(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function k5(){return qe().memoizedState}function Cc(e,t,n,r){var a=yt();re.flags|=e,a.memoizedState=Ai(1|t,{destroy:void 0},n,r===void 0?null:r)}function nf(e,t,n,r){var a=qe();r=r===void 0?null:r;var l=a.memoizedState.inst;Ce!==null&&r!==null&&Pm(r,Ce.memoizedState.deps)?a.memoizedState=Ai(t,l,n,r):(re.flags|=e,a.memoizedState=Ai(1|t,l,n,r))}function W1(e,t){Cc(8390656,8,e,t)}function Vm(e,t){nf(2048,8,e,t)}function wC(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=ef(),re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function L5(e){var t=qe().memoizedState;return wC({ref:t,nextImpl:e}),function(){if(pe&2)throw Error(H(440));return t.impl.apply(void 0,arguments)}}function _5(e,t){return nf(4,2,e,t)}function z5(e,t){return nf(4,4,e,t)}function P5(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function H5(e,t,n){n=n!=null?n.concat([e]):null,nf(4,4,P5.bind(null,t,e),n)}function Gm(){}function K5(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Pm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function U5(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Pm(t,r[1]))return r[0];if(r=e(),dl){Wr(!0);try{e()}finally{Wr(!1)}}return n.memoizedState=[r,t],r}function Qm(e,t,n){return n===void 0||Or&1073741824&&!(oe&261930)?e.memoizedState=t:(e.memoizedState=n,e=T9(),re.lanes|=e,xa|=e,n)}function B5(e,t,n,r){return nn(n,t)?n:ji.current!==null?(e=Qm(e,n,r),nn(e,t)||(Ye=!0),e):!(Or&42)||Or&1073741824&&!(oe&261930)?(Ye=!0,e.memoizedState=n):(e=T9(),re.lanes|=e,xa|=e,t)}function q5(e,t,n,r,a){var l=me.p;me.p=l!==0&&8>l?l:8;var i=W.T,o={};W.T=o,Ym(e,!1,t,n);try{var s=a(),u=W.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=mC(s,r);ss(e,t,d,tn(e))}else ss(e,t,r,tn(e))}catch(c){ss(e,t,{then:function(){},status:"rejected",reason:c},tn())}finally{me.p=l,i!==null&&o.types!==null&&(i.types=o.types),W.T=i}}function xC(){}function Xh(e,t,n,r){if(e.tag!==5)throw Error(H(476));var a=F5(e).queue;q5(e,a,t,rl,n===null?xC:function(){return V5(e),n(r)})}function F5(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:rl,baseState:rl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:rl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function V5(e){var t=F5(e);t.next===null&&(t=e.alternate.memoizedState),ss(e,t.next.queue,{},tn())}function Xm(){return ht(ks)}function G5(){return qe().memoizedState}function Q5(){return qe().memoizedState}function CC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=tn();e=oa(n);var r=sa(t,e,n);r!==null&&(Lt(r,t,n),ls(r,t,n)),t={cache:Nm()},e.payload=t;return}t=t.return}}function SC(e,t,n){var r=tn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rf(e)?Y5(t,n):(n=Tm(e,t,n,r),n!==null&&(Lt(n,e,r),I5(n,t,r)))}function X5(e,t,n){var r=tn();ss(e,t,n,r)}function ss(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rf(e))Y5(t,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,o=l(i,n);if(a.hasEagerState=!0,a.eagerState=o,nn(o,i))return Wd(e,t,a,0),Ee===null&&$d(),!1}catch{}finally{}if(n=Tm(e,t,a,r),n!==null)return Lt(n,e,r),I5(n,t,r),!0}return!1}function Ym(e,t,n,r){if(r={lane:2,revertLane:rg(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rf(e)){if(t)throw Error(H(479))}else t=Tm(e,n,r,2),t!==null&&Lt(t,e,2)}function rf(e){var t=e.alternate;return e===re||t!==null&&t===re}function Y5(e,t){wi=Ic=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function I5(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,L2(e,n)}}var js={readContext:ht,use:tf,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useInsertionEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useSyncExternalStore:_e,useId:_e,useHostTransitionStatus:_e,useFormState:_e,useActionState:_e,useOptimistic:_e,useMemoCache:_e,useCacheRefresh:_e};js.useEffectEvent=_e;var Z5={readContext:ht,use:tf,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:W1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Cc(4194308,4,P5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cc(4194308,4,e,t)},useInsertionEffect:function(e,t){Cc(4,2,e,t)},useMemo:function(e,t){var n=yt();t=t===void 0?null:t;var r=e();if(dl){Wr(!0);try{e()}finally{Wr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=yt();if(n!==void 0){var a=n(t);if(dl){Wr(!0);try{n(t)}finally{Wr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=SC.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gh(e);var t=e.queue,n=X5.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gm,useDeferredValue:function(e,t){var n=yt();return Qm(n,e,t)},useTransition:function(){var e=Gh(!1);return e=q5.bind(null,re,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=re,a=yt();if(se){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ee===null)throw Error(H(349));oe&127||S5(r,t,n)}a.memoizedState=n;var l={value:n,getSnapshot:t};return a.queue=l,W1(M5.bind(null,r,l,e),[e]),r.flags|=2048,Ai(9,{destroy:void 0},E5.bind(null,r,l,n,t),null),n},useId:function(){var e=yt(),t=Ee.identifierPrefix;if(se){var n=Zn,r=In;n=(r&~(1<<32-en(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Zc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=gC++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xm,useFormState:I1,useActionState:I1,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ym.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:qm,useCacheRefresh:function(){return yt().memoizedState=CC.bind(null,re)},useEffectEvent:function(e){var t=yt(),n={impl:e};return t.memoizedState=n,function(){if(pe&2)throw Error(H(440));return n.impl.apply(void 0,arguments)}}},Im={readContext:ht,use:tf,useCallback:K5,useContext:ht,useEffect:Vm,useImperativeHandle:H5,useInsertionEffect:_5,useLayoutEffect:z5,useMemo:U5,useReducer:xc,useRef:k5,useState:function(){return xc(Rr)},useDebugValue:Gm,useDeferredValue:function(e,t){var n=qe();return B5(n,Ce.memoizedState,e,t)},useTransition:function(){var e=xc(Rr)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:ru(e),t]},useSyncExternalStore:C5,useId:G5,useHostTransitionStatus:Xm,useFormState:Z1,useActionState:Z1,useOptimistic:function(e,t){var n=qe();return T5(n,Ce,e,t)},useMemoCache:qm,useCacheRefresh:Q5};Im.useEffectEvent=L5;var $5={readContext:ht,use:tf,useCallback:K5,useContext:ht,useEffect:Vm,useImperativeHandle:H5,useInsertionEffect:_5,useLayoutEffect:z5,useMemo:U5,useReducer:e0,useRef:k5,useState:function(){return e0(Rr)},useDebugValue:Gm,useDeferredValue:function(e,t){var n=qe();return Ce===null?Qm(n,e,t):B5(n,Ce.memoizedState,e,t)},useTransition:function(){var e=e0(Rr)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:ru(e),t]},useSyncExternalStore:C5,useId:G5,useHostTransitionStatus:Xm,useFormState:$1,useActionState:$1,useOptimistic:function(e,t){var n=qe();return Ce!==null?T5(n,Ce,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qm,useCacheRefresh:Q5};$5.useEffectEvent=L5;function t0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yh={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tn(),a=oa(r);a.payload=t,n!=null&&(a.callback=n),t=sa(e,a,r),t!==null&&(Lt(t,e,r),ls(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tn(),a=oa(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=sa(e,a,r),t!==null&&(Lt(t,e,r),ls(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),r=oa(n);r.tag=2,t!=null&&(r.callback=t),t=sa(e,r,n),t!==null&&(Lt(t,e,n),ls(t,e,n))}};function J1(e,t,n,r,a,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!Ms(n,r)||!Ms(a,l):!0}function ev(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&&Yh.enqueueReplaceState(t,t.state,null)}function fl(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=Ae({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function W5(e){qc(e)}function J5(e){console.error(e)}function e9(e){qc(e)}function $c(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function tv(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Ih(e,t,n){return n=oa(n),n.tag=3,n.payload={element:null},n.callback=function(){$c(e,t)},n}function t9(e){return e=oa(e),e.tag=3,e}function n9(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var l=r.value;e.payload=function(){return a(l)},e.callback=function(){tv(t,n,r)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){tv(t,n,r),typeof a!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function EC(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=rn.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?nd():n.alternate===null&&ze===0&&(ze=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Qc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),f0(e,r,a)),!1;case 22:return n.flags|=65536,r===Qc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),f0(e,r,a)),!1}throw Error(H(435,n.tag))}return f0(e,r,a),nd(),!1}if(se)return t=rn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==zh&&(e=Error(H(422),{cause:r}),Rs(vn(e,n)))):(r!==zh&&(t=Error(H(423),{cause:r}),Rs(vn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vn(r,n),a=Ih(e.stateNode,r,a),Jf(e,a),ze!==4&&(ze=2)),!1;var l=Error(H(520),{cause:r});if(l=vn(l,n),ds===null?ds=[l]:ds.push(l),ze!==4&&(ze=2),t===null)return!0;r=vn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ih(n.stateNode,r,e),Jf(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ua===null||!ua.has(l))))return n.flags|=65536,a&=-a,n.lanes|=a,a=t9(a),n9(a,e,n,r),Jf(n,a),!1}n=n.return}while(n!==null);return!1}var Zm=Error(H(461)),Ye=!1;function ct(e,t,n,r){t.child=e===null?g5(t,null,n,r):cl(t,e.child,n,r)}function nv(e,t,n,r,a){n=n.render;var l=t.ref;if("ref"in r){var i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}else i=r;return ul(t),r=Hm(e,t,n,i,l,a),o=Km(),e!==null&&!Ye?(Um(e,t,a),Tr(e,t,a)):(se&&o&&jm(t),t.flags|=1,ct(e,t,r,a),t.child)}function rv(e,t,n,r,a){if(e===null){var l=n.type;return typeof l=="function"&&!Dm(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,r9(e,t,l,r,a)):(e=bc(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!$m(e,a)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:Ms,n(i,r)&&e.ref===t.ref)return Tr(e,t,a)}return t.flags|=1,e=xr(l,r),e.ref=t.ref,e.return=t,t.child=e}function r9(e,t,n,r,a){if(e!==null){var l=e.memoizedProps;if(Ms(l,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=l,$m(e,a))e.flags&131072&&(Ye=!0);else return t.lanes=e.lanes,Tr(e,t,a)}return Zh(e,t,n,r,a)}function a9(e,t,n,r){var a=r.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~l}else r=0,t.child=null;return av(e,t,l,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wc(t,l!==null?l.cachePool:null),l!==null?Q1(t,l):Fh(),b5(t);else return r=t.lanes=536870912,av(e,t,l!==null?l.baseLanes|n:n,n,r)}else l!==null?(wc(t,l.cachePool),Q1(t,l),Ir(),t.memoizedState=null):(e!==null&&wc(t,null),Fh(),Ir());return ct(e,t,a,n),t.child}function Yo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function av(e,t,n,r,a){var l=km();return l=l===null?null:{parent:Xe._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&wc(t,null),Fh(),b5(t),e!==null&&Xi(e,t,r,!0),t.childLanes=a,null}function Sc(e,t){return t=Wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lv(e,t,n){return cl(t,e.child,null,n),e=Sc(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function MC(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(se){if(r.mode==="hidden")return e=Sc(t,r),t.lanes=536870912,Yo(null,e);if(Vh(t),(e=De)?(e=Z9(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:In,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=u5(e),n.return=t,t.child=n,ft=t,De=null)):e=null,e===null)throw ba(t);return t.lanes=536870912,null}return Sc(t,r)}var l=e.memoizedState;if(l!==null){var i=l.dehydrated;if(Vh(t),a)if(t.flags&256)t.flags&=-257,t=lv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(H(558));else if(Ye||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,Ye||a){if(r=Ee,r!==null&&(i=_2(r,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,Cl(e,i),Lt(r,e,i),Zm;nd(),t=lv(e,t,n)}else e=l.treeContext,De=xn(i.nextSibling),ft=t,se=!0,ia=null,yn=!1,e!==null&&d5(t,e),t=Sc(t,r),t.flags|=4096;return t}return e=xr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ec(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(H(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zh(e,t,n,r,a){return ul(t),n=Hm(e,t,n,r,void 0,a),r=Km(),e!==null&&!Ye?(Um(e,t,a),Tr(e,t,a)):(se&&r&&jm(t),t.flags|=1,ct(e,t,n,a),t.child)}function iv(e,t,n,r,a,l){return ul(t),t.updateQueue=null,n=x5(t,r,n,a),w5(e),r=Km(),e!==null&&!Ye?(Um(e,t,l),Tr(e,t,l)):(se&&r&&jm(t),t.flags|=1,ct(e,t,n,l),t.child)}function ov(e,t,n,r,a){if(ul(t),t.stateNode===null){var l=si,i=n.contextType;typeof i=="object"&&i!==null&&(l=ht(i)),l=new n(r,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Yh,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=r,l.state=t.memoizedState,l.refs={},_m(t),i=n.contextType,l.context=typeof i=="object"&&i!==null?ht(i):si,l.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(t0(t,n,i,r),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&Yh.enqueueReplaceState(l,l.state,null),os(t,r,l,a),is(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,s=fl(n,o);l.props=s;var u=l.context,d=n.contextType;i=si,typeof d=="object"&&d!==null&&(i=ht(d));var c=n.getDerivedStateFromProps;d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||u!==i)&&ev(t,l,r,i),Gr=!1;var f=t.memoizedState;l.state=f,os(t,r,l,a),is(),u=t.memoizedState,o||f!==u||Gr?(typeof c=="function"&&(t0(t,n,c,r),u=t.memoizedState),(s=Gr||J1(t,n,s,r,f,u,i))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=i,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Bh(e,t),i=t.memoizedProps,d=fl(n,i),l.props=d,c=t.pendingProps,f=l.context,u=n.contextType,s=si,typeof u=="object"&&u!==null&&(s=ht(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==c||f!==s)&&ev(t,l,r,s),Gr=!1,f=t.memoizedState,l.state=f,os(t,r,l,a),is();var h=t.memoizedState;i!==c||f!==h||Gr||e!==null&&e.dependencies!==null&&Gc(e.dependencies)?(typeof o=="function"&&(t0(t,n,o,r),h=t.memoizedState),(d=Gr||J1(t,n,d,r,f,h,s)||e!==null&&e.dependencies!==null&&Gc(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=d):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return l=r,Ec(e,t),r=(t.flags&128)!==0,l||r?(l=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&r?(t.child=cl(t,e.child,null,a),t.child=cl(t,null,n,a)):ct(e,t,n,a),t.memoizedState=l.state,e=t.child):e=Tr(e,t,a),e}function sv(e,t,n,r){return sl(),t.flags|=256,ct(e,t,n,r),t.child}var n0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function r0(e){return{baseLanes:e,cachePool:h5()}}function a0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=It),e}function l9(e,t,n){var r=t.pendingProps,a=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(a?Yr(t):Ir(),(e=De)?(e=Z9(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:In,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=u5(e),n.return=t,t.child=n,ft=t,De=null)):e=null,e===null)throw ba(t);return cp(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Ir(),a=t.mode,o=Wc({mode:"hidden",children:o},a),r=al(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=r0(n),r.childLanes=a0(e,i,n),t.memoizedState=n0,Yo(null,r)):(Yr(t),$h(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(Yr(t),t.flags&=-257,t=l0(e,t,n)):t.memoizedState!==null?(Ir(),t.child=e.child,t.flags|=128,t=null):(Ir(),o=r.fallback,a=t.mode,r=Wc({mode:"visible",children:r.children},a),o=al(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,cl(t,e.child,null,n),r=t.child,r.memoizedState=r0(n),r.childLanes=a0(e,i,n),t.memoizedState=n0,t=Yo(null,r));else if(Yr(t),cp(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,r=Error(H(419)),r.stack="",r.digest=i,Rs({value:r,source:null,stack:null}),t=l0(e,t,n)}else if(Ye||Xi(e,t,n,!1),i=(n&e.childLanes)!==0,Ye||i){if(i=Ee,i!==null&&(r=_2(i,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,Cl(e,r),Lt(i,e,r),Zm;up(o)||nd(),t=l0(e,t,n)}else up(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,De=xn(o.nextSibling),ft=t,se=!0,ia=null,yn=!1,e!==null&&d5(t,e),t=$h(t,r.children),t.flags|=4096);return t}return a?(Ir(),o=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=xr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=xr(u,o):(o=al(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Yo(null,r),r=t.child,o=e.child.memoizedState,o===null?o=r0(n):(a=o.cachePool,a!==null?(s=Xe._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=h5(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=a0(e,i,n),t.memoizedState=n0,Yo(e.child,r)):(Yr(t),n=e.child,e=n.sibling,n=xr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function $h(e,t){return t=Wc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wc(e,t){return e=Qt(22,e,null,t),e.lanes=0,e}function l0(e,t,n){return cl(t,e.child,null,n),e=$h(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hh(e.return,t,n)}function i0(e,t,n,r,a,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=l)}function i9(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;r=r.children;var i=Be.current,o=(i&2)!==0;if(o?(i=i&1|2,t.flags|=128):i&=1,Re(Be,i),ct(e,t,r,n),r=se?Os:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uv(e,n,t);else if(e.tag===19)uv(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}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Yc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),i0(t,!1,a,n,l,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Yc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}i0(t,!0,n,null,l,r);break;case"together":i0(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xa|=t.lanes,!(n&t.childLanes))if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $m(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Gc(e)))}function OC(e,t,n){switch(t.tag){case 3:Hc(t,t.stateNode.containerInfo),Xr(t,Xe,e.memoizedState.cache),sl();break;case 27:case 5:Mh(t);break;case 4:Hc(t,t.stateNode.containerInfo);break;case 10:Xr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vh(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Yr(t),t.flags|=128,null):n&t.child.childLanes?l9(e,t,n):(Yr(t),e=Tr(e,t,n),e!==null?e.sibling:null);Yr(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Xi(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return i9(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Re(Be,Be.current),r)break;return null;case 22:return t.lanes=0,a9(e,t,n,t.pendingProps);case 24:Xr(t,Xe,e.memoizedState.cache)}return Tr(e,t,n)}function o9(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!$m(e,n)&&!(t.flags&128))return Ye=!1,OC(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,se&&t.flags&1048576&&c5(t,Os,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e=="function")Dm(e)?(r=fl(e,r),t.tag=1,t=ov(null,t,e,r,n)):(t.tag=0,t=Zh(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===mm){t.tag=11,t=nv(null,t,e,r,n);break e}else if(a===gm){t.tag=14,t=rv(null,t,e,r,n);break e}}throw t=Sh(e)||e,Error(H(306,t,""))}}return t;case 0:return Zh(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=fl(r,t.pendingProps),ov(e,t,r,a,n);case 3:e:{if(Hc(t,t.stateNode.containerInfo),e===null)throw Error(H(387));r=t.pendingProps;var l=t.memoizedState;a=l.element,Bh(e,t),os(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Xr(t,Xe,r),r!==l.cache&&Kh(t,[Xe],n,!0),is(),r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=sv(e,t,r,n);break e}else if(r!==a){a=vn(Error(H(424)),t),Rs(a),t=sv(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=xn(e.firstChild),ft=t,se=!0,ia=null,yn=!0,n=g5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(sl(),r===a){t=Tr(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 26:return Ec(e,t),e===null?(n=Dv(t.type,null,t.pendingProps,null))?t.memoizedState=n:se||(n=t.type,e=t.pendingProps,r=id(la.current).createElement(n),r[dt]=t,r[_t]=e,pt(r,n,e),lt(r),t.stateNode=r):t.memoizedState=Dv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Mh(t),e===null&&se&&(r=t.stateNode=$9(t.type,t.pendingProps,la.current),ft=t,yn=!0,a=De,Ra(t.type)?(dp=a,De=xn(r.firstChild)):De=a),ct(e,t,t.pendingProps.children,n),Ec(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((a=r=De)&&(r=nS(r,t.type,t.pendingProps,yn),r!==null?(t.stateNode=r,ft=t,De=xn(r.firstChild),yn=!1,a=!0):a=!1),a||ba(t)),Mh(t),a=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,r=l.children,op(a,l)?r=null:i!==null&&op(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=Hm(e,t,vC,null,null,n),ks._currentValue=a),Ec(e,t),ct(e,t,r,n),t.child;case 6:return e===null&&se&&((e=n=De)&&(n=rS(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ft=t,De=null,e=!0):e=!1),e||ba(t)),null;case 13:return l9(e,t,n);case 4:return Hc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cl(t,null,r,n):ct(e,t,r,n),t.child;case 11:return nv(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xr(t,t.type,r.value),ct(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ul(t),a=ht(a),r=r(a),t.flags|=1,ct(e,t,r,n),t.child;case 14:return rv(e,t,t.type,t.pendingProps,n);case 15:return r9(e,t,t.type,t.pendingProps,n);case 19:return i9(e,t,n);case 31:return MC(e,t,n);case 22:return a9(e,t,n,t.pendingProps);case 24:return ul(t),r=ht(Xe),e===null?(a=km(),a===null&&(a=Ee,l=Nm(),a.pooledCache=l,l.refCount++,l!==null&&(a.pooledCacheLanes|=n),a=l),t.memoizedState={parent:r,cache:a},_m(t),Xr(t,Xe,a)):(e.lanes&n&&(Bh(e,t),os(t,null,null,n),is()),a=e.memoizedState,l=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Xr(t,Xe,r)):(r=l.cache,Xr(t,Xe,r),r!==a.cache&&Kh(t,[Xe],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(H(156,t.tag))}function ir(e){e.flags|=4}function o0(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(A9())e.flags|=8192;else throw il=Qc,Lm}else e.flags&=-16777217}function cv(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!e8(t))if(A9())e.flags|=8192;else throw il=Qc,Lm}function Au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?N2():536870912,e.lanes|=t,Ni|=t)}function mo(e,t){if(!se)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 Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function RC(e,t,n){var r=t.pendingProps;switch(Am(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Cr(Xe),Oi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(kl(t)?ir(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wf())),Te(t),null;case 26:var a=t.type,l=t.memoizedState;return e===null?(ir(t),l!==null?(Te(t),cv(t,l)):(Te(t),o0(t,a,null,r,n))):l?l!==e.memoizedState?(ir(t),Te(t),cv(t,l)):(Te(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ir(t),Te(t),o0(t,a,e,r,n)),null;case 27:if(Kc(t),n=la.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}e=Jn.current,kl(t)?K1(t):(e=$9(a,r,n),t.stateNode=e,ir(t))}return Te(t),null;case 5:if(Kc(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}if(l=Jn.current,kl(t))K1(t);else{var i=id(la.current);switch(l){case 1:l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":l=i.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?l.multiple=!0:r.size&&(l.size=r.size);break;default:l=typeof r.is=="string"?i.createElement(a,{is:r.is}):i.createElement(a)}}l[dt]=t,l[_t]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)l.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=l;e:switch(pt(l,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ir(t)}}return Te(t),o0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(e=la.current,kl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ft,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||X9(e.nodeValue,n)),e||ba(t,!0)}else e=id(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Te(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=kl(t),n!==null){if(e===null){if(!r)throw Error(H(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(557));e[dt]=t}else sl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),e=!1}else n=Wf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if(t.flags&128)throw Error(H(558))}return Te(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=kl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(H(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(H(317));a[dt]=t}else sl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),a=!1}else a=Wf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Au(t,t.updateQueue),Te(t),null);case 4:return Oi(),e===null&&ag(t.stateNode.containerInfo),Te(t),null;case 10:return Cr(t.type),Te(t),null;case 19:if(it(Be),r=t.memoizedState,r===null)return Te(t),null;if(a=(t.flags&128)!==0,l=r.rendering,l===null)if(a)mo(r,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Yc(e),l!==null){for(t.flags|=128,mo(r,!1),e=l.updateQueue,t.updateQueue=e,Au(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)s5(n,e),n=n.sibling;return Re(Be,Be.current&1|2),se&&gr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Wt()>ed&&(t.flags|=128,a=!0,mo(r,!1),t.lanes=4194304)}else{if(!a)if(e=Yc(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Au(t,e),mo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!se)return Te(t),null}else 2*Wt()-r.renderingStartTime>ed&&n!==536870912&&(t.flags|=128,a=!0,mo(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(e=r.last,e!==null?e.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Wt(),e.sibling=null,n=Be.current,Re(Be,a?n&1|2:n&1),se&&gr(t,r.treeForkCount),e):(Te(t),null);case 22:case 23:return Gt(t),zm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),n=t.updateQueue,n!==null&&Au(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&it(ll),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Cr(Xe),Te(t),null;case 25:return null;case 30:return null}throw Error(H(156,t.tag))}function TC(e,t){switch(Am(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(Xe),Oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Kc(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(H(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return it(Be),null;case 4:return Oi(),null;case 10:return Cr(t.type),null;case 22:case 23:return Gt(t),zm(),e!==null&&it(ll),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cr(Xe),null;case 25:return null;default:return null}}function s9(e,t){switch(Am(t),t.tag){case 3:Cr(Xe),Oi();break;case 26:case 27:case 5:Kc(t);break;case 4:Oi();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:it(Be);break;case 10:Cr(t.type);break;case 22:case 23:Gt(t),zm(),e!==null&&it(ll);break;case 24:Cr(Xe)}}function au(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var l=n.create,i=n.inst;r=l(),i.destroy=r}n=n.next}while(n!==a)}}catch(o){be(t,t.return,o)}}function wa(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var l=a.next;r=l;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,a=t;var s=n,u=o;try{u()}catch(d){be(a,s,d)}}}r=r.next}while(r!==l)}}catch(d){be(t,t.return,d)}}function u9(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{y5(t,n)}catch(r){be(e,e.return,r)}}}function c9(e,t,n){n.props=fl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){be(e,t,r)}}function us(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){be(e,t,a)}}function $n(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){be(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){be(e,t,a)}else n.current=null}function d9(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){be(e,e.return,a)}}function s0(e,t,n){try{var r=e.stateNode;ZC(r,e.type,n,t),r[_t]=t}catch(a){be(e,e.return,a)}}function f9(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function u0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f9(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.tag===27&&Ra(e.type)||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 Wh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=br));else if(r!==4&&(r===27&&Ra(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wh(e,t,n),e=e.sibling;e!==null;)Wh(e,t,n),e=e.sibling}function Jc(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&&(r===27&&Ra(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function h9(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);pt(t,r,n),t[dt]=e,t[_t]=n}catch(l){be(e,e.return,l)}}var vr=!1,Qe=!1,c0=!1,dv=typeof WeakSet=="function"?WeakSet:Set,rt=null;function DC(e,t){if(e=e.containerInfo,lp=cd,e=e5(e),Om(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 a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,o=-1,s=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(o=i+a),c!==l||r!==0&&c.nodeType!==3||(s=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)f=c,c=h;for(;;){if(c===e)break t;if(f===n&&++u===a&&(o=i),f===l&&++d===r&&(s=i),(h=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=h}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ip={focusedElem:e,selectionRange:n},cd=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,a=l.memoizedProps,l=l.memoizedState,r=n.stateNode;try{var m=fl(n.type,a);e=r.getSnapshotBeforeUpdate(m,l),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){be(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(H(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function p9(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sr(e,n),r&4&&au(5,n);break;case 1:if(sr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){be(n,n.return,i)}else{var a=fl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){be(n,n.return,i)}}r&64&&u9(n),r&512&&us(n,n.return);break;case 3:if(sr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{y5(e,t)}catch(i){be(n,n.return,i)}}break;case 27:t===null&&r&4&&h9(n);case 26:case 5:sr(e,n),t===null&&r&4&&d9(n),r&512&&us(n,n.return);break;case 12:sr(e,n);break;case 31:sr(e,n),r&4&&v9(e,n);break;case 13:sr(e,n),r&4&&y9(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=HC.bind(null,n),aS(e,n))));break;case 22:if(r=n.memoizedState!==null||vr,!r){t=t!==null&&t.memoizedState!==null||Qe,a=vr;var l=Qe;vr=r,(Qe=t)&&!l?mr(e,n,(n.subtreeFlags&8772)!==0):sr(e,n),vr=a,Qe=l}break;case 30:break;default:sr(e,n)}}function m9(e){var t=e.alternate;t!==null&&(e.alternate=null,m9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wm(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ne=null,Dt=!1;function or(e,t,n){for(n=n.child;n!==null;)g9(e,t,n),n=n.sibling}function g9(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount($s,n)}catch{}switch(n.tag){case 26:Qe||$n(n,t),or(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qe||$n(n,t);var r=Ne,a=Dt;Ra(n.type)&&(Ne=n.stateNode,Dt=!1),or(e,t,n),hs(n.stateNode),Ne=r,Dt=a;break;case 5:Qe||$n(n,t);case 6:if(r=Ne,a=Dt,Ne=null,or(e,t,n),Ne=r,Dt=a,Ne!==null)if(Dt)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(n.stateNode)}catch(l){be(n,t,l)}else try{Ne.removeChild(n.stateNode)}catch(l){be(n,t,l)}break;case 18:Ne!==null&&(Dt?(e=Ne,Ev(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),zi(e)):Ev(Ne,n.stateNode));break;case 4:r=Ne,a=Dt,Ne=n.stateNode.containerInfo,Dt=!0,or(e,t,n),Ne=r,Dt=a;break;case 0:case 11:case 14:case 15:wa(2,n,t),Qe||wa(4,n,t),or(e,t,n);break;case 1:Qe||($n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&c9(n,t,r)),or(e,t,n);break;case 21:or(e,t,n);break;case 22:Qe=(r=Qe)||n.memoizedState!==null,or(e,t,n),Qe=r;break;default:or(e,t,n)}}function v9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zi(e)}catch(n){be(t,t.return,n)}}}function y9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zi(e)}catch(n){be(t,t.return,n)}}function jC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dv),t;default:throw Error(H(435,e.tag))}}function Nu(e,t){var n=jC(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=KC.bind(null,e,r);r.then(a,a)}})}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],l=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 27:if(Ra(o.type)){Ne=o.stateNode,Dt=!1;break e}break;case 5:Ne=o.stateNode,Dt=!1;break e;case 3:case 4:Ne=o.stateNode.containerInfo,Dt=!0;break e}o=o.return}if(Ne===null)throw Error(H(160));g9(l,i,a),Ne=null,Dt=!1,l=a.alternate,l!==null&&(l.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)b9(t,e),t=t.sibling}var Ln=null;function b9(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Et(e),r&4&&(wa(3,e,e.return),au(3,e),wa(5,e,e.return));break;case 1:St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),r&64&&vr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Ln;if(St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),r&4){var l=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":l=a.getElementsByTagName("title")[0],(!l||l[eu]||l[dt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(r),a.head.insertBefore(l,a.querySelector("head > title"))),pt(l,r,n),l[dt]=e,lt(l),r=l;break e;case"link":var i=Av("link","href",a).get(r+(n.href||""));if(i){for(var o=0;o<i.length;o++)if(l=i[o],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(o,1);break t}}l=a.createElement(r),pt(l,r,n),a.head.appendChild(l);break;case"meta":if(i=Av("meta","content",a).get(r+(n.content||""))){for(o=0;o<i.length;o++)if(l=i[o],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(o,1);break t}}l=a.createElement(r),pt(l,r,n),a.head.appendChild(l);break;default:throw Error(H(468,r))}l[dt]=e,lt(l),r=l}e.stateNode=r}else Nv(a,e.type,e.stateNode);else e.stateNode=jv(a,r,e.memoizedProps);else l!==r?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,r===null?Nv(a,e.type,e.stateNode):jv(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&s0(e,e.memoizedProps,n.memoizedProps)}break;case 27:St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),n!==null&&r&4&&s0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),e.flags&32){a=e.stateNode;try{Ti(a,"")}catch(m){be(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,s0(e,a,n!==null?n.memoizedProps:a)),r&1024&&(c0=!0);break;case 6:if(St(t,e),Et(e),r&4){if(e.stateNode===null)throw Error(H(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){be(e,e.return,m)}}break;case 3:if(Rc=null,a=Ln,Ln=od(t.containerInfo),St(t,e),Ln=a,Et(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zi(t.containerInfo)}catch(m){be(e,e.return,m)}c0&&(c0=!1,w9(e));break;case 4:r=Ln,Ln=od(e.stateNode.containerInfo),St(t,e),Et(e),Ln=r;break;case 12:St(t,e),Et(e);break;case 31:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 13:St(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(af=Wt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=vr,d=Qe;if(vr=u||a,Qe=d||s,St(t,e),Qe=d,vr=u,Et(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||vr||Qe||Wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(l=s.stateNode,a)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=s.stateNode;var c=s.memoizedProps.style,f=c!=null&&c.hasOwnProperty("display")?c.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(m){be(s,s.return,m)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(m){be(s,s.return,m)}}}else if(t.tag===18){if(n===null){s=t;try{var h=s.stateNode;a?Mv(h,!0):Mv(s.stateNode,!1)}catch(m){be(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Nu(e,n))));break;case 19:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 30:break;case 21:break;default:St(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(f9(r)){n=r;break}r=r.return}if(n==null)throw Error(H(160));switch(n.tag){case 27:var a=n.stateNode,l=u0(e);Jc(e,l,a);break;case 5:var i=n.stateNode;n.flags&32&&(Ti(i,""),n.flags&=-33);var o=u0(e);Jc(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,u=u0(e);Wh(e,u,s);break;default:throw Error(H(161))}}catch(d){be(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function w9(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;w9(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)p9(e,t.alternate,t),t=t.sibling}function Wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:wa(4,t,t.return),Wa(t);break;case 1:$n(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&c9(t,t.return,n),Wa(t);break;case 27:hs(t.stateNode);case 26:case 5:$n(t,t.return),Wa(t);break;case 22:t.memoizedState===null&&Wa(t);break;case 30:Wa(t);break;default:Wa(t)}e=e.sibling}}function mr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:mr(a,l,n),au(4,l);break;case 1:if(mr(a,l,n),r=l,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){be(r,r.return,u)}if(r=l,a=r.updateQueue,a!==null){var o=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)v5(s[a],o)}catch(u){be(r,r.return,u)}}n&&i&64&&u9(l),us(l,l.return);break;case 27:h9(l);case 26:case 5:mr(a,l,n),n&&r===null&&i&4&&d9(l),us(l,l.return);break;case 12:mr(a,l,n);break;case 31:mr(a,l,n),n&&i&4&&v9(a,l);break;case 13:mr(a,l,n),n&&i&4&&y9(a,l);break;case 22:l.memoizedState===null&&mr(a,l,n),us(l,l.return);break;case 30:break;default:mr(a,l,n)}t=t.sibling}}function Wm(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&nu(n))}function Jm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nu(e))}function An(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)x9(e,t,n,r),t=t.sibling}function x9(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:An(e,t,n,r),a&2048&&au(9,t);break;case 1:An(e,t,n,r);break;case 3:An(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nu(e)));break;case 12:if(a&2048){An(e,t,n,r),e=t.stateNode;try{var l=t.memoizedProps,i=l.id,o=l.onPostCommit;typeof o=="function"&&o(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){be(t,t.return,s)}}else An(e,t,n,r);break;case 31:An(e,t,n,r);break;case 13:An(e,t,n,r);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?An(e,t,n,r):cs(e,t):l._visibility&2?An(e,t,n,r):(l._visibility|=2,Yl(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Wm(i,t);break;case 24:An(e,t,n,r),a&2048&&Jm(t.alternate,t);break;default:An(e,t,n,r)}}function Yl(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,i=t,o=n,s=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Yl(l,i,o,s,a),au(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?Yl(l,i,o,s,a):cs(l,i):(d._visibility|=2,Yl(l,i,o,s,a)),a&&u&2048&&Wm(i.alternate,i);break;case 24:Yl(l,i,o,s,a),a&&u&2048&&Jm(i.alternate,i);break;default:Yl(l,i,o,s,a)}t=t.sibling}}function cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:cs(n,r),a&2048&&Wm(r.alternate,r);break;case 24:cs(n,r),a&2048&&Jm(r.alternate,r);break;default:cs(n,r)}t=t.sibling}}var Io=8192;function Ll(e,t,n){if(e.subtreeFlags&Io)for(e=e.child;e!==null;)C9(e,t,n),e=e.sibling}function C9(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&Io&&e.memoizedState!==null&&gS(n,Ln,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var r=Ln;Ln=od(e.stateNode.containerInfo),Ll(e,t,n),Ln=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Io,Io=16777216,Ll(e,t,n),Io=r):Ll(e,t,n));break;default:Ll(e,t,n)}}function S9(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function go(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rt=r,M9(r,e)}S9(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)E9(e),e=e.sibling}function E9(e){switch(e.tag){case 0:case 11:case 15:go(e),e.flags&2048&&wa(9,e,e.return);break;case 3:go(e);break;case 12:go(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mc(e)):go(e);break;default:go(e)}}function Mc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rt=r,M9(r,e)}S9(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wa(8,t,t.return),Mc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Mc(t));break;default:Mc(t)}e=e.sibling}}function M9(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:wa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:nu(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rt=r;else e:for(n=e;rt!==null;){r=rt;var a=r.sibling,l=r.return;if(m9(r),r===n){rt=null;break e}if(a!==null){a.return=l,rt=a;break e}rt=l}}}var AC={getCacheForType:function(e){var t=ht(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ht(Xe).controller.signal}},NC=typeof WeakMap=="function"?WeakMap:Map,pe=0,Ee=null,ie=null,oe=0,ye=0,Ft=null,ea=!1,Ii=!1,eg=!1,Dr=0,ze=0,xa=0,ol=0,tg=0,It=0,Ni=0,ds=null,jt=null,Jh=!1,af=0,O9=0,ed=1/0,td=null,ua=null,$e=0,ca=null,ki=null,Sr=0,ep=0,tp=null,R9=null,fs=0,np=null;function tn(){return pe&2&&oe!==0?oe&-oe:W.T!==null?rg():z2()}function T9(){if(It===0)if(!(oe&536870912)||se){var e=Eu;Eu<<=1,!(Eu&3932160)&&(Eu=262144),It=e}else It=536870912;return e=rn.current,e!==null&&(e.flags|=32),It}function Lt(e,t,n){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Li(e,0),ta(e,oe,It,!1)),Js(e,n),(!(pe&2)||e!==Ee)&&(e===Ee&&(!(pe&2)&&(ol|=n),ze===4&&ta(e,oe,It,!1)),tr(e))}function D9(e,t,n){if(pe&6)throw Error(H(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ws(e,t),a=r?_C(e,t):d0(e,t,!0),l=r;do{if(a===0){Ii&&!r&&ta(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!kC(n)){a=d0(e,t,!1),l=!1;continue}if(a===2){if(l=t,e.errorRecoveryDisabledLanes&l)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var o=e;a=ds;var s=o.current.memoizedState.isDehydrated;if(s&&(Li(o,i).flags|=256),i=d0(o,i,!1),i!==2){if(eg&&!s){o.errorRecoveryDisabledLanes|=l,ol|=l,a=4;break e}l=jt,jt=a,l!==null&&(jt===null?jt=l:jt.push.apply(jt,l))}a=i}if(l=!1,a!==2)continue}}if(a===1){Li(e,0),ta(e,t,0,!0);break}e:{switch(r=e,l=a,l){case 0:case 1:throw Error(H(345));case 4:if((t&4194048)!==t)break;case 6:ta(r,t,It,!ea);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(H(329))}if((t&62914560)===t&&(a=af+300-Wt(),10<a)){if(ta(r,t,It,!ea),Xd(r,0,!0)!==0)break e;Sr=t,r.timeoutHandle=I9(fv.bind(null,r,n,jt,td,Jh,t,It,ol,Ni,ea,l,"Throttled",-0,0),a);break e}fv(r,n,jt,td,Jh,t,It,ol,Ni,ea,l,null,-0,0)}}break}while(!0);tr(e)}function fv(e,t,n,r,a,l,i,o,s,u,d,c,f,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:br},C9(t,l,c);var m=(l&62914560)===l?af-Wt():(l&4194048)===l?O9-Wt():0;if(m=vS(c,m),m!==null){Sr=l,e.cancelPendingCommit=m(pv.bind(null,e,t,l,n,r,a,i,o,s,d,c,null,f,h)),ta(e,l,i,!u);return}}pv(e,t,l,n,r,a,i,o,s)}function kC(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!nn(l(),a))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 ta(e,t,n,r){t&=~tg,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var l=31-en(a),i=1<<l;r[l]=-1,a&=~i}n!==0&&k2(e,n,t)}function lf(){return pe&6?!0:(lu(0),!1)}function ng(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,wr=Sl=null,Bm(e),bi=null,Ts=0,e=ie;for(;e!==null;)s9(e.alternate,e),e=e.return;ie=null}}function Li(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,JC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sr=0,ng(),Ee=e,ie=n=xr(e.current,null),oe=t,ye=0,Ft=null,ea=!1,Ii=Ws(e,t),eg=!1,Ni=It=tg=ol=xa=ze=0,jt=ds=null,Jh=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-en(r),l=1<<a;t|=e[a],r&=~l}return Dr=t,$d(),n}function j9(e,t){re=null,W.H=js,t===Yi||t===Jd?(t=V1(),ye=3):t===Lm?(t=V1(),ye=4):ye=t===Zm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,ie===null&&(ze=1,$c(e,vn(t,e.current)))}function A9(){var e=rn.current;return e===null?!0:(oe&4194048)===oe?wn===null:(oe&62914560)===oe||oe&536870912?e===wn:!1}function N9(){var e=W.H;return W.H=js,e===null?js:e}function k9(){var e=W.A;return W.A=AC,e}function nd(){ze=4,ea||(oe&4194048)!==oe&&rn.current!==null||(Ii=!0),!(xa&134217727)&&!(ol&134217727)||Ee===null||ta(Ee,oe,It,!1)}function d0(e,t,n){var r=pe;pe|=2;var a=N9(),l=k9();(Ee!==e||oe!==t)&&(td=null,Li(e,t)),t=!1;var i=ze;e:do try{if(ye!==0&&ie!==null){var o=ie,s=Ft;switch(ye){case 8:ng(),i=6;break e;case 3:case 2:case 9:case 6:rn.current===null&&(t=!0);var u=ye;if(ye=0,Ft=null,di(e,o,s,u),n&&Ii){i=0;break e}break;default:u=ye,ye=0,Ft=null,di(e,o,s,u)}}LC(),i=ze;break}catch(d){j9(e,d)}while(!0);return t&&e.shellSuspendCounter++,wr=Sl=null,pe=r,W.H=a,W.A=l,ie===null&&(Ee=null,oe=0,$d()),i}function LC(){for(;ie!==null;)L9(ie)}function _C(e,t){var n=pe;pe|=2;var r=N9(),a=k9();Ee!==e||oe!==t?(td=null,ed=Wt()+500,Li(e,t)):Ii=Ws(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var l=Ft;t:switch(ye){case 1:ye=0,Ft=null,di(e,t,l,1);break;case 2:case 9:if(F1(l)){ye=0,Ft=null,hv(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),tr(e)},l.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:F1(l)?(ye=0,Ft=null,hv(t)):(ye=0,Ft=null,di(e,t,l,7));break;case 5:var i=null;switch(ie.tag){case 26:i=ie.memoizedState;case 5:case 27:var o=ie;if(i?e8(i):o.stateNode.complete){ye=0,Ft=null;var s=o.sibling;if(s!==null)ie=s;else{var u=o.return;u!==null?(ie=u,of(u)):ie=null}break t}}ye=0,Ft=null,di(e,t,l,5);break;case 6:ye=0,Ft=null,di(e,t,l,6);break;case 8:ng(),ze=6;break e;default:throw Error(H(462))}}zC();break}catch(d){j9(e,d)}while(!0);return wr=Sl=null,W.H=r,W.A=a,pe=n,ie!==null?0:(Ee=null,oe=0,$d(),ze)}function zC(){for(;ie!==null&&!lx();)L9(ie)}function L9(e){var t=o9(e.alternate,e,Dr);e.memoizedProps=e.pendingProps,t===null?of(e):ie=t}function hv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=iv(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=iv(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Bm(t);default:s9(n,t),t=ie=s5(t,Dr),t=o9(n,t,Dr)}e.memoizedProps=e.pendingProps,t===null?of(e):ie=t}function di(e,t,n,r){wr=Sl=null,Bm(t),bi=null,Ts=0;var a=t.return;try{if(EC(e,a,t,n,oe)){ze=1,$c(e,vn(n,e.current)),ie=null;return}}catch(l){if(a!==null)throw ie=a,l;ze=1,$c(e,vn(n,e.current)),ie=null;return}t.flags&32768?(se||r===1?e=!0:Ii||oe&536870912?e=!1:(ea=e=!0,(r===2||r===9||r===3||r===6)&&(r=rn.current,r!==null&&r.tag===13&&(r.flags|=16384))),_9(t,e)):of(t)}function of(e){var t=e;do{if(t.flags&32768){_9(t,ea);return}e=t.return;var n=RC(t.alternate,t,Dr);if(n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);ze===0&&(ze=5)}function _9(e,t){do{var n=TC(e.alternate,e);if(n!==null){n.flags&=32767,ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=n}while(e!==null);ze=6,ie=null}function pv(e,t,n,r,a,l,i,o,s){e.cancelPendingCommit=null;do sf();while($e!==0);if(pe&6)throw Error(H(327));if(t!==null){if(t===e.current)throw Error(H(177));if(l=t.lanes|t.childLanes,l|=Rm,mx(e,n,l,i,o,s),e===Ee&&(ie=Ee=null,oe=0),ki=t,ca=e,Sr=n,ep=l,tp=a,R9=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,UC(Uc,function(){return U9(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=W.T,W.T=null,a=me.p,me.p=2,i=pe,pe|=4;try{DC(e,t,n)}finally{pe=i,me.p=a,W.T=r}}$e=1,z9(),P9(),H9()}}function z9(){if($e===1){$e=0;var e=ca,t=ki,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=W.T,W.T=null;var r=me.p;me.p=2;var a=pe;pe|=4;try{b9(t,e);var l=ip,i=e5(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&J2(o.ownerDocument.documentElement,o)){if(s!==null&&Om(o)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(d,o.value.length);else{var c=o.ownerDocument||document,f=c&&c.defaultView||window;if(f.getSelection){var h=f.getSelection(),m=o.textContent.length,v=Math.min(s.start,m),b=s.end===void 0?v:Math.min(s.end,m);!h.extend&&v>b&&(i=b,b=v,v=i);var g=z1(o,v),y=z1(o,b);if(g&&y&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var w=c.createRange();w.setStart(g.node,g.offset),h.removeAllRanges(),v>b?(h.addRange(w),h.extend(y.node,y.offset)):(w.setEnd(y.node,y.offset),h.addRange(w))}}}}for(c=[],h=o;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<c.length;o++){var C=c[o];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}cd=!!lp,ip=lp=null}finally{pe=a,me.p=r,W.T=n}}e.current=t,$e=2}}function P9(){if($e===2){$e=0;var e=ca,t=ki,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=W.T,W.T=null;var r=me.p;me.p=2;var a=pe;pe|=4;try{p9(e,t.alternate,t)}finally{pe=a,me.p=r,W.T=n}}$e=3}}function H9(){if($e===4||$e===3){$e=0,ix();var e=ca,t=ki,n=Sr,r=R9;t.subtreeFlags&10256||t.flags&10256?$e=5:($e=0,ki=ca=null,K9(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(ua=null),bm(n),t=t.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot($s,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=W.T,a=me.p,me.p=2,W.T=null;try{for(var l=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];l(o.value,{componentStack:o.stack})}}finally{W.T=t,me.p=a}}Sr&3&&sf(),tr(e),a=e.pendingLanes,n&261930&&a&42?e===np?fs++:(fs=0,np=e):fs=0,lu(0)}}function K9(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nu(t)))}function sf(){return z9(),P9(),H9(),U9()}function U9(){if($e!==5)return!1;var e=ca,t=ep;ep=0;var n=bm(Sr),r=W.T,a=me.p;try{me.p=32>n?32:n,W.T=null,n=tp,tp=null;var l=ca,i=Sr;if($e=0,ki=ca=null,Sr=0,pe&6)throw Error(H(331));var o=pe;if(pe|=4,E9(l.current),x9(l,l.current,i,n),pe=o,lu(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot($s,l)}catch{}return!0}finally{me.p=a,W.T=r,K9(e,t)}}function mv(e,t,n){t=vn(n,t),t=Ih(e.stateNode,t,2),e=sa(e,t,2),e!==null&&(Js(e,2),tr(e))}function be(e,t,n){if(e.tag===3)mv(e,e,n);else for(;t!==null;){if(t.tag===3){mv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ua===null||!ua.has(r))){e=vn(n,e),n=t9(2),r=sa(t,n,2),r!==null&&(n9(n,r,t,e),Js(r,2),tr(r));break}}t=t.return}}function f0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new NC;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(eg=!0,a.add(n),e=PC.bind(null,e,t,n),t.then(e,e))}function PC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ee===e&&(oe&n)===n&&(ze===4||ze===3&&(oe&62914560)===oe&&300>Wt()-af?!(pe&2)&&Li(e,0):tg|=n,Ni===oe&&(Ni=0)),tr(e)}function B9(e,t){t===0&&(t=N2()),e=Cl(e,t),e!==null&&(Js(e,t),tr(e))}function HC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),B9(e,n)}function KC(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(H(314))}r!==null&&r.delete(t),B9(e,n)}function UC(e,t){return vm(e,t)}var rd=null,Il=null,rp=!1,ad=!1,h0=!1,na=0;function tr(e){e!==Il&&e.next===null&&(Il===null?rd=Il=e:Il=Il.next=e),ad=!0,rp||(rp=!0,qC())}function lu(e,t){if(!h0&&ad){h0=!0;do for(var n=!1,r=rd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var l=0;else{var i=r.suspendedLanes,o=r.pingedLanes;l=(1<<31-en(42|e)+1)-1,l&=a&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,gv(r,l))}else l=oe,l=Xd(r,r===Ee?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(l&3)||Ws(r,l)||(n=!0,gv(r,l));r=r.next}while(n);h0=!1}}function BC(){q9()}function q9(){ad=rp=!1;var e=0;na!==0&&WC()&&(e=na);for(var t=Wt(),n=null,r=rd;r!==null;){var a=r.next,l=F9(r,t);l===0?(r.next=null,n===null?rd=a:n.next=a,a===null&&(Il=n)):(n=r,(e!==0||l&3)&&(ad=!0)),r=a}$e!==0&&$e!==5||lu(e),na!==0&&(na=0)}function F9(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-en(l),o=1<<i,s=a[i];s===-1?(!(o&n)||o&r)&&(a[i]=px(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Ee,n=oe,n=Xd(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Bf(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ws(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Bf(r),bm(n)){case 2:case 8:n=j2;break;case 32:n=Uc;break;case 268435456:n=A2;break;default:n=Uc}return r=V9.bind(null,e),n=vm(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Bf(r),e.callbackPriority=2,e.callbackNode=null,2}function V9(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(sf()&&e.callbackNode!==n)return null;var r=oe;return r=Xd(e,e===Ee?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(D9(e,r,t),F9(e,Wt()),e.callbackNode!=null&&e.callbackNode===n?V9.bind(null,e):null)}function gv(e,t){if(sf())return null;D9(e,t,!0)}function qC(){eS(function(){pe&6?vm(D2,BC):q9()})}function rg(){if(na===0){var e=Di;e===0&&(e=Su,Su<<=1,!(Su&261888)&&(Su=256)),na=e}return na}function vv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gc(""+e)}function yv(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function FC(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var l=vv((a[_t]||null).action),i=r.submitter;i&&(t=(t=i[_t]||null)?vv(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new Yd("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(na!==0){var s=i?yv(a,i):new FormData(a);Xh(n,{pending:!0,data:s,method:a.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?yv(a,i):new FormData(a),Xh(n,{pending:!0,data:s,method:a.method,action:l},l,s))},currentTarget:a}]})}}for(var p0=0;p0<_h.length;p0++){var m0=_h[p0],VC=m0.toLowerCase(),GC=m0[0].toUpperCase()+m0.slice(1);Un(VC,"on"+GC)}Un(n5,"onAnimationEnd");Un(r5,"onAnimationIteration");Un(a5,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(oC,"onTransitionRun");Un(sC,"onTransitionStart");Un(uC,"onTransitionCancel");Un(l5,"onTransitionEnd");Ri("onMouseEnter",["mouseout","mouseover"]);Ri("onMouseLeave",["mouseout","mouseover"]);Ri("onPointerEnter",["pointerout","pointerover"]);Ri("onPointerLeave",["pointerout","pointerover"]);bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));bl("onBeforeInput",["compositionend","keypress","textInput","paste"]);bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var As="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(" "),QC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function G9(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(d){qc(d)}a.currentTarget=null,l=s}else for(i=0;i<r.length;i++){if(o=r[i],s=o.instance,u=o.currentTarget,o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(d){qc(d)}a.currentTarget=null,l=s}}}}function le(e,t){var n=t[Rh];n===void 0&&(n=t[Rh]=new Set);var r=e+"__bubble";n.has(r)||(Q9(t,e,2,!1),n.add(r))}function g0(e,t,n){var r=0;t&&(r|=4),Q9(n,e,r,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function ag(e){if(!e[ku]){e[ku]=!0,P2.forEach(function(n){n!=="selectionchange"&&(QC.has(n)||g0(n,!1,e),g0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,g0("selectionchange",!1,t))}}function Q9(e,t,n,r){switch(l8(t)){case 2:var a=wS;break;case 8:a=xS;break;default:a=sg}n=a.bind(null,t,n,e),a=void 0,!Nh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function v0(e,t,n,r,a){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var o=r.stateNode.containerInfo;if(o===a)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;o!==null;){if(i=ni(o),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){r=l=i;continue e}o=o.parentNode}}r=r.return}G2(function(){var u=l,d=Cm(n),c=[];e:{var f=i5.get(e);if(f!==void 0){var h=Yd,m=e;switch(e){case"keypress":if(yc(n)===0)break e;case"keydown":case"keyup":h=Kx;break;case"focusin":m="focus",h=Qf;break;case"focusout":m="blur",h=Qf;break;case"beforeblur":case"afterblur":h=Qf;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":h=O1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=qx;break;case n5:case r5:case a5:h=jx;break;case l5:h=Vx;break;case"scroll":case"scrollend":h=Mx;break;case"wheel":h=Qx;break;case"copy":case"cut":case"paste":h=Nx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=T1;break;case"toggle":case"beforetoggle":h=Yx}var v=(t&4)!==0,b=!v&&(e==="scroll"||e==="scrollend"),g=v?f!==null?f+"Capture":null:f;v=[];for(var y=u,w;y!==null;){var C=y;if(w=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||w===null||g===null||(C=Ss(y,g),C!=null&&v.push(Ns(y,C,w))),b)break;y=y.return}0<v.length&&(f=new h(f,m,null,n,d),c.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Ah&&(m=n.relatedTarget||n.fromElement)&&(ni(m)||m[Gi]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?ni(m):null,m!==null&&(b=Zs(m),v=m.tag,m!==b||v!==5&&v!==27&&v!==6)&&(m=null)):(h=null,m=u),h!==m)){if(v=O1,C="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=T1,C="onPointerLeave",g="onPointerEnter",y="pointer"),b=h==null?f:Xo(h),w=m==null?f:Xo(m),f=new v(C,y+"leave",h,n,d),f.target=b,f.relatedTarget=w,C=null,ni(d)===u&&(v=new v(g,y+"enter",m,n,d),v.target=w,v.relatedTarget=b,C=v),b=C,h&&m)t:{for(v=XC,g=h,y=m,w=0,C=g;C;C=v(C))w++;C=0;for(var E=y;E;E=v(E))C++;for(;0<w-C;)g=v(g),w--;for(;0<C-w;)y=v(y),C--;for(;w--;){if(g===y||y!==null&&g===y.alternate){v=g;break t}g=v(g),y=v(y)}v=null}else v=null;h!==null&&bv(c,f,h,v,!1),m!==null&&b!==null&&bv(c,b,m,v,!0)}}e:{if(f=u?Xo(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=N1;else if(A1(f))if($2)S=aC;else{S=nC;var M=tC}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&xm(u.elementType)&&(S=N1):S=rC;if(S&&(S=S(e,u))){Z2(c,S,n,d);break e}M&&M(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&jh(f,"number",f.value)}switch(M=u?Xo(u):window,e){case"focusin":(A1(M)||M.contentEditable==="true")&&(li=M,kh=u,rs=null);break;case"focusout":rs=kh=li=null;break;case"mousedown":Lh=!0;break;case"contextmenu":case"mouseup":case"dragend":Lh=!1,P1(c,n,d);break;case"selectionchange":if(iC)break;case"keydown":case"keyup":P1(c,n,d)}var N;if(Mm)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else ai?Y2(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(X2&&n.locale!=="ko"&&(ai||A!=="onCompositionStart"?A==="onCompositionEnd"&&ai&&(N=Q2()):(Jr=d,Sm="value"in Jr?Jr.value:Jr.textContent,ai=!0)),M=ld(u,A),0<M.length&&(A=new R1(A,e,null,n,d),c.push({event:A,listeners:M}),N?A.data=N:(N=I2(n),N!==null&&(A.data=N)))),(N=Zx?$x(e,n):Wx(e,n))&&(A=ld(u,"onBeforeInput"),0<A.length&&(M=new R1("onBeforeInput","beforeinput",null,n,d),c.push({event:M,listeners:A}),M.data=N)),FC(c,e,u,n,d)}G9(c,t)})}function Ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ld(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||l===null||(a=Ss(e,n),a!=null&&r.unshift(Ns(e,a,l)),a=Ss(e,t),a!=null&&r.push(Ns(e,a,l))),e.tag===3)return r;e=e.return}return[]}function XC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bv(e,t,n,r,a){for(var l=t._reactName,i=[];n!==null&&n!==r;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===r)break;o!==5&&o!==26&&o!==27||u===null||(s=u,a?(u=Ss(n,l),u!=null&&i.unshift(Ns(n,u,s))):a||(u=Ss(n,l),u!=null&&i.push(Ns(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var YC=/\r\n?/g,IC=/\u0000|\uFFFD/g;function wv(e){return(typeof e=="string"?e:""+e).replace(YC,`
|
|
49
|
-
`).replace(IC,"")}function X9(e,t){return t=wv(t),wv(e)===t}function xe(e,t,n,r,a,l){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ti(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ti(e,""+r);break;case"className":Ou(e,"class",r);break;case"tabIndex":Ou(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ou(e,n,r);break;case"style":V2(e,r,l);break;case"data":if(t!=="object"){Ou(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=gc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&xe(e,t,"name",a.name,a,null),xe(e,t,"formEncType",a.formEncType,a,null),xe(e,t,"formMethod",a.formMethod,a,null),xe(e,t,"formTarget",a.formTarget,a,null)):(xe(e,t,"encType",a.encType,a,null),xe(e,t,"method",a.method,a,null),xe(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=gc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=br);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=gc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":le("beforetoggle",e),le("toggle",e),mc(e,"popover",r);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":mc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Sx.get(n)||n,mc(e,n,r))}}function ap(e,t,n,r,a,l){switch(n){case"style":V2(e,r,l);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ti(e,r):(typeof r=="number"||typeof r=="bigint")&&Ti(e,""+r);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"onClick":r!=null&&(e.onclick=br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!H2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),l=e[_t]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,a),typeof r=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):mc(e,n,r)}}}function pt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var r=!1,a=!1,l;for(l in n)if(n.hasOwnProperty(l)){var i=n[l];if(i!=null)switch(l){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:xe(e,t,l,i,n,null)}}a&&xe(e,t,"srcSet",n.srcSet,n,null),r&&xe(e,t,"src",n.src,n,null);return;case"input":le("invalid",e);var o=l=i=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":a=d;break;case"type":i=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":l=d;break;case"defaultValue":o=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(H(137,t));break;default:xe(e,t,r,d,n,null)}}B2(e,l,o,s,u,i,a,!1);return;case"select":le("invalid",e),r=i=l=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":r=o;default:xe(e,t,a,o,n,null)}t=l,n=i,e.multiple=!!r,t!=null?gi(e,!!r,t,!1):n!=null&&gi(e,!!r,n,!0);return;case"textarea":le("invalid",e),l=a=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":a=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(H(91));break;default:xe(e,t,i,o,n,null)}F2(e,r,a,l);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:xe(e,t,s,r,n,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(r=0;r<As.length;r++)le(As[r],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:xe(e,t,u,r,n,null)}return;default:if(xm(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&xe(e,t,o,r,n,null))}function ZC(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,l=null,i=null,o=null,s=null,u=null,d=null;for(h in n){var c=n[h];if(n.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(h)||xe(e,t,h,null,r,c)}}for(var f in r){var h=r[f];if(c=n[f],r.hasOwnProperty(f)&&(h!=null||c!=null))switch(f){case"type":l=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":i=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(H(137,t));break;default:h!==c&&xe(e,t,f,h,r,c)}}Dh(e,i,o,s,u,d,l,a);return;case"select":h=i=o=f=null;for(l in n)if(s=n[l],n.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":h=s;default:r.hasOwnProperty(l)||xe(e,t,l,null,r,s)}for(a in r)if(l=r[a],s=n[a],r.hasOwnProperty(a)&&(l!=null||s!=null))switch(a){case"value":f=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&xe(e,t,a,l,r,s)}t=o,n=i,r=h,f!=null?gi(e,!!n,f,!1):!!r!=!!n&&(t!=null?gi(e,!!n,t,!0):gi(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:xe(e,t,o,null,r,a)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(H(91));break;default:a!==l&&xe(e,t,i,a,r,l)}q2(e,f,h);return;case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:xe(e,t,m,null,r,f)}for(s in r)if(f=r[s],h=n[s],r.hasOwnProperty(s)&&f!==h&&(f!=null||h!=null))switch(s){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:xe(e,t,s,f,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!r.hasOwnProperty(v)&&xe(e,t,v,null,r,f);for(u in r)if(f=r[u],h=n[u],r.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(H(137,t));break;default:xe(e,t,u,f,r,h)}return;default:if(xm(t)){for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!==void 0&&!r.hasOwnProperty(b)&&ap(e,t,b,void 0,r,f);for(d in r)f=r[d],h=n[d],!r.hasOwnProperty(d)||f===h||f===void 0&&h===void 0||ap(e,t,d,f,r,h);return}}for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!=null&&!r.hasOwnProperty(g)&&xe(e,t,g,null,r,f);for(c in r)f=r[c],h=n[c],!r.hasOwnProperty(c)||f===h||f==null&&h==null||xe(e,t,c,f,r,h)}function xv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $C(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],l=a.transferSize,i=a.initiatorType,o=a.duration;if(l&&o&&xv(i)){for(i=0,o=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>o)break;var d=s.transferSize,c=s.initiatorType;d&&xv(c)&&(s=s.responseEnd,i+=d*(s<o?1:(o-u)/(s-u)))}if(--r,t+=8*(l+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lp=null,ip=null;function id(e){return e.nodeType===9?e:e.ownerDocument}function Cv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Y9(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function op(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var y0=null;function WC(){var e=window.event;return e&&e.type==="popstate"?e===y0?!1:(y0=e,!0):(y0=null,!1)}var I9=typeof setTimeout=="function"?setTimeout:void 0,JC=typeof clearTimeout=="function"?clearTimeout:void 0,Sv=typeof Promise=="function"?Promise:void 0,eS=typeof queueMicrotask=="function"?queueMicrotask:typeof Sv<"u"?function(e){return Sv.resolve(null).then(e).catch(tS)}:I9;function tS(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function Ev(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),zi(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")hs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,hs(n);for(var l=n.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[eu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=i}}else n==="body"&&hs(e.ownerDocument.body);n=a}while(n);zi(t)}function Mv(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function sp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sp(n),wm(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function nS(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[eu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=xn(e.nextSibling),e===null)break}return null}function rS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=xn(e.nextSibling),e===null))return null;return e}function Z9(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=xn(e.nextSibling),e===null))return null;return e}function up(e){return e.data==="$?"||e.data==="$~"}function cp(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function aS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function xn(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var dp=null;function Ov(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return xn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Rv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function $9(e,t,n){switch(t=id(n),e){case"html":if(e=t.documentElement,!e)throw Error(H(452));return e;case"head":if(e=t.head,!e)throw Error(H(453));return e;case"body":if(e=t.body,!e)throw Error(H(454));return e;default:throw Error(H(451))}}function hs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wm(e)}var Cn=new Map,Tv=new Set;function od(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Nr=me.d;me.d={f:lS,r:iS,D:oS,C:sS,L:uS,m:cS,X:fS,S:dS,M:hS};function lS(){var e=Nr.f(),t=lf();return e||t}function iS(e){var t=Qi(e);t!==null&&t.tag===5&&t.type==="form"?V5(t):Nr.r(e)}var Zi=typeof document>"u"?null:document;function W9(e,t,n){var r=Zi;if(r&&typeof t=="string"&&t){var a=gn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Tv.has(a)||(Tv.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),pt(t,"link",e),lt(t),r.head.appendChild(t)))}}function oS(e){Nr.D(e),W9("dns-prefetch",e,null)}function sS(e,t){Nr.C(e,t),W9("preconnect",e,t)}function uS(e,t,n){Nr.L(e,t,n);var r=Zi;if(r&&e&&t){var a='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+gn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+gn(n.imageSizes)+'"]')):a+='[href="'+gn(e)+'"]';var l=a;switch(t){case"style":l=_i(e);break;case"script":l=$i(e)}Cn.has(l)||(e=Ae({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Cn.set(l,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(iu(l))||t==="script"&&r.querySelector(ou(l))||(t=r.createElement("link"),pt(t,"link",e),lt(t),r.head.appendChild(t)))}}function cS(e,t){Nr.m(e,t);var n=Zi;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+gn(r)+'"][href="'+gn(e)+'"]',l=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=$i(e)}if(!Cn.has(l)&&(e=Ae({rel:"modulepreload",href:e},t),Cn.set(l,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ou(l)))return}r=n.createElement("link"),pt(r,"link",e),lt(r),n.head.appendChild(r)}}}function dS(e,t,n){Nr.S(e,t,n);var r=Zi;if(r&&e){var a=mi(r).hoistableStyles,l=_i(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(iu(l)))o.loading=5;else{e=Ae({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cn.get(l))&&lg(e,n);var s=i=r.createElement("link");lt(s),pt(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Oc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function fS(e,t){Nr.X(e,t);var n=Zi;if(n&&e){var r=mi(n).hoistableScripts,a=$i(e),l=r.get(a);l||(l=n.querySelector(ou(a)),l||(e=Ae({src:e,async:!0},t),(t=Cn.get(a))&&ig(e,t),l=n.createElement("script"),lt(l),pt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function hS(e,t){Nr.M(e,t);var n=Zi;if(n&&e){var r=mi(n).hoistableScripts,a=$i(e),l=r.get(a);l||(l=n.querySelector(ou(a)),l||(e=Ae({src:e,async:!0,type:"module"},t),(t=Cn.get(a))&&ig(e,t),l=n.createElement("script"),lt(l),pt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function Dv(e,t,n,r){var a=(a=la.current)?od(a):null;if(!a)throw Error(H(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=_i(n.href),n=mi(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=_i(n.href);var l=mi(a).hoistableStyles,i=l.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=a.querySelector(iu(e)))&&!l._p&&(i.instance=l,i.state.loading=5),Cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cn.set(e,n),l||pS(a,e,n,i.state))),t&&r===null)throw Error(H(528,""));return i}if(t&&r!==null)throw Error(H(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$i(n),n=mi(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(H(444,e))}}function _i(e){return'href="'+gn(e)+'"'}function iu(e){return'link[rel="stylesheet"]['+e+"]"}function J9(e){return Ae({},e,{"data-precedence":e.precedence,precedence:null})}function pS(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),pt(t,"link",n),lt(t),e.head.appendChild(t))}function $i(e){return'[src="'+gn(e)+'"]'}function ou(e){return"script[async]"+e}function jv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+gn(n.href)+'"]');if(r)return t.instance=r,lt(r),r;var a=Ae({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),lt(r),pt(r,"style",a),Oc(r,n.precedence,e),t.instance=r;case"stylesheet":a=_i(n.href);var l=e.querySelector(iu(a));if(l)return t.state.loading|=4,t.instance=l,lt(l),l;r=J9(n),(a=Cn.get(a))&&lg(r,a),l=(e.ownerDocument||e).createElement("link"),lt(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),pt(l,"link",r),t.state.loading|=4,Oc(l,n.precedence,e),t.instance=l;case"script":return l=$i(n.src),(a=e.querySelector(ou(l)))?(t.instance=a,lt(a),a):(r=n,(a=Cn.get(l))&&(r=Ae({},n),ig(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),lt(a),pt(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(H(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Oc(r,n.precedence,e));return t.instance}function Oc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,l=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)l=o;else if(l!==a)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function lg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ig(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rc=null;function Av(e,t,n){if(Rc===null){var r=new Map,a=Rc=new Map;a.set(n,r)}else a=Rc,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var l=n[a];if(!(l[eu]||l[dt]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(l):r.set(i,[l])}}return r}function Nv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function mS(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function e8(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function gS(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=_i(r.href),l=t.querySelector(iu(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=l,lt(l);return}l=t.ownerDocument||t,r=J9(r),(a=Cn.get(a))&&lg(r,a),l=l.createElement("link"),lt(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),pt(l,"link",r),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var b0=0;function vS(e,t){return e.stylesheets&&e.count===0&&Tc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Tc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&b0===0&&(b0=62500*$C());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Tc(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>b0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function sd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ud=null;function Tc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ud=new Map,t.forEach(yS,e),ud=null,sd.call(e))}function yS(e,t){if(!(t.state.loading&4)){var n=ud.get(e);if(n)var r=n.get(null);else{n=new Map,ud.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<a.length;l++){var i=a[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}a=t.instance,i=a.getAttribute("data-precedence"),l=n.get(i)||r,l===r&&n.set(null,a),n.set(i,a),this.count++,r=sd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),l?l.parentNode.insertBefore(a,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ks={$$typeof:yr,Provider:null,Consumer:null,_currentValue:rl,_currentValue2:rl,_threadCount:0};function bS(e,t,n,r,a,l,i,o,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qf(0),this.hiddenUpdates=qf(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function t8(e,t,n,r,a,l,i,o,s,u,d,c){return e=new bS(e,t,n,i,s,u,d,c,o),t=1,l===!0&&(t|=24),l=Qt(3,null,null,t),e.current=l,l.stateNode=e,t=Nm(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:r,isDehydrated:n,cache:t},_m(l),e}function n8(e){return e?(e=si,e):si}function r8(e,t,n,r,a,l){a=n8(a),r.context===null?r.context=a:r.pendingContext=a,r=oa(t),r.payload={element:n},l=l===void 0?null:l,l!==null&&(r.callback=l),n=sa(e,r,t),n!==null&&(Lt(n,e,t),ls(n,e,t))}function kv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function og(e,t){kv(e,t),(e=e.alternate)&&kv(e,t)}function a8(e){if(e.tag===13||e.tag===31){var t=Cl(e,67108864);t!==null&&Lt(t,e,67108864),og(e,67108864)}}function Lv(e){if(e.tag===13||e.tag===31){var t=tn();t=ym(t);var n=Cl(e,t);n!==null&&Lt(n,e,t),og(e,t)}}var cd=!0;function wS(e,t,n,r){var a=W.T;W.T=null;var l=me.p;try{me.p=2,sg(e,t,n,r)}finally{me.p=l,W.T=a}}function xS(e,t,n,r){var a=W.T;W.T=null;var l=me.p;try{me.p=8,sg(e,t,n,r)}finally{me.p=l,W.T=a}}function sg(e,t,n,r){if(cd){var a=fp(r);if(a===null)v0(e,t,r,dd,n),_v(e,r);else if(SS(a,e,t,n,r))r.stopPropagation();else if(_v(e,r),t&4&&-1<CS.indexOf(e)){for(;a!==null;){var l=Qi(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=Za(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-en(i);o.entanglements[1]|=s,i&=~s}tr(l),!(pe&6)&&(ed=Wt()+500,lu(0))}}break;case 31:case 13:o=Cl(l,2),o!==null&&Lt(o,l,2),lf(),og(l,2)}if(l=fp(r),l===null&&v0(e,t,r,dd,n),l===a)break;a=l}a!==null&&r.stopPropagation()}else v0(e,t,r,null,n)}}function fp(e){return e=Cm(e),ug(e)}var dd=null;function ug(e){if(dd=null,e=ni(e),e!==null){var t=Zs(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=E2(t),e!==null)return e;e=null}else if(n===31){if(e=M2(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 dd=e,null}function l8(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ox()){case D2:return 2;case j2:return 8;case Uc:case sx:return 32;case A2:return 268435456;default:return 32}default:return 32}}var hp=!1,da=null,fa=null,ha=null,Ls=new Map,_s=new Map,Zr=[],CS="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".split(" ");function _v(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function vo(e,t,n,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},t!==null&&(t=Qi(t),t!==null&&a8(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function SS(e,t,n,r,a){switch(t){case"focusin":return da=vo(da,e,t,n,r,a),!0;case"dragenter":return fa=vo(fa,e,t,n,r,a),!0;case"mouseover":return ha=vo(ha,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Ls.set(l,vo(Ls.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,_s.set(l,vo(_s.get(l)||null,e,t,n,r,a)),!0}return!1}function i8(e){var t=ni(e.target);if(t!==null){var n=Zs(t);if(n!==null){if(t=n.tag,t===13){if(t=E2(n),t!==null){e.blockedOn=t,b1(e.priority,function(){Lv(n)});return}}else if(t===31){if(t=M2(n),t!==null){e.blockedOn=t,b1(e.priority,function(){Lv(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 Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ah=r,n.target.dispatchEvent(r),Ah=null}else return t=Qi(n),t!==null&&a8(t),e.blockedOn=n,!1;t.shift()}return!0}function zv(e,t,n){Dc(e)&&n.delete(t)}function ES(){hp=!1,da!==null&&Dc(da)&&(da=null),fa!==null&&Dc(fa)&&(fa=null),ha!==null&&Dc(ha)&&(ha=null),Ls.forEach(zv),_s.forEach(zv)}function Lu(e,t){e.blockedOn===t&&(e.blockedOn=null,hp||(hp=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,ES)))}var _u=null;function Pv(e){_u!==e&&(_u=e,We.unstable_scheduleCallback(We.unstable_NormalPriority,function(){_u===e&&(_u=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(ug(r||n)===null)continue;break}var l=Qi(n);l!==null&&(e.splice(t,3),t-=3,Xh(l,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function zi(e){function t(s){return Lu(s,e)}da!==null&&Lu(da,e),fa!==null&&Lu(fa,e),ha!==null&&Lu(ha,e),Ls.forEach(t),_s.forEach(t);for(var n=0;n<Zr.length;n++){var r=Zr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Zr.length&&(n=Zr[0],n.blockedOn===null);)i8(n),n.blockedOn===null&&Zr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],l=n[r+1],i=a[_t]||null;if(typeof l=="function")i||Pv(n);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[_t]||null)o=i.formAction;else if(ug(a)!==null)continue}else o=i.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),Pv(n)}}}function o8(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function cg(e){this._internalRoot=e}uf.prototype.render=cg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));var n=t.current,r=tn();r8(n,r,e,t,null,null)};uf.prototype.unmount=cg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;r8(e.current,2,null,e,null,null),lf(),t[Gi]=null}};function uf(e){this._internalRoot=e}uf.prototype.unstable_scheduleHydration=function(e){if(e){var t=z2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&t!==0&&t<Zr[n].priority;n++);Zr.splice(n,0,e),n===0&&i8(e)}};var Hv=C2.version;if(Hv!=="19.2.0")throw Error(H(527,Hv,"19.2.0"));me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=ex(t),e=e!==null?O2(e):null,e=e===null?null:e.stateNode,e};var MS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{$s=zu.inject(MS),Jt=zu}catch{}}Gd.createRoot=function(e,t){if(!S2(e))throw Error(H(299));var n=!1,r="",a=W5,l=J5,i=e9;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=t8(e,1,!1,null,null,n,r,null,a,l,i,o8),e[Gi]=t.current,ag(e),new cg(t)};Gd.hydrateRoot=function(e,t,n){if(!S2(e))throw Error(H(299));var r=!1,a="",l=W5,i=J5,o=e9,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=t8(e,1,!0,t,n??null,r,a,s,l,i,o,o8),t.context=n8(null),n=t.current,r=tn(),r=ym(r),a=oa(r),a.callback=null,sa(n,a,r),n=r,t.current.lanes=n,Js(t,n),tr(t),e[Gi]=t.current,ag(e),new uf(t)};Gd.version="19.2.0";function s8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s8)}catch(e){console.error(e)}}s8(),s2.exports=Gd;var OS=s2.exports,u8=e=>{throw TypeError(e)},dg=(e,t,n)=>t.has(e)||u8("Cannot "+n),R=(e,t,n)=>(dg(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?u8("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(dg(e,t,"write to private field"),t.set(e,n),n),$=(e,t,n)=>(dg(e,t,"access private method"),n),pp=(e,t,n,r)=>({set _(a){q(e,t,a)},get _(){return R(e,t,r)}});function c8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d8={exports:{}},cf={};/**
|
|
48
|
+
`+r.stack}}var Oh=Object.prototype.hasOwnProperty,vm=We.unstable_scheduleCallback,Bf=We.unstable_cancelCallback,iw=We.unstable_shouldYield,ow=We.unstable_requestPaint,Jt=We.unstable_now,sw=We.unstable_getCurrentPriorityLevel,D2=We.unstable_ImmediatePriority,j2=We.unstable_UserBlockingPriority,Uc=We.unstable_NormalPriority,uw=We.unstable_LowPriority,N2=We.unstable_IdlePriority,cw=We.log,dw=We.unstable_setDisableYieldValue,$s=null,en=null;function Wr(e){if(typeof cw=="function"&&dw(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode($s,e)}catch{}}var tn=Math.clz32?Math.clz32:pw,fw=Math.log,hw=Math.LN2;function pw(e){return e>>>=0,e===0?32:31-(fw(e)/hw|0)|0}var Su=256,Eu=262144,Mu=4194304;function Za(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Id(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~l,r!==0?a=Za(r):(i&=o,i!==0?a=Za(i):n||(n=o&~e,n!==0&&(a=Za(n))))):(o=r&~l,o!==0?a=Za(o):i!==0?a=Za(i):n||(n=r&~e,n!==0&&(a=Za(n)))),a===0?0:t!==0&&t!==a&&!(t&l)&&(l=a&-a,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:a}function Ws(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mw(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A2(){var e=Mu;return Mu<<=1,!(Mu&62914560)&&(Mu=4194304),e}function qf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Js(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gw(e,t,n,r,a,l){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var d=31-tn(n),c=1<<d;o[d]=0,s[d]=-1;var f=u[d];if(f!==null)for(u[d]=null,d=0;d<f.length;d++){var h=f[d];h!==null&&(h.lane&=-536870913)}n&=~c}r!==0&&L2(e,r,0),l!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function L2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-tn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function _2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function z2(e,t){var n=t&-t;return n=n&42?1:bm(n),n&(e.suspendedLanes|t)?0:n}function bm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ym(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function P2(){var e=me.p;return e!==0?e:(e=window.event,e===void 0?32:i8(e.type))}function y1(e,t){var n=me.p;try{return me.p=e,t()}finally{me.p=n}}var Oa=Math.random().toString(36).slice(2),dt="__reactFiber$"+Oa,zt="__reactProps$"+Oa,Qi="__reactContainer$"+Oa,Rh="__reactEvents$"+Oa,vw="__reactListeners$"+Oa,bw="__reactHandles$"+Oa,x1="__reactResources$"+Oa,eu="__reactMarker$"+Oa;function xm(e){delete e[dt],delete e[zt],delete e[Rh],delete e[vw],delete e[bw]}function ni(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qi]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Rv(e);e!==null;){if(n=e[dt])return n;e=Rv(e)}return t}e=n,n=e.parentNode}return null}function Ii(e){if(e=e[dt]||e[Qi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(H(33))}function mi(e){var t=e[x1];return t||(t=e[x1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[eu]=!0}var H2=new Set,K2={};function yl(e,t){Ri(e,t),Ri(e+"Capture",t)}function Ri(e,t){for(K2[e]=t,e=0;e<t.length;e++)H2.add(t[e])}var yw=RegExp("^[: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]*$"),w1={},C1={};function xw(e){return Oh.call(C1,e)?!0:Oh.call(w1,e)?!1:yw.test(e)?C1[e]=!0:(w1[e]=!0,!1)}function mc(e,t,n){if(xw(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ou(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function lr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ww(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Th(e){if(!e._valueTracker){var t=U2(e)?"checked":"value";e._valueTracker=ww(e,t,""+e[t])}}function B2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bc(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}}var Cw=/[\n"\\]/g;function vn(e){return e.replace(Cw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kh(e,t,n,r,a,l,i,o){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Dh(e,i,pn(t)):n!=null?Dh(e,i,pn(n)):r!=null&&e.removeAttribute("value"),a==null&&l!=null&&(e.defaultChecked=!!l),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+pn(o):e.removeAttribute("name")}function q2(e,t,n,r,a,l,i,o){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){Th(e);return}n=n!=null?""+pn(n):"",t=t!=null?""+pn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Th(e)}function Dh(e,t,n){t==="number"&&Bc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function gi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pn(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function F2(e,t,n){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+pn(n):""}function V2(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(H(92));if(Io(r)){if(1<r.length)throw Error(H(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=pn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Th(e)}function Ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function S1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Sw.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function G2(e,t,n){if(t!=null&&typeof t!="object")throw Error(H(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&S1(e,a,r)}else for(var l in t)t.hasOwnProperty(l)&&S1(e,l,t[l])}function wm(e){if(e.indexOf("-")===-1)return!1;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 Ew=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function gc(e){return Mw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yr(){}var jh=null;function Cm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ri=null,vi=null;function E1(e){var t=Ii(e);if(t&&(e=t.stateNode)){var n=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(kh(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[zt]||null;if(!a)throw Error(H(90));kh(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&B2(r)}break e;case"textarea":F2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&gi(e,!!n.multiple,t,!1)}}}var Ff=!1;function Q2(e,t,n){if(Ff)return e(t,n);Ff=!0;try{var r=e(t);return r}finally{if(Ff=!1,(ri!==null||vi!==null)&&(lf(),ri&&(t=ri,e=vi,vi=ri=null,E1(t),e)))for(t=0;t<e.length;t++)E1(e[t])}}function Es(e,t){var n=e.stateNode;if(n===null)return null;var r=n[zt]||null;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(H(231,t,typeof n));return n}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nh=!1;if(Mr)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){Nh=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{Nh=!1}var Jr=null,Sm=null,vc=null;function I2(){if(vc)return vc;var e,t=Sm,n=t.length,r,a="value"in Jr?Jr.value:Jr.textContent,l=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===a[l-r];r++);return vc=a.slice(e,1<r?1-r:void 0)}function bc(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 Ru(){return!0}function M1(){return!1}function Pt(e){function t(n,r,a,l,i){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Ru:M1,this.isPropagationStopped=M1,this}return je(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=Ru)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ru)},persist:function(){},isPersistent:Ru}),t}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xd=Pt(xl),tu=je({},xl,{view:0,detail:0}),Ow=Pt(tu),Vf,Gf,po,Yd=je({},tu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Em,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!==po&&(po&&e.type==="mousemove"?(Vf=e.screenX-po.screenX,Gf=e.screenY-po.screenY):Gf=Vf=0,po=e),Vf)},movementY:function(e){return"movementY"in e?e.movementY:Gf}}),O1=Pt(Yd),Rw=je({},Yd,{dataTransfer:0}),Tw=Pt(Rw),kw=je({},tu,{relatedTarget:0}),Qf=Pt(kw),Dw=je({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),jw=Pt(Dw),Nw=je({},xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Aw=Pt(Nw),Lw=je({},xl,{data:0}),R1=Pt(Lw),_w={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zw={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"},Pw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pw[e])?!!t[e]:!1}function Em(){return Hw}var Kw=je({},tu,{key:function(e){if(e.key){var t=_w[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Em,charCode:function(e){return e.type==="keypress"?bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uw=Pt(Kw),Bw=je({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),T1=Pt(Bw),qw=je({},tu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Em}),Fw=Pt(qw),Vw=je({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gw=Pt(Vw),Qw=je({},Yd,{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}),Iw=Pt(Qw),Xw=je({},xl,{newState:0,oldState:0}),Yw=Pt(Xw),Zw=[9,13,27,32],Mm=Mr&&"CompositionEvent"in window,ns=null;Mr&&"documentMode"in document&&(ns=document.documentMode);var $w=Mr&&"TextEvent"in window&&!ns,X2=Mr&&(!Mm||ns&&8<ns&&11>=ns),k1=" ",D1=!1;function Y2(e,t){switch(e){case"keyup":return Zw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function Ww(e,t){switch(e){case"compositionend":return Z2(t);case"keypress":return t.which!==32?null:(D1=!0,k1);case"textInput":return e=t.data,e===k1&&D1?null:e;default:return null}}function Jw(e,t){if(ai)return e==="compositionend"||!Mm&&Y2(e,t)?(e=I2(),vc=Sm=Jr=null,ai=!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 X2&&t.locale!=="ko"?null:t.data;default:return null}}var eC={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 j1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eC[e.type]:t==="textarea"}function $2(e,t,n,r){ri?vi?vi.push(r):vi=[r]:ri=r,t=ld(t,"onChange"),0<t.length&&(n=new Xd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rs=null,Ms=null;function tC(e){Q9(e,0)}function Zd(e){var t=Xo(e);if(B2(t))return e}function N1(e,t){if(e==="change")return t}var W2=!1;if(Mr){var If;if(Mr){var Xf="oninput"in document;if(!Xf){var A1=document.createElement("div");A1.setAttribute("oninput","return;"),Xf=typeof A1.oninput=="function"}If=Xf}else If=!1;W2=If&&(!document.documentMode||9<document.documentMode)}function L1(){rs&&(rs.detachEvent("onpropertychange",J2),Ms=rs=null)}function J2(e){if(e.propertyName==="value"&&Zd(Ms)){var t=[];$2(t,Ms,e,Cm(e)),Q2(tC,t)}}function nC(e,t,n){e==="focusin"?(L1(),rs=t,Ms=n,rs.attachEvent("onpropertychange",J2)):e==="focusout"&&L1()}function rC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zd(Ms)}function aC(e,t){if(e==="click")return Zd(t)}function lC(e,t){if(e==="input"||e==="change")return Zd(t)}function iC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rn=typeof Object.is=="function"?Object.is:iC;function Os(e,t){if(rn(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 a=n[r];if(!Oh.call(t,a)||!rn(e[a],t[a]))return!1}return!0}function _1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z1(e,t){var n=_1(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=_1(n)}}function e5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?e5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function t5(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bc(e.document)}return t}function Om(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")}var oC=Mr&&"documentMode"in document&&11>=document.documentMode,li=null,Ah=null,as=null,Lh=!1;function P1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lh||li==null||li!==Bc(r)||(r=li,"selectionStart"in r&&Om(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}),as&&Os(as,r)||(as=r,r=ld(Ah,"onSelect"),0<r.length&&(t=new Xd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function La(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ii={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},Yf={},n5={};Mr&&(n5=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function wl(e){if(Yf[e])return Yf[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in n5)return Yf[e]=t[n];return e}var r5=wl("animationend"),a5=wl("animationiteration"),l5=wl("animationstart"),sC=wl("transitionrun"),uC=wl("transitionstart"),cC=wl("transitioncancel"),i5=wl("transitionend"),o5=new Map,_h="abort auxClick beforeToggle 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(" ");_h.push("scrollEnd");function Un(e,t){o5.set(e,t),yl(t,[e])}var qc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},fn=[],oi=0,Rm=0;function $d(){for(var e=oi,t=Rm=oi=0;t<e;){var n=fn[t];fn[t++]=null;var r=fn[t];fn[t++]=null;var a=fn[t];fn[t++]=null;var l=fn[t];if(fn[t++]=null,r!==null&&a!==null){var i=r.pending;i===null?a.next=a:(a.next=i.next,i.next=a),r.pending=a}l!==0&&s5(n,a,l)}}function Wd(e,t,n,r){fn[oi++]=e,fn[oi++]=t,fn[oi++]=n,fn[oi++]=r,Rm|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Tm(e,t,n,r){return Wd(e,t,n,r),Fc(e)}function Cl(e,t){return Wd(e,null,null,t),Fc(e)}function s5(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,l=e.return;l!==null;)l.childLanes|=n,r=l.alternate,r!==null&&(r.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(a=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,a&&t!==null&&(a=31-tn(n),e=l.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),l):null}function Fc(e){if(50<hs)throw hs=0,np=null,Error(H(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function dC(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.refCleanup=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 It(e,t,n,r){return new dC(e,t,n,r)}function km(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wr(e,t){var n=e.alternate;return n===null?(n=It(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&65011712,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.refCleanup=e.refCleanup,n}function u5(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yc(e,t,n,r,a,l){var i=0;if(r=e,typeof e=="function")km(e)&&(i=1);else if(typeof e=="string")i=gS(e,n,Jn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ch:return e=It(31,n,t,a),e.elementType=Ch,e.lanes=l,e;case ei:return al(n.children,a,l,t);case T2:i=8,a|=24;break;case yh:return e=It(12,n,t,a|2),e.elementType=yh,e.lanes=l,e;case xh:return e=It(13,n,t,a),e.elementType=xh,e.lanes=l,e;case wh:return e=It(19,n,t,a),e.elementType=wh,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case br:i=10;break e;case k2:i=9;break e;case mm:i=11;break e;case gm:i=14;break e;case Vr:i=16,r=null;break e}i=29,n=Error(H(130,e===null?"null":typeof e,"")),r=null}return t=It(i,n,t,a),t.elementType=e,t.type=r,t.lanes=l,t}function al(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Zf(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function c5(e){var t=It(18,null,null,0);return t.stateNode=e,t}function $f(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var H1=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var n=H1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:b1(t)},H1.set(e,t),t)}return{value:e,source:t,stack:b1(t)}}var ui=[],ci=0,Vc=null,Rs=0,mn=[],gn=0,ba=null,Yn=1,Zn="";function gr(e,t){ui[ci++]=Rs,ui[ci++]=Vc,Vc=e,Rs=t}function d5(e,t,n){mn[gn++]=Yn,mn[gn++]=Zn,mn[gn++]=ba,ba=e;var r=Yn;e=Zn;var a=32-tn(r)-1;r&=~(1<<a),n+=1;var l=32-tn(t)+a;if(30<l){var i=a-a%5;l=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Yn=1<<32-tn(t)+a|n<<a|r,Zn=l+e}else Yn=1<<l|n<<a|r,Zn=e}function Dm(e){e.return!==null&&(gr(e,1),d5(e,1,0))}function jm(e){for(;e===Vc;)Vc=ui[--ci],ui[ci]=null,Rs=ui[--ci],ui[ci]=null;for(;e===ba;)ba=mn[--gn],mn[gn]=null,Zn=mn[--gn],mn[gn]=null,Yn=mn[--gn],mn[gn]=null}function f5(e,t){mn[gn++]=Yn,mn[gn++]=Zn,mn[gn++]=ba,Yn=t.id,Zn=t.overflow,ba=e}var ft=null,ke=null,se=!1,ia=null,yn=!1,zh=Error(H(519));function ya(e){var t=Error(H(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ts(bn(t,e)),zh}function K1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[zt]=r,n){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(n=0;n<Ns.length;n++)le(Ns[n],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),q2(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),V2(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||X9(t.textContent,n)?(r.popover!=null&&(le("beforetoggle",t),le("toggle",t)),r.onScroll!=null&&le("scroll",t),r.onScrollEnd!=null&&le("scrollend",t),r.onClick!=null&&(t.onclick=yr),t=!0):t=!1,t||ya(e,!0)}function U1(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ft=ft.return}}function Al(e){if(e!==ft)return!1;if(!se)return U1(e),se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||op(e.type,e.memoizedProps)),n=!n),n&&ke&&ya(e),U1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));ke=Ov(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));ke=Ov(e)}else t===27?(t=ke,Ra(e.type)?(e=dp,dp=null,ke=e):ke=t):ke=ft?Cn(e.stateNode.nextSibling):null;return!0}function sl(){ke=ft=null,se=!1}function Wf(){var e=ia;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),ia=null),e}function Ts(e){ia===null?ia=[e]:ia.push(e)}var Ph=er(null),Sl=null,xr=null;function Ir(e,t,n){Re(Ph,t._currentValue),t._currentValue=n}function Cr(e){e._currentValue=Ph.current,it(Ph)}function Hh(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 Kh(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){var i=a.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Hh(l.return,n,e),r||(i=null);break e}l=o.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(H(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hh(i,n,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Xi(e,t,n,r){e=null;for(var a=t,l=!1;a!==null;){if(!l){if(a.flags&524288)l=!0;else if(a.flags&262144)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(H(387));if(i=i.memoizedProps,i!==null){var o=a.type;rn(a.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(a===Pc.current){if(i=a.alternate,i===null)throw Error(H(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ls):e=[Ls])}a=a.return}e!==null&&Kh(t,e,n,r),t.flags|=262144}function Gc(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){Sl=e,xr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ht(e){return h5(Sl,e)}function Tu(e,t){return Sl===null&&ul(e),h5(e,t)}function h5(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xr===null){if(e===null)throw Error(H(308));xr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xr=xr.next=t;return n}var fC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},hC=We.unstable_scheduleCallback,pC=We.unstable_NormalPriority,Ie={$$typeof:br,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nm(){return{controller:new fC,data:new Map,refCount:0}}function nu(e){e.refCount--,e.refCount===0&&hC(pC,function(){e.controller.abort()})}var ls=null,Uh=0,ki=0,bi=null;function mC(e,t){if(ls===null){var n=ls=[];Uh=0,ki=rg(),bi={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Uh++,t.then(B1,B1),t}function B1(){if(--Uh===0&&ls!==null){bi!==null&&(bi.status="fulfilled");var e=ls;ls=null,ki=0,bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gC(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var q1=W.S;W.S=function(e,t){R9=Jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&mC(e,t),q1!==null&&q1(e,t)};var ll=er(null);function Am(){var e=ll.current;return e!==null?e:Ee.pooledCache}function xc(e,t){t===null?Re(ll,ll.current):Re(ll,t.pool)}function p5(){var e=Am();return e===null?null:{parent:Ie._currentValue,pool:e}}var Yi=Error(H(460)),Lm=Error(H(474)),Jd=Error(H(542)),Qc={then:function(){}};function F1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function m5(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yr,yr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,G1(e),e;default:if(typeof t.status=="string")t.then(yr,yr);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(H(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,G1(e),e}throw il=t,Yi}}function $a(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(il=n,Yi):n}}var il=null;function V1(){if(il===null)throw Error(H(459));var e=il;return il=null,e}function G1(e){if(e===Yi||e===Jd)throw Error(H(483))}var yi=null,ks=0;function ku(e){var t=ks;return ks+=1,yi===null&&(yi=[]),m5(yi,e,t)}function mo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Du(e,t){throw t.$$typeof===nw?Error(H(525)):(e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function g5(e){function t(g,v){if(e){var x=g.deletions;x===null?(g.deletions=[v],g.flags|=16):x.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g){for(var v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function a(g,v){return g=wr(g,v),g.index=0,g.sibling=null,g}function l(g,v,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<v?(g.flags|=67108866,v):x):(g.flags|=67108866,v)):(g.flags|=1048576,v)}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function o(g,v,x,w){return v===null||v.tag!==6?(v=Zf(x,g.mode,w),v.return=g,v):(v=a(v,x),v.return=g,v)}function s(g,v,x,w){var E=x.type;return E===ei?d(g,v,x.props.children,w,x.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Vr&&$a(E)===v.type)?(v=a(v,x.props),mo(v,x),v.return=g,v):(v=yc(x.type,x.key,x.props,null,g.mode,w),mo(v,x),v.return=g,v)}function u(g,v,x,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=$f(x,g.mode,w),v.return=g,v):(v=a(v,x.children||[]),v.return=g,v)}function d(g,v,x,w,E){return v===null||v.tag!==7?(v=al(x,g.mode,w,E),v.return=g,v):(v=a(v,x),v.return=g,v)}function c(g,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Zf(""+v,g.mode,x),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Cu:return x=yc(v.type,v.key,v.props,null,g.mode,x),mo(x,v),x.return=g,x;case Qo:return v=$f(v,g.mode,x),v.return=g,v;case Vr:return v=$a(v),c(g,v,x)}if(Io(v)||fo(v))return v=al(v,g.mode,x,null),v.return=g,v;if(typeof v.then=="function")return c(g,ku(v),x);if(v.$$typeof===br)return c(g,Tu(g,v),x);Du(g,v)}return null}function f(g,v,x,w){var E=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return E!==null?null:o(g,v,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Cu:return x.key===E?s(g,v,x,w):null;case Qo:return x.key===E?u(g,v,x,w):null;case Vr:return x=$a(x),f(g,v,x,w)}if(Io(x)||fo(x))return E!==null?null:d(g,v,x,w,null);if(typeof x.then=="function")return f(g,v,ku(x),w);if(x.$$typeof===br)return f(g,v,Tu(g,x),w);Du(g,x)}return null}function h(g,v,x,w,E){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return g=g.get(x)||null,o(v,g,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Cu:return g=g.get(w.key===null?x:w.key)||null,s(v,g,w,E);case Qo:return g=g.get(w.key===null?x:w.key)||null,u(v,g,w,E);case Vr:return w=$a(w),h(g,v,x,w,E)}if(Io(w)||fo(w))return g=g.get(x)||null,d(v,g,w,E,null);if(typeof w.then=="function")return h(g,v,x,ku(w),E);if(w.$$typeof===br)return h(g,v,x,Tu(v,w),E);Du(v,w)}return null}function m(g,v,x,w){for(var E=null,S=null,M=v,N=v=0,j=null;M!==null&&N<x.length;N++){M.index>N?(j=M,M=null):j=M.sibling;var A=f(g,M,x[N],w);if(A===null){M===null&&(M=j);break}e&&M&&A.alternate===null&&t(g,M),v=l(A,v,N),S===null?E=A:S.sibling=A,S=A,M=j}if(N===x.length)return n(g,M),se&&gr(g,N),E;if(M===null){for(;N<x.length;N++)M=c(g,x[N],w),M!==null&&(v=l(M,v,N),S===null?E=M:S.sibling=M,S=M);return se&&gr(g,N),E}for(M=r(M);N<x.length;N++)j=h(M,g,N,x[N],w),j!==null&&(e&&j.alternate!==null&&M.delete(j.key===null?N:j.key),v=l(j,v,N),S===null?E=j:S.sibling=j,S=j);return e&&M.forEach(function(D){return t(g,D)}),se&&gr(g,N),E}function b(g,v,x,w){if(x==null)throw Error(H(151));for(var E=null,S=null,M=v,N=v=0,j=null,A=x.next();M!==null&&!A.done;N++,A=x.next()){M.index>N?(j=M,M=null):j=M.sibling;var D=f(g,M,A.value,w);if(D===null){M===null&&(M=j);break}e&&M&&D.alternate===null&&t(g,M),v=l(D,v,N),S===null?E=D:S.sibling=D,S=D,M=j}if(A.done)return n(g,M),se&&gr(g,N),E;if(M===null){for(;!A.done;N++,A=x.next())A=c(g,A.value,w),A!==null&&(v=l(A,v,N),S===null?E=A:S.sibling=A,S=A);return se&&gr(g,N),E}for(M=r(M);!A.done;N++,A=x.next())A=h(M,g,N,A.value,w),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?N:A.key),v=l(A,v,N),S===null?E=A:S.sibling=A,S=A);return e&&M.forEach(function(z){return t(g,z)}),se&&gr(g,N),E}function y(g,v,x,w){if(typeof x=="object"&&x!==null&&x.type===ei&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Cu:e:{for(var E=x.key;v!==null;){if(v.key===E){if(E=x.type,E===ei){if(v.tag===7){n(g,v.sibling),w=a(v,x.props.children),w.return=g,g=w;break e}}else if(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Vr&&$a(E)===v.type){n(g,v.sibling),w=a(v,x.props),mo(w,x),w.return=g,g=w;break e}n(g,v);break}else t(g,v);v=v.sibling}x.type===ei?(w=al(x.props.children,g.mode,w,x.key),w.return=g,g=w):(w=yc(x.type,x.key,x.props,null,g.mode,w),mo(w,x),w.return=g,g=w)}return i(g);case Qo:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(g,v.sibling),w=a(v,x.children||[]),w.return=g,g=w;break e}else{n(g,v);break}else t(g,v);v=v.sibling}w=$f(x,g.mode,w),w.return=g,g=w}return i(g);case Vr:return x=$a(x),y(g,v,x,w)}if(Io(x))return m(g,v,x,w);if(fo(x)){if(E=fo(x),typeof E!="function")throw Error(H(150));return x=E.call(x),b(g,v,x,w)}if(typeof x.then=="function")return y(g,v,ku(x),w);if(x.$$typeof===br)return y(g,v,Tu(g,x),w);Du(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(n(g,v.sibling),w=a(v,x),w.return=g,g=w):(n(g,v),w=Zf(x,g.mode,w),w.return=g,g=w),i(g)):n(g,v)}return function(g,v,x,w){try{ks=0;var E=y(g,v,x,w);return yi=null,E}catch(M){if(M===Yi||M===Jd)throw M;var S=It(29,M,null,g.mode);return S.lanes=w,S.return=g,S}finally{}}}var cl=g5(!0),v5=g5(!1),Gr=!1;function _m(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Fc(e),s5(e,null,n),t}return Wd(e,r,t,n),Fc(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_2(e,n)}}function Jf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?a=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?a=l=t:l=l.next=t}else a=l=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qh=!1;function os(){if(qh){var e=bi;if(e!==null)throw e}}function ss(e,t,n,r){qh=!1;var a=e.updateQueue;Gr=!1;var l=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,u=s.next;s.next=null,i===null?l=u:i.next=u,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==i&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=s))}if(l!==null){var c=a.baseState;i=0,d=u=s=null,o=l;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(oe&f)===f:(r&f)===f){f!==0&&f===ki&&(qh=!0),d!==null&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,b=o;f=t;var y=n;switch(b.tag){case 1:if(m=b.payload,typeof m=="function"){c=m.call(y,c,f);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=b.payload,f=typeof m=="function"?m.call(y,c,f):m,f==null)break e;c=je({},c,f);break e;case 2:Gr=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=h,s=c):d=d.next=h,i|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);d===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,l===null&&(a.shared.lanes=0),wa|=i,e.lanes=i,e.memoizedState=c}}function b5(e,t){if(typeof e!="function")throw Error(H(191,e));e.call(t)}function y5(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)b5(n[e],t)}var Di=er(null),Ic=er(0);function Q1(e,t){e=kr,Re(Ic,e),Re(Di,t),kr=e|t.baseLanes}function Fh(){Re(Ic,kr),Re(Di,Di.current)}function zm(){kr=Ic.current,it(Di),it(Ic)}var an=er(null),wn=null;function Xr(e){var t=e.alternate;Re(Be,Be.current&1),Re(an,e),wn===null&&(t===null||Di.current!==null||t.memoizedState!==null)&&(wn=e)}function Vh(e){Re(Be,Be.current),Re(an,e),wn===null&&(wn=e)}function x5(e){e.tag===22?(Re(Be,Be.current),Re(an,e),wn===null&&(wn=e)):Yr()}function Yr(){Re(Be,Be.current),Re(an,an.current)}function Qt(e){it(an),wn===e&&(wn=null),it(Be)}var Be=er(0);function Xc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||up(n)||cp(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 Or=0,re=null,Ce=null,Ge=null,Yc=!1,xi=!1,dl=!1,Zc=0,Ds=0,wi=null,vC=0;function _e(){throw Error(H(321))}function Pm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rn(e[n],t[n]))return!1;return!0}function Hm(e,t,n,r,a,l){return Or=l,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e===null||e.memoizedState===null?$5:Ym,dl=!1,l=n(r,a),dl=!1,xi&&(l=C5(t,n,r,a)),w5(e),l}function w5(e){W.H=js;var t=Ce!==null&&Ce.next!==null;if(Or=0,Ge=Ce=re=null,Yc=!1,Ds=0,wi=null,t)throw Error(H(300));e===null||Xe||(e=e.dependencies,e!==null&&Gc(e)&&(Xe=!0))}function C5(e,t,n,r){re=e;var a=0;do{if(xi&&(wi=null),Ds=0,xi=!1,25<=a)throw Error(H(301));if(a+=1,Ge=Ce=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}W.H=W5,l=t(n,r)}while(xi);return l}function bC(){var e=W.H,t=e.useState()[0];return t=typeof t.then=="function"?ru(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(re.flags|=1024),t}function Km(){var e=Zc!==0;return Zc=0,e}function Um(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bm(e){if(Yc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yc=!1}Or=0,Ge=Ce=re=null,xi=!1,Ds=Zc=0,wi=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function qe(){if(Ce===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ge===null?re.memoizedState:Ge.next;if(t!==null)Ge=t,Ce=e;else{if(e===null)throw re.alternate===null?Error(H(467)):Error(H(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function ef(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ru(e){var t=Ds;return Ds+=1,wi===null&&(wi=[]),e=m5(wi,e,t),t=re,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,W.H=t===null||t.memoizedState===null?$5:Ym),e}function tf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ru(e);if(e.$$typeof===br)return ht(e)}throw Error(H(438,String(e)))}function qm(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ef(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=rw;return t.index++,n}function Rr(e,t){return typeof t=="function"?t(e):t}function wc(e){var t=qe();return Fm(t,Ce,e)}function Fm(e,t,n){var r=e.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=n;var a=e.baseQueue,l=r.pending;if(l!==null){if(a!==null){var i=a.next;a.next=l.next,l.next=i}t.baseQueue=a=l,r.pending=null}if(l=e.baseState,a===null)e.memoizedState=l;else{t=a.next;var o=i=null,s=null,u=t,d=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(oe&c)===c:(Or&c)===c){var f=u.revertLane;if(f===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===ki&&(d=!0);else if((Or&f)===f){u=u.next,f===ki&&(d=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=c,i=l):s=s.next=c,re.lanes|=f,wa|=f;c=u.action,dl&&n(l,c),l=u.hasEagerState?u.eagerState:n(l,c)}else f={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=f,i=l):s=s.next=f,re.lanes|=c,wa|=c;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!rn(l,e.memoizedState)&&(Xe=!0,d&&(n=bi,n!==null)))throw n;e.memoizedState=l,e.baseState=i,e.baseQueue=s,r.lastRenderedState=l}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function e0(e){var t=qe(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,l=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do l=e(l,i.action),i=i.next;while(i!==a);rn(l,t.memoizedState)||(Xe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function S5(e,t,n){var r=re,a=qe(),l=se;if(l){if(n===void 0)throw Error(H(407));n=n()}else n=t();var i=!rn((Ce||a).memoizedState,n);if(i&&(a.memoizedState=n,Xe=!0),a=a.queue,Vm(O5.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||Ge!==null&&Ge.memoizedState.tag&1){if(r.flags|=2048,ji(9,{destroy:void 0},M5.bind(null,r,a,n,t),null),Ee===null)throw Error(H(349));l||Or&127||E5(r,t,n)}return n}function E5(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=ef(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function M5(e,t,n,r){t.value=n,t.getSnapshot=r,R5(t)&&T5(e)}function O5(e,t,n){return n(function(){R5(t)&&T5(e)})}function R5(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rn(e,n)}catch{return!0}}function T5(e){var t=Cl(e,2);t!==null&&_t(t,e,2)}function Gh(e){var t=bt();if(typeof e=="function"){var n=e;if(e=n(),dl){Wr(!0);try{n()}finally{Wr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:e},t}function k5(e,t,n,r){return e.baseState=n,Fm(e,Ce,typeof r=="function"?r:Rr)}function yC(e,t,n,r,a){if(rf(e))throw Error(H(485));if(e=t.action,e!==null){var l={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};W.T!==null?n(!0):l.isTransition=!1,r(l),n=t.pending,n===null?(l.next=t.pending=l,D5(t,l)):(l.next=n.next,t.pending=n.next=l)}}function D5(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var l=W.T,i={};W.T=i;try{var o=n(a,r),s=W.S;s!==null&&s(i,o),I1(e,t,o)}catch(u){Qh(e,t,u)}finally{l!==null&&i.types!==null&&(l.types=i.types),W.T=l}}else try{l=n(a,r),I1(e,t,l)}catch(u){Qh(e,t,u)}}function I1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){X1(e,t,r)},function(r){return Qh(e,t,r)}):X1(e,t,n)}function X1(e,t,n){t.status="fulfilled",t.value=n,j5(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,D5(e,n)))}function Qh(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,j5(t),t=t.next;while(t!==r)}e.action=null}function j5(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function N5(e,t){return t}function Y1(e,t){if(se){var n=Ee.formState;if(n!==null){e:{var r=re;if(se){if(ke){t:{for(var a=ke,l=yn;a.nodeType!==8;){if(!l){a=null;break t}if(a=Cn(a.nextSibling),a===null){a=null;break t}}l=a.data,a=l==="F!"||l==="F"?a:null}if(a){ke=Cn(a.nextSibling),r=a.data==="F!";break e}}ya(r)}r=!1}r&&(t=n[0])}}return n=bt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:N5,lastRenderedState:t},n.queue=r,n=X5.bind(null,re,r),r.dispatch=n,r=Gh(!1),l=Xm.bind(null,re,!1,r.queue),r=bt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=yC.bind(null,re,a,l,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Z1(e){var t=qe();return A5(t,Ce,e)}function A5(e,t,n){if(t=Fm(e,t,N5)[0],e=wc(Rr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ru(t)}catch(i){throw i===Yi?Jd:i}else r=t;t=qe();var a=t.queue,l=a.dispatch;return n!==t.memoizedState&&(re.flags|=2048,ji(9,{destroy:void 0},xC.bind(null,a,n),null)),[r,l,e]}function xC(e,t){e.action=t}function $1(e){var t=qe(),n=Ce;if(n!==null)return A5(t,n,e);qe(),t=t.memoizedState,n=qe();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ji(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=re.updateQueue,t===null&&(t=ef(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function L5(){return qe().memoizedState}function Cc(e,t,n,r){var a=bt();re.flags|=e,a.memoizedState=ji(1|t,{destroy:void 0},n,r===void 0?null:r)}function nf(e,t,n,r){var a=qe();r=r===void 0?null:r;var l=a.memoizedState.inst;Ce!==null&&r!==null&&Pm(r,Ce.memoizedState.deps)?a.memoizedState=ji(t,l,n,r):(re.flags|=e,a.memoizedState=ji(1|t,l,n,r))}function W1(e,t){Cc(8390656,8,e,t)}function Vm(e,t){nf(2048,8,e,t)}function wC(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=ef(),re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _5(e){var t=qe().memoizedState;return wC({ref:t,nextImpl:e}),function(){if(pe&2)throw Error(H(440));return t.impl.apply(void 0,arguments)}}function z5(e,t){return nf(4,2,e,t)}function P5(e,t){return nf(4,4,e,t)}function H5(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function K5(e,t,n){n=n!=null?n.concat([e]):null,nf(4,4,H5.bind(null,t,e),n)}function Gm(){}function U5(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Pm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function B5(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Pm(t,r[1]))return r[0];if(r=e(),dl){Wr(!0);try{e()}finally{Wr(!1)}}return n.memoizedState=[r,t],r}function Qm(e,t,n){return n===void 0||Or&1073741824&&!(oe&261930)?e.memoizedState=t:(e.memoizedState=n,e=k9(),re.lanes|=e,wa|=e,n)}function q5(e,t,n,r){return rn(n,t)?n:Di.current!==null?(e=Qm(e,n,r),rn(e,t)||(Xe=!0),e):!(Or&42)||Or&1073741824&&!(oe&261930)?(Xe=!0,e.memoizedState=n):(e=k9(),re.lanes|=e,wa|=e,t)}function F5(e,t,n,r,a){var l=me.p;me.p=l!==0&&8>l?l:8;var i=W.T,o={};W.T=o,Xm(e,!1,t,n);try{var s=a(),u=W.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=gC(s,r);us(e,t,d,nn(e))}else us(e,t,r,nn(e))}catch(c){us(e,t,{then:function(){},status:"rejected",reason:c},nn())}finally{me.p=l,i!==null&&o.types!==null&&(i.types=o.types),W.T=i}}function CC(){}function Ih(e,t,n,r){if(e.tag!==5)throw Error(H(476));var a=V5(e).queue;F5(e,a,t,rl,n===null?CC:function(){return G5(e),n(r)})}function V5(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:rl,baseState:rl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:rl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function G5(e){var t=V5(e);t.next===null&&(t=e.alternate.memoizedState),us(e,t.next.queue,{},nn())}function Im(){return ht(Ls)}function Q5(){return qe().memoizedState}function I5(){return qe().memoizedState}function SC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=nn();e=oa(n);var r=sa(t,e,n);r!==null&&(_t(r,t,n),is(r,t,n)),t={cache:Nm()},e.payload=t;return}t=t.return}}function EC(e,t,n){var r=nn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rf(e)?Y5(t,n):(n=Tm(e,t,n,r),n!==null&&(_t(n,e,r),Z5(n,t,r)))}function X5(e,t,n){var r=nn();us(e,t,n,r)}function us(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rf(e))Y5(t,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,o=l(i,n);if(a.hasEagerState=!0,a.eagerState=o,rn(o,i))return Wd(e,t,a,0),Ee===null&&$d(),!1}catch{}finally{}if(n=Tm(e,t,a,r),n!==null)return _t(n,e,r),Z5(n,t,r),!0}return!1}function Xm(e,t,n,r){if(r={lane:2,revertLane:rg(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rf(e)){if(t)throw Error(H(479))}else t=Tm(e,n,r,2),t!==null&&_t(t,e,2)}function rf(e){var t=e.alternate;return e===re||t!==null&&t===re}function Y5(e,t){xi=Yc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Z5(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_2(e,n)}}var js={readContext:ht,use:tf,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useInsertionEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useSyncExternalStore:_e,useId:_e,useHostTransitionStatus:_e,useFormState:_e,useActionState:_e,useOptimistic:_e,useMemoCache:_e,useCacheRefresh:_e};js.useEffectEvent=_e;var $5={readContext:ht,use:tf,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:W1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Cc(4194308,4,H5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cc(4194308,4,e,t)},useInsertionEffect:function(e,t){Cc(4,2,e,t)},useMemo:function(e,t){var n=bt();t=t===void 0?null:t;var r=e();if(dl){Wr(!0);try{e()}finally{Wr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bt();if(n!==void 0){var a=n(t);if(dl){Wr(!0);try{n(t)}finally{Wr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=EC.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gh(e);var t=e.queue,n=X5.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gm,useDeferredValue:function(e,t){var n=bt();return Qm(n,e,t)},useTransition:function(){var e=Gh(!1);return e=F5.bind(null,re,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=re,a=bt();if(se){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ee===null)throw Error(H(349));oe&127||E5(r,t,n)}a.memoizedState=n;var l={value:n,getSnapshot:t};return a.queue=l,W1(O5.bind(null,r,l,e),[e]),r.flags|=2048,ji(9,{destroy:void 0},M5.bind(null,r,l,n,t),null),n},useId:function(){var e=bt(),t=Ee.identifierPrefix;if(se){var n=Zn,r=Yn;n=(r&~(1<<32-tn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Zc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=vC++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Im,useFormState:Y1,useActionState:Y1,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xm.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:qm,useCacheRefresh:function(){return bt().memoizedState=SC.bind(null,re)},useEffectEvent:function(e){var t=bt(),n={impl:e};return t.memoizedState=n,function(){if(pe&2)throw Error(H(440));return n.impl.apply(void 0,arguments)}}},Ym={readContext:ht,use:tf,useCallback:U5,useContext:ht,useEffect:Vm,useImperativeHandle:K5,useInsertionEffect:z5,useLayoutEffect:P5,useMemo:B5,useReducer:wc,useRef:L5,useState:function(){return wc(Rr)},useDebugValue:Gm,useDeferredValue:function(e,t){var n=qe();return q5(n,Ce.memoizedState,e,t)},useTransition:function(){var e=wc(Rr)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:ru(e),t]},useSyncExternalStore:S5,useId:Q5,useHostTransitionStatus:Im,useFormState:Z1,useActionState:Z1,useOptimistic:function(e,t){var n=qe();return k5(n,Ce,e,t)},useMemoCache:qm,useCacheRefresh:I5};Ym.useEffectEvent=_5;var W5={readContext:ht,use:tf,useCallback:U5,useContext:ht,useEffect:Vm,useImperativeHandle:K5,useInsertionEffect:z5,useLayoutEffect:P5,useMemo:B5,useReducer:e0,useRef:L5,useState:function(){return e0(Rr)},useDebugValue:Gm,useDeferredValue:function(e,t){var n=qe();return Ce===null?Qm(n,e,t):q5(n,Ce.memoizedState,e,t)},useTransition:function(){var e=e0(Rr)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:ru(e),t]},useSyncExternalStore:S5,useId:Q5,useHostTransitionStatus:Im,useFormState:$1,useActionState:$1,useOptimistic:function(e,t){var n=qe();return Ce!==null?k5(n,Ce,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qm,useCacheRefresh:I5};W5.useEffectEvent=_5;function t0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xh={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nn(),a=oa(r);a.payload=t,n!=null&&(a.callback=n),t=sa(e,a,r),t!==null&&(_t(t,e,r),is(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nn(),a=oa(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=sa(e,a,r),t!==null&&(_t(t,e,r),is(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nn(),r=oa(n);r.tag=2,t!=null&&(r.callback=t),t=sa(e,r,n),t!==null&&(_t(t,e,n),is(t,e,n))}};function J1(e,t,n,r,a,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!Os(n,r)||!Os(a,l):!0}function ev(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&&Xh.enqueueReplaceState(t,t.state,null)}function fl(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=je({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function J5(e){qc(e)}function e9(e){console.error(e)}function t9(e){qc(e)}function $c(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function tv(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Yh(e,t,n){return n=oa(n),n.tag=3,n.payload={element:null},n.callback=function(){$c(e,t)},n}function n9(e){return e=oa(e),e.tag=3,e}function r9(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var l=r.value;e.payload=function(){return a(l)},e.callback=function(){tv(t,n,r)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){tv(t,n,r),typeof a!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function MC(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=an.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?nd():n.alternate===null&&ze===0&&(ze=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Qc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),f0(e,r,a)),!1;case 22:return n.flags|=65536,r===Qc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),f0(e,r,a)),!1}throw Error(H(435,n.tag))}return f0(e,r,a),nd(),!1}if(se)return t=an.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==zh&&(e=Error(H(422),{cause:r}),Ts(bn(e,n)))):(r!==zh&&(t=Error(H(423),{cause:r}),Ts(bn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=bn(r,n),a=Yh(e.stateNode,r,a),Jf(e,a),ze!==4&&(ze=2)),!1;var l=Error(H(520),{cause:r});if(l=bn(l,n),fs===null?fs=[l]:fs.push(l),ze!==4&&(ze=2),t===null)return!0;r=bn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Yh(n.stateNode,r,e),Jf(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ua===null||!ua.has(l))))return n.flags|=65536,a&=-a,n.lanes|=a,a=n9(a),r9(a,e,n,r),Jf(n,a),!1}n=n.return}while(n!==null);return!1}var Zm=Error(H(461)),Xe=!1;function ct(e,t,n,r){t.child=e===null?v5(t,null,n,r):cl(t,e.child,n,r)}function nv(e,t,n,r,a){n=n.render;var l=t.ref;if("ref"in r){var i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}else i=r;return ul(t),r=Hm(e,t,n,i,l,a),o=Km(),e!==null&&!Xe?(Um(e,t,a),Tr(e,t,a)):(se&&o&&Dm(t),t.flags|=1,ct(e,t,r,a),t.child)}function rv(e,t,n,r,a){if(e===null){var l=n.type;return typeof l=="function"&&!km(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,a9(e,t,l,r,a)):(e=yc(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!$m(e,a)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:Os,n(i,r)&&e.ref===t.ref)return Tr(e,t,a)}return t.flags|=1,e=wr(l,r),e.ref=t.ref,e.return=t,t.child=e}function a9(e,t,n,r,a){if(e!==null){var l=e.memoizedProps;if(Os(l,r)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=r=l,$m(e,a))e.flags&131072&&(Xe=!0);else return t.lanes=e.lanes,Tr(e,t,a)}return Zh(e,t,n,r,a)}function l9(e,t,n,r){var a=r.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~l}else r=0,t.child=null;return av(e,t,l,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xc(t,l!==null?l.cachePool:null),l!==null?Q1(t,l):Fh(),x5(t);else return r=t.lanes=536870912,av(e,t,l!==null?l.baseLanes|n:n,n,r)}else l!==null?(xc(t,l.cachePool),Q1(t,l),Yr(),t.memoizedState=null):(e!==null&&xc(t,null),Fh(),Yr());return ct(e,t,a,n),t.child}function Yo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function av(e,t,n,r,a){var l=Am();return l=l===null?null:{parent:Ie._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&xc(t,null),Fh(),x5(t),e!==null&&Xi(e,t,r,!0),t.childLanes=a,null}function Sc(e,t){return t=Wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lv(e,t,n){return cl(t,e.child,null,n),e=Sc(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function OC(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(se){if(r.mode==="hidden")return e=Sc(t,r),t.lanes=536870912,Yo(null,e);if(Vh(t),(e=ke)?(e=$9(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Yn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=c5(e),n.return=t,t.child=n,ft=t,ke=null)):e=null,e===null)throw ya(t);return t.lanes=536870912,null}return Sc(t,r)}var l=e.memoizedState;if(l!==null){var i=l.dehydrated;if(Vh(t),a)if(t.flags&256)t.flags&=-257,t=lv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(H(558));else if(Xe||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,Xe||a){if(r=Ee,r!==null&&(i=z2(r,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,Cl(e,i),_t(r,e,i),Zm;nd(),t=lv(e,t,n)}else e=l.treeContext,ke=Cn(i.nextSibling),ft=t,se=!0,ia=null,yn=!1,e!==null&&f5(t,e),t=Sc(t,r),t.flags|=4096;return t}return e=wr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ec(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(H(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zh(e,t,n,r,a){return ul(t),n=Hm(e,t,n,r,void 0,a),r=Km(),e!==null&&!Xe?(Um(e,t,a),Tr(e,t,a)):(se&&r&&Dm(t),t.flags|=1,ct(e,t,n,a),t.child)}function iv(e,t,n,r,a,l){return ul(t),t.updateQueue=null,n=C5(t,r,n,a),w5(e),r=Km(),e!==null&&!Xe?(Um(e,t,l),Tr(e,t,l)):(se&&r&&Dm(t),t.flags|=1,ct(e,t,n,l),t.child)}function ov(e,t,n,r,a){if(ul(t),t.stateNode===null){var l=si,i=n.contextType;typeof i=="object"&&i!==null&&(l=ht(i)),l=new n(r,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Xh,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=r,l.state=t.memoizedState,l.refs={},_m(t),i=n.contextType,l.context=typeof i=="object"&&i!==null?ht(i):si,l.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(t0(t,n,i,r),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&Xh.enqueueReplaceState(l,l.state,null),ss(t,r,l,a),os(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,s=fl(n,o);l.props=s;var u=l.context,d=n.contextType;i=si,typeof d=="object"&&d!==null&&(i=ht(d));var c=n.getDerivedStateFromProps;d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||u!==i)&&ev(t,l,r,i),Gr=!1;var f=t.memoizedState;l.state=f,ss(t,r,l,a),os(),u=t.memoizedState,o||f!==u||Gr?(typeof c=="function"&&(t0(t,n,c,r),u=t.memoizedState),(s=Gr||J1(t,n,s,r,f,u,i))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=i,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Bh(e,t),i=t.memoizedProps,d=fl(n,i),l.props=d,c=t.pendingProps,f=l.context,u=n.contextType,s=si,typeof u=="object"&&u!==null&&(s=ht(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==c||f!==s)&&ev(t,l,r,s),Gr=!1,f=t.memoizedState,l.state=f,ss(t,r,l,a),os();var h=t.memoizedState;i!==c||f!==h||Gr||e!==null&&e.dependencies!==null&&Gc(e.dependencies)?(typeof o=="function"&&(t0(t,n,o,r),h=t.memoizedState),(d=Gr||J1(t,n,d,r,f,h,s)||e!==null&&e.dependencies!==null&&Gc(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=d):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return l=r,Ec(e,t),r=(t.flags&128)!==0,l||r?(l=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&r?(t.child=cl(t,e.child,null,a),t.child=cl(t,null,n,a)):ct(e,t,n,a),t.memoizedState=l.state,e=t.child):e=Tr(e,t,a),e}function sv(e,t,n,r){return sl(),t.flags|=256,ct(e,t,n,r),t.child}var n0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function r0(e){return{baseLanes:e,cachePool:p5()}}function a0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function i9(e,t,n){var r=t.pendingProps,a=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(a?Xr(t):Yr(),(e=ke)?(e=$9(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Yn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=c5(e),n.return=t,t.child=n,ft=t,ke=null)):e=null,e===null)throw ya(t);return cp(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Yr(),a=t.mode,o=Wc({mode:"hidden",children:o},a),r=al(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=r0(n),r.childLanes=a0(e,i,n),t.memoizedState=n0,Yo(null,r)):(Xr(t),$h(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(Xr(t),t.flags&=-257,t=l0(e,t,n)):t.memoizedState!==null?(Yr(),t.child=e.child,t.flags|=128,t=null):(Yr(),o=r.fallback,a=t.mode,r=Wc({mode:"visible",children:r.children},a),o=al(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,cl(t,e.child,null,n),r=t.child,r.memoizedState=r0(n),r.childLanes=a0(e,i,n),t.memoizedState=n0,t=Yo(null,r));else if(Xr(t),cp(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,r=Error(H(419)),r.stack="",r.digest=i,Ts({value:r,source:null,stack:null}),t=l0(e,t,n)}else if(Xe||Xi(e,t,n,!1),i=(n&e.childLanes)!==0,Xe||i){if(i=Ee,i!==null&&(r=z2(i,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,Cl(e,r),_t(i,e,r),Zm;up(o)||nd(),t=l0(e,t,n)}else up(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ke=Cn(o.nextSibling),ft=t,se=!0,ia=null,yn=!1,e!==null&&f5(t,e),t=$h(t,r.children),t.flags|=4096);return t}return a?(Yr(),o=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=wr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=wr(u,o):(o=al(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Yo(null,r),r=t.child,o=e.child.memoizedState,o===null?o=r0(n):(a=o.cachePool,a!==null?(s=Ie._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=p5(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=a0(e,i,n),t.memoizedState=n0,Yo(e.child,r)):(Xr(t),n=e.child,e=n.sibling,n=wr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function $h(e,t){return t=Wc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wc(e,t){return e=It(22,e,null,t),e.lanes=0,e}function l0(e,t,n){return cl(t,e.child,null,n),e=$h(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hh(e.return,t,n)}function i0(e,t,n,r,a,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=l)}function o9(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;r=r.children;var i=Be.current,o=(i&2)!==0;if(o?(i=i&1|2,t.flags|=128):i&=1,Re(Be,i),ct(e,t,r,n),r=se?Rs:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uv(e,n,t);else if(e.tag===19)uv(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}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Xc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),i0(t,!1,a,n,l,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Xc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}i0(t,!0,n,null,l,r);break;case"together":i0(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,!(n&t.childLanes))if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=wr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $m(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Gc(e)))}function RC(e,t,n){switch(t.tag){case 3:Hc(t,t.stateNode.containerInfo),Ir(t,Ie,e.memoizedState.cache),sl();break;case 27:case 5:Mh(t);break;case 4:Hc(t,t.stateNode.containerInfo);break;case 10:Ir(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vh(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Xr(t),t.flags|=128,null):n&t.child.childLanes?i9(e,t,n):(Xr(t),e=Tr(e,t,n),e!==null?e.sibling:null);Xr(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Xi(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return o9(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Re(Be,Be.current),r)break;return null;case 22:return t.lanes=0,l9(e,t,n,t.pendingProps);case 24:Ir(t,Ie,e.memoizedState.cache)}return Tr(e,t,n)}function s9(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!$m(e,n)&&!(t.flags&128))return Xe=!1,RC(e,t,n);Xe=!!(e.flags&131072)}else Xe=!1,se&&t.flags&1048576&&d5(t,Rs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e=="function")km(e)?(r=fl(e,r),t.tag=1,t=ov(null,t,e,r,n)):(t.tag=0,t=Zh(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===mm){t.tag=11,t=nv(null,t,e,r,n);break e}else if(a===gm){t.tag=14,t=rv(null,t,e,r,n);break e}}throw t=Sh(e)||e,Error(H(306,t,""))}}return t;case 0:return Zh(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=fl(r,t.pendingProps),ov(e,t,r,a,n);case 3:e:{if(Hc(t,t.stateNode.containerInfo),e===null)throw Error(H(387));r=t.pendingProps;var l=t.memoizedState;a=l.element,Bh(e,t),ss(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Ir(t,Ie,r),r!==l.cache&&Kh(t,[Ie],n,!0),os(),r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=sv(e,t,r,n);break e}else if(r!==a){a=bn(Error(H(424)),t),Ts(a),t=sv(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=Cn(e.firstChild),ft=t,se=!0,ia=null,yn=!0,n=v5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(sl(),r===a){t=Tr(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 26:return Ec(e,t),e===null?(n=kv(t.type,null,t.pendingProps,null))?t.memoizedState=n:se||(n=t.type,e=t.pendingProps,r=id(la.current).createElement(n),r[dt]=t,r[zt]=e,pt(r,n,e),lt(r),t.stateNode=r):t.memoizedState=kv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Mh(t),e===null&&se&&(r=t.stateNode=W9(t.type,t.pendingProps,la.current),ft=t,yn=!0,a=ke,Ra(t.type)?(dp=a,ke=Cn(r.firstChild)):ke=a),ct(e,t,t.pendingProps.children,n),Ec(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((a=r=ke)&&(r=rS(r,t.type,t.pendingProps,yn),r!==null?(t.stateNode=r,ft=t,ke=Cn(r.firstChild),yn=!1,a=!0):a=!1),a||ya(t)),Mh(t),a=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,r=l.children,op(a,l)?r=null:i!==null&&op(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=Hm(e,t,bC,null,null,n),Ls._currentValue=a),Ec(e,t),ct(e,t,r,n),t.child;case 6:return e===null&&se&&((e=n=ke)&&(n=aS(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ft=t,ke=null,e=!0):e=!1),e||ya(t)),null;case 13:return i9(e,t,n);case 4:return Hc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cl(t,null,r,n):ct(e,t,r,n),t.child;case 11:return nv(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ir(t,t.type,r.value),ct(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ul(t),a=ht(a),r=r(a),t.flags|=1,ct(e,t,r,n),t.child;case 14:return rv(e,t,t.type,t.pendingProps,n);case 15:return a9(e,t,t.type,t.pendingProps,n);case 19:return o9(e,t,n);case 31:return OC(e,t,n);case 22:return l9(e,t,n,t.pendingProps);case 24:return ul(t),r=ht(Ie),e===null?(a=Am(),a===null&&(a=Ee,l=Nm(),a.pooledCache=l,l.refCount++,l!==null&&(a.pooledCacheLanes|=n),a=l),t.memoizedState={parent:r,cache:a},_m(t),Ir(t,Ie,a)):(e.lanes&n&&(Bh(e,t),ss(t,null,null,n),os()),a=e.memoizedState,l=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ir(t,Ie,r)):(r=l.cache,Ir(t,Ie,r),r!==a.cache&&Kh(t,[Ie],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(H(156,t.tag))}function ir(e){e.flags|=4}function o0(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(N9())e.flags|=8192;else throw il=Qc,Lm}else e.flags&=-16777217}function cv(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!t8(t))if(N9())e.flags|=8192;else throw il=Qc,Lm}function ju(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?A2():536870912,e.lanes|=t,Ni|=t)}function go(e,t){if(!se)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 Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function TC(e,t,n){var r=t.pendingProps;switch(jm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Cr(Ie),Oi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Al(t)?ir(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wf())),Te(t),null;case 26:var a=t.type,l=t.memoizedState;return e===null?(ir(t),l!==null?(Te(t),cv(t,l)):(Te(t),o0(t,a,null,r,n))):l?l!==e.memoizedState?(ir(t),Te(t),cv(t,l)):(Te(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ir(t),Te(t),o0(t,a,e,r,n)),null;case 27:if(Kc(t),n=la.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}e=Jn.current,Al(t)?K1(t):(e=W9(a,r,n),t.stateNode=e,ir(t))}return Te(t),null;case 5:if(Kc(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}if(l=Jn.current,Al(t))K1(t);else{var i=id(la.current);switch(l){case 1:l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":l=i.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?l.multiple=!0:r.size&&(l.size=r.size);break;default:l=typeof r.is=="string"?i.createElement(a,{is:r.is}):i.createElement(a)}}l[dt]=t,l[zt]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)l.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=l;e:switch(pt(l,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ir(t)}}return Te(t),o0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(e=la.current,Al(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ft,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||X9(e.nodeValue,n)),e||ya(t,!0)}else e=id(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Te(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Al(t),n!==null){if(e===null){if(!r)throw Error(H(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(557));e[dt]=t}else sl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),e=!1}else n=Wf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if(t.flags&128)throw Error(H(558))}return Te(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Al(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(H(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(H(317));a[dt]=t}else sl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),a=!1}else a=Wf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ju(t,t.updateQueue),Te(t),null);case 4:return Oi(),e===null&&ag(t.stateNode.containerInfo),Te(t),null;case 10:return Cr(t.type),Te(t),null;case 19:if(it(Be),r=t.memoizedState,r===null)return Te(t),null;if(a=(t.flags&128)!==0,l=r.rendering,l===null)if(a)go(r,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Xc(e),l!==null){for(t.flags|=128,go(r,!1),e=l.updateQueue,t.updateQueue=e,ju(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)u5(n,e),n=n.sibling;return Re(Be,Be.current&1|2),se&&gr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Jt()>ed&&(t.flags|=128,a=!0,go(r,!1),t.lanes=4194304)}else{if(!a)if(e=Xc(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ju(t,e),go(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!se)return Te(t),null}else 2*Jt()-r.renderingStartTime>ed&&n!==536870912&&(t.flags|=128,a=!0,go(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(e=r.last,e!==null?e.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Jt(),e.sibling=null,n=Be.current,Re(Be,a?n&1|2:n&1),se&&gr(t,r.treeForkCount),e):(Te(t),null);case 22:case 23:return Qt(t),zm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),n=t.updateQueue,n!==null&&ju(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&it(ll),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Cr(Ie),Te(t),null;case 25:return null;case 30:return null}throw Error(H(156,t.tag))}function kC(e,t){switch(jm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(Ie),Oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Kc(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(H(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return it(Be),null;case 4:return Oi(),null;case 10:return Cr(t.type),null;case 22:case 23:return Qt(t),zm(),e!==null&&it(ll),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cr(Ie),null;case 25:return null;default:return null}}function u9(e,t){switch(jm(t),t.tag){case 3:Cr(Ie),Oi();break;case 26:case 27:case 5:Kc(t);break;case 4:Oi();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:it(Be);break;case 10:Cr(t.type);break;case 22:case 23:Qt(t),zm(),e!==null&&it(ll);break;case 24:Cr(Ie)}}function au(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var l=n.create,i=n.inst;r=l(),i.destroy=r}n=n.next}while(n!==a)}}catch(o){ye(t,t.return,o)}}function xa(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var l=a.next;r=l;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,a=t;var s=n,u=o;try{u()}catch(d){ye(a,s,d)}}}r=r.next}while(r!==l)}}catch(d){ye(t,t.return,d)}}function c9(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{y5(t,n)}catch(r){ye(e,e.return,r)}}}function d9(e,t,n){n.props=fl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){ye(e,t,r)}}function cs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){ye(e,t,a)}}function $n(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){ye(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){ye(e,t,a)}else n.current=null}function f9(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){ye(e,e.return,a)}}function s0(e,t,n){try{var r=e.stateNode;$C(r,e.type,n,t),r[zt]=t}catch(a){ye(e,e.return,a)}}function h9(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function u0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h9(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.tag===27&&Ra(e.type)||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 Wh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yr));else if(r!==4&&(r===27&&Ra(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wh(e,t,n),e=e.sibling;e!==null;)Wh(e,t,n),e=e.sibling}function Jc(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&&(r===27&&Ra(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function p9(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);pt(t,r,n),t[dt]=e,t[zt]=n}catch(l){ye(e,e.return,l)}}var vr=!1,Qe=!1,c0=!1,dv=typeof WeakSet=="function"?WeakSet:Set,rt=null;function DC(e,t){if(e=e.containerInfo,lp=cd,e=t5(e),Om(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 a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,o=-1,s=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(o=i+a),c!==l||r!==0&&c.nodeType!==3||(s=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)f=c,c=h;for(;;){if(c===e)break t;if(f===n&&++u===a&&(o=i),f===l&&++d===r&&(s=i),(h=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=h}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ip={focusedElem:e,selectionRange:n},cd=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,a=l.memoizedProps,l=l.memoizedState,r=n.stateNode;try{var m=fl(n.type,a);e=r.getSnapshotBeforeUpdate(m,l),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){ye(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(H(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function m9(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sr(e,n),r&4&&au(5,n);break;case 1:if(sr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){ye(n,n.return,i)}else{var a=fl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){ye(n,n.return,i)}}r&64&&c9(n),r&512&&cs(n,n.return);break;case 3:if(sr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{y5(e,t)}catch(i){ye(n,n.return,i)}}break;case 27:t===null&&r&4&&p9(n);case 26:case 5:sr(e,n),t===null&&r&4&&f9(n),r&512&&cs(n,n.return);break;case 12:sr(e,n);break;case 31:sr(e,n),r&4&&b9(e,n);break;case 13:sr(e,n),r&4&&y9(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=KC.bind(null,n),lS(e,n))));break;case 22:if(r=n.memoizedState!==null||vr,!r){t=t!==null&&t.memoizedState!==null||Qe,a=vr;var l=Qe;vr=r,(Qe=t)&&!l?mr(e,n,(n.subtreeFlags&8772)!==0):sr(e,n),vr=a,Qe=l}break;case 30:break;default:sr(e,n)}}function g9(e){var t=e.alternate;t!==null&&(e.alternate=null,g9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xm(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ne=null,kt=!1;function or(e,t,n){for(n=n.child;n!==null;)v9(e,t,n),n=n.sibling}function v9(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount($s,n)}catch{}switch(n.tag){case 26:Qe||$n(n,t),or(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qe||$n(n,t);var r=Ne,a=kt;Ra(n.type)&&(Ne=n.stateNode,kt=!1),or(e,t,n),ps(n.stateNode),Ne=r,kt=a;break;case 5:Qe||$n(n,t);case 6:if(r=Ne,a=kt,Ne=null,or(e,t,n),Ne=r,kt=a,Ne!==null)if(kt)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(n.stateNode)}catch(l){ye(n,t,l)}else try{Ne.removeChild(n.stateNode)}catch(l){ye(n,t,l)}break;case 18:Ne!==null&&(kt?(e=Ne,Ev(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),zi(e)):Ev(Ne,n.stateNode));break;case 4:r=Ne,a=kt,Ne=n.stateNode.containerInfo,kt=!0,or(e,t,n),Ne=r,kt=a;break;case 0:case 11:case 14:case 15:xa(2,n,t),Qe||xa(4,n,t),or(e,t,n);break;case 1:Qe||($n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&d9(n,t,r)),or(e,t,n);break;case 21:or(e,t,n);break;case 22:Qe=(r=Qe)||n.memoizedState!==null,or(e,t,n),Qe=r;break;default:or(e,t,n)}}function b9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zi(e)}catch(n){ye(t,t.return,n)}}}function y9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zi(e)}catch(n){ye(t,t.return,n)}}function jC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dv),t;default:throw Error(H(435,e.tag))}}function Nu(e,t){var n=jC(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=UC.bind(null,e,r);r.then(a,a)}})}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],l=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 27:if(Ra(o.type)){Ne=o.stateNode,kt=!1;break e}break;case 5:Ne=o.stateNode,kt=!1;break e;case 3:case 4:Ne=o.stateNode.containerInfo,kt=!0;break e}o=o.return}if(Ne===null)throw Error(H(160));v9(l,i,a),Ne=null,kt=!1,l=a.alternate,l!==null&&(l.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)x9(t,e),t=t.sibling}var _n=null;function x9(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Et(e),r&4&&(xa(3,e,e.return),au(3,e),xa(5,e,e.return));break;case 1:St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),r&64&&vr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=_n;if(St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),r&4){var l=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":l=a.getElementsByTagName("title")[0],(!l||l[eu]||l[dt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(r),a.head.insertBefore(l,a.querySelector("head > title"))),pt(l,r,n),l[dt]=e,lt(l),r=l;break e;case"link":var i=jv("link","href",a).get(r+(n.href||""));if(i){for(var o=0;o<i.length;o++)if(l=i[o],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(o,1);break t}}l=a.createElement(r),pt(l,r,n),a.head.appendChild(l);break;case"meta":if(i=jv("meta","content",a).get(r+(n.content||""))){for(o=0;o<i.length;o++)if(l=i[o],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(o,1);break t}}l=a.createElement(r),pt(l,r,n),a.head.appendChild(l);break;default:throw Error(H(468,r))}l[dt]=e,lt(l),r=l}e.stateNode=r}else Nv(a,e.type,e.stateNode);else e.stateNode=Dv(a,r,e.memoizedProps);else l!==r?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,r===null?Nv(a,e.type,e.stateNode):Dv(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&s0(e,e.memoizedProps,n.memoizedProps)}break;case 27:St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),n!==null&&r&4&&s0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(St(t,e),Et(e),r&512&&(Qe||n===null||$n(n,n.return)),e.flags&32){a=e.stateNode;try{Ti(a,"")}catch(m){ye(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,s0(e,a,n!==null?n.memoizedProps:a)),r&1024&&(c0=!0);break;case 6:if(St(t,e),Et(e),r&4){if(e.stateNode===null)throw Error(H(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){ye(e,e.return,m)}}break;case 3:if(Rc=null,a=_n,_n=od(t.containerInfo),St(t,e),_n=a,Et(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zi(t.containerInfo)}catch(m){ye(e,e.return,m)}c0&&(c0=!1,w9(e));break;case 4:r=_n,_n=od(e.stateNode.containerInfo),St(t,e),Et(e),_n=r;break;case 12:St(t,e),Et(e);break;case 31:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 13:St(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(af=Jt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=vr,d=Qe;if(vr=u||a,Qe=d||s,St(t,e),Qe=d,vr=u,Et(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||vr||Qe||Wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(l=s.stateNode,a)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=s.stateNode;var c=s.memoizedProps.style,f=c!=null&&c.hasOwnProperty("display")?c.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(m){ye(s,s.return,m)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(m){ye(s,s.return,m)}}}else if(t.tag===18){if(n===null){s=t;try{var h=s.stateNode;a?Mv(h,!0):Mv(s.stateNode,!1)}catch(m){ye(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Nu(e,n))));break;case 19:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 30:break;case 21:break;default:St(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(h9(r)){n=r;break}r=r.return}if(n==null)throw Error(H(160));switch(n.tag){case 27:var a=n.stateNode,l=u0(e);Jc(e,l,a);break;case 5:var i=n.stateNode;n.flags&32&&(Ti(i,""),n.flags&=-33);var o=u0(e);Jc(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,u=u0(e);Wh(e,u,s);break;default:throw Error(H(161))}}catch(d){ye(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function w9(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;w9(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)m9(e,t.alternate,t),t=t.sibling}function Wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xa(4,t,t.return),Wa(t);break;case 1:$n(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&d9(t,t.return,n),Wa(t);break;case 27:ps(t.stateNode);case 26:case 5:$n(t,t.return),Wa(t);break;case 22:t.memoizedState===null&&Wa(t);break;case 30:Wa(t);break;default:Wa(t)}e=e.sibling}}function mr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:mr(a,l,n),au(4,l);break;case 1:if(mr(a,l,n),r=l,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){ye(r,r.return,u)}if(r=l,a=r.updateQueue,a!==null){var o=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)b5(s[a],o)}catch(u){ye(r,r.return,u)}}n&&i&64&&c9(l),cs(l,l.return);break;case 27:p9(l);case 26:case 5:mr(a,l,n),n&&r===null&&i&4&&f9(l),cs(l,l.return);break;case 12:mr(a,l,n);break;case 31:mr(a,l,n),n&&i&4&&b9(a,l);break;case 13:mr(a,l,n),n&&i&4&&y9(a,l);break;case 22:l.memoizedState===null&&mr(a,l,n),cs(l,l.return);break;case 30:break;default:mr(a,l,n)}t=t.sibling}}function Wm(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&nu(n))}function Jm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nu(e))}function Nn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)C9(e,t,n,r),t=t.sibling}function C9(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Nn(e,t,n,r),a&2048&&au(9,t);break;case 1:Nn(e,t,n,r);break;case 3:Nn(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nu(e)));break;case 12:if(a&2048){Nn(e,t,n,r),e=t.stateNode;try{var l=t.memoizedProps,i=l.id,o=l.onPostCommit;typeof o=="function"&&o(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){ye(t,t.return,s)}}else Nn(e,t,n,r);break;case 31:Nn(e,t,n,r);break;case 13:Nn(e,t,n,r);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?Nn(e,t,n,r):ds(e,t):l._visibility&2?Nn(e,t,n,r):(l._visibility|=2,Xl(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Wm(i,t);break;case 24:Nn(e,t,n,r),a&2048&&Jm(t.alternate,t);break;default:Nn(e,t,n,r)}}function Xl(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,i=t,o=n,s=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(l,i,o,s,a),au(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?Xl(l,i,o,s,a):ds(l,i):(d._visibility|=2,Xl(l,i,o,s,a)),a&&u&2048&&Wm(i.alternate,i);break;case 24:Xl(l,i,o,s,a),a&&u&2048&&Jm(i.alternate,i);break;default:Xl(l,i,o,s,a)}t=t.sibling}}function ds(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:ds(n,r),a&2048&&Wm(r.alternate,r);break;case 24:ds(n,r),a&2048&&Jm(r.alternate,r);break;default:ds(n,r)}t=t.sibling}}var Zo=8192;function Ll(e,t,n){if(e.subtreeFlags&Zo)for(e=e.child;e!==null;)S9(e,t,n),e=e.sibling}function S9(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&Zo&&e.memoizedState!==null&&vS(n,_n,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var r=_n;_n=od(e.stateNode.containerInfo),Ll(e,t,n),_n=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Zo,Zo=16777216,Ll(e,t,n),Zo=r):Ll(e,t,n));break;default:Ll(e,t,n)}}function E9(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rt=r,O9(r,e)}E9(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)M9(e),e=e.sibling}function M9(e){switch(e.tag){case 0:case 11:case 15:vo(e),e.flags&2048&&xa(9,e,e.return);break;case 3:vo(e);break;case 12:vo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mc(e)):vo(e);break;default:vo(e)}}function Mc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rt=r,O9(r,e)}E9(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xa(8,t,t.return),Mc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Mc(t));break;default:Mc(t)}e=e.sibling}}function O9(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:xa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:nu(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rt=r;else e:for(n=e;rt!==null;){r=rt;var a=r.sibling,l=r.return;if(g9(r),r===n){rt=null;break e}if(a!==null){a.return=l,rt=a;break e}rt=l}}}var NC={getCacheForType:function(e){var t=ht(Ie),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ht(Ie).controller.signal}},AC=typeof WeakMap=="function"?WeakMap:Map,pe=0,Ee=null,ie=null,oe=0,be=0,Vt=null,ea=!1,Zi=!1,eg=!1,kr=0,ze=0,wa=0,ol=0,tg=0,Zt=0,Ni=0,fs=null,Dt=null,Jh=!1,af=0,R9=0,ed=1/0,td=null,ua=null,$e=0,ca=null,Ai=null,Sr=0,ep=0,tp=null,T9=null,hs=0,np=null;function nn(){return pe&2&&oe!==0?oe&-oe:W.T!==null?rg():P2()}function k9(){if(Zt===0)if(!(oe&536870912)||se){var e=Eu;Eu<<=1,!(Eu&3932160)&&(Eu=262144),Zt=e}else Zt=536870912;return e=an.current,e!==null&&(e.flags|=32),Zt}function _t(e,t,n){(e===Ee&&(be===2||be===9)||e.cancelPendingCommit!==null)&&(Li(e,0),ta(e,oe,Zt,!1)),Js(e,n),(!(pe&2)||e!==Ee)&&(e===Ee&&(!(pe&2)&&(ol|=n),ze===4&&ta(e,oe,Zt,!1)),tr(e))}function D9(e,t,n){if(pe&6)throw Error(H(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ws(e,t),a=r?zC(e,t):d0(e,t,!0),l=r;do{if(a===0){Zi&&!r&&ta(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!LC(n)){a=d0(e,t,!1),l=!1;continue}if(a===2){if(l=t,e.errorRecoveryDisabledLanes&l)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var o=e;a=fs;var s=o.current.memoizedState.isDehydrated;if(s&&(Li(o,i).flags|=256),i=d0(o,i,!1),i!==2){if(eg&&!s){o.errorRecoveryDisabledLanes|=l,ol|=l,a=4;break e}l=Dt,Dt=a,l!==null&&(Dt===null?Dt=l:Dt.push.apply(Dt,l))}a=i}if(l=!1,a!==2)continue}}if(a===1){Li(e,0),ta(e,t,0,!0);break}e:{switch(r=e,l=a,l){case 0:case 1:throw Error(H(345));case 4:if((t&4194048)!==t)break;case 6:ta(r,t,Zt,!ea);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(H(329))}if((t&62914560)===t&&(a=af+300-Jt(),10<a)){if(ta(r,t,Zt,!ea),Id(r,0,!0)!==0)break e;Sr=t,r.timeoutHandle=Z9(fv.bind(null,r,n,Dt,td,Jh,t,Zt,ol,Ni,ea,l,"Throttled",-0,0),a);break e}fv(r,n,Dt,td,Jh,t,Zt,ol,Ni,ea,l,null,-0,0)}}break}while(!0);tr(e)}function fv(e,t,n,r,a,l,i,o,s,u,d,c,f,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yr},S9(t,l,c);var m=(l&62914560)===l?af-Jt():(l&4194048)===l?R9-Jt():0;if(m=bS(c,m),m!==null){Sr=l,e.cancelPendingCommit=m(pv.bind(null,e,t,l,n,r,a,i,o,s,d,c,null,f,h)),ta(e,l,i,!u);return}}pv(e,t,l,n,r,a,i,o,s)}function LC(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!rn(l(),a))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 ta(e,t,n,r){t&=~tg,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var l=31-tn(a),i=1<<l;r[l]=-1,a&=~i}n!==0&&L2(e,n,t)}function lf(){return pe&6?!0:(lu(0),!1)}function ng(){if(ie!==null){if(be===0)var e=ie.return;else e=ie,xr=Sl=null,Bm(e),yi=null,ks=0,e=ie;for(;e!==null;)u9(e.alternate,e),e=e.return;ie=null}}function Li(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,eS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sr=0,ng(),Ee=e,ie=n=wr(e.current,null),oe=t,be=0,Vt=null,ea=!1,Zi=Ws(e,t),eg=!1,Ni=Zt=tg=ol=wa=ze=0,Dt=fs=null,Jh=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-tn(r),l=1<<a;t|=e[a],r&=~l}return kr=t,$d(),n}function j9(e,t){re=null,W.H=js,t===Yi||t===Jd?(t=V1(),be=3):t===Lm?(t=V1(),be=4):be=t===Zm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Vt=t,ie===null&&(ze=1,$c(e,bn(t,e.current)))}function N9(){var e=an.current;return e===null?!0:(oe&4194048)===oe?wn===null:(oe&62914560)===oe||oe&536870912?e===wn:!1}function A9(){var e=W.H;return W.H=js,e===null?js:e}function L9(){var e=W.A;return W.A=NC,e}function nd(){ze=4,ea||(oe&4194048)!==oe&&an.current!==null||(Zi=!0),!(wa&134217727)&&!(ol&134217727)||Ee===null||ta(Ee,oe,Zt,!1)}function d0(e,t,n){var r=pe;pe|=2;var a=A9(),l=L9();(Ee!==e||oe!==t)&&(td=null,Li(e,t)),t=!1;var i=ze;e:do try{if(be!==0&&ie!==null){var o=ie,s=Vt;switch(be){case 8:ng(),i=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var u=be;if(be=0,Vt=null,di(e,o,s,u),n&&Zi){i=0;break e}break;default:u=be,be=0,Vt=null,di(e,o,s,u)}}_C(),i=ze;break}catch(d){j9(e,d)}while(!0);return t&&e.shellSuspendCounter++,xr=Sl=null,pe=r,W.H=a,W.A=l,ie===null&&(Ee=null,oe=0,$d()),i}function _C(){for(;ie!==null;)_9(ie)}function zC(e,t){var n=pe;pe|=2;var r=A9(),a=L9();Ee!==e||oe!==t?(td=null,ed=Jt()+500,Li(e,t)):Zi=Ws(e,t);e:do try{if(be!==0&&ie!==null){t=ie;var l=Vt;t:switch(be){case 1:be=0,Vt=null,di(e,t,l,1);break;case 2:case 9:if(F1(l)){be=0,Vt=null,hv(t);break}t=function(){be!==2&&be!==9||Ee!==e||(be=7),tr(e)},l.then(t,t);break e;case 3:be=7;break e;case 4:be=5;break e;case 7:F1(l)?(be=0,Vt=null,hv(t)):(be=0,Vt=null,di(e,t,l,7));break;case 5:var i=null;switch(ie.tag){case 26:i=ie.memoizedState;case 5:case 27:var o=ie;if(i?t8(i):o.stateNode.complete){be=0,Vt=null;var s=o.sibling;if(s!==null)ie=s;else{var u=o.return;u!==null?(ie=u,of(u)):ie=null}break t}}be=0,Vt=null,di(e,t,l,5);break;case 6:be=0,Vt=null,di(e,t,l,6);break;case 8:ng(),ze=6;break e;default:throw Error(H(462))}}PC();break}catch(d){j9(e,d)}while(!0);return xr=Sl=null,W.H=r,W.A=a,pe=n,ie!==null?0:(Ee=null,oe=0,$d(),ze)}function PC(){for(;ie!==null&&!iw();)_9(ie)}function _9(e){var t=s9(e.alternate,e,kr);e.memoizedProps=e.pendingProps,t===null?of(e):ie=t}function hv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=iv(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=iv(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Bm(t);default:u9(n,t),t=ie=u5(t,kr),t=s9(n,t,kr)}e.memoizedProps=e.pendingProps,t===null?of(e):ie=t}function di(e,t,n,r){xr=Sl=null,Bm(t),yi=null,ks=0;var a=t.return;try{if(MC(e,a,t,n,oe)){ze=1,$c(e,bn(n,e.current)),ie=null;return}}catch(l){if(a!==null)throw ie=a,l;ze=1,$c(e,bn(n,e.current)),ie=null;return}t.flags&32768?(se||r===1?e=!0:Zi||oe&536870912?e=!1:(ea=e=!0,(r===2||r===9||r===3||r===6)&&(r=an.current,r!==null&&r.tag===13&&(r.flags|=16384))),z9(t,e)):of(t)}function of(e){var t=e;do{if(t.flags&32768){z9(t,ea);return}e=t.return;var n=TC(t.alternate,t,kr);if(n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);ze===0&&(ze=5)}function z9(e,t){do{var n=kC(e.alternate,e);if(n!==null){n.flags&=32767,ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=n}while(e!==null);ze=6,ie=null}function pv(e,t,n,r,a,l,i,o,s){e.cancelPendingCommit=null;do sf();while($e!==0);if(pe&6)throw Error(H(327));if(t!==null){if(t===e.current)throw Error(H(177));if(l=t.lanes|t.childLanes,l|=Rm,gw(e,n,l,i,o,s),e===Ee&&(ie=Ee=null,oe=0),Ai=t,ca=e,Sr=n,ep=l,tp=a,T9=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,BC(Uc,function(){return B9(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=W.T,W.T=null,a=me.p,me.p=2,i=pe,pe|=4;try{DC(e,t,n)}finally{pe=i,me.p=a,W.T=r}}$e=1,P9(),H9(),K9()}}function P9(){if($e===1){$e=0;var e=ca,t=Ai,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=W.T,W.T=null;var r=me.p;me.p=2;var a=pe;pe|=4;try{x9(t,e);var l=ip,i=t5(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&e5(o.ownerDocument.documentElement,o)){if(s!==null&&Om(o)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(d,o.value.length);else{var c=o.ownerDocument||document,f=c&&c.defaultView||window;if(f.getSelection){var h=f.getSelection(),m=o.textContent.length,b=Math.min(s.start,m),y=s.end===void 0?b:Math.min(s.end,m);!h.extend&&b>y&&(i=y,y=b,b=i);var g=z1(o,b),v=z1(o,y);if(g&&v&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var x=c.createRange();x.setStart(g.node,g.offset),h.removeAllRanges(),b>y?(h.addRange(x),h.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),h.addRange(x))}}}}for(c=[],h=o;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<c.length;o++){var w=c[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}cd=!!lp,ip=lp=null}finally{pe=a,me.p=r,W.T=n}}e.current=t,$e=2}}function H9(){if($e===2){$e=0;var e=ca,t=Ai,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=W.T,W.T=null;var r=me.p;me.p=2;var a=pe;pe|=4;try{m9(e,t.alternate,t)}finally{pe=a,me.p=r,W.T=n}}$e=3}}function K9(){if($e===4||$e===3){$e=0,ow();var e=ca,t=Ai,n=Sr,r=T9;t.subtreeFlags&10256||t.flags&10256?$e=5:($e=0,Ai=ca=null,U9(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(ua=null),ym(n),t=t.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot($s,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=W.T,a=me.p,me.p=2,W.T=null;try{for(var l=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];l(o.value,{componentStack:o.stack})}}finally{W.T=t,me.p=a}}Sr&3&&sf(),tr(e),a=e.pendingLanes,n&261930&&a&42?e===np?hs++:(hs=0,np=e):hs=0,lu(0)}}function U9(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nu(t)))}function sf(){return P9(),H9(),K9(),B9()}function B9(){if($e!==5)return!1;var e=ca,t=ep;ep=0;var n=ym(Sr),r=W.T,a=me.p;try{me.p=32>n?32:n,W.T=null,n=tp,tp=null;var l=ca,i=Sr;if($e=0,Ai=ca=null,Sr=0,pe&6)throw Error(H(331));var o=pe;if(pe|=4,M9(l.current),C9(l,l.current,i,n),pe=o,lu(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot($s,l)}catch{}return!0}finally{me.p=a,W.T=r,U9(e,t)}}function mv(e,t,n){t=bn(n,t),t=Yh(e.stateNode,t,2),e=sa(e,t,2),e!==null&&(Js(e,2),tr(e))}function ye(e,t,n){if(e.tag===3)mv(e,e,n);else for(;t!==null;){if(t.tag===3){mv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ua===null||!ua.has(r))){e=bn(n,e),n=n9(2),r=sa(t,n,2),r!==null&&(r9(n,r,t,e),Js(r,2),tr(r));break}}t=t.return}}function f0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new AC;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(eg=!0,a.add(n),e=HC.bind(null,e,t,n),t.then(e,e))}function HC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ee===e&&(oe&n)===n&&(ze===4||ze===3&&(oe&62914560)===oe&&300>Jt()-af?!(pe&2)&&Li(e,0):tg|=n,Ni===oe&&(Ni=0)),tr(e)}function q9(e,t){t===0&&(t=A2()),e=Cl(e,t),e!==null&&(Js(e,t),tr(e))}function KC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q9(e,n)}function UC(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(H(314))}r!==null&&r.delete(t),q9(e,n)}function BC(e,t){return vm(e,t)}var rd=null,Yl=null,rp=!1,ad=!1,h0=!1,na=0;function tr(e){e!==Yl&&e.next===null&&(Yl===null?rd=Yl=e:Yl=Yl.next=e),ad=!0,rp||(rp=!0,FC())}function lu(e,t){if(!h0&&ad){h0=!0;do for(var n=!1,r=rd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var l=0;else{var i=r.suspendedLanes,o=r.pingedLanes;l=(1<<31-tn(42|e)+1)-1,l&=a&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,gv(r,l))}else l=oe,l=Id(r,r===Ee?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(l&3)||Ws(r,l)||(n=!0,gv(r,l));r=r.next}while(n);h0=!1}}function qC(){F9()}function F9(){ad=rp=!1;var e=0;na!==0&&JC()&&(e=na);for(var t=Jt(),n=null,r=rd;r!==null;){var a=r.next,l=V9(r,t);l===0?(r.next=null,n===null?rd=a:n.next=a,a===null&&(Yl=n)):(n=r,(e!==0||l&3)&&(ad=!0)),r=a}$e!==0&&$e!==5||lu(e),na!==0&&(na=0)}function V9(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-tn(l),o=1<<i,s=a[i];s===-1?(!(o&n)||o&r)&&(a[i]=mw(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Ee,n=oe,n=Id(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(be===2||be===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Bf(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ws(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Bf(r),ym(n)){case 2:case 8:n=j2;break;case 32:n=Uc;break;case 268435456:n=N2;break;default:n=Uc}return r=G9.bind(null,e),n=vm(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Bf(r),e.callbackPriority=2,e.callbackNode=null,2}function G9(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(sf()&&e.callbackNode!==n)return null;var r=oe;return r=Id(e,e===Ee?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(D9(e,r,t),V9(e,Jt()),e.callbackNode!=null&&e.callbackNode===n?G9.bind(null,e):null)}function gv(e,t){if(sf())return null;D9(e,t,!0)}function FC(){tS(function(){pe&6?vm(D2,qC):F9()})}function rg(){if(na===0){var e=ki;e===0&&(e=Su,Su<<=1,!(Su&261888)&&(Su=256)),na=e}return na}function vv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gc(""+e)}function bv(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function VC(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var l=vv((a[zt]||null).action),i=r.submitter;i&&(t=(t=i[zt]||null)?vv(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new Xd("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(na!==0){var s=i?bv(a,i):new FormData(a);Ih(n,{pending:!0,data:s,method:a.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?bv(a,i):new FormData(a),Ih(n,{pending:!0,data:s,method:a.method,action:l},l,s))},currentTarget:a}]})}}for(var p0=0;p0<_h.length;p0++){var m0=_h[p0],GC=m0.toLowerCase(),QC=m0[0].toUpperCase()+m0.slice(1);Un(GC,"on"+QC)}Un(r5,"onAnimationEnd");Un(a5,"onAnimationIteration");Un(l5,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(sC,"onTransitionRun");Un(uC,"onTransitionStart");Un(cC,"onTransitionCancel");Un(i5,"onTransitionEnd");Ri("onMouseEnter",["mouseout","mouseover"]);Ri("onMouseLeave",["mouseout","mouseover"]);Ri("onPointerEnter",["pointerout","pointerover"]);Ri("onPointerLeave",["pointerout","pointerover"]);yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yl("onBeforeInput",["compositionend","keypress","textInput","paste"]);yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),IC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ns));function Q9(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(d){qc(d)}a.currentTarget=null,l=s}else for(i=0;i<r.length;i++){if(o=r[i],s=o.instance,u=o.currentTarget,o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(d){qc(d)}a.currentTarget=null,l=s}}}}function le(e,t){var n=t[Rh];n===void 0&&(n=t[Rh]=new Set);var r=e+"__bubble";n.has(r)||(I9(t,e,2,!1),n.add(r))}function g0(e,t,n){var r=0;t&&(r|=4),I9(n,e,r,t)}var Au="_reactListening"+Math.random().toString(36).slice(2);function ag(e){if(!e[Au]){e[Au]=!0,H2.forEach(function(n){n!=="selectionchange"&&(IC.has(n)||g0(n,!1,e),g0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Au]||(t[Au]=!0,g0("selectionchange",!1,t))}}function I9(e,t,n,r){switch(i8(t)){case 2:var a=wS;break;case 8:a=CS;break;default:a=sg}n=a.bind(null,t,n,e),a=void 0,!Nh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function v0(e,t,n,r,a){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var o=r.stateNode.containerInfo;if(o===a)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;o!==null;){if(i=ni(o),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){r=l=i;continue e}o=o.parentNode}}r=r.return}Q2(function(){var u=l,d=Cm(n),c=[];e:{var f=o5.get(e);if(f!==void 0){var h=Xd,m=e;switch(e){case"keypress":if(bc(n)===0)break e;case"keydown":case"keyup":h=Uw;break;case"focusin":m="focus",h=Qf;break;case"focusout":m="blur",h=Qf;break;case"beforeblur":case"afterblur":h=Qf;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":h=O1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Tw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Fw;break;case r5:case a5:case l5:h=jw;break;case i5:h=Gw;break;case"scroll":case"scrollend":h=Ow;break;case"wheel":h=Iw;break;case"copy":case"cut":case"paste":h=Aw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=T1;break;case"toggle":case"beforetoggle":h=Yw}var b=(t&4)!==0,y=!b&&(e==="scroll"||e==="scrollend"),g=b?f!==null?f+"Capture":null:f;b=[];for(var v=u,x;v!==null;){var w=v;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||g===null||(w=Es(v,g),w!=null&&b.push(As(v,w,x))),y)break;v=v.return}0<b.length&&(f=new h(f,m,null,n,d),c.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==jh&&(m=n.relatedTarget||n.fromElement)&&(ni(m)||m[Qi]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?ni(m):null,m!==null&&(y=Zs(m),b=m.tag,m!==y||b!==5&&b!==27&&b!==6)&&(m=null)):(h=null,m=u),h!==m)){if(b=O1,w="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=T1,w="onPointerLeave",g="onPointerEnter",v="pointer"),y=h==null?f:Xo(h),x=m==null?f:Xo(m),f=new b(w,v+"leave",h,n,d),f.target=y,f.relatedTarget=x,w=null,ni(d)===u&&(b=new b(g,v+"enter",m,n,d),b.target=x,b.relatedTarget=y,w=b),y=w,h&&m)t:{for(b=XC,g=h,v=m,x=0,w=g;w;w=b(w))x++;w=0;for(var E=v;E;E=b(E))w++;for(;0<x-w;)g=b(g),x--;for(;0<w-x;)v=b(v),w--;for(;x--;){if(g===v||v!==null&&g===v.alternate){b=g;break t}g=b(g),v=b(v)}b=null}else b=null;h!==null&&yv(c,f,h,b,!1),m!==null&&y!==null&&yv(c,y,m,b,!0)}}e:{if(f=u?Xo(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=N1;else if(j1(f))if(W2)S=lC;else{S=rC;var M=nC}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&wm(u.elementType)&&(S=N1):S=aC;if(S&&(S=S(e,u))){$2(c,S,n,d);break e}M&&M(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&Dh(f,"number",f.value)}switch(M=u?Xo(u):window,e){case"focusin":(j1(M)||M.contentEditable==="true")&&(li=M,Ah=u,as=null);break;case"focusout":as=Ah=li=null;break;case"mousedown":Lh=!0;break;case"contextmenu":case"mouseup":case"dragend":Lh=!1,P1(c,n,d);break;case"selectionchange":if(oC)break;case"keydown":case"keyup":P1(c,n,d)}var N;if(Mm)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else ai?Y2(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(X2&&n.locale!=="ko"&&(ai||j!=="onCompositionStart"?j==="onCompositionEnd"&&ai&&(N=I2()):(Jr=d,Sm="value"in Jr?Jr.value:Jr.textContent,ai=!0)),M=ld(u,j),0<M.length&&(j=new R1(j,e,null,n,d),c.push({event:j,listeners:M}),N?j.data=N:(N=Z2(n),N!==null&&(j.data=N)))),(N=$w?Ww(e,n):Jw(e,n))&&(j=ld(u,"onBeforeInput"),0<j.length&&(M=new R1("onBeforeInput","beforeinput",null,n,d),c.push({event:M,listeners:j}),M.data=N)),VC(c,e,u,n,d)}Q9(c,t)})}function As(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ld(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||l===null||(a=Es(e,n),a!=null&&r.unshift(As(e,a,l)),a=Es(e,t),a!=null&&r.push(As(e,a,l))),e.tag===3)return r;e=e.return}return[]}function XC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yv(e,t,n,r,a){for(var l=t._reactName,i=[];n!==null&&n!==r;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===r)break;o!==5&&o!==26&&o!==27||u===null||(s=u,a?(u=Es(n,l),u!=null&&i.unshift(As(n,u,s))):a||(u=Es(n,l),u!=null&&i.push(As(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var YC=/\r\n?/g,ZC=/\u0000|\uFFFD/g;function xv(e){return(typeof e=="string"?e:""+e).replace(YC,`
|
|
49
|
+
`).replace(ZC,"")}function X9(e,t){return t=xv(t),xv(e)===t}function we(e,t,n,r,a,l){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ti(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ti(e,""+r);break;case"className":Ou(e,"class",r);break;case"tabIndex":Ou(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ou(e,n,r);break;case"style":G2(e,r,l);break;case"data":if(t!=="object"){Ou(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=gc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",a.name,a,null),we(e,t,"formEncType",a.formEncType,a,null),we(e,t,"formMethod",a.formMethod,a,null),we(e,t,"formTarget",a.formTarget,a,null)):(we(e,t,"encType",a.encType,a,null),we(e,t,"method",a.method,a,null),we(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=gc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=yr);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=gc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":le("beforetoggle",e),le("toggle",e),mc(e,"popover",r);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":mc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ew.get(n)||n,mc(e,n,r))}}function ap(e,t,n,r,a,l){switch(n){case"style":G2(e,r,l);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ti(e,r):(typeof r=="number"||typeof r=="bigint")&&Ti(e,""+r);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"onClick":r!=null&&(e.onclick=yr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!K2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),l=e[zt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,a),typeof r=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):mc(e,n,r)}}}function pt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var r=!1,a=!1,l;for(l in n)if(n.hasOwnProperty(l)){var i=n[l];if(i!=null)switch(l){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:we(e,t,l,i,n,null)}}a&&we(e,t,"srcSet",n.srcSet,n,null),r&&we(e,t,"src",n.src,n,null);return;case"input":le("invalid",e);var o=l=i=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":a=d;break;case"type":i=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":l=d;break;case"defaultValue":o=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(H(137,t));break;default:we(e,t,r,d,n,null)}}q2(e,l,o,s,u,i,a,!1);return;case"select":le("invalid",e),r=i=l=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":r=o;default:we(e,t,a,o,n,null)}t=l,n=i,e.multiple=!!r,t!=null?gi(e,!!r,t,!1):n!=null&&gi(e,!!r,n,!0);return;case"textarea":le("invalid",e),l=a=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":a=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(H(91));break;default:we(e,t,i,o,n,null)}V2(e,r,a,l);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:we(e,t,s,r,n,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(r=0;r<Ns.length;r++)le(Ns[r],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:we(e,t,u,r,n,null)}return;default:if(wm(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&we(e,t,o,r,n,null))}function $C(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,l=null,i=null,o=null,s=null,u=null,d=null;for(h in n){var c=n[h];if(n.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(h)||we(e,t,h,null,r,c)}}for(var f in r){var h=r[f];if(c=n[f],r.hasOwnProperty(f)&&(h!=null||c!=null))switch(f){case"type":l=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":i=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(H(137,t));break;default:h!==c&&we(e,t,f,h,r,c)}}kh(e,i,o,s,u,d,l,a);return;case"select":h=i=o=f=null;for(l in n)if(s=n[l],n.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":h=s;default:r.hasOwnProperty(l)||we(e,t,l,null,r,s)}for(a in r)if(l=r[a],s=n[a],r.hasOwnProperty(a)&&(l!=null||s!=null))switch(a){case"value":f=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&we(e,t,a,l,r,s)}t=o,n=i,r=h,f!=null?gi(e,!!n,f,!1):!!r!=!!n&&(t!=null?gi(e,!!n,t,!0):gi(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:we(e,t,o,null,r,a)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(H(91));break;default:a!==l&&we(e,t,i,a,r,l)}F2(e,f,h);return;case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:we(e,t,m,null,r,f)}for(s in r)if(f=r[s],h=n[s],r.hasOwnProperty(s)&&f!==h&&(f!=null||h!=null))switch(s){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:we(e,t,s,f,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!=null&&!r.hasOwnProperty(b)&&we(e,t,b,null,r,f);for(u in r)if(f=r[u],h=n[u],r.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(H(137,t));break;default:we(e,t,u,f,r,h)}return;default:if(wm(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&f!==void 0&&!r.hasOwnProperty(y)&&ap(e,t,y,void 0,r,f);for(d in r)f=r[d],h=n[d],!r.hasOwnProperty(d)||f===h||f===void 0&&h===void 0||ap(e,t,d,f,r,h);return}}for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!=null&&!r.hasOwnProperty(g)&&we(e,t,g,null,r,f);for(c in r)f=r[c],h=n[c],!r.hasOwnProperty(c)||f===h||f==null&&h==null||we(e,t,c,f,r,h)}function wv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function WC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],l=a.transferSize,i=a.initiatorType,o=a.duration;if(l&&o&&wv(i)){for(i=0,o=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>o)break;var d=s.transferSize,c=s.initiatorType;d&&wv(c)&&(s=s.responseEnd,i+=d*(s<o?1:(o-u)/(s-u)))}if(--r,t+=8*(l+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lp=null,ip=null;function id(e){return e.nodeType===9?e:e.ownerDocument}function Cv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Y9(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function op(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var b0=null;function JC(){var e=window.event;return e&&e.type==="popstate"?e===b0?!1:(b0=e,!0):(b0=null,!1)}var Z9=typeof setTimeout=="function"?setTimeout:void 0,eS=typeof clearTimeout=="function"?clearTimeout:void 0,Sv=typeof Promise=="function"?Promise:void 0,tS=typeof queueMicrotask=="function"?queueMicrotask:typeof Sv<"u"?function(e){return Sv.resolve(null).then(e).catch(nS)}:Z9;function nS(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function Ev(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),zi(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")ps(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ps(n);for(var l=n.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[eu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=i}}else n==="body"&&ps(e.ownerDocument.body);n=a}while(n);zi(t)}function Mv(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function sp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sp(n),xm(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function rS(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[eu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Cn(e.nextSibling),e===null)break}return null}function aS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Cn(e.nextSibling),e===null))return null;return e}function $9(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Cn(e.nextSibling),e===null))return null;return e}function up(e){return e.data==="$?"||e.data==="$~"}function cp(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var dp=null;function Ov(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Rv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function W9(e,t,n){switch(t=id(n),e){case"html":if(e=t.documentElement,!e)throw Error(H(452));return e;case"head":if(e=t.head,!e)throw Error(H(453));return e;case"body":if(e=t.body,!e)throw Error(H(454));return e;default:throw Error(H(451))}}function ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xm(e)}var Sn=new Map,Tv=new Set;function od(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Nr=me.d;me.d={f:iS,r:oS,D:sS,C:uS,L:cS,m:dS,X:hS,S:fS,M:pS};function iS(){var e=Nr.f(),t=lf();return e||t}function oS(e){var t=Ii(e);t!==null&&t.tag===5&&t.type==="form"?G5(t):Nr.r(e)}var $i=typeof document>"u"?null:document;function J9(e,t,n){var r=$i;if(r&&typeof t=="string"&&t){var a=vn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Tv.has(a)||(Tv.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),pt(t,"link",e),lt(t),r.head.appendChild(t)))}}function sS(e){Nr.D(e),J9("dns-prefetch",e,null)}function uS(e,t){Nr.C(e,t),J9("preconnect",e,t)}function cS(e,t,n){Nr.L(e,t,n);var r=$i;if(r&&e&&t){var a='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+vn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+vn(n.imageSizes)+'"]')):a+='[href="'+vn(e)+'"]';var l=a;switch(t){case"style":l=_i(e);break;case"script":l=Wi(e)}Sn.has(l)||(e=je({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Sn.set(l,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(iu(l))||t==="script"&&r.querySelector(ou(l))||(t=r.createElement("link"),pt(t,"link",e),lt(t),r.head.appendChild(t)))}}function dS(e,t){Nr.m(e,t);var n=$i;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+vn(r)+'"][href="'+vn(e)+'"]',l=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Wi(e)}if(!Sn.has(l)&&(e=je({rel:"modulepreload",href:e},t),Sn.set(l,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ou(l)))return}r=n.createElement("link"),pt(r,"link",e),lt(r),n.head.appendChild(r)}}}function fS(e,t,n){Nr.S(e,t,n);var r=$i;if(r&&e){var a=mi(r).hoistableStyles,l=_i(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(iu(l)))o.loading=5;else{e=je({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Sn.get(l))&&lg(e,n);var s=i=r.createElement("link");lt(s),pt(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Oc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function hS(e,t){Nr.X(e,t);var n=$i;if(n&&e){var r=mi(n).hoistableScripts,a=Wi(e),l=r.get(a);l||(l=n.querySelector(ou(a)),l||(e=je({src:e,async:!0},t),(t=Sn.get(a))&&ig(e,t),l=n.createElement("script"),lt(l),pt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function pS(e,t){Nr.M(e,t);var n=$i;if(n&&e){var r=mi(n).hoistableScripts,a=Wi(e),l=r.get(a);l||(l=n.querySelector(ou(a)),l||(e=je({src:e,async:!0,type:"module"},t),(t=Sn.get(a))&&ig(e,t),l=n.createElement("script"),lt(l),pt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function kv(e,t,n,r){var a=(a=la.current)?od(a):null;if(!a)throw Error(H(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=_i(n.href),n=mi(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=_i(n.href);var l=mi(a).hoistableStyles,i=l.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=a.querySelector(iu(e)))&&!l._p&&(i.instance=l,i.state.loading=5),Sn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sn.set(e,n),l||mS(a,e,n,i.state))),t&&r===null)throw Error(H(528,""));return i}if(t&&r!==null)throw Error(H(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Wi(n),n=mi(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(H(444,e))}}function _i(e){return'href="'+vn(e)+'"'}function iu(e){return'link[rel="stylesheet"]['+e+"]"}function e8(e){return je({},e,{"data-precedence":e.precedence,precedence:null})}function mS(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),pt(t,"link",n),lt(t),e.head.appendChild(t))}function Wi(e){return'[src="'+vn(e)+'"]'}function ou(e){return"script[async]"+e}function Dv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+vn(n.href)+'"]');if(r)return t.instance=r,lt(r),r;var a=je({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),lt(r),pt(r,"style",a),Oc(r,n.precedence,e),t.instance=r;case"stylesheet":a=_i(n.href);var l=e.querySelector(iu(a));if(l)return t.state.loading|=4,t.instance=l,lt(l),l;r=e8(n),(a=Sn.get(a))&&lg(r,a),l=(e.ownerDocument||e).createElement("link"),lt(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),pt(l,"link",r),t.state.loading|=4,Oc(l,n.precedence,e),t.instance=l;case"script":return l=Wi(n.src),(a=e.querySelector(ou(l)))?(t.instance=a,lt(a),a):(r=n,(a=Sn.get(l))&&(r=je({},n),ig(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),lt(a),pt(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(H(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Oc(r,n.precedence,e));return t.instance}function Oc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,l=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)l=o;else if(l!==a)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function lg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ig(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rc=null;function jv(e,t,n){if(Rc===null){var r=new Map,a=Rc=new Map;a.set(n,r)}else a=Rc,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var l=n[a];if(!(l[eu]||l[dt]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(l):r.set(i,[l])}}return r}function Nv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function gS(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function t8(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function vS(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=_i(r.href),l=t.querySelector(iu(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=l,lt(l);return}l=t.ownerDocument||t,r=e8(r),(a=Sn.get(a))&&lg(r,a),l=l.createElement("link"),lt(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),pt(l,"link",r),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var y0=0;function bS(e,t){return e.stylesheets&&e.count===0&&Tc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Tc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&y0===0&&(y0=62500*WC());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Tc(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>y0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function sd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ud=null;function Tc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ud=new Map,t.forEach(yS,e),ud=null,sd.call(e))}function yS(e,t){if(!(t.state.loading&4)){var n=ud.get(e);if(n)var r=n.get(null);else{n=new Map,ud.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<a.length;l++){var i=a[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}a=t.instance,i=a.getAttribute("data-precedence"),l=n.get(i)||r,l===r&&n.set(null,a),n.set(i,a),this.count++,r=sd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),l?l.parentNode.insertBefore(a,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ls={$$typeof:br,Provider:null,Consumer:null,_currentValue:rl,_currentValue2:rl,_threadCount:0};function xS(e,t,n,r,a,l,i,o,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qf(0),this.hiddenUpdates=qf(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function n8(e,t,n,r,a,l,i,o,s,u,d,c){return e=new xS(e,t,n,i,s,u,d,c,o),t=1,l===!0&&(t|=24),l=It(3,null,null,t),e.current=l,l.stateNode=e,t=Nm(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:r,isDehydrated:n,cache:t},_m(l),e}function r8(e){return e?(e=si,e):si}function a8(e,t,n,r,a,l){a=r8(a),r.context===null?r.context=a:r.pendingContext=a,r=oa(t),r.payload={element:n},l=l===void 0?null:l,l!==null&&(r.callback=l),n=sa(e,r,t),n!==null&&(_t(n,e,t),is(n,e,t))}function Av(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function og(e,t){Av(e,t),(e=e.alternate)&&Av(e,t)}function l8(e){if(e.tag===13||e.tag===31){var t=Cl(e,67108864);t!==null&&_t(t,e,67108864),og(e,67108864)}}function Lv(e){if(e.tag===13||e.tag===31){var t=nn();t=bm(t);var n=Cl(e,t);n!==null&&_t(n,e,t),og(e,t)}}var cd=!0;function wS(e,t,n,r){var a=W.T;W.T=null;var l=me.p;try{me.p=2,sg(e,t,n,r)}finally{me.p=l,W.T=a}}function CS(e,t,n,r){var a=W.T;W.T=null;var l=me.p;try{me.p=8,sg(e,t,n,r)}finally{me.p=l,W.T=a}}function sg(e,t,n,r){if(cd){var a=fp(r);if(a===null)v0(e,t,r,dd,n),_v(e,r);else if(ES(a,e,t,n,r))r.stopPropagation();else if(_v(e,r),t&4&&-1<SS.indexOf(e)){for(;a!==null;){var l=Ii(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=Za(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-tn(i);o.entanglements[1]|=s,i&=~s}tr(l),!(pe&6)&&(ed=Jt()+500,lu(0))}}break;case 31:case 13:o=Cl(l,2),o!==null&&_t(o,l,2),lf(),og(l,2)}if(l=fp(r),l===null&&v0(e,t,r,dd,n),l===a)break;a=l}a!==null&&r.stopPropagation()}else v0(e,t,r,null,n)}}function fp(e){return e=Cm(e),ug(e)}var dd=null;function ug(e){if(dd=null,e=ni(e),e!==null){var t=Zs(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=M2(t),e!==null)return e;e=null}else if(n===31){if(e=O2(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 dd=e,null}function i8(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(sw()){case D2:return 2;case j2:return 8;case Uc:case uw:return 32;case N2:return 268435456;default:return 32}default:return 32}}var hp=!1,da=null,fa=null,ha=null,_s=new Map,zs=new Map,Zr=[],SS="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".split(" ");function _v(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":_s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function bo(e,t,n,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},t!==null&&(t=Ii(t),t!==null&&l8(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function ES(e,t,n,r,a){switch(t){case"focusin":return da=bo(da,e,t,n,r,a),!0;case"dragenter":return fa=bo(fa,e,t,n,r,a),!0;case"mouseover":return ha=bo(ha,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return _s.set(l,bo(_s.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,zs.set(l,bo(zs.get(l)||null,e,t,n,r,a)),!0}return!1}function o8(e){var t=ni(e.target);if(t!==null){var n=Zs(t);if(n!==null){if(t=n.tag,t===13){if(t=M2(n),t!==null){e.blockedOn=t,y1(e.priority,function(){Lv(n)});return}}else if(t===31){if(t=O2(n),t!==null){e.blockedOn=t,y1(e.priority,function(){Lv(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 kc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jh=r,n.target.dispatchEvent(r),jh=null}else return t=Ii(n),t!==null&&l8(t),e.blockedOn=n,!1;t.shift()}return!0}function zv(e,t,n){kc(e)&&n.delete(t)}function MS(){hp=!1,da!==null&&kc(da)&&(da=null),fa!==null&&kc(fa)&&(fa=null),ha!==null&&kc(ha)&&(ha=null),_s.forEach(zv),zs.forEach(zv)}function Lu(e,t){e.blockedOn===t&&(e.blockedOn=null,hp||(hp=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,MS)))}var _u=null;function Pv(e){_u!==e&&(_u=e,We.unstable_scheduleCallback(We.unstable_NormalPriority,function(){_u===e&&(_u=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(ug(r||n)===null)continue;break}var l=Ii(n);l!==null&&(e.splice(t,3),t-=3,Ih(l,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function zi(e){function t(s){return Lu(s,e)}da!==null&&Lu(da,e),fa!==null&&Lu(fa,e),ha!==null&&Lu(ha,e),_s.forEach(t),zs.forEach(t);for(var n=0;n<Zr.length;n++){var r=Zr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Zr.length&&(n=Zr[0],n.blockedOn===null);)o8(n),n.blockedOn===null&&Zr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],l=n[r+1],i=a[zt]||null;if(typeof l=="function")i||Pv(n);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[zt]||null)o=i.formAction;else if(ug(a)!==null)continue}else o=i.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),Pv(n)}}}function s8(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function cg(e){this._internalRoot=e}uf.prototype.render=cg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));var n=t.current,r=nn();a8(n,r,e,t,null,null)};uf.prototype.unmount=cg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;a8(e.current,2,null,e,null,null),lf(),t[Qi]=null}};function uf(e){this._internalRoot=e}uf.prototype.unstable_scheduleHydration=function(e){if(e){var t=P2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&t!==0&&t<Zr[n].priority;n++);Zr.splice(n,0,e),n===0&&o8(e)}};var Hv=S2.version;if(Hv!=="19.2.0")throw Error(H(527,Hv,"19.2.0"));me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=tw(t),e=e!==null?R2(e):null,e=e===null?null:e.stateNode,e};var OS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{$s=zu.inject(OS),en=zu}catch{}}Gd.createRoot=function(e,t){if(!E2(e))throw Error(H(299));var n=!1,r="",a=J5,l=e9,i=t9;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=n8(e,1,!1,null,null,n,r,null,a,l,i,s8),e[Qi]=t.current,ag(e),new cg(t)};Gd.hydrateRoot=function(e,t,n){if(!E2(e))throw Error(H(299));var r=!1,a="",l=J5,i=e9,o=t9,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=n8(e,1,!0,t,n??null,r,a,s,l,i,o,s8),t.context=r8(null),n=t.current,r=nn(),r=bm(r),a=oa(r),a.callback=null,sa(n,a,r),n=r,t.current.lanes=n,Js(t,n),tr(t),e[Qi]=t.current,ag(e),new uf(t)};Gd.version="19.2.0";function u8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u8)}catch(e){console.error(e)}}u8(),u2.exports=Gd;var RS=u2.exports,c8=e=>{throw TypeError(e)},dg=(e,t,n)=>t.has(e)||c8("Cannot "+n),R=(e,t,n)=>(dg(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?c8("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(dg(e,t,"write to private field"),t.set(e,n),n),$=(e,t,n)=>(dg(e,t,"access private method"),n),pp=(e,t,n,r)=>({set _(a){q(e,t,a)},get _(){return R(e,t,r)}});function d8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f8={exports:{}},cf={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-jsx-runtime.production.js
|
|
52
52
|
*
|
|
@@ -54,8 +54,8 @@ Error generating stack: `+r.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var RS=Symbol.for("react.transitional.element"),TS=Symbol.for("react.fragment");function f8(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:RS,type:e,key:r,ref:t!==void 0?t:null,props:n}}cf.Fragment=TS;cf.jsx=f8;cf.jsxs=f8;d8.exports=cf;var x=d8.exports,El=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(){}},DS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_a,Kv,Uv,jS=(Uv=class{constructor(){Y(this,_a,DS),Y(this,Kv,!1)}setTimeoutProvider(e){q(this,_a,e)}setTimeout(e,t){return R(this,_a).setTimeout(e,t)}clearTimeout(e){R(this,_a).clearTimeout(e)}setInterval(e,t){return R(this,_a).setInterval(e,t)}clearInterval(e){R(this,_a).clearInterval(e)}},_a=new WeakMap,Kv=new WeakMap,Uv),tl=new jS;function AS(e){setTimeout(e,0)}var hl=typeof window>"u"||"Deno"in globalThis;function gt(){}function NS(e,t){return typeof e=="function"?e(t):e}function mp(e){return typeof e=="number"&&e>=0&&e!==1/0}function h8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t){return typeof e=="function"?e(t):e}function fn(e,t){return typeof e=="function"?e(t):e}function Bv(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:l,queryKey:i,stale:o}=e;if(i){if(r){if(t.queryHash!==fg(i,t.options))return!1}else if(!zs(t.queryKey,i))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||l&&!l(t))}function qv(e,t){const{exact:n,status:r,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ca(t.options.mutationKey)!==Ca(l))return!1}else if(!zs(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function fg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ca)(e)}function Ca(e){return JSON.stringify(e,(t,n)=>gp(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function zs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zs(e[n],t[n])):!1}var kS=Object.prototype.hasOwnProperty;function hg(e,t){if(e===t)return e;const n=Fv(e)&&Fv(t);if(!n&&!(gp(e)&&gp(t)))return t;const r=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),l=a.length,i=n?new Array(l):{};let o=0;for(let s=0;s<l;s++){const u=n?s:a[s],d=e[u],c=t[u];if(d===c){i[u]=d,(n?s<r:kS.call(e,u))&&o++;continue}if(d===null||c===null||typeof d!="object"||typeof c!="object"){i[u]=c;continue}const f=hg(d,c);i[u]=f,f===d&&o++}return r===l&&o===r?e:i}function Ps(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gp(e){if(!Vv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Vv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vv(e){return Object.prototype.toString.call(e)==="[object Object]"}function LS(e){return new Promise(t=>{tl.setTimeout(t,e)})}function vp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?hg(e,t):t}function _S(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xt=Symbol();function p8(e,t){return!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Xt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function m8(e,t){return typeof e=="function"?e(...t):!!e}var _l,za,yo,Gv,PS=(Gv=class extends El{constructor(){super(),Y(this,_l),Y(this,za),Y(this,yo),q(this,yo,e=>{if(!hl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){R(this,za)||this.setEventListener(R(this,yo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,za))==null||e.call(this),q(this,za,void 0))}setEventListener(e){var t;q(this,yo,e),(t=R(this,za))==null||t.call(this),q(this,za,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){R(this,_l)!==e&&(q(this,_l,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof R(this,_l)=="boolean"?R(this,_l):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},_l=new WeakMap,za=new WeakMap,yo=new WeakMap,Gv),pg=new PS;function yp(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var HS=AS;function KS(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=HS;const l=o=>{t?e.push(o):a(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||i()}return s},batchCalls:o=>(...s)=>{l(()=>{o(...s)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Pe=KS(),bo,Pa,wo,Qv,US=(Qv=class extends El{constructor(){super(),Y(this,bo,!0),Y(this,Pa),Y(this,wo),q(this,wo,e=>{if(!hl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,Pa)||this.setEventListener(R(this,wo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Pa))==null||e.call(this),q(this,Pa,void 0))}setEventListener(e){var t;q(this,wo,e),(t=R(this,Pa))==null||t.call(this),q(this,Pa,e(this.setOnline.bind(this)))}setOnline(e){R(this,bo)!==e&&(q(this,bo,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return R(this,bo)}},bo=new WeakMap,Pa=new WeakMap,wo=new WeakMap,Qv),fd=new US;function BS(e){return Math.min(1e3*2**e,3e4)}function g8(e){return(e??"online")==="online"?fd.isOnline():!0}var bp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function v8(e){let t=!1,n=0,r;const a=yp(),l=()=>a.status!=="pending",i=v=>{var b;if(!l()){const g=new bp(v);f(g),(b=e.onCancel)==null||b.call(e,g)}},o=()=>{t=!0},s=()=>{t=!1},u=()=>pg.isFocused()&&(e.networkMode==="always"||fd.isOnline())&&e.canRun(),d=()=>g8(e.networkMode)&&e.canRun(),c=v=>{l()||(r==null||r(),a.resolve(v))},f=v=>{l()||(r==null||r(),a.reject(v))},h=()=>new Promise(v=>{var b;r=g=>{(l()||u())&&v(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;r=void 0,l()||(v=e.onContinue)==null||v.call(e)}),m=()=>{if(l())return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(c).catch(g=>{var y;if(l())return;const w=e.retry??(hl?0:3),C=e.retryDelay??BS,E=typeof C=="function"?C(n,g):C,S=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,g);if(t||!S){f(g);return}n++,(y=e.onFail)==null||y.call(e,n,g),LS(E).then(()=>u()?void 0:h()).then(()=>{t?f(g):m()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:s,canStart:d,start:()=>(d()?m():h().then(m),a)}}var zl,Xv,y8=(Xv=class{constructor(){Y(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mp(this.gcTime)&&q(this,zl,tl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hl?1/0:5*60*1e3))}clearGcTimeout(){R(this,zl)&&(tl.clearTimeout(R(this,zl)),q(this,zl,void 0))}},zl=new WeakMap,Xv),Pl,xo,Nn,Hl,ut,Pu,Kl,Vn,ur,Yv,qS=(Yv=class extends y8{constructor(e){super(),Y(this,Vn),Y(this,Pl),Y(this,xo),Y(this,Nn),Y(this,Hl),Y(this,ut),Y(this,Pu),Y(this,Kl),q(this,Kl,!1),q(this,Pu,e.defaultOptions),this.setOptions(e.options),this.observers=[],q(this,Hl,e.client),q(this,Nn,R(this,Hl).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,q(this,Pl,Iv(this.options)),this.state=e.state??R(this,Pl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ut))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Pu),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Iv(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),q(this,Pl,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Nn).remove(this)}setData(e,t){const n=vp(this.state.data,e,this.options);return $(this,Vn,ur).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){$(this,Vn,ur).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=(t=R(this,ut))==null?void 0:t.promise;return(n=R(this,ut))==null||n.cancel(e),r?r.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Pl))}isActive(){return this.observers.some(e=>fn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>pa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!h8(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ut))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ut))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,Nn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(R(this,ut)&&(R(this,Kl)?R(this,ut).cancel({revert:!0}):R(this,ut).cancelRetry()),this.scheduleGc()),R(this,Nn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Vn,ur).call(this,{type:"invalidate"})}async fetch(e,t){var n,r,a,l,i,o,s,u,d,c,f,h;if(this.state.fetchStatus!=="idle"&&((n=R(this,ut))==null?void 0:n.status())!=="rejected"){if(this.state.data!==void 0&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(R(this,ut))return R(this,ut).continueRetry(),R(this,ut).promise}if(e&&this.setOptions(e),!this.options.queryFn){const y=this.observers.find(w=>w.options.queryFn);y&&this.setOptions(y.options)}const m=new AbortController,v=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(q(this,Kl,!0),m.signal)})},b=()=>{const y=p8(this.options,t),w=(()=>{const C={client:R(this,Hl),queryKey:this.queryKey,meta:this.meta};return v(C),C})();return q(this,Kl,!1),this.options.persister?this.options.persister(y,w,this):y(w)},g=(()=>{const y={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:R(this,Hl),state:this.state,fetchFn:b};return v(y),y})();(r=this.options.behavior)==null||r.onFetch(g,this),q(this,xo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=g.fetchOptions)==null?void 0:a.meta))&&$(this,Vn,ur).call(this,{type:"fetch",meta:(l=g.fetchOptions)==null?void 0:l.meta}),q(this,ut,v8({initialPromise:t==null?void 0:t.initialPromise,fn:g.fetchFn,onCancel:y=>{y instanceof bp&&y.revert&&this.setState({...R(this,xo),fetchStatus:"idle"}),m.abort()},onFail:(y,w)=>{$(this,Vn,ur).call(this,{type:"failed",failureCount:y,error:w})},onPause:()=>{$(this,Vn,ur).call(this,{type:"pause"})},onContinue:()=>{$(this,Vn,ur).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const y=await R(this,ut).start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),(o=(i=R(this,Nn).config).onSuccess)==null||o.call(i,y,this),(u=(s=R(this,Nn).config).onSettled)==null||u.call(s,y,this.state.error,this),y}catch(y){if(y instanceof bp){if(y.silent)return R(this,ut).promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw $(this,Vn,ur).call(this,{type:"error",error:y}),(c=(d=R(this,Nn).config).onError)==null||c.call(d,y,this),(h=(f=R(this,Nn).config).onSettled)==null||h.call(f,this.state.data,y,this),y}finally{this.scheduleGc()}}},Pl=new WeakMap,xo=new WeakMap,Nn=new WeakMap,Hl=new WeakMap,ut=new WeakMap,Pu=new WeakMap,Kl=new WeakMap,Vn=new WeakSet,ur=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...b8(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,xo,e.manual?r:void 0),r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Pe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,Nn).notify({query:this,type:"updated",action:e})})},Yv);function b8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Iv(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 Ut,de,Hu,Mt,Ul,Co,Pr,Ha,Ku,So,Eo,Bl,ql,Ka,Mo,He,Oo,w0,x0,C0,S0,E0,M0,O0,Zv,$v,su=($v=class extends El{constructor(e,t){super(),Y(this,He),Y(this,Ut),Y(this,de),Y(this,Hu),Y(this,Mt),Y(this,Ul),Y(this,Co),Y(this,Pr),Y(this,Ha),Y(this,Ku),Y(this,So),Y(this,Eo),Y(this,Bl),Y(this,ql),Y(this,Ka),Y(this,Mo,new Set),this.options=t,q(this,Ut,e),q(this,Ha,null),q(this,Pr,yp()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,de).addObserver(this),Wv(R(this,de),this.options)?$(this,He,Oo).call(this):this.updateResult(),$(this,He,S0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wp(R(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wp(R(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,He,E0).call(this),$(this,He,M0).call(this),R(this,de).removeObserver(this)}setOptions(e){const t=this.options,n=R(this,de);if(this.options=R(this,Ut).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,R(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,He,O0).call(this),R(this,de).setOptions(this.options),t._defaulted&&!Ps(this.options,t)&&R(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,de),observer:this});const r=this.hasListeners();r&&Jv(R(this,de),n,this.options,t)&&$(this,He,Oo).call(this),this.updateResult(),r&&(R(this,de)!==n||fn(this.options.enabled,R(this,de))!==fn(t.enabled,R(this,de))||pa(this.options.staleTime,R(this,de))!==pa(t.staleTime,R(this,de)))&&$(this,He,w0).call(this);const a=$(this,He,x0).call(this);r&&(R(this,de)!==n||fn(this.options.enabled,R(this,de))!==fn(t.enabled,R(this,de))||a!==R(this,Ka))&&$(this,He,C0).call(this,a)}getOptimisticResult(e){const t=R(this,Ut).getQueryCache().build(R(this,Ut),e),n=this.createResult(t,e);return VS(this,n)&&(q(this,Mt,n),q(this,Co,this.options),q(this,Ul,R(this,de).state)),n}getCurrentResult(){return R(this,Mt)}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t==null||t(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Pr).status==="pending"&&R(this,Pr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){R(this,Mo).add(e)}getCurrentQuery(){return R(this,de)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=R(this,Ut).defaultQueryOptions(e),n=R(this,Ut).getQueryCache().build(R(this,Ut),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return $(this,He,Oo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Mt)))}createResult(e,t){var n;const r=R(this,de),a=this.options,l=R(this,Mt),i=R(this,Ul),o=R(this,Co),s=e!==r?e.state:R(this,Hu),{state:u}=e;let d={...u},c=!1,f;if(t._optimisticResults){const M=this.hasListeners(),N=!M&&Wv(e,t),A=M&&Jv(e,r,t,a);(N||A)&&(d={...d,...b8(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:v}=d;f=d.data;let b=!1;if(t.placeholderData!==void 0&&f===void 0&&v==="pending"){let M;l!=null&&l.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData)?(M=l.data,b=!0):M=typeof t.placeholderData=="function"?t.placeholderData((n=R(this,Eo))==null?void 0:n.state.data,R(this,Eo)):t.placeholderData,M!==void 0&&(v="success",f=vp(l==null?void 0:l.data,M,t),c=!0)}if(t.select&&f!==void 0&&!b)if(l&&f===(i==null?void 0:i.data)&&t.select===R(this,Ku))f=R(this,So);else try{q(this,Ku,t.select),f=t.select(f),f=vp(l==null?void 0:l.data,f,t),q(this,So,f),q(this,Ha,null)}catch(M){q(this,Ha,M)}R(this,Ha)&&(h=R(this,Ha),f=R(this,So),m=Date.now(),v="error");const g=d.fetchStatus==="fetching",y=v==="pending",w=v==="error",C=y&&g,E=f!==void 0,S={status:v,fetchStatus:d.fetchStatus,isPending:y,isSuccess:v==="success",isError:w,isInitialLoading:C,isLoading:C,data:f,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>s.dataUpdateCount||d.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:w&&!E,isPaused:d.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:w&&E,isStale:mg(e,t),refetch:this.refetch,promise:R(this,Pr),isEnabled:fn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=k=>{S.status==="error"?k.reject(S.error):S.data!==void 0&&k.resolve(S.data)},N=()=>{const k=q(this,Pr,S.promise=yp());M(k)},A=R(this,Pr);switch(A.status){case"pending":e.queryHash===r.queryHash&&M(A);break;case"fulfilled":(S.status==="error"||S.data!==A.value)&&N();break;case"rejected":(S.status!=="error"||S.error!==A.reason)&&N();break}}return S}updateResult(){const e=R(this,Mt),t=this.createResult(R(this,de),this.options);if(q(this,Ul,R(this,de).state),q(this,Co,this.options),R(this,Ul).data!==void 0&&q(this,Eo,R(this,de)),Ps(t,e))return;q(this,Mt,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!R(this,Mo).size)return!0;const l=new Set(a??R(this,Mo));return this.options.throwOnError&&l.add("error"),Object.keys(R(this,Mt)).some(i=>{const o=i;return R(this,Mt)[o]!==e[o]&&l.has(o)})};$(this,He,Zv).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,He,S0).call(this)}},Ut=new WeakMap,de=new WeakMap,Hu=new WeakMap,Mt=new WeakMap,Ul=new WeakMap,Co=new WeakMap,Pr=new WeakMap,Ha=new WeakMap,Ku=new WeakMap,So=new WeakMap,Eo=new WeakMap,Bl=new WeakMap,ql=new WeakMap,Ka=new WeakMap,Mo=new WeakMap,He=new WeakSet,Oo=function(e){$(this,He,O0).call(this);let t=R(this,de).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(gt)),t},w0=function(){$(this,He,E0).call(this);const e=pa(this.options.staleTime,R(this,de));if(hl||R(this,Mt).isStale||!mp(e))return;const t=h8(R(this,Mt).dataUpdatedAt,e)+1;q(this,Bl,tl.setTimeout(()=>{R(this,Mt).isStale||this.updateResult()},t))},x0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,de)):this.options.refetchInterval)??!1},C0=function(e){$(this,He,M0).call(this),q(this,Ka,e),!(hl||fn(this.options.enabled,R(this,de))===!1||!mp(R(this,Ka))||R(this,Ka)===0)&&q(this,ql,tl.setInterval(()=>{(this.options.refetchIntervalInBackground||pg.isFocused())&&$(this,He,Oo).call(this)},R(this,Ka)))},S0=function(){$(this,He,w0).call(this),$(this,He,C0).call(this,$(this,He,x0).call(this))},E0=function(){R(this,Bl)&&(tl.clearTimeout(R(this,Bl)),q(this,Bl,void 0))},M0=function(){R(this,ql)&&(tl.clearInterval(R(this,ql)),q(this,ql,void 0))},O0=function(){const e=R(this,Ut).getQueryCache().build(R(this,Ut),this.options);if(e===R(this,de))return;const t=R(this,de);q(this,de,e),q(this,Hu,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},Zv=function(e){Pe.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(R(this,Mt))}),R(this,Ut).getQueryCache().notify({query:R(this,de),type:"observerResultsUpdated"})})},$v);function FS(e,t){return fn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wv(e,t){return FS(e,t)||e.state.data!==void 0&&wp(e,t,t.refetchOnMount)}function wp(e,t,n){if(fn(t.enabled,e)!==!1&&pa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&mg(e,t)}return!1}function Jv(e,t,n,r){return(e!==t||fn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&mg(e,n)}function mg(e,t){return fn(t.enabled,e)!==!1&&e.isStaleByTime(pa(t.staleTime,e))}function VS(e,t){return!Ps(e.getCurrentResult(),t)}function hd(e){return{onFetch:(t,n)=>{var r,a,l,i,o;const s=t.options,u=(l=(a=(r=t.fetchOptions)==null?void 0:r.meta)==null?void 0:a.fetchMore)==null?void 0:l.direction,d=((i=t.state.data)==null?void 0:i.pages)||[],c=((o=t.state.data)==null?void 0:o.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const m=async()=>{let v=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},g=p8(t.options,t.fetchOptions),y=async(w,C,E)=>{if(v)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};return b(k),k})(),M=await g(S),{maxPages:N}=t.options,A=E?zS:_S;return{pages:A(w.pages,M,N),pageParams:A(w.pageParams,C,N)}};if(u&&d.length){const w=u==="backward",C=w?w8:xp,E={pages:d,pageParams:c},S=C(s,E);f=await y(E,S,w)}else{const w=e??d.length;do{const C=h===0?c[0]??s.initialPageParam:xp(s,f);if(h>0&&C==null)break;f=await y(f,C),h++}while(h<w)}return f};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function xp(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 w8(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}function GS(e,t){return t?xp(e,t)!=null:!1}function QS(e,t){return!t||!e.getPreviousPageParam?!1:w8(e,t)!=null}var x8=class extends su{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:hd()})}getOptimisticResult(e){return e.behavior=hd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var n,r;const{state:a}=e,l=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:u}=l,d=(r=(n=a.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:r.direction,c=s&&d==="forward",f=i&&d==="forward",h=s&&d==="backward",m=i&&d==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:GS(t,a.data),hasPreviousPage:QS(t,a.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:h,isFetchingPreviousPage:m,isRefetchError:u&&!c&&!h,isRefetching:o&&!f&&!m}}},Uu,cr,Ot,Fl,dr,Hr,ey,XS=(ey=class extends y8{constructor(e){super(),Y(this,dr),Y(this,Uu),Y(this,cr),Y(this,Ot),Y(this,Fl),q(this,Uu,e.client),this.mutationId=e.mutationId,q(this,Ot,e.mutationCache),q(this,cr,[]),this.state=e.state||C8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,cr).includes(e)||(R(this,cr).push(e),this.clearGcTimeout(),R(this,Ot).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){q(this,cr,R(this,cr).filter(t=>t!==e)),this.scheduleGc(),R(this,Ot).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,cr).length||(this.state.status==="pending"?this.scheduleGc():R(this,Ot).remove(this))}continue(){var e;return((e=R(this,Fl))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,a,l,i,o,s,u,d,c,f,h,m,v,b,g,y,w,C;const E=()=>{$(this,dr,Hr).call(this,{type:"continue"})},S={client:R(this,Uu),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Fl,v8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,S):Promise.reject(new Error("No mutationFn found")),onFail:(A,k)=>{$(this,dr,Hr).call(this,{type:"failed",failureCount:A,error:k})},onPause:()=>{$(this,dr,Hr).call(this,{type:"pause"})},onContinue:E,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Ot).canRun(this)}));const M=this.state.status==="pending",N=!R(this,Fl).canStart();try{if(M)E();else{$(this,dr,Hr).call(this,{type:"pending",variables:e,isPaused:N}),await((n=(t=R(this,Ot).config).onMutate)==null?void 0:n.call(t,e,this,S));const k=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,e,S));k!==this.state.context&&$(this,dr,Hr).call(this,{type:"pending",context:k,variables:e,isPaused:N})}const A=await R(this,Fl).start();return await((i=(l=R(this,Ot).config).onSuccess)==null?void 0:i.call(l,A,e,this.state.context,this,S)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,A,e,this.state.context,S)),await((d=(u=R(this,Ot).config).onSettled)==null?void 0:d.call(u,A,null,this.state.variables,this.state.context,this,S)),await((f=(c=this.options).onSettled)==null?void 0:f.call(c,A,null,e,this.state.context,S)),$(this,dr,Hr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(h=R(this,Ot).config).onError)==null?void 0:m.call(h,A,e,this.state.context,this,S)),await((b=(v=this.options).onError)==null?void 0:b.call(v,A,e,this.state.context,S)),await((y=(g=R(this,Ot).config).onSettled)==null?void 0:y.call(g,void 0,A,this.state.variables,this.state.context,this,S)),await((C=(w=this.options).onSettled)==null?void 0:C.call(w,void 0,A,e,this.state.context,S)),A}finally{$(this,dr,Hr).call(this,{type:"error",error:A})}}finally{R(this,Ot).runNext(this)}}},Uu=new WeakMap,cr=new WeakMap,Ot=new WeakMap,Fl=new WeakMap,dr=new WeakSet,Hr=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Pe.batch(()=>{R(this,cr).forEach(n=>{n.onMutationUpdate(e)}),R(this,Ot).notify({mutation:this,type:"updated",action:e})})},ey);function C8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kr,Gn,Bu,ty,YS=(ty=class extends El{constructor(e={}){super(),Y(this,Kr),Y(this,Gn),Y(this,Bu),this.config=e,q(this,Kr,new Set),q(this,Gn,new Map),q(this,Bu,0)}build(e,t,n){const r=new XS({client:e,mutationCache:this,mutationId:++pp(this,Bu)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){R(this,Kr).add(e);const t=qu(e);if(typeof t=="string"){const n=R(this,Gn).get(t);n?n.push(e):R(this,Gn).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Kr).delete(e)){const t=qu(e);if(typeof t=="string"){const n=R(this,Gn).get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&R(this,Gn).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=qu(e);if(typeof t=="string"){const n=R(this,Gn).get(t),r=n==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){var t;const n=qu(e);if(typeof n=="string"){const r=(t=R(this,Gn).get(n))==null?void 0:t.find(a=>a!==e&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pe.batch(()=>{R(this,Kr).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Kr).clear(),R(this,Gn).clear()})}getAll(){return Array.from(R(this,Kr))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>qv(t,n))}findAll(e={}){return this.getAll().filter(t=>qv(e,t))}notify(e){Pe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Pe.batch(()=>Promise.all(e.map(t=>t.continue().catch(gt))))}},Kr=new WeakMap,Gn=new WeakMap,Bu=new WeakMap,ty);function qu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ur,Ua,Bt,Br,Ba,Fu,R0,ny,IS=(ny=class extends El{constructor(e,t){super(),Y(this,Ba),Y(this,Ur),Y(this,Ua),Y(this,Bt),Y(this,Br),q(this,Ur,e),this.setOptions(t),this.bindMethods(),$(this,Ba,Fu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=R(this,Ur).defaultMutationOptions(e),Ps(this.options,n)||R(this,Ur).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,Bt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ca(n.mutationKey)!==Ca(this.options.mutationKey)?this.reset():((t=R(this,Bt))==null?void 0:t.state.status)==="pending"&&R(this,Bt).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=R(this,Bt))==null||e.removeObserver(this)}onMutationUpdate(e){$(this,Ba,Fu).call(this),$(this,Ba,R0).call(this,e)}getCurrentResult(){return R(this,Ua)}reset(){var e;(e=R(this,Bt))==null||e.removeObserver(this),q(this,Bt,void 0),$(this,Ba,Fu).call(this),$(this,Ba,R0).call(this)}mutate(e,t){var n;return q(this,Br,t),(n=R(this,Bt))==null||n.removeObserver(this),q(this,Bt,R(this,Ur).getMutationCache().build(R(this,Ur),this.options)),R(this,Bt).addObserver(this),R(this,Bt).execute(e)}},Ur=new WeakMap,Ua=new WeakMap,Bt=new WeakMap,Br=new WeakMap,Ba=new WeakSet,Fu=function(){var e;const t=((e=R(this,Bt))==null?void 0:e.state)??C8();q(this,Ua,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},R0=function(e){Pe.batch(()=>{var t,n,r,a,l,i,o,s;if(R(this,Br)&&this.hasListeners()){const u=R(this,Ua).variables,d=R(this,Ua).context,c={client:R(this,Ur),meta:this.options.meta,mutationKey:this.options.mutationKey};(e==null?void 0:e.type)==="success"?((n=(t=R(this,Br)).onSuccess)==null||n.call(t,e.data,u,d,c),(a=(r=R(this,Br)).onSettled)==null||a.call(r,e.data,null,u,d,c)):(e==null?void 0:e.type)==="error"&&((i=(l=R(this,Br)).onError)==null||i.call(l,e.error,u,d,c),(s=(o=R(this,Br)).onSettled)==null||s.call(o,void 0,e.error,u,d,c))}this.listeners.forEach(u=>{u(R(this,Ua))})})},ny);function ry(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function ZS(e,t,n){const r=e.slice(0);return r[t]=n,r}var Ro,sn,To,Do,kn,qa,Vu,Gu,Qu,un,T0,D0,j0,A0,N0,ay,$S=(ay=class extends El{constructor(e,t,n){super(),Y(this,un),Y(this,Ro),Y(this,sn),Y(this,To),Y(this,Do),Y(this,kn),Y(this,qa),Y(this,Vu),Y(this,Gu),Y(this,Qu,[]),q(this,Ro,e),q(this,Do,n),q(this,To,[]),q(this,kn,[]),q(this,sn,[]),this.setQueries(t)}onSubscribe(){this.listeners.size===1&&R(this,kn).forEach(e=>{e.subscribe(t=>{$(this,un,A0).call(this,e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,R(this,kn).forEach(e=>{e.destroy()})}setQueries(e,t){q(this,To,e),q(this,Do,t),Pe.batch(()=>{const n=R(this,kn),r=$(this,un,j0).call(this,R(this,To));q(this,Qu,r),r.forEach(d=>d.observer.setOptions(d.defaultedQueryOptions));const a=r.map(d=>d.observer),l=a.map(d=>d.getCurrentResult()),i=n.length!==a.length,o=a.some((d,c)=>d!==n[c]),s=i||o,u=s?!0:l.some((d,c)=>{const f=R(this,sn)[c];return!f||!Ps(d,f)});!s&&!u||(s&&q(this,kn,a),q(this,sn,l),this.hasListeners()&&(s&&(ry(n,a).forEach(d=>{d.destroy()}),ry(a,n).forEach(d=>{d.subscribe(c=>{$(this,un,A0).call(this,d,c)})})),$(this,un,N0).call(this)))})}getCurrentResult(){return R(this,sn)}getQueries(){return R(this,kn).map(e=>e.getCurrentQuery())}getObservers(){return R(this,kn)}getOptimisticResult(e,t){const n=$(this,un,j0).call(this,e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>$(this,un,D0).call(this,a??r,t),()=>$(this,un,T0).call(this,r,n)]}},Ro=new WeakMap,sn=new WeakMap,To=new WeakMap,Do=new WeakMap,kn=new WeakMap,qa=new WeakMap,Vu=new WeakMap,Gu=new WeakMap,Qu=new WeakMap,un=new WeakSet,T0=function(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,l=>{t.forEach(i=>{i.observer.trackProp(l)})})})},D0=function(e,t){return t?((!R(this,qa)||R(this,sn)!==R(this,Gu)||t!==R(this,Vu))&&(q(this,Vu,t),q(this,Gu,R(this,sn)),q(this,qa,hg(R(this,qa),t(e)))),R(this,qa)):e},j0=function(e){const t=new Map(R(this,kn).map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=R(this,Ro).defaultQueryOptions(r),l=t.get(a.queryHash);l?n.push({defaultedQueryOptions:a,observer:l}):n.push({defaultedQueryOptions:a,observer:new su(R(this,Ro),a)})}),n},A0=function(e,t){const n=R(this,kn).indexOf(e);n!==-1&&(q(this,sn,ZS(R(this,sn),n,t)),$(this,un,N0).call(this))},N0=function(){var e;if(this.hasListeners()){const t=R(this,qa),n=$(this,un,T0).call(this,R(this,sn),R(this,Qu)),r=$(this,un,D0).call(this,n,(e=R(this,Do))==null?void 0:e.combine);t!==r&&Pe.batch(()=>{this.listeners.forEach(a=>{a(R(this,sn))})})}},ay),fr,ly,WS=(ly=class extends El{constructor(e={}){super(),Y(this,fr),this.config=e,q(this,fr,new Map)}build(e,t,n){const r=t.queryKey,a=t.queryHash??fg(r,t);let l=this.get(a);return l||(l=new qS({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(l)),l}add(e){R(this,fr).has(e.queryHash)||(R(this,fr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=R(this,fr).get(e.queryHash);t&&(e.destroy(),t===e&&R(this,fr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Pe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,fr).get(e)}getAll(){return[...R(this,fr).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Bv(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Bv(e,n)):t}notify(e){Pe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fr=new WeakMap,ly),Ke,Fa,Va,jo,Ao,Ga,No,ko,iy,JS=(iy=class{constructor(e={}){Y(this,Ke),Y(this,Fa),Y(this,Va),Y(this,jo),Y(this,Ao),Y(this,Ga),Y(this,No),Y(this,ko),q(this,Ke,e.queryCache||new WS),q(this,Fa,e.mutationCache||new YS),q(this,Va,e.defaultOptions||{}),q(this,jo,new Map),q(this,Ao,new Map),q(this,Ga,0)}mount(){pp(this,Ga)._++,R(this,Ga)===1&&(q(this,No,pg.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ke).onFocus())})),q(this,ko,fd.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ke).onOnline())})))}unmount(){var e,t;pp(this,Ga)._--,R(this,Ga)===0&&((e=R(this,No))==null||e.call(this),q(this,No,void 0),(t=R(this,ko))==null||t.call(this),q(this,ko,void 0))}isFetching(e){return R(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Fa).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Ke).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=R(this,Ke).get(r.queryHash),l=a==null?void 0:a.state.data,i=NS(t,l);if(i!==void 0)return R(this,Ke).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Pe.batch(()=>R(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Ke).get(n.queryHash))==null?void 0:t.state}removeQueries(e){const t=R(this,Ke);Pe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Ke);return Pe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Pe.batch(()=>R(this,Ke).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Pe.batch(()=>(R(this,Ke).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=Pe.batch(()=>R(this,Ke).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(gt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Ke).build(this,t);return n.isStaleByTime(pa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=hd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=hd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fd.isOnline()?R(this,Fa).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ke)}getMutationCache(){return R(this,Fa)}getDefaultOptions(){return R(this,Va)}setDefaultOptions(e){q(this,Va,e)}setQueryDefaults(e,t){R(this,jo).set(Ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,jo).values()],n={};return t.forEach(r=>{zs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Ao).set(Ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Ao).values()],n={};return t.forEach(r=>{zs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Va).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fg(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===Xt&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Va).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Ke).clear(),R(this,Fa).clear()}},Ke=new WeakMap,Fa=new WeakMap,Va=new WeakMap,jo=new WeakMap,Ao=new WeakMap,Ga=new WeakMap,No=new WeakMap,ko=new WeakMap,iy),S8=p.createContext(void 0),uu=e=>{const t=p.useContext(S8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},eE=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(S8.Provider,{value:e,children:t})),E8=p.createContext(!1),M8=()=>p.useContext(E8);E8.Provider;function tE(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nE=p.createContext(tE()),O8=()=>p.useContext(nE),R8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},T8=e=>{p.useEffect(()=>{e.clearReset()},[e])},D8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||m8(n,[e.error,r])),gg=(e,t)=>t.state.data===void 0,j8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},A8=(e,t)=>e.isLoading&&e.isFetching&&!t,Cp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,pd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function N8({queries:e,...t},n){const r=uu(n),a=M8(),l=O8(),i=p.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=a?"isRestoring":"optimistic",v}),[e,r,a]);i.forEach(m=>{j8(m),R8(m,l)}),T8(l);const[o]=p.useState(()=>new $S(r,i,t)),[s,u,d]=o.getOptimisticResult(i,t.combine),c=!a&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(m=>c?o.subscribe(Pe.batchCalls(m)):gt,[o,c]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);const f=s.some((m,v)=>Cp(i[v],m))?s.flatMap((m,v)=>{const b=i[v];if(b){const g=new su(r,b);if(Cp(b,m))return pd(b,g,l);A8(m,a)&&pd(b,g,l)}return[]}):[];if(f.length>0)throw Promise.all(f);const h=s.find((m,v)=>{const b=i[v];return b&&D8({result:m,errorResetBoundary:l,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(h!=null&&h.error)throw h.error;return u(d())}function df(e,t,n){var r,a,l,i,o;const s=M8(),u=O8(),d=uu(n),c=d.defaultQueryOptions(e);(a=(r=d.getDefaultOptions().queries)==null?void 0:r._experimental_beforeQuery)==null||a.call(r,c),c._optimisticResults=s?"isRestoring":"optimistic",j8(c),R8(c,u),T8(u);const f=!d.getQueryCache().get(c.queryHash),[h]=p.useState(()=>new t(d,c)),m=h.getOptimisticResult(c),v=!s&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(b=>{const g=v?h.subscribe(Pe.batchCalls(b)):gt;return h.updateResult(),g},[h,v]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(c)},[c,h]),Cp(c,m))throw pd(c,h,u);if(D8({result:m,errorResetBoundary:u,throwOnError:c.throwOnError,query:d.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((i=(l=d.getDefaultOptions().queries)==null?void 0:l._experimental_afterQuery)==null||i.call(l,c,m),c.experimental_prefetchInRender&&!hl&&A8(m,s)){const b=f?pd(c,h,u):(o=d.getQueryCache().get(c.queryHash))==null?void 0:o.promise;b==null||b.catch(gt).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?m:h.trackResult(m)}function rE(e,t){return df(e,su,t)}function aE(e,t){return df({...e,enabled:!0,suspense:!0,throwOnError:gg,placeholderData:void 0},su,t)}function lE(e,t){return df({...e,enabled:!0,suspense:!0,throwOnError:gg},x8,t)}function iE(e,t){return N8({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:gg,enabled:!0,placeholderData:void 0}))},t)}function oE(e,t){const n=uu(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function sE(e,t){const n=uu(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function uE(e,t){const n=uu(t),[r]=p.useState(()=>new IS(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const a=p.useSyncExternalStore(p.useCallback(i=>r.subscribe(Pe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=p.useCallback((i,o)=>{r.mutate(i,o).catch(gt)},[r]);if(a.error&&m8(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function cE(e,t){return df(e,x8,t)}var dE=Object.create,k8=Object.defineProperty,fE=Object.getOwnPropertyDescriptor,L8=Object.getOwnPropertyNames,hE=Object.getPrototypeOf,pE=Object.prototype.hasOwnProperty,nr=(e,t)=>function(){return t||(0,e[L8(e)[0]])((t={exports:{}}).exports,t),t.exports},mE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=L8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!pE.call(e,o)&&o!==n&&k8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=fE(t,o))||r.enumerable});return e},Fe=(e,t,n)=>(n=e!=null?dE(hE(e)):{},mE(t||!e||!e.__esModule?k8(n,"default",{value:e,enumerable:!0}):n,e)),_8=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),gE=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=_8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),vE=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=_8().default,r=gE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ml=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=vE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bn=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ml();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function ff(e){const t={subscribe(n){let r=null,a=!1,l=!1,i=!1;function o(){if(r===null){i=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(s){var u;a||(u=n.next)===null||u===void 0||u.call(n,s)},error(s){var u;a||(a=!0,(u=n.error)===null||u===void 0||u.call(n,s),o())},complete(){var s;a||(a=!0,(s=n.complete)===null||s===void 0||s.call(n),o())}}),i&&o(),{unsubscribe:o}},pipe(...n){return n.reduce(yE,t)}};return t}function yE(e,t){return t(e)}function bE(e){const t=new AbortController;return new Promise((n,r)=>{let a=!1;function l(){a||(a=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const i=e.subscribe({next(o){a=!0,n(o),l()},error(o){r(o)},complete(){t.abort(),l()}})})}function wE(e){return t=>{let n=0,r=null;const a=[];function l(){r||(r=t.subscribe({next(o){for(const u of a){var s;(s=u.next)===null||s===void 0||s.call(u,o)}},error(o){for(const u of a){var s;(s=u.error)===null||s===void 0||s.call(u,o)}},complete(){for(const s of a){var o;(o=s.complete)===null||o===void 0||o.call(s)}}}))}function i(){if(n===0&&r){const o=r;r=null,o.unsubscribe()}}return ff(o=>(n++,a.push(o),l(),{unsubscribe(){n--,i();const s=a.findIndex(u=>u===o);s>-1&&a.splice(s,1)}}))}}function xE(e){let t=e;const n=[],r=i=>{t!==void 0&&i.next(t),n.push(i)},a=i=>{n.splice(n.indexOf(i),1)},l=ff(i=>(r(i),()=>{a(i)}));return l.next=i=>{if(t!==i){t=i;for(const o of n)o.next(i)}},l.get=()=>t,l}function CE(e){return ff(t=>{function n(r=0,a=e.op){const l=e.links[r];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:a,next(i){return n(r+1,i)}})}return n().subscribe(t)})}function pl(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const SE=typeof Symbol=="function"&&!!Symbol.asyncIterator;function z8(e){return SE&&pl(e)&&Symbol.asyncIterator in e}var EE=Object.create,P8=Object.defineProperty,ME=Object.getOwnPropertyDescriptor,H8=Object.getOwnPropertyNames,OE=Object.getPrototypeOf,RE=Object.prototype.hasOwnProperty,cu=(e,t)=>function(){return t||(0,e[H8(e)[0]])((t={exports:{}}).exports,t),t.exports},TE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=H8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!RE.call(e,o)&&o!==n&&P8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=ME(t,o))||r.enumerable});return e},hf=(e,t,n)=>(n=e!=null?EE(OE(e)):{},TE(P8(n,"default",{value:e,enumerable:!0}),e));const K8=()=>{},oy=e=>{Object.freeze&&Object.freeze(e)};function U8(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(K8,{get(l,i){if(!(typeof i!="string"||i==="then"))return U8(e,[...t,i],n)},apply(l,i,o){const s=t[t.length-1];let u={args:o,path:t};return s==="call"?u={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:s==="apply"&&(u={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),oy(u.args),oy(u.path),e(u)}})),n[a]}const pf=e=>U8(e,[],Object.create(null)),vg=e=>new Proxy(K8,{get(t,n){if(n!=="then")return e(n)}});var B8=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),DE=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=B8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),jE=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=B8().default,r=DE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),q8=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=jE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),yg=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=q8();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});hf(yg());hf(q8());var Xu=hf(yg());function AE(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Xu.default)((0,Xu.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Xu.default)((0,Xu.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var k0=class extends Error{constructor(){super("Unable to transform response from server")}};function NE(e,t){let n;try{n=AE(e,t)}catch{throw new k0}if(!n.ok&&(!pl(n.error.error)||typeof n.error.error.code!="number"))throw new k0;if(n.ok&&!pl(n.result))throw new k0;return n}hf(yg());var Yu=Fe(Ml(),1),Vl=Fe(Bn(),1);function kE(e){return e instanceof md}function LE(e){return pl(e)&&pl(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function _E(e,t){return typeof e=="string"?e:pl(e)&&typeof e.message=="string"?e.message:t}var md=class jc extends Error{constructor(t,n){var r,a;const l=n==null?void 0:n.cause;super(t,{cause:l}),(0,Yu.default)(this,"cause",void 0),(0,Yu.default)(this,"shape",void 0),(0,Yu.default)(this,"data",void 0),(0,Yu.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=l,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,jc.prototype)}static from(t,n={}){const r=t;return kE(r)?(n.meta&&(r.meta=(0,Vl.default)((0,Vl.default)({},r.meta),n.meta)),r):LE(r)?new jc(r.error.message,(0,Vl.default)((0,Vl.default)({},n),{},{result:r})):new jc(_E(r,"Unknown error"),(0,Vl.default)((0,Vl.default)({},n),{},{cause:r}))}};function zE(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const sy=e=>typeof e=="function";function PE(e){if(e)return e;if(typeof window<"u"&&sy(window.fetch))return window.fetch;if(typeof globalThis<"u"&&sy(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var ps=Fe(Bn());function HE(e){return{url:e.url.toString(),fetch:e.fetch,transformer:zE(e.transformer),methodOverride:e.methodOverride}}function KE(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const UE={query:"GET",mutation:"POST",subscription:"PATCH"};function F8(e){return"input"in e?e.transformer.input.serialize(e.input):KE(e.inputs.map(t=>e.transformer.input.serialize(t)))}const V8=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),e.type==="query"||e.type==="subscription"){const a=F8(e);a!==void 0&&e.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(a))}`)}return r.length&&(n+="?"+r.join("&")),n},BE=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=F8(e);return t!==void 0?JSON.stringify(t):void 0},qE=e=>QE((0,ps.default)((0,ps.default)({},e),{},{contentTypeHeader:"application/json",getUrl:V8,getBody:BE}));var FE=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const VE=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new FE};async function GE(e){var t;VE(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:UE[e.type],l=await(async()=>{const o=await e.headers();return Symbol.iterator in o?Object.fromEntries(o):o})(),i=(0,ps.default)((0,ps.default)((0,ps.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),l);return PE(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:i})}async function QE(e){const t={},n=await GE(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Fe(Bn(),1);const uy=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function cy(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(o){const s=[[]];let u=0;for(;;){const f=o[u];if(!f)break;const h=s[s.length-1];if(f.aborted){var d;(d=f.reject)===null||d===void 0||d.call(f,new Error("Aborted")),u++;continue}if(e.validate(h.concat(f).map(m=>m.key))){h.push(f),u++;continue}if(h.length===0){var c;(c=f.reject)===null||c===void 0||c.call(f,new Error("Input is too big for a single dispatch")),u++;continue}s.push([])}return s}function l(){const o=a(t);r();for(const s of o){if(!s.length)continue;const u={items:s};for(const d of s)d.batch=u;e.fetch(u.items.map(d=>d.key)).then(async d=>{await Promise.all(d.map(async(f,h)=>{const m=u.items[h];try{var v;const g=await Promise.resolve(f);(v=m.resolve)===null||v===void 0||v.call(m,g)}catch(g){var b;(b=m.reject)===null||b===void 0||b.call(m,g)}m.batch=null,m.reject=null,m.resolve=null}));for(const f of u.items){var c;(c=f.reject)===null||c===void 0||c.call(f,new Error("Missing result")),f.batch=null}}).catch(d=>{for(const f of u.items){var c;(c=f.reject)===null||c===void 0||c.call(f,d),f.batch=null}})}}function i(o){var s;const u={aborted:!1,key:o,batch:null,resolve:uy,reject:uy},d=new Promise((c,f)=>{var h;u.reject=f,u.resolve=c,(h=t)!==null&&h!==void 0||(t=[]),t.push(u)});return(s=n)!==null&&s!==void 0||(n=setTimeout(l)),d}return{load:i}}function XE(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const l of e)l!=null&&l.aborted?a():l==null||l.addEventListener("abort",a,{once:!0});return t.signal}var Iu=Fe(Bn(),1);function YE(e){var t,n;const r=HE(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,l=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const i=d=>({validate(c){if(a===1/0&&l===1/0)return!0;if(c.length>l)return!1;const f=c.map(m=>m.path).join(","),h=c.map(m=>m.input);return V8((0,Iu.default)((0,Iu.default)({},r),{},{type:d,path:f,inputs:h,signal:null})).length<=a},async fetch(c){const f=c.map(b=>b.path).join(","),h=c.map(b=>b.input),m=XE(...c.map(b=>b.signal)),v=await qE((0,Iu.default)((0,Iu.default)({},r),{},{path:f,inputs:h,type:d,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:m}));return(Array.isArray(v.json)?v.json:c.map(()=>v.json)).map(b=>({meta:v.meta,json:b}))}}),o=cy(i("query")),s=cy(i("mutation")),u={query:o,mutation:s};return({op:d})=>ff(c=>{/* istanbul ignore if -- @preserve */if(d.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=u[d.type].load(d);let h;return f.then(m=>{h=m;const v=NE(m.json,r.transformer.output);if(!v.ok){c.error(md.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(md.from(m,{meta:h==null?void 0:h.meta}))}),()=>{}})}}Fe(Bn(),1);const G8=(e,...t)=>typeof e=="function"?e(...t):e;Fe(Ml(),1);function IE(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function ZE(e){const t=await G8(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function $E(e){const t={method:"connectionParams",data:await G8(e)};return JSON.stringify(t)}Fe(Ml(),1);var Ja=Fe(Ml(),1);function WE(e){const{promise:t,resolve:n,reject:r}=IE();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function JE(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function l(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function i(){clearTimeout(r),l()}function o(){clearTimeout(a),i()}e.addEventListener("open",l),e.addEventListener("message",({data:s})=>{clearTimeout(r),l(),s==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var eM=class Sp{constructor(t){var n;if((0,Ja.default)(this,"id",++Sp.connectCount),(0,Ja.default)(this,"WebSocketPonyfill",void 0),(0,Ja.default)(this,"urlOptions",void 0),(0,Ja.default)(this,"keepAliveOpts",void 0),(0,Ja.default)(this,"wsObservable",xE(null)),(0,Ja.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Sp.connectCount;const n=ZE(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&JE(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await WE(r),t.urlOptions.connectionParams&&r.send(await $E(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Ja.default)(eM,"connectCount",0);Fe(Ml(),1);Fe(Bn(),1);var L0=Fe(Ml(),1),dy=Fe(Bn(),1),mf=class{constructor(e){(0,L0.default)(this,"links",void 0),(0,L0.default)(this,"runtime",void 0),(0,L0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return CE({links:this.links,op:(0,dy.default)((0,dy.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(wE())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await bE(n)).result.data}catch(n){throw md.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(r){switch(r.result.type){case"state":{var a;(a=n.onConnectionStateChange)===null||a===void 0||a.call(n,r.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:r.context});break}case"stopped":{var i;(i=n.onStopped)===null||i===void 0||i.call(n);break}case"data":case void 0:{var o;(o=n.onData)===null||o===void 0||o.call(n,r.result.data);break}}},error(r){var a;(a=n.onError)===null||a===void 0||a.call(n,r)},complete(){var r;(r=n.onComplete)===null||r===void 0||r.call(n)}})}};const Q8=Symbol.for("trpc_untypedClient"),tM={query:"query",mutate:"mutation",subscribe:"subscription"},nM=e=>tM[e];function X8(e){const t=pf(({path:n,args:r})=>{const a=[...n],l=nM(a.pop()),i=a.join(".");return e[l](i,...r)});return vg(n=>n===Q8?e:t[n])}function rM(e){const t=new mf(e);return X8(t)}function bg(e){return e[Q8]}Fe(Bn(),1);Fe(Bn(),1);var aM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Fe(aM(),1);Fe(Bn(),1);var lM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(o,s){var u=Error();return u.name="SuppressedError",u.error=o,u.suppressed=s,u},a={},l=[];function i(o,s){if(s!=null){if(Object(s)!==s)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(o)var u=s[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=s[Symbol.dispose||Symbol.for("Symbol.dispose")],o))var d=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");d&&(u=function(){try{d.call(s)}catch(c){return Promise.reject(c)}}),l.push({v:s,d:u,a:o})}else o&&l.push({d:s,a:o});return s}return{e:a,u:i.bind(null,!1),a:i.bind(null,!0),d:function(){var o,s=this.e,u=0;function d(){for(;o=l.pop();)try{if(!o.a&&u===1)return u=0,l.push(o),Promise.resolve().then(d);if(o.d){var f=o.d.call(o.v);if(o.a)return u|=2,Promise.resolve(f).then(d,c)}else u|=1}catch(h){return c(h)}if(u===1)return s!==a?Promise.reject(s):Promise.resolve();if(s!==a)throw s}function c(f){return s=s!==a?new r(f,s):f,d()}return d()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Y8=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),iM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Y8();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),oM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Y8();function r(l){return function(){return new a(l.apply(this,arguments))}}function a(l){var i,o;function s(d,c){try{var f=l[d](c),h=f.value,m=h instanceof n;Promise.resolve(m?h.v:h).then(function(v){if(m){var b=d==="return"?"return":"next";if(!h.k||v.done)return s(b,v);v=l[b](v).value}u(f.done?"return":"normal",v)},function(v){s("throw",v)})}catch(v){u("throw",v)}}function u(d,c){switch(d){case"return":i.resolve({value:c,done:!0});break;case"throw":i.reject(c);break;default:i.resolve({value:c,done:!1})}(i=i.next)?s(i.key,i.arg):o=null}this._invoke=function(d,c){return new Promise(function(f,h){var m={key:d,arg:c,resolve:f,reject:h,next:null};o?o=o.next=m:(i=o=m,s(d,c))})},typeof l.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(l){return this._invoke("next",l)},a.prototype.throw=function(l){return this._invoke("throw",l)},a.prototype.return=function(l){return this._invoke("return",l)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Fe(lM(),1);Fe(iM(),1);Fe(oM(),1);Fe(Bn(),1);var Hs=function(){return Hs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Hs.apply(this,arguments)};function sM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function uM(e,t,n,r){function a(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function o(d){try{u(r.next(d))}catch(c){i(c)}}function s(d){try{u(r.throw(d))}catch(c){i(c)}}function u(d){d.done?l(d.value):a(d.value).then(o,s)}u((r=r.apply(e,[])).next())})}function cM(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=o(0),i.throw=o(1),i.return=o(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(u){return function(d){return s([u,d])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(l=u[0]&2?a.return:u[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,u[1])).done)return l;switch(a=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){n.label=u[1];break}if(u[0]===6&&n.label<l[1]){n.label=l[1],l=u;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(u);break}l[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],a=0}finally{r=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function zn(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,l;r<a;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var dM=Object.create,I8=Object.defineProperty,fM=Object.getOwnPropertyDescriptor,Z8=Object.getOwnPropertyNames,hM=Object.getPrototypeOf,pM=Object.prototype.hasOwnProperty,Ta=(e,t)=>function(){return t||(0,e[Z8(e)[0]])((t={exports:{}}).exports,t),t.exports},mM=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Z8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!pM.call(e,o)&&o!==n&&I8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=fM(t,o))||r.enumerable});return e},Ol=(e,t,n)=>(n=e!=null?dM(hM(e)):{},mM(t||!e||!e.__esModule?I8(n,"default",{value:e,enumerable:!0}):n,e)),gM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var l={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(a.includes(i))continue;l[i]=r[i]}return l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),vM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=gM();function r(a,l){if(a==null)return{};var i,o,s=n(a,l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(o=0;o<u.length;o++)i=u[o],l.includes(i)||{}.propertyIsEnumerable.call(a,i)&&(s[i]=a[i])}return s}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),$8=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),yM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=$8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),bM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=$8().default,r=yM();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),wM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=bM();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),du=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=wM();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),xM=Ol(vM(),1),fy=Ol(du(),1);const CM=["cursor","direction"];function Yn(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&pl(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:l}=t,i=(0,xM.default)(t,CM);return[r,{input:i,type:"infinite"}]}return[r,(0,fy.default)((0,fy.default)({},typeof t<"u"&&t!==Xt&&{input:t}),n&&n!=="any"&&{type:n})]}function Ac(e){return Yn(e,void 0,"any")}function SM(e){return pf(({path:t,args:n})=>{var r;const a=[...t],l=a.pop();if(l==="useMutation")return e[l](a,...n);if(l==="_def")return{path:a};const[i,...o]=n,s=(r=o[0])!==null&&r!==void 0?r:{};return e[l](a,i,s)})}var _0;const EM=["client","ssrContext","ssrState","abortOnUnmount"],MM=(_0=p.createContext)===null||_0===void 0?void 0:_0.call(y2,null),OM=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function RM(e){return pf(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],l=a.shift(),i=OM(r),o=Yn(n,l,i);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,o,a[0]),queryOptions:()=>e.queryOptions(n,o,...a),fetch:()=>e.fetchQuery(o,...a),fetchInfinite:()=>e.fetchInfiniteQuery(o,a[0]),prefetch:()=>e.prefetchQuery(o,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,a[0]),ensureData:()=>e.ensureQueryData(o,...a),invalidate:()=>e.invalidateQueries(o,...a),reset:()=>e.resetQueries(o,...a),refetch:()=>e.refetchQueries(o,...a),cancel:()=>e.cancelQuery(o,...a),setData:()=>{e.setQueryData(o,a[0],a[1])},setQueriesData:()=>e.setQueriesData(o,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,a[0],a[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(Ac(n),l),getMutationDefaults:()=>e.getMutationDefaults(Ac(n)),isMutating:()=>e.isMutating({mutationKey:Ac(n)})}[r]()})}function TM(e){const t=X8(e.client),n=RM(e);return vg(r=>{const a=r;return a==="client"?t:EM.includes(a)?e[a]:n[r]})}var DM=Ol(du(),1);function hy(e){const t=e instanceof mf?e:bg(e);return pf(n=>{const r=n.path,a=r.join("."),[l,i]=n.args;return(0,DM.default)({queryKey:Yn(r,l,"query"),queryFn:()=>t.query(a,l,i==null?void 0:i.trpc)},i)})}var z0=Ol(du(),1);function bt(e,t,n){var r;const a=e[0];let l=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var i;l=(0,z0.default)((0,z0.default)((0,z0.default)({},(i=l)!==null&&i!==void 0?i:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),l,t==null?void 0:t.trpc]}var jM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),AM=Ol(jM(),1);function Ep(e){return{path:e.path.join(".")}}function Lo(e){const t=Ep(e);return p.useMemo(()=>t,[t])}async function W8(e,t,n){const r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:"success"});const a=[];var l=!1,i=!1,o;try{for(var s=(0,AM.default)(e),u;l=!(u=await s.next()).done;l=!1){const d=u.value;a.push(d),r.setState({data:[...a]})}}catch(d){i=!0,o=d}finally{try{l&&s.return!=null&&await s.return()}finally{if(i)throw o}}return a}var fe=Ol(du(),1);function NM(e){const{client:t,queryClient:n}=e,r=t instanceof mf?t:bg(t);return{infiniteQueryOptions:(a,l,i)=>{var o,s;const u=((o=l[1])===null||o===void 0?void 0:o.input)===Xt,d=async c=>{var f;const h=(0,fe.default)((0,fe.default)({},i),{},{trpc:(0,fe.default)((0,fe.default)({},i==null?void 0:i.trpc),!(i==null||(f=i.trpc)===null||f===void 0)&&f.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...bt(l,h,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,fe.default)((0,fe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:u?Xt:d,initialPageParam:(s=i==null?void 0:i.initialCursor)!==null&&s!==void 0?s:null}),{trpc:Ep({path:a})})},queryOptions:(a,l,i)=>{var o;const s=((o=l[1])===null||o===void 0?void 0:o.input)===Xt,u=async d=>{var c;const f=(0,fe.default)((0,fe.default)({},i),{},{trpc:(0,fe.default)((0,fe.default)({},i==null?void 0:i.trpc),!(i==null||(c=i.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:d.signal}:{signal:null})}),h=await r.query(...bt(l,f));return z8(h)?W8(h,n,l):h};return Object.assign((0,fe.default)((0,fe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:s?Xt:u}),{trpc:Ep({path:a})})},fetchQuery:(a,l)=>n.fetchQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...bt(a,l))})),fetchInfiniteQuery:(a,l)=>{var i;return n.fetchInfiniteQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...bt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},prefetchQuery:(a,l)=>n.prefetchQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...bt(a,l))})),prefetchInfiniteQuery:(a,l)=>{var i;return n.prefetchInfiniteQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...bt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},ensureQueryData:(a,l)=>n.ensureQueryData((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...bt(a,l))})),invalidateQueries:(a,l,i)=>n.invalidateQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),resetQueries:(a,l,i)=>n.resetQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),refetchQueries:(a,l,i)=>n.refetchQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),cancelQuery:(a,l)=>n.cancelQueries({queryKey:a},l),setQueryData:(a,l,i)=>n.setQueryData(a,l,i),setQueriesData:(a,l,i,o)=>n.setQueriesData((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i,o),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,l,i)=>n.setQueryData(a,l,i),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,l)=>{const i=a[0],o=s=>r.mutation(...bt([i,{input:s}],e));return n.setMutationDefaults(a,typeof l=="function"?l({canonicalMutationFn:o}):l)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,fe.default)((0,fe.default)({},a),{},{exact:!0}))}}var Q=Ol(du());const py=(e,t)=>new Proxy(e,{get(n,r){return t(r),n[r]}});function kM(e){var t,n,r;const a=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:C=>C.originalFn(),l=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:MM,i=rM,o=C=>{var E;const{abortOnUnmount:S=!1,queryClient:M,ssrContext:N}=C,[A,k]=p.useState((E=C.ssrState)!==null&&E!==void 0?E:!1),j=C.client instanceof mf?C.client:bg(C.client),z=p.useMemo(()=>NM({client:j,queryClient:M}),[j,M]),B=p.useMemo(()=>(0,Q.default)({abortOnUnmount:S,queryClient:M,client:j,ssrContext:N??null,ssrState:A},z),[S,j,z,M,N,A]);return p.useEffect(()=>{k(L=>L?"mounted":!1)},[]),x.jsx(l.Provider,{value:B,children:C.children})};function s(){const C=p.useContext(l);if(!C)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return C}function u(C,E){var S;const{queryClient:M,ssrState:N}=s();return N&&N!=="mounted"&&((S=M.getQueryCache().find({queryKey:C}))===null||S===void 0?void 0:S.state.status)==="error"?(0,Q.default)({retryOnMount:!1},E):E}function d(C,E,S){var M,N,A,k,j;const z=s(),{abortOnUnmount:B,client:L,ssrState:P,queryClient:T,prefetchQuery:D}=z,_=Yn(C,E,"query"),U=T.getQueryDefaults(_),F=E===Xt;typeof window>"u"&&P==="prepass"&&(S==null||(M=S.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((N=S==null?void 0:S.enabled)!==null&&N!==void 0?N:U==null?void 0:U.enabled)!==!1&&!F&&!T.getQueryCache().find({queryKey:_})&&D(_,S);const G=u(_,(0,Q.default)((0,Q.default)({},U),S)),K=(A=(k=S==null||(j=S.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&k!==void 0?k:e==null?void 0:e.abortOnUnmount)!==null&&A!==void 0?A:B,V=rE((0,Q.default)((0,Q.default)({},G),{},{queryKey:_,queryFn:F?E:async X=>{const J=(0,Q.default)((0,Q.default)({},G),{},{trpc:(0,Q.default)((0,Q.default)({},G==null?void 0:G.trpc),K?{signal:X.signal}:{signal:null})}),et=await L.query(...bt(_,J));return z8(et)?W8(et,T,_):et}}),T);return V.trpc=Lo({path:C}),V}function c(C,E,S){var M,N,A;const k=s(),j=Yn(C,E,"query"),z=E===Xt,B=(M=(N=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:k.abortOnUnmount;oE((0,Q.default)((0,Q.default)({},S),{},{queryKey:j,queryFn:z?E:L=>{const P={trpc:(0,Q.default)((0,Q.default)({},S==null?void 0:S.trpc),B?{signal:L.signal}:{})};return k.client.query(...bt(j,P))}}))}function f(C,E,S){var M,N,A;const k=s(),j=Yn(C,E,"query"),z=(M=(N=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:k.abortOnUnmount,B=aE((0,Q.default)((0,Q.default)({},S),{},{queryKey:j,queryFn:L=>{const P=(0,Q.default)((0,Q.default)({},S),{},{trpc:(0,Q.default)((0,Q.default)({},S==null?void 0:S.trpc),z?{signal:L.signal}:{signal:null})});return k.client.query(...bt(j,P))}}),k.queryClient);return B.trpc=Lo({path:C}),[B.data,B]}function h(C,E){const{client:S,queryClient:M}=s(),N=Ac(C),A=M.defaultMutationOptions(M.getMutationDefaults(N)),k=uE((0,Q.default)((0,Q.default)({},E),{},{mutationKey:N,mutationFn:j=>S.mutation(...bt([C,{input:j}],E)),onSuccess(...j){var z,B;return a({originalFn:()=>{var L,P,T;return(L=E==null||(P=E.onSuccess)===null||P===void 0?void 0:P.call(E,...j))!==null&&L!==void 0?L:A==null||(T=A.onSuccess)===null||T===void 0?void 0:T.call(A,...j)},queryClient:M,meta:(z=(B=E==null?void 0:E.meta)!==null&&B!==void 0?B:A==null?void 0:A.meta)!==null&&z!==void 0?z:{}})}}),M);return k.trpc=Lo({path:C}),k}const m={data:void 0,error:null,status:"idle"},v={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function b(C,E,S){var M;const N=(M=S==null?void 0:S.enabled)!==null&&M!==void 0?M:E!==Xt,A=Ca(Yn(C,E,"any")),{client:k}=s(),j=p.useRef(S);p.useEffect(()=>{j.current=S});const[z]=p.useState(new Set([])),B=p.useCallback(F=>{z.add(F)},[z]),L=p.useRef(null),P=p.useCallback(F=>{const G=D.current,K=D.current=F(G);let V=!1;for(const X of z)if(G[X]!==K[X]){V=!0;break}V&&U(py(K,B))},[B,z]),T=p.useCallback(()=>{var F;if((F=L.current)===null||F===void 0||F.unsubscribe(),!N){P(()=>(0,Q.default)((0,Q.default)({},m),{},{reset:T}));return}P(()=>(0,Q.default)((0,Q.default)({},v),{},{reset:T}));const G=k.subscription(C.join("."),E??void 0,{onStarted:()=>{var K,V;(K=(V=j.current).onStarted)===null||K===void 0||K.call(V),P(X=>(0,Q.default)((0,Q.default)({},X),{},{status:"pending",error:null}))},onData:K=>{var V,X;(V=(X=j.current).onData)===null||V===void 0||V.call(X,K),P(J=>(0,Q.default)((0,Q.default)({},J),{},{status:"pending",data:K,error:null}))},onError:K=>{var V,X;(V=(X=j.current).onError)===null||V===void 0||V.call(X,K),P(J=>(0,Q.default)((0,Q.default)({},J),{},{status:"error",error:K}))},onConnectionStateChange:K=>{P(V=>{switch(K.state){case"idle":return(0,Q.default)((0,Q.default)({},V),{},{status:K.state,error:null,data:void 0});case"connecting":return(0,Q.default)((0,Q.default)({},V),{},{error:K.error,status:K.state});case"pending":return V}})},onComplete:()=>{var K,V;(K=(V=j.current).onComplete)===null||K===void 0||K.call(V),P(X=>(0,Q.default)((0,Q.default)({},X),{},{status:"idle",error:null,data:void 0}))}});L.current=G},[k,A,N,P]);p.useEffect(()=>(T(),()=>{var F;(F=L.current)===null||F===void 0||F.unsubscribe()}),[T]);const D=p.useRef(N?(0,Q.default)((0,Q.default)({},v),{},{reset:T}):(0,Q.default)((0,Q.default)({},m),{},{reset:T})),[_,U]=p.useState(py(D.current,B));return _}function g(C,E,S){var M,N,A,k,j;const{client:z,ssrState:B,prefetchInfiniteQuery:L,queryClient:P,abortOnUnmount:T}=s(),D=Yn(C,E,"infinite"),_=P.getQueryDefaults(D),U=E===Xt;typeof window>"u"&&B==="prepass"&&(S==null||(M=S.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((N=S==null?void 0:S.enabled)!==null&&N!==void 0?N:_==null?void 0:_.enabled)!==!1&&!U&&!P.getQueryCache().find({queryKey:D})&&L(D,(0,Q.default)((0,Q.default)({},_),S));const F=u(D,(0,Q.default)((0,Q.default)({},_),S)),G=(A=S==null||(k=S.trpc)===null||k===void 0?void 0:k.abortOnUnmount)!==null&&A!==void 0?A:T,K=cE((0,Q.default)((0,Q.default)({},F),{},{initialPageParam:(j=S.initialCursor)!==null&&j!==void 0?j:null,persister:S.persister,queryKey:D,queryFn:U?E:V=>{var X;const J=(0,Q.default)((0,Q.default)({},F),{},{trpc:(0,Q.default)((0,Q.default)({},F==null?void 0:F.trpc),G?{signal:V.signal}:{signal:null})});return z.query(...bt(D,J,{pageParam:(X=V.pageParam)!==null&&X!==void 0?X:S.initialCursor,direction:V.direction}))}}),P);return K.trpc=Lo({path:C}),K}function y(C,E,S){var M,N,A;const k=s(),j=Yn(C,E,"infinite"),z=k.queryClient.getQueryDefaults(j),B=E===Xt,L=u(j,(0,Q.default)((0,Q.default)({},z),S)),P=(M=S==null||(N=S.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&M!==void 0?M:k.abortOnUnmount;sE((0,Q.default)((0,Q.default)({},S),{},{initialPageParam:(A=S.initialCursor)!==null&&A!==void 0?A:null,queryKey:j,queryFn:B?E:T=>{var D;const _=(0,Q.default)((0,Q.default)({},L),{},{trpc:(0,Q.default)((0,Q.default)({},L==null?void 0:L.trpc),P?{signal:T.signal}:{})});return k.client.query(...bt(j,_,{pageParam:(D=T.pageParam)!==null&&D!==void 0?D:S.initialCursor,direction:T.direction}))}}))}function w(C,E,S){var M,N,A;const k=s(),j=Yn(C,E,"infinite"),z=k.queryClient.getQueryDefaults(j),B=u(j,(0,Q.default)((0,Q.default)({},z),S)),L=(M=S==null||(N=S.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&M!==void 0?M:k.abortOnUnmount,P=lE((0,Q.default)((0,Q.default)({},S),{},{initialPageParam:(A=S.initialCursor)!==null&&A!==void 0?A:null,queryKey:j,queryFn:T=>{var D;const _=(0,Q.default)((0,Q.default)({},B),{},{trpc:(0,Q.default)((0,Q.default)({},B==null?void 0:B.trpc),L?{signal:T.signal}:{})});return k.client.query(...bt(j,_,{pageParam:(D=T.pageParam)!==null&&D!==void 0?D:S.initialCursor,direction:T.direction}))}}),k.queryClient);return P.trpc=Lo({path:C}),[P.data,P]}return{Provider:o,createClient:i,useContext:s,useUtils:s,useQuery:d,usePrefetchQuery:c,useSuspenseQuery:f,useQueries:(C,E)=>{const{ssrState:S,queryClient:M,prefetchQuery:N,client:A}=s(),k=hy(A),j=C(k);if(typeof window>"u"&&S==="prepass")for(const B of j){var z;const L=B;((z=L.trpc)===null||z===void 0?void 0:z.ssr)!==!1&&!M.getQueryCache().find({queryKey:L.queryKey})&&N(L.queryKey,L)}return N8({queries:j.map(B=>(0,Q.default)((0,Q.default)({},B),{},{queryKey:B.queryKey})),combine:E==null?void 0:E.combine},M)},useSuspenseQueries:C=>{const{queryClient:E,client:S}=s(),M=hy(S),N=C(M),A=iE({queries:N.map(k=>(0,Q.default)((0,Q.default)({},k),{},{queryFn:k.queryFn,queryKey:k.queryKey}))},E);return[A.map(k=>k.data),A]},useMutation:h,useSubscription:b,useInfiniteQuery:g,usePrefetchInfiniteQuery:y,useSuspenseInfiniteQuery:w}}function LM(e){const t=SM(e);return vg(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return p.useMemo(()=>TM(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function _M(e){const t=kM(e);return LM(t)}var Se=_M({overrides:{useMutation:{onSuccess:function(e){return uM(this,void 0,void 0,function(){return cM(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
58
|
-
* react-router v7.9.
|
|
57
|
+
*/var TS=Symbol.for("react.transitional.element"),kS=Symbol.for("react.fragment");function h8(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:TS,type:e,key:r,ref:t!==void 0?t:null,props:n}}cf.Fragment=kS;cf.jsx=h8;cf.jsxs=h8;f8.exports=cf;var C=f8.exports,El=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(){}},DS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_a,Kv,Uv,jS=(Uv=class{constructor(){X(this,_a,DS),X(this,Kv,!1)}setTimeoutProvider(e){q(this,_a,e)}setTimeout(e,t){return R(this,_a).setTimeout(e,t)}clearTimeout(e){R(this,_a).clearTimeout(e)}setInterval(e,t){return R(this,_a).setInterval(e,t)}clearInterval(e){R(this,_a).clearInterval(e)}},_a=new WeakMap,Kv=new WeakMap,Uv),tl=new jS;function NS(e){setTimeout(e,0)}var hl=typeof window>"u"||"Deno"in globalThis;function gt(){}function AS(e,t){return typeof e=="function"?e(t):e}function mp(e){return typeof e=="number"&&e>=0&&e!==1/0}function p8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t){return typeof e=="function"?e(t):e}function hn(e,t){return typeof e=="function"?e(t):e}function Bv(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:l,queryKey:i,stale:o}=e;if(i){if(r){if(t.queryHash!==fg(i,t.options))return!1}else if(!Ps(t.queryKey,i))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||l&&!l(t))}function qv(e,t){const{exact:n,status:r,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ca(t.options.mutationKey)!==Ca(l))return!1}else if(!Ps(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function fg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ca)(e)}function Ca(e){return JSON.stringify(e,(t,n)=>gp(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ps(e[n],t[n])):!1}var LS=Object.prototype.hasOwnProperty;function hg(e,t){if(e===t)return e;const n=Fv(e)&&Fv(t);if(!n&&!(gp(e)&&gp(t)))return t;const r=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),l=a.length,i=n?new Array(l):{};let o=0;for(let s=0;s<l;s++){const u=n?s:a[s],d=e[u],c=t[u];if(d===c){i[u]=d,(n?s<r:LS.call(e,u))&&o++;continue}if(d===null||c===null||typeof d!="object"||typeof c!="object"){i[u]=c;continue}const f=hg(d,c);i[u]=f,f===d&&o++}return r===l&&o===r?e:i}function Hs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gp(e){if(!Vv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Vv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vv(e){return Object.prototype.toString.call(e)==="[object Object]"}function _S(e){return new Promise(t=>{tl.setTimeout(t,e)})}function vp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?hg(e,t):t}function zS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function PS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xt=Symbol();function m8(e,t){return!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Xt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function g8(e,t){return typeof e=="function"?e(...t):!!e}var _l,za,yo,Gv,HS=(Gv=class extends El{constructor(){super(),X(this,_l),X(this,za),X(this,yo),q(this,yo,e=>{if(!hl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){R(this,za)||this.setEventListener(R(this,yo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,za))==null||e.call(this),q(this,za,void 0))}setEventListener(e){var t;q(this,yo,e),(t=R(this,za))==null||t.call(this),q(this,za,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){R(this,_l)!==e&&(q(this,_l,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof R(this,_l)=="boolean"?R(this,_l):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},_l=new WeakMap,za=new WeakMap,yo=new WeakMap,Gv),pg=new HS;function bp(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var KS=NS;function US(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=KS;const l=o=>{t?e.push(o):a(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||i()}return s},batchCalls:o=>(...s)=>{l(()=>{o(...s)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Pe=US(),xo,Pa,wo,Qv,BS=(Qv=class extends El{constructor(){super(),X(this,xo,!0),X(this,Pa),X(this,wo),q(this,wo,e=>{if(!hl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,Pa)||this.setEventListener(R(this,wo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Pa))==null||e.call(this),q(this,Pa,void 0))}setEventListener(e){var t;q(this,wo,e),(t=R(this,Pa))==null||t.call(this),q(this,Pa,e(this.setOnline.bind(this)))}setOnline(e){R(this,xo)!==e&&(q(this,xo,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return R(this,xo)}},xo=new WeakMap,Pa=new WeakMap,wo=new WeakMap,Qv),fd=new BS;function qS(e){return Math.min(1e3*2**e,3e4)}function v8(e){return(e??"online")==="online"?fd.isOnline():!0}var yp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function b8(e){let t=!1,n=0,r;const a=bp(),l=()=>a.status!=="pending",i=b=>{var y;if(!l()){const g=new yp(b);f(g),(y=e.onCancel)==null||y.call(e,g)}},o=()=>{t=!0},s=()=>{t=!1},u=()=>pg.isFocused()&&(e.networkMode==="always"||fd.isOnline())&&e.canRun(),d=()=>v8(e.networkMode)&&e.canRun(),c=b=>{l()||(r==null||r(),a.resolve(b))},f=b=>{l()||(r==null||r(),a.reject(b))},h=()=>new Promise(b=>{var y;r=g=>{(l()||u())&&b(g)},(y=e.onPause)==null||y.call(e)}).then(()=>{var b;r=void 0,l()||(b=e.onContinue)==null||b.call(e)}),m=()=>{if(l())return;let b;const y=n===0?e.initialPromise:void 0;try{b=y??e.fn()}catch(g){b=Promise.reject(g)}Promise.resolve(b).then(c).catch(g=>{var v;if(l())return;const x=e.retry??(hl?0:3),w=e.retryDelay??qS,E=typeof w=="function"?w(n,g):w,S=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,g);if(t||!S){f(g);return}n++,(v=e.onFail)==null||v.call(e,n,g),_S(E).then(()=>u()?void 0:h()).then(()=>{t?f(g):m()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:s,canStart:d,start:()=>(d()?m():h().then(m),a)}}var zl,Iv,y8=(Iv=class{constructor(){X(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mp(this.gcTime)&&q(this,zl,tl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hl?1/0:5*60*1e3))}clearGcTimeout(){R(this,zl)&&(tl.clearTimeout(R(this,zl)),q(this,zl,void 0))}},zl=new WeakMap,Iv),Pl,Co,An,Hl,ut,Pu,Kl,Vn,ur,Xv,FS=(Xv=class extends y8{constructor(e){super(),X(this,Vn),X(this,Pl),X(this,Co),X(this,An),X(this,Hl),X(this,ut),X(this,Pu),X(this,Kl),q(this,Kl,!1),q(this,Pu,e.defaultOptions),this.setOptions(e.options),this.observers=[],q(this,Hl,e.client),q(this,An,R(this,Hl).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,q(this,Pl,Zv(this.options)),this.state=e.state??R(this,Pl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ut))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Pu),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Zv(this.options);t.data!==void 0&&(this.setState(Yv(t.data,t.dataUpdatedAt)),q(this,Pl,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,An).remove(this)}setData(e,t){const n=vp(this.state.data,e,this.options);return $(this,Vn,ur).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){$(this,Vn,ur).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=(t=R(this,ut))==null?void 0:t.promise;return(n=R(this,ut))==null||n.cancel(e),r?r.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Pl))}isActive(){return this.observers.some(e=>hn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>pa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!p8(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ut))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ut))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,An).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(R(this,ut)&&(R(this,Kl)?R(this,ut).cancel({revert:!0}):R(this,ut).cancelRetry()),this.scheduleGc()),R(this,An).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Vn,ur).call(this,{type:"invalidate"})}async fetch(e,t){var n,r,a,l,i,o,s,u,d,c,f,h;if(this.state.fetchStatus!=="idle"&&((n=R(this,ut))==null?void 0:n.status())!=="rejected"){if(this.state.data!==void 0&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(R(this,ut))return R(this,ut).continueRetry(),R(this,ut).promise}if(e&&this.setOptions(e),!this.options.queryFn){const v=this.observers.find(x=>x.options.queryFn);v&&this.setOptions(v.options)}const m=new AbortController,b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(q(this,Kl,!0),m.signal)})},y=()=>{const v=m8(this.options,t),x=(()=>{const w={client:R(this,Hl),queryKey:this.queryKey,meta:this.meta};return b(w),w})();return q(this,Kl,!1),this.options.persister?this.options.persister(v,x,this):v(x)},g=(()=>{const v={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:R(this,Hl),state:this.state,fetchFn:y};return b(v),v})();(r=this.options.behavior)==null||r.onFetch(g,this),q(this,Co,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=g.fetchOptions)==null?void 0:a.meta))&&$(this,Vn,ur).call(this,{type:"fetch",meta:(l=g.fetchOptions)==null?void 0:l.meta}),q(this,ut,b8({initialPromise:t==null?void 0:t.initialPromise,fn:g.fetchFn,onCancel:v=>{v instanceof yp&&v.revert&&this.setState({...R(this,Co),fetchStatus:"idle"}),m.abort()},onFail:(v,x)=>{$(this,Vn,ur).call(this,{type:"failed",failureCount:v,error:x})},onPause:()=>{$(this,Vn,ur).call(this,{type:"pause"})},onContinue:()=>{$(this,Vn,ur).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const v=await R(this,ut).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(o=(i=R(this,An).config).onSuccess)==null||o.call(i,v,this),(u=(s=R(this,An).config).onSettled)==null||u.call(s,v,this.state.error,this),v}catch(v){if(v instanceof yp){if(v.silent)return R(this,ut).promise;if(v.revert){if(this.state.data===void 0)throw v;return this.state.data}}throw $(this,Vn,ur).call(this,{type:"error",error:v}),(c=(d=R(this,An).config).onError)==null||c.call(d,v,this),(h=(f=R(this,An).config).onSettled)==null||h.call(f,this.state.data,v,this),v}finally{this.scheduleGc()}}},Pl=new WeakMap,Co=new WeakMap,An=new WeakMap,Hl=new WeakMap,ut=new WeakMap,Pu=new WeakMap,Kl=new WeakMap,Vn=new WeakSet,ur=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...x8(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...Yv(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Co,e.manual?r:void 0),r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Pe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,An).notify({query:this,type:"updated",action:e})})},Xv);function x8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:v8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Zv(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 Bt,de,Hu,Mt,Ul,So,Pr,Ha,Ku,Eo,Mo,Bl,ql,Ka,Oo,He,Ro,x0,w0,C0,S0,E0,M0,O0,$v,Wv,su=(Wv=class extends El{constructor(e,t){super(),X(this,He),X(this,Bt),X(this,de),X(this,Hu),X(this,Mt),X(this,Ul),X(this,So),X(this,Pr),X(this,Ha),X(this,Ku),X(this,Eo),X(this,Mo),X(this,Bl),X(this,ql),X(this,Ka),X(this,Oo,new Set),this.options=t,q(this,Bt,e),q(this,Ha,null),q(this,Pr,bp()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,de).addObserver(this),Jv(R(this,de),this.options)?$(this,He,Ro).call(this):this.updateResult(),$(this,He,S0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xp(R(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xp(R(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,He,E0).call(this),$(this,He,M0).call(this),R(this,de).removeObserver(this)}setOptions(e){const t=this.options,n=R(this,de);if(this.options=R(this,Bt).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hn(this.options.enabled,R(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,He,O0).call(this),R(this,de).setOptions(this.options),t._defaulted&&!Hs(this.options,t)&&R(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,de),observer:this});const r=this.hasListeners();r&&eb(R(this,de),n,this.options,t)&&$(this,He,Ro).call(this),this.updateResult(),r&&(R(this,de)!==n||hn(this.options.enabled,R(this,de))!==hn(t.enabled,R(this,de))||pa(this.options.staleTime,R(this,de))!==pa(t.staleTime,R(this,de)))&&$(this,He,x0).call(this);const a=$(this,He,w0).call(this);r&&(R(this,de)!==n||hn(this.options.enabled,R(this,de))!==hn(t.enabled,R(this,de))||a!==R(this,Ka))&&$(this,He,C0).call(this,a)}getOptimisticResult(e){const t=R(this,Bt).getQueryCache().build(R(this,Bt),e),n=this.createResult(t,e);return GS(this,n)&&(q(this,Mt,n),q(this,So,this.options),q(this,Ul,R(this,de).state)),n}getCurrentResult(){return R(this,Mt)}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t==null||t(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Pr).status==="pending"&&R(this,Pr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){R(this,Oo).add(e)}getCurrentQuery(){return R(this,de)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=R(this,Bt).defaultQueryOptions(e),n=R(this,Bt).getQueryCache().build(R(this,Bt),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return $(this,He,Ro).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Mt)))}createResult(e,t){var n;const r=R(this,de),a=this.options,l=R(this,Mt),i=R(this,Ul),o=R(this,So),s=e!==r?e.state:R(this,Hu),{state:u}=e;let d={...u},c=!1,f;if(t._optimisticResults){const M=this.hasListeners(),N=!M&&Jv(e,t),j=M&&eb(e,r,t,a);(N||j)&&(d={...d,...x8(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:b}=d;f=d.data;let y=!1;if(t.placeholderData!==void 0&&f===void 0&&b==="pending"){let M;l!=null&&l.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData)?(M=l.data,y=!0):M=typeof t.placeholderData=="function"?t.placeholderData((n=R(this,Mo))==null?void 0:n.state.data,R(this,Mo)):t.placeholderData,M!==void 0&&(b="success",f=vp(l==null?void 0:l.data,M,t),c=!0)}if(t.select&&f!==void 0&&!y)if(l&&f===(i==null?void 0:i.data)&&t.select===R(this,Ku))f=R(this,Eo);else try{q(this,Ku,t.select),f=t.select(f),f=vp(l==null?void 0:l.data,f,t),q(this,Eo,f),q(this,Ha,null)}catch(M){q(this,Ha,M)}R(this,Ha)&&(h=R(this,Ha),f=R(this,Eo),m=Date.now(),b="error");const g=d.fetchStatus==="fetching",v=b==="pending",x=b==="error",w=v&&g,E=f!==void 0,S={status:b,fetchStatus:d.fetchStatus,isPending:v,isSuccess:b==="success",isError:x,isInitialLoading:w,isLoading:w,data:f,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>s.dataUpdateCount||d.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:x&&!E,isPaused:d.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:x&&E,isStale:mg(e,t),refetch:this.refetch,promise:R(this,Pr),isEnabled:hn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=A=>{S.status==="error"?A.reject(S.error):S.data!==void 0&&A.resolve(S.data)},N=()=>{const A=q(this,Pr,S.promise=bp());M(A)},j=R(this,Pr);switch(j.status){case"pending":e.queryHash===r.queryHash&&M(j);break;case"fulfilled":(S.status==="error"||S.data!==j.value)&&N();break;case"rejected":(S.status!=="error"||S.error!==j.reason)&&N();break}}return S}updateResult(){const e=R(this,Mt),t=this.createResult(R(this,de),this.options);if(q(this,Ul,R(this,de).state),q(this,So,this.options),R(this,Ul).data!==void 0&&q(this,Mo,R(this,de)),Hs(t,e))return;q(this,Mt,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!R(this,Oo).size)return!0;const l=new Set(a??R(this,Oo));return this.options.throwOnError&&l.add("error"),Object.keys(R(this,Mt)).some(i=>{const o=i;return R(this,Mt)[o]!==e[o]&&l.has(o)})};$(this,He,$v).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,He,S0).call(this)}},Bt=new WeakMap,de=new WeakMap,Hu=new WeakMap,Mt=new WeakMap,Ul=new WeakMap,So=new WeakMap,Pr=new WeakMap,Ha=new WeakMap,Ku=new WeakMap,Eo=new WeakMap,Mo=new WeakMap,Bl=new WeakMap,ql=new WeakMap,Ka=new WeakMap,Oo=new WeakMap,He=new WeakSet,Ro=function(e){$(this,He,O0).call(this);let t=R(this,de).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(gt)),t},x0=function(){$(this,He,E0).call(this);const e=pa(this.options.staleTime,R(this,de));if(hl||R(this,Mt).isStale||!mp(e))return;const t=p8(R(this,Mt).dataUpdatedAt,e)+1;q(this,Bl,tl.setTimeout(()=>{R(this,Mt).isStale||this.updateResult()},t))},w0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,de)):this.options.refetchInterval)??!1},C0=function(e){$(this,He,M0).call(this),q(this,Ka,e),!(hl||hn(this.options.enabled,R(this,de))===!1||!mp(R(this,Ka))||R(this,Ka)===0)&&q(this,ql,tl.setInterval(()=>{(this.options.refetchIntervalInBackground||pg.isFocused())&&$(this,He,Ro).call(this)},R(this,Ka)))},S0=function(){$(this,He,x0).call(this),$(this,He,C0).call(this,$(this,He,w0).call(this))},E0=function(){R(this,Bl)&&(tl.clearTimeout(R(this,Bl)),q(this,Bl,void 0))},M0=function(){R(this,ql)&&(tl.clearInterval(R(this,ql)),q(this,ql,void 0))},O0=function(){const e=R(this,Bt).getQueryCache().build(R(this,Bt),this.options);if(e===R(this,de))return;const t=R(this,de);q(this,de,e),q(this,Hu,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},$v=function(e){Pe.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(R(this,Mt))}),R(this,Bt).getQueryCache().notify({query:R(this,de),type:"observerResultsUpdated"})})},Wv);function VS(e,t){return hn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jv(e,t){return VS(e,t)||e.state.data!==void 0&&xp(e,t,t.refetchOnMount)}function xp(e,t,n){if(hn(t.enabled,e)!==!1&&pa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&mg(e,t)}return!1}function eb(e,t,n,r){return(e!==t||hn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&mg(e,n)}function mg(e,t){return hn(t.enabled,e)!==!1&&e.isStaleByTime(pa(t.staleTime,e))}function GS(e,t){return!Hs(e.getCurrentResult(),t)}function hd(e){return{onFetch:(t,n)=>{var r,a,l,i,o;const s=t.options,u=(l=(a=(r=t.fetchOptions)==null?void 0:r.meta)==null?void 0:a.fetchMore)==null?void 0:l.direction,d=((i=t.state.data)==null?void 0:i.pages)||[],c=((o=t.state.data)==null?void 0:o.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const m=async()=>{let b=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},g=m8(t.options,t.fetchOptions),v=async(x,w,E)=>{if(b)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const S=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:w,direction:E?"backward":"forward",meta:t.options.meta};return y(A),A})(),M=await g(S),{maxPages:N}=t.options,j=E?PS:zS;return{pages:j(x.pages,M,N),pageParams:j(x.pageParams,w,N)}};if(u&&d.length){const x=u==="backward",w=x?w8:wp,E={pages:d,pageParams:c},S=w(s,E);f=await v(E,S,x)}else{const x=e??d.length;do{const w=h===0?c[0]??s.initialPageParam:wp(s,f);if(h>0&&w==null)break;f=await v(f,w),h++}while(h<x)}return f};t.options.persister?t.fetchFn=()=>{var b,y;return(y=(b=t.options).persister)==null?void 0:y.call(b,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function wp(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 w8(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}function QS(e,t){return t?wp(e,t)!=null:!1}function IS(e,t){return!t||!e.getPreviousPageParam?!1:w8(e,t)!=null}var C8=class extends su{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:hd()})}getOptimisticResult(e){return e.behavior=hd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var n,r;const{state:a}=e,l=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:u}=l,d=(r=(n=a.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:r.direction,c=s&&d==="forward",f=i&&d==="forward",h=s&&d==="backward",m=i&&d==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:QS(t,a.data),hasPreviousPage:IS(t,a.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:h,isFetchingPreviousPage:m,isRefetchError:u&&!c&&!h,isRefetching:o&&!f&&!m}}},Uu,cr,Ot,Fl,dr,Hr,tb,XS=(tb=class extends y8{constructor(e){super(),X(this,dr),X(this,Uu),X(this,cr),X(this,Ot),X(this,Fl),q(this,Uu,e.client),this.mutationId=e.mutationId,q(this,Ot,e.mutationCache),q(this,cr,[]),this.state=e.state||S8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,cr).includes(e)||(R(this,cr).push(e),this.clearGcTimeout(),R(this,Ot).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){q(this,cr,R(this,cr).filter(t=>t!==e)),this.scheduleGc(),R(this,Ot).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,cr).length||(this.state.status==="pending"?this.scheduleGc():R(this,Ot).remove(this))}continue(){var e;return((e=R(this,Fl))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,a,l,i,o,s,u,d,c,f,h,m,b,y,g,v,x,w;const E=()=>{$(this,dr,Hr).call(this,{type:"continue"})},S={client:R(this,Uu),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Fl,b8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,S):Promise.reject(new Error("No mutationFn found")),onFail:(j,A)=>{$(this,dr,Hr).call(this,{type:"failed",failureCount:j,error:A})},onPause:()=>{$(this,dr,Hr).call(this,{type:"pause"})},onContinue:E,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Ot).canRun(this)}));const M=this.state.status==="pending",N=!R(this,Fl).canStart();try{if(M)E();else{$(this,dr,Hr).call(this,{type:"pending",variables:e,isPaused:N}),await((n=(t=R(this,Ot).config).onMutate)==null?void 0:n.call(t,e,this,S));const A=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,e,S));A!==this.state.context&&$(this,dr,Hr).call(this,{type:"pending",context:A,variables:e,isPaused:N})}const j=await R(this,Fl).start();return await((i=(l=R(this,Ot).config).onSuccess)==null?void 0:i.call(l,j,e,this.state.context,this,S)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,j,e,this.state.context,S)),await((d=(u=R(this,Ot).config).onSettled)==null?void 0:d.call(u,j,null,this.state.variables,this.state.context,this,S)),await((f=(c=this.options).onSettled)==null?void 0:f.call(c,j,null,e,this.state.context,S)),$(this,dr,Hr).call(this,{type:"success",data:j}),j}catch(j){try{throw await((m=(h=R(this,Ot).config).onError)==null?void 0:m.call(h,j,e,this.state.context,this,S)),await((y=(b=this.options).onError)==null?void 0:y.call(b,j,e,this.state.context,S)),await((v=(g=R(this,Ot).config).onSettled)==null?void 0:v.call(g,void 0,j,this.state.variables,this.state.context,this,S)),await((w=(x=this.options).onSettled)==null?void 0:w.call(x,void 0,j,e,this.state.context,S)),j}finally{$(this,dr,Hr).call(this,{type:"error",error:j})}}finally{R(this,Ot).runNext(this)}}},Uu=new WeakMap,cr=new WeakMap,Ot=new WeakMap,Fl=new WeakMap,dr=new WeakSet,Hr=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Pe.batch(()=>{R(this,cr).forEach(n=>{n.onMutationUpdate(e)}),R(this,Ot).notify({mutation:this,type:"updated",action:e})})},tb);function S8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kr,Gn,Bu,nb,YS=(nb=class extends El{constructor(e={}){super(),X(this,Kr),X(this,Gn),X(this,Bu),this.config=e,q(this,Kr,new Set),q(this,Gn,new Map),q(this,Bu,0)}build(e,t,n){const r=new XS({client:e,mutationCache:this,mutationId:++pp(this,Bu)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){R(this,Kr).add(e);const t=qu(e);if(typeof t=="string"){const n=R(this,Gn).get(t);n?n.push(e):R(this,Gn).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Kr).delete(e)){const t=qu(e);if(typeof t=="string"){const n=R(this,Gn).get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&R(this,Gn).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=qu(e);if(typeof t=="string"){const n=R(this,Gn).get(t),r=n==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){var t;const n=qu(e);if(typeof n=="string"){const r=(t=R(this,Gn).get(n))==null?void 0:t.find(a=>a!==e&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pe.batch(()=>{R(this,Kr).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Kr).clear(),R(this,Gn).clear()})}getAll(){return Array.from(R(this,Kr))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>qv(t,n))}findAll(e={}){return this.getAll().filter(t=>qv(e,t))}notify(e){Pe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Pe.batch(()=>Promise.all(e.map(t=>t.continue().catch(gt))))}},Kr=new WeakMap,Gn=new WeakMap,Bu=new WeakMap,nb);function qu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ur,Ua,qt,Br,Ba,Fu,R0,rb,ZS=(rb=class extends El{constructor(e,t){super(),X(this,Ba),X(this,Ur),X(this,Ua),X(this,qt),X(this,Br),q(this,Ur,e),this.setOptions(t),this.bindMethods(),$(this,Ba,Fu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=R(this,Ur).defaultMutationOptions(e),Hs(this.options,n)||R(this,Ur).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,qt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ca(n.mutationKey)!==Ca(this.options.mutationKey)?this.reset():((t=R(this,qt))==null?void 0:t.state.status)==="pending"&&R(this,qt).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=R(this,qt))==null||e.removeObserver(this)}onMutationUpdate(e){$(this,Ba,Fu).call(this),$(this,Ba,R0).call(this,e)}getCurrentResult(){return R(this,Ua)}reset(){var e;(e=R(this,qt))==null||e.removeObserver(this),q(this,qt,void 0),$(this,Ba,Fu).call(this),$(this,Ba,R0).call(this)}mutate(e,t){var n;return q(this,Br,t),(n=R(this,qt))==null||n.removeObserver(this),q(this,qt,R(this,Ur).getMutationCache().build(R(this,Ur),this.options)),R(this,qt).addObserver(this),R(this,qt).execute(e)}},Ur=new WeakMap,Ua=new WeakMap,qt=new WeakMap,Br=new WeakMap,Ba=new WeakSet,Fu=function(){var e;const t=((e=R(this,qt))==null?void 0:e.state)??S8();q(this,Ua,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},R0=function(e){Pe.batch(()=>{var t,n,r,a,l,i,o,s;if(R(this,Br)&&this.hasListeners()){const u=R(this,Ua).variables,d=R(this,Ua).context,c={client:R(this,Ur),meta:this.options.meta,mutationKey:this.options.mutationKey};(e==null?void 0:e.type)==="success"?((n=(t=R(this,Br)).onSuccess)==null||n.call(t,e.data,u,d,c),(a=(r=R(this,Br)).onSettled)==null||a.call(r,e.data,null,u,d,c)):(e==null?void 0:e.type)==="error"&&((i=(l=R(this,Br)).onError)==null||i.call(l,e.error,u,d,c),(s=(o=R(this,Br)).onSettled)==null||s.call(o,void 0,e.error,u,d,c))}this.listeners.forEach(u=>{u(R(this,Ua))})})},rb);function ab(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function $S(e,t,n){const r=e.slice(0);return r[t]=n,r}var To,un,ko,Do,Ln,qa,Vu,Gu,Qu,cn,T0,k0,D0,j0,N0,lb,WS=(lb=class extends El{constructor(e,t,n){super(),X(this,cn),X(this,To),X(this,un),X(this,ko),X(this,Do),X(this,Ln),X(this,qa),X(this,Vu),X(this,Gu),X(this,Qu,[]),q(this,To,e),q(this,Do,n),q(this,ko,[]),q(this,Ln,[]),q(this,un,[]),this.setQueries(t)}onSubscribe(){this.listeners.size===1&&R(this,Ln).forEach(e=>{e.subscribe(t=>{$(this,cn,j0).call(this,e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,R(this,Ln).forEach(e=>{e.destroy()})}setQueries(e,t){q(this,ko,e),q(this,Do,t),Pe.batch(()=>{const n=R(this,Ln),r=$(this,cn,D0).call(this,R(this,ko));q(this,Qu,r),r.forEach(d=>d.observer.setOptions(d.defaultedQueryOptions));const a=r.map(d=>d.observer),l=a.map(d=>d.getCurrentResult()),i=n.length!==a.length,o=a.some((d,c)=>d!==n[c]),s=i||o,u=s?!0:l.some((d,c)=>{const f=R(this,un)[c];return!f||!Hs(d,f)});!s&&!u||(s&&q(this,Ln,a),q(this,un,l),this.hasListeners()&&(s&&(ab(n,a).forEach(d=>{d.destroy()}),ab(a,n).forEach(d=>{d.subscribe(c=>{$(this,cn,j0).call(this,d,c)})})),$(this,cn,N0).call(this)))})}getCurrentResult(){return R(this,un)}getQueries(){return R(this,Ln).map(e=>e.getCurrentQuery())}getObservers(){return R(this,Ln)}getOptimisticResult(e,t){const n=$(this,cn,D0).call(this,e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>$(this,cn,k0).call(this,a??r,t),()=>$(this,cn,T0).call(this,r,n)]}},To=new WeakMap,un=new WeakMap,ko=new WeakMap,Do=new WeakMap,Ln=new WeakMap,qa=new WeakMap,Vu=new WeakMap,Gu=new WeakMap,Qu=new WeakMap,cn=new WeakSet,T0=function(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,l=>{t.forEach(i=>{i.observer.trackProp(l)})})})},k0=function(e,t){return t?((!R(this,qa)||R(this,un)!==R(this,Gu)||t!==R(this,Vu))&&(q(this,Vu,t),q(this,Gu,R(this,un)),q(this,qa,hg(R(this,qa),t(e)))),R(this,qa)):e},D0=function(e){const t=new Map(R(this,Ln).map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=R(this,To).defaultQueryOptions(r),l=t.get(a.queryHash);l?n.push({defaultedQueryOptions:a,observer:l}):n.push({defaultedQueryOptions:a,observer:new su(R(this,To),a)})}),n},j0=function(e,t){const n=R(this,Ln).indexOf(e);n!==-1&&(q(this,un,$S(R(this,un),n,t)),$(this,cn,N0).call(this))},N0=function(){var e;if(this.hasListeners()){const t=R(this,qa),n=$(this,cn,T0).call(this,R(this,un),R(this,Qu)),r=$(this,cn,k0).call(this,n,(e=R(this,Do))==null?void 0:e.combine);t!==r&&Pe.batch(()=>{this.listeners.forEach(a=>{a(R(this,un))})})}},lb),fr,ib,JS=(ib=class extends El{constructor(e={}){super(),X(this,fr),this.config=e,q(this,fr,new Map)}build(e,t,n){const r=t.queryKey,a=t.queryHash??fg(r,t);let l=this.get(a);return l||(l=new FS({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(l)),l}add(e){R(this,fr).has(e.queryHash)||(R(this,fr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=R(this,fr).get(e.queryHash);t&&(e.destroy(),t===e&&R(this,fr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Pe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,fr).get(e)}getAll(){return[...R(this,fr).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Bv(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Bv(e,n)):t}notify(e){Pe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fr=new WeakMap,ib),Ke,Fa,Va,jo,No,Ga,Ao,Lo,ob,eE=(ob=class{constructor(e={}){X(this,Ke),X(this,Fa),X(this,Va),X(this,jo),X(this,No),X(this,Ga),X(this,Ao),X(this,Lo),q(this,Ke,e.queryCache||new JS),q(this,Fa,e.mutationCache||new YS),q(this,Va,e.defaultOptions||{}),q(this,jo,new Map),q(this,No,new Map),q(this,Ga,0)}mount(){pp(this,Ga)._++,R(this,Ga)===1&&(q(this,Ao,pg.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ke).onFocus())})),q(this,Lo,fd.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ke).onOnline())})))}unmount(){var e,t;pp(this,Ga)._--,R(this,Ga)===0&&((e=R(this,Ao))==null||e.call(this),q(this,Ao,void 0),(t=R(this,Lo))==null||t.call(this),q(this,Lo,void 0))}isFetching(e){return R(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Fa).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Ke).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=R(this,Ke).get(r.queryHash),l=a==null?void 0:a.state.data,i=AS(t,l);if(i!==void 0)return R(this,Ke).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Pe.batch(()=>R(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Ke).get(n.queryHash))==null?void 0:t.state}removeQueries(e){const t=R(this,Ke);Pe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Ke);return Pe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Pe.batch(()=>R(this,Ke).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Pe.batch(()=>(R(this,Ke).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=Pe.batch(()=>R(this,Ke).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(gt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Ke).build(this,t);return n.isStaleByTime(pa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=hd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=hd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fd.isOnline()?R(this,Fa).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ke)}getMutationCache(){return R(this,Fa)}getDefaultOptions(){return R(this,Va)}setDefaultOptions(e){q(this,Va,e)}setQueryDefaults(e,t){R(this,jo).set(Ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,jo).values()],n={};return t.forEach(r=>{Ps(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,No).set(Ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,No).values()],n={};return t.forEach(r=>{Ps(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Va).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fg(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===Xt&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Va).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Ke).clear(),R(this,Fa).clear()}},Ke=new WeakMap,Fa=new WeakMap,Va=new WeakMap,jo=new WeakMap,No=new WeakMap,Ga=new WeakMap,Ao=new WeakMap,Lo=new WeakMap,ob),E8=p.createContext(void 0),uu=e=>{const t=p.useContext(E8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tE=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(E8.Provider,{value:e,children:t})),M8=p.createContext(!1),O8=()=>p.useContext(M8);M8.Provider;function nE(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var rE=p.createContext(nE()),R8=()=>p.useContext(rE),T8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},k8=e=>{p.useEffect(()=>{e.clearReset()},[e])},D8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||g8(n,[e.error,r])),gg=(e,t)=>t.state.data===void 0,j8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},N8=(e,t)=>e.isLoading&&e.isFetching&&!t,Cp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,pd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function A8({queries:e,...t},n){const r=uu(n),a=O8(),l=R8(),i=p.useMemo(()=>e.map(m=>{const b=r.defaultQueryOptions(m);return b._optimisticResults=a?"isRestoring":"optimistic",b}),[e,r,a]);i.forEach(m=>{j8(m),T8(m,l)}),k8(l);const[o]=p.useState(()=>new WS(r,i,t)),[s,u,d]=o.getOptimisticResult(i,t.combine),c=!a&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(m=>c?o.subscribe(Pe.batchCalls(m)):gt,[o,c]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);const f=s.some((m,b)=>Cp(i[b],m))?s.flatMap((m,b)=>{const y=i[b];if(y){const g=new su(r,y);if(Cp(y,m))return pd(y,g,l);N8(m,a)&&pd(y,g,l)}return[]}):[];if(f.length>0)throw Promise.all(f);const h=s.find((m,b)=>{const y=i[b];return y&&D8({result:m,errorResetBoundary:l,throwOnError:y.throwOnError,query:r.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(h!=null&&h.error)throw h.error;return u(d())}function df(e,t,n){var r,a,l,i,o;const s=O8(),u=R8(),d=uu(n),c=d.defaultQueryOptions(e);(a=(r=d.getDefaultOptions().queries)==null?void 0:r._experimental_beforeQuery)==null||a.call(r,c),c._optimisticResults=s?"isRestoring":"optimistic",j8(c),T8(c,u),k8(u);const f=!d.getQueryCache().get(c.queryHash),[h]=p.useState(()=>new t(d,c)),m=h.getOptimisticResult(c),b=!s&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const g=b?h.subscribe(Pe.batchCalls(y)):gt;return h.updateResult(),g},[h,b]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(c)},[c,h]),Cp(c,m))throw pd(c,h,u);if(D8({result:m,errorResetBoundary:u,throwOnError:c.throwOnError,query:d.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((i=(l=d.getDefaultOptions().queries)==null?void 0:l._experimental_afterQuery)==null||i.call(l,c,m),c.experimental_prefetchInRender&&!hl&&N8(m,s)){const y=f?pd(c,h,u):(o=d.getQueryCache().get(c.queryHash))==null?void 0:o.promise;y==null||y.catch(gt).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?m:h.trackResult(m)}function aE(e,t){return df(e,su,t)}function lE(e,t){return df({...e,enabled:!0,suspense:!0,throwOnError:gg,placeholderData:void 0},su,t)}function iE(e,t){return df({...e,enabled:!0,suspense:!0,throwOnError:gg},C8,t)}function oE(e,t){return A8({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:gg,enabled:!0,placeholderData:void 0}))},t)}function sE(e,t){const n=uu(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function uE(e,t){const n=uu(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function cE(e,t){const n=uu(t),[r]=p.useState(()=>new ZS(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const a=p.useSyncExternalStore(p.useCallback(i=>r.subscribe(Pe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=p.useCallback((i,o)=>{r.mutate(i,o).catch(gt)},[r]);if(a.error&&g8(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function dE(e,t){return df(e,C8,t)}var fE=Object.create,L8=Object.defineProperty,hE=Object.getOwnPropertyDescriptor,_8=Object.getOwnPropertyNames,pE=Object.getPrototypeOf,mE=Object.prototype.hasOwnProperty,nr=(e,t)=>function(){return t||(0,e[_8(e)[0]])((t={exports:{}}).exports,t),t.exports},gE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=_8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!mE.call(e,o)&&o!==n&&L8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=hE(t,o))||r.enumerable});return e},Fe=(e,t,n)=>(n=e!=null?fE(pE(e)):{},gE(L8(n,"default",{value:e,enumerable:!0}),e)),z8=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),vE=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=z8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),bE=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=z8().default,r=vE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ml=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=bE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bn=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ml();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function ff(e){const t={subscribe(n){let r=null,a=!1,l=!1,i=!1;function o(){if(r===null){i=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(s){var u;a||(u=n.next)===null||u===void 0||u.call(n,s)},error(s){var u;a||(a=!0,(u=n.error)===null||u===void 0||u.call(n,s),o())},complete(){var s;a||(a=!0,(s=n.complete)===null||s===void 0||s.call(n),o())}}),i&&o(),{unsubscribe:o}},pipe(...n){return n.reduce(yE,t)}};return t}function yE(e,t){return t(e)}function xE(e){const t=new AbortController;return new Promise((n,r)=>{let a=!1;function l(){a||(a=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const i=e.subscribe({next(o){a=!0,n(o),l()},error(o){r(o)},complete(){t.abort(),l()}})})}function wE(e){return t=>{let n=0,r=null;const a=[];function l(){r||(r=t.subscribe({next(o){for(const u of a){var s;(s=u.next)===null||s===void 0||s.call(u,o)}},error(o){for(const u of a){var s;(s=u.error)===null||s===void 0||s.call(u,o)}},complete(){for(const s of a){var o;(o=s.complete)===null||o===void 0||o.call(s)}}}))}function i(){if(n===0&&r){const o=r;r=null,o.unsubscribe()}}return ff(o=>(n++,a.push(o),l(),{unsubscribe(){n--,i();const s=a.findIndex(u=>u===o);s>-1&&a.splice(s,1)}}))}}function CE(e){let t=e;const n=[],r=i=>{t!==void 0&&i.next(t),n.push(i)},a=i=>{n.splice(n.indexOf(i),1)},l=ff(i=>(r(i),()=>{a(i)}));return l.next=i=>{if(t!==i){t=i;for(const o of n)o.next(i)}},l.get=()=>t,l}function SE(e){return ff(t=>{function n(r=0,a=e.op){const l=e.links[r];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:a,next(i){return n(r+1,i)}})}return n().subscribe(t)})}function pl(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const EE=typeof Symbol=="function"&&!!Symbol.asyncIterator;function P8(e){return EE&&pl(e)&&Symbol.asyncIterator in e}var ME=Object.create,H8=Object.defineProperty,OE=Object.getOwnPropertyDescriptor,K8=Object.getOwnPropertyNames,RE=Object.getPrototypeOf,TE=Object.prototype.hasOwnProperty,cu=(e,t)=>function(){return t||(0,e[K8(e)[0]])((t={exports:{}}).exports,t),t.exports},kE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=K8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!TE.call(e,o)&&o!==n&&H8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=OE(t,o))||r.enumerable});return e},hf=(e,t,n)=>(n=e!=null?ME(RE(e)):{},kE(H8(n,"default",{value:e,enumerable:!0}),e));const U8=()=>{},sb=e=>{Object.freeze&&Object.freeze(e)};function B8(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(U8,{get(l,i){if(!(typeof i!="string"||i==="then"))return B8(e,[...t,i],n)},apply(l,i,o){const s=t[t.length-1];let u={args:o,path:t};return s==="call"?u={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:s==="apply"&&(u={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),sb(u.args),sb(u.path),e(u)}})),n[a]}const pf=e=>B8(e,[],Object.create(null)),vg=e=>new Proxy(U8,{get(t,n){if(n!=="then")return e(n)}});var q8=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),DE=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=q8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),jE=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=q8().default,r=DE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),F8=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=jE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),bg=cu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=F8();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});hf(bg());hf(F8());var Iu=hf(bg());function NE(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Iu.default)((0,Iu.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Iu.default)((0,Iu.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var A0=class extends Error{constructor(){super("Unable to transform response from server")}};function AE(e,t){let n;try{n=NE(e,t)}catch{throw new A0}if(!n.ok&&(!pl(n.error.error)||typeof n.error.error.code!="number"))throw new A0;if(n.ok&&!pl(n.result))throw new A0;return n}hf(bg());var Xu=Fe(Ml()),Vl=Fe(Bn());function LE(e){return e instanceof md}function _E(e){return pl(e)&&pl(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function zE(e,t){return typeof e=="string"?e:pl(e)&&typeof e.message=="string"?e.message:t}var md=class Dc extends Error{constructor(t,n){var r,a;const l=n==null?void 0:n.cause;super(t,{cause:l}),(0,Xu.default)(this,"cause",void 0),(0,Xu.default)(this,"shape",void 0),(0,Xu.default)(this,"data",void 0),(0,Xu.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=l,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Dc.prototype)}static from(t,n={}){const r=t;return LE(r)?(n.meta&&(r.meta=(0,Vl.default)((0,Vl.default)({},r.meta),n.meta)),r):_E(r)?new Dc(r.error.message,(0,Vl.default)((0,Vl.default)({},n),{},{result:r})):new Dc(zE(r,"Unknown error"),(0,Vl.default)((0,Vl.default)({},n),{},{cause:r}))}};function PE(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const ub=e=>typeof e=="function";function HE(e){if(e)return e;if(typeof window<"u"&&ub(window.fetch))return window.fetch;if(typeof globalThis<"u"&&ub(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var ms=Fe(Bn());function KE(e){return{url:e.url.toString(),fetch:e.fetch,transformer:PE(e.transformer),methodOverride:e.methodOverride}}function UE(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const BE={query:"GET",mutation:"POST",subscription:"PATCH"};function V8(e){return"input"in e?e.transformer.input.serialize(e.input):UE(e.inputs.map(t=>e.transformer.input.serialize(t)))}const G8=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),e.type==="query"||e.type==="subscription"){const a=V8(e);a!==void 0&&e.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(a))}`)}return r.length&&(n+="?"+r.join("&")),n},qE=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=V8(e);return t!==void 0?JSON.stringify(t):void 0},FE=e=>IE((0,ms.default)((0,ms.default)({},e),{},{contentTypeHeader:"application/json",getUrl:G8,getBody:qE}));var VE=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const GE=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new VE};async function QE(e){var t;GE(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:BE[e.type],l=await(async()=>{const o=await e.headers();return Symbol.iterator in o?Object.fromEntries(o):o})(),i=(0,ms.default)((0,ms.default)((0,ms.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),l);return HE(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:i})}async function IE(e){const t={},n=await QE(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Fe(Bn());const cb=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function db(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(o){const s=[[]];let u=0;for(;;){const f=o[u];if(!f)break;const h=s[s.length-1];if(f.aborted){var d;(d=f.reject)===null||d===void 0||d.call(f,new Error("Aborted")),u++;continue}if(e.validate(h.concat(f).map(m=>m.key))){h.push(f),u++;continue}if(h.length===0){var c;(c=f.reject)===null||c===void 0||c.call(f,new Error("Input is too big for a single dispatch")),u++;continue}s.push([])}return s}function l(){const o=a(t);r();for(const s of o){if(!s.length)continue;const u={items:s};for(const d of s)d.batch=u;e.fetch(u.items.map(d=>d.key)).then(async d=>{await Promise.all(d.map(async(f,h)=>{const m=u.items[h];try{var b;const g=await Promise.resolve(f);(b=m.resolve)===null||b===void 0||b.call(m,g)}catch(g){var y;(y=m.reject)===null||y===void 0||y.call(m,g)}m.batch=null,m.reject=null,m.resolve=null}));for(const f of u.items){var c;(c=f.reject)===null||c===void 0||c.call(f,new Error("Missing result")),f.batch=null}}).catch(d=>{for(const f of u.items){var c;(c=f.reject)===null||c===void 0||c.call(f,d),f.batch=null}})}}function i(o){var s;const u={aborted:!1,key:o,batch:null,resolve:cb,reject:cb},d=new Promise((c,f)=>{var h;u.reject=f,u.resolve=c,(h=t)!==null&&h!==void 0||(t=[]),t.push(u)});return(s=n)!==null&&s!==void 0||(n=setTimeout(l)),d}return{load:i}}function XE(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const l of e)l!=null&&l.aborted?a():l==null||l.addEventListener("abort",a,{once:!0});return t.signal}var Yu=Fe(Bn());function YE(e){var t,n;const r=KE(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,l=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const i=d=>({validate(c){if(a===1/0&&l===1/0)return!0;if(c.length>l)return!1;const f=c.map(m=>m.path).join(","),h=c.map(m=>m.input);return G8((0,Yu.default)((0,Yu.default)({},r),{},{type:d,path:f,inputs:h,signal:null})).length<=a},async fetch(c){const f=c.map(y=>y.path).join(","),h=c.map(y=>y.input),m=XE(...c.map(y=>y.signal)),b=await FE((0,Yu.default)((0,Yu.default)({},r),{},{path:f,inputs:h,type:d,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:m}));return(Array.isArray(b.json)?b.json:c.map(()=>b.json)).map(y=>({meta:b.meta,json:y}))}}),o=db(i("query")),s=db(i("mutation")),u={query:o,mutation:s};return({op:d})=>ff(c=>{/* istanbul ignore if -- @preserve */if(d.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=u[d.type].load(d);let h;return f.then(m=>{h=m;const b=AE(m.json,r.transformer.output);if(!b.ok){c.error(md.from(b.error,{meta:m.meta}));return}c.next({context:m.meta,result:b.result}),c.complete()}).catch(m=>{c.error(md.from(m,{meta:h==null?void 0:h.meta}))}),()=>{}})}}Fe(Bn());const Q8=(e,...t)=>typeof e=="function"?e(...t):e;Fe(Ml());function ZE(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function $E(e){const t=await Q8(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function WE(e){const t={method:"connectionParams",data:await Q8(e)};return JSON.stringify(t)}Fe(Ml());var Ja=Fe(Ml());function JE(e){const{promise:t,resolve:n,reject:r}=ZE();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function eM(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function l(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function i(){clearTimeout(r),l()}function o(){clearTimeout(a),i()}e.addEventListener("open",l),e.addEventListener("message",({data:s})=>{clearTimeout(r),l(),s==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var tM=class Sp{constructor(t){var n;if((0,Ja.default)(this,"id",++Sp.connectCount),(0,Ja.default)(this,"WebSocketPonyfill",void 0),(0,Ja.default)(this,"urlOptions",void 0),(0,Ja.default)(this,"keepAliveOpts",void 0),(0,Ja.default)(this,"wsObservable",CE(null)),(0,Ja.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Sp.connectCount;const n=$E(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&eM(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await JE(r),t.urlOptions.connectionParams&&r.send(await WE(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Ja.default)(tM,"connectCount",0);Fe(Ml());Fe(Bn());var L0=Fe(Ml()),fb=Fe(Bn()),mf=class{constructor(e){(0,L0.default)(this,"links",void 0),(0,L0.default)(this,"runtime",void 0),(0,L0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return SE({links:this.links,op:(0,fb.default)((0,fb.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(wE())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await xE(n)).result.data}catch(n){throw md.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(r){switch(r.result.type){case"state":{var a;(a=n.onConnectionStateChange)===null||a===void 0||a.call(n,r.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:r.context});break}case"stopped":{var i;(i=n.onStopped)===null||i===void 0||i.call(n);break}case"data":case void 0:{var o;(o=n.onData)===null||o===void 0||o.call(n,r.result.data);break}}},error(r){var a;(a=n.onError)===null||a===void 0||a.call(n,r)},complete(){var r;(r=n.onComplete)===null||r===void 0||r.call(n)}})}};const I8=Symbol.for("trpc_untypedClient"),nM={query:"query",mutate:"mutation",subscribe:"subscription"},rM=e=>nM[e];function X8(e){const t=pf(({path:n,args:r})=>{const a=[...n],l=rM(a.pop()),i=a.join(".");return e[l](i,...r)});return vg(n=>n===I8?e:t[n])}function aM(e){const t=new mf(e);return X8(t)}function yg(e){return e[I8]}Fe(Bn());Fe(Bn());var lM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Fe(lM());Fe(Bn());var iM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(o,s){var u=Error();return u.name="SuppressedError",u.error=o,u.suppressed=s,u},a={},l=[];function i(o,s){if(s!=null){if(Object(s)!==s)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(o)var u=s[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=s[Symbol.dispose||Symbol.for("Symbol.dispose")],o))var d=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");d&&(u=function(){try{d.call(s)}catch(c){return Promise.reject(c)}}),l.push({v:s,d:u,a:o})}else o&&l.push({d:s,a:o});return s}return{e:a,u:i.bind(null,!1),a:i.bind(null,!0),d:function(){var o,s=this.e,u=0;function d(){for(;o=l.pop();)try{if(!o.a&&u===1)return u=0,l.push(o),Promise.resolve().then(d);if(o.d){var f=o.d.call(o.v);if(o.a)return u|=2,Promise.resolve(f).then(d,c)}else u|=1}catch(h){return c(h)}if(u===1)return s!==a?Promise.reject(s):Promise.resolve();if(s!==a)throw s}function c(f){return s=s!==a?new r(f,s):f,d()}return d()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Y8=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),oM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Y8();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),sM=nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Y8();function r(l){return function(){return new a(l.apply(this,arguments))}}function a(l){var i,o;function s(d,c){try{var f=l[d](c),h=f.value,m=h instanceof n;Promise.resolve(m?h.v:h).then(function(b){if(m){var y=d==="return"?"return":"next";if(!h.k||b.done)return s(y,b);b=l[y](b).value}u(f.done?"return":"normal",b)},function(b){s("throw",b)})}catch(b){u("throw",b)}}function u(d,c){switch(d){case"return":i.resolve({value:c,done:!0});break;case"throw":i.reject(c);break;default:i.resolve({value:c,done:!1})}(i=i.next)?s(i.key,i.arg):o=null}this._invoke=function(d,c){return new Promise(function(f,h){var m={key:d,arg:c,resolve:f,reject:h,next:null};o?o=o.next=m:(i=o=m,s(d,c))})},typeof l.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(l){return this._invoke("next",l)},a.prototype.throw=function(l){return this._invoke("throw",l)},a.prototype.return=function(l){return this._invoke("return",l)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Fe(iM());Fe(oM());Fe(sM());Fe(Bn());var Pi=function(){return Pi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Pi.apply(this,arguments)};function uM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function cM(e,t,n,r){function a(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function o(d){try{u(r.next(d))}catch(c){i(c)}}function s(d){try{u(r.throw(d))}catch(c){i(c)}}function u(d){d.done?l(d.value):a(d.value).then(o,s)}u((r=r.apply(e,[])).next())})}function dM(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=o(0),i.throw=o(1),i.return=o(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(u){return function(d){return s([u,d])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(l=u[0]&2?a.return:u[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,u[1])).done)return l;switch(a=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){n.label=u[1];break}if(u[0]===6&&n.label<l[1]){n.label=l[1],l=u;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(u);break}l[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],a=0}finally{r=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function At(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,l;r<a;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var fM=Object.create,Z8=Object.defineProperty,hM=Object.getOwnPropertyDescriptor,$8=Object.getOwnPropertyNames,pM=Object.getPrototypeOf,mM=Object.prototype.hasOwnProperty,Ta=(e,t)=>function(){return t||(0,e[$8(e)[0]])((t={exports:{}}).exports,t),t.exports},gM=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=$8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!mM.call(e,o)&&o!==n&&Z8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=hM(t,o))||r.enumerable});return e},Ol=(e,t,n)=>(n=e!=null?fM(pM(e)):{},gM(t||!e||!e.__esModule?Z8(n,"default",{value:e,enumerable:!0}):n,e)),vM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var l={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(a.includes(i))continue;l[i]=r[i]}return l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),bM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=vM();function r(a,l){if(a==null)return{};var i,o,s=n(a,l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(o=0;o<u.length;o++)i=u[o],l.includes(i)||{}.propertyIsEnumerable.call(a,i)&&(s[i]=a[i])}return s}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),W8=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),yM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=W8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),xM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=W8().default,r=yM();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),wM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=xM();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),du=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=wM();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),CM=Ol(bM(),1),hb=Ol(du(),1);const SM=["cursor","direction"];function Xn(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&pl(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:l}=t,i=(0,CM.default)(t,SM);return[r,{input:i,type:"infinite"}]}return[r,(0,hb.default)((0,hb.default)({},typeof t<"u"&&t!==Xt&&{input:t}),n&&n!=="any"&&{type:n})]}function jc(e){return Xn(e,void 0,"any")}function EM(e){return pf(({path:t,args:n})=>{var r;const a=[...t],l=a.pop();if(l==="useMutation")return e[l](a,...n);if(l==="_def")return{path:a};const[i,...o]=n,s=(r=o[0])!==null&&r!==void 0?r:{};return e[l](a,i,s)})}var _0;const MM=["client","ssrContext","ssrState","abortOnUnmount"],OM=(_0=p.createContext)===null||_0===void 0?void 0:_0.call(y2,null),RM=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function TM(e){return pf(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],l=a.shift(),i=RM(r),o=Xn(n,l,i);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,o,a[0]),queryOptions:()=>e.queryOptions(n,o,...a),fetch:()=>e.fetchQuery(o,...a),fetchInfinite:()=>e.fetchInfiniteQuery(o,a[0]),prefetch:()=>e.prefetchQuery(o,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,a[0]),ensureData:()=>e.ensureQueryData(o,...a),invalidate:()=>e.invalidateQueries(o,...a),reset:()=>e.resetQueries(o,...a),refetch:()=>e.refetchQueries(o,...a),cancel:()=>e.cancelQuery(o,...a),setData:()=>{e.setQueryData(o,a[0],a[1])},setQueriesData:()=>e.setQueriesData(o,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,a[0],a[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(jc(n),l),getMutationDefaults:()=>e.getMutationDefaults(jc(n)),isMutating:()=>e.isMutating({mutationKey:jc(n)})}[r]()})}function kM(e){const t=X8(e.client),n=TM(e);return vg(r=>{const a=r;return a==="client"?t:MM.includes(a)?e[a]:n[r]})}var DM=Ol(du(),1);function pb(e){const t=e instanceof mf?e:yg(e);return pf(n=>{const r=n.path,a=r.join("."),[l,i]=n.args;return(0,DM.default)({queryKey:Xn(r,l,"query"),queryFn:()=>t.query(a,l,i==null?void 0:i.trpc)},i)})}var z0=Ol(du(),1);function yt(e,t,n){var r;const a=e[0];let l=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var i;l=(0,z0.default)((0,z0.default)((0,z0.default)({},(i=l)!==null&&i!==void 0?i:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),l,t==null?void 0:t.trpc]}var jM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),NM=Ol(jM(),1);function Ep(e){return{path:e.path.join(".")}}function _o(e){const t=Ep(e);return p.useMemo(()=>t,[t])}async function J8(e,t,n){const r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:"success"});const a=[];var l=!1,i=!1,o;try{for(var s=(0,NM.default)(e),u;l=!(u=await s.next()).done;l=!1){const d=u.value;a.push(d),r.setState({data:[...a]})}}catch(d){i=!0,o=d}finally{try{l&&s.return!=null&&await s.return()}finally{if(i)throw o}}return a}var fe=Ol(du(),1);function AM(e){const{client:t,queryClient:n}=e,r=t instanceof mf?t:yg(t);return{infiniteQueryOptions:(a,l,i)=>{var o,s;const u=((o=l[1])===null||o===void 0?void 0:o.input)===Xt,d=async c=>{var f;const h=(0,fe.default)((0,fe.default)({},i),{},{trpc:(0,fe.default)((0,fe.default)({},i==null?void 0:i.trpc),!(i==null||(f=i.trpc)===null||f===void 0)&&f.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...yt(l,h,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,fe.default)((0,fe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:u?Xt:d,initialPageParam:(s=i==null?void 0:i.initialCursor)!==null&&s!==void 0?s:null}),{trpc:Ep({path:a})})},queryOptions:(a,l,i)=>{var o;const s=((o=l[1])===null||o===void 0?void 0:o.input)===Xt,u=async d=>{var c;const f=(0,fe.default)((0,fe.default)({},i),{},{trpc:(0,fe.default)((0,fe.default)({},i==null?void 0:i.trpc),!(i==null||(c=i.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:d.signal}:{signal:null})}),h=await r.query(...yt(l,f));return P8(h)?J8(h,n,l):h};return Object.assign((0,fe.default)((0,fe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:s?Xt:u}),{trpc:Ep({path:a})})},fetchQuery:(a,l)=>n.fetchQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...yt(a,l))})),fetchInfiniteQuery:(a,l)=>{var i;return n.fetchInfiniteQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...yt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},prefetchQuery:(a,l)=>n.prefetchQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...yt(a,l))})),prefetchInfiniteQuery:(a,l)=>{var i;return n.prefetchInfiniteQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...yt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},ensureQueryData:(a,l)=>n.ensureQueryData((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...yt(a,l))})),invalidateQueries:(a,l,i)=>n.invalidateQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),resetQueries:(a,l,i)=>n.resetQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),refetchQueries:(a,l,i)=>n.refetchQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),cancelQuery:(a,l)=>n.cancelQueries({queryKey:a},l),setQueryData:(a,l,i)=>n.setQueryData(a,l,i),setQueriesData:(a,l,i,o)=>n.setQueriesData((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i,o),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,l,i)=>n.setQueryData(a,l,i),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,l)=>{const i=a[0],o=s=>r.mutation(...yt([i,{input:s}],e));return n.setMutationDefaults(a,typeof l=="function"?l({canonicalMutationFn:o}):l)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,fe.default)((0,fe.default)({},a),{},{exact:!0}))}}var Q=Ol(du());const mb=(e,t)=>new Proxy(e,{get(n,r){return t(r),n[r]}});function LM(e){var t,n,r;const a=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:w=>w.originalFn(),l=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:OM,i=aM,o=w=>{var E;const{abortOnUnmount:S=!1,queryClient:M,ssrContext:N}=w,[j,A]=p.useState((E=w.ssrState)!==null&&E!==void 0?E:!1),D=w.client instanceof mf?w.client:yg(w.client),z=p.useMemo(()=>AM({client:D,queryClient:M}),[D,M]),B=p.useMemo(()=>(0,Q.default)({abortOnUnmount:S,queryClient:M,client:D,ssrContext:N??null,ssrState:j},z),[S,D,z,M,N,j]);return p.useEffect(()=>{A(L=>L?"mounted":!1)},[]),C.jsx(l.Provider,{value:B,children:w.children})};function s(){const w=p.useContext(l);if(!w)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return w}function u(w,E){var S;const{queryClient:M,ssrState:N}=s();return N&&N!=="mounted"&&((S=M.getQueryCache().find({queryKey:w}))===null||S===void 0?void 0:S.state.status)==="error"?(0,Q.default)({retryOnMount:!1},E):E}function d(w,E,S){var M,N,j,A,D;const z=s(),{abortOnUnmount:B,client:L,ssrState:P,queryClient:T,prefetchQuery:k}=z,_=Xn(w,E,"query"),U=T.getQueryDefaults(_),F=E===Xt;typeof window>"u"&&P==="prepass"&&(S==null||(M=S.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((N=S==null?void 0:S.enabled)!==null&&N!==void 0?N:U==null?void 0:U.enabled)!==!1&&!F&&!T.getQueryCache().find({queryKey:_})&&k(_,S);const G=u(_,(0,Q.default)((0,Q.default)({},U),S)),K=(j=(A=S==null||(D=S.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&A!==void 0?A:e==null?void 0:e.abortOnUnmount)!==null&&j!==void 0?j:B,V=aE((0,Q.default)((0,Q.default)({},G),{},{queryKey:_,queryFn:F?E:async I=>{const J=(0,Q.default)((0,Q.default)({},G),{},{trpc:(0,Q.default)((0,Q.default)({},G==null?void 0:G.trpc),K?{signal:I.signal}:{signal:null})}),et=await L.query(...yt(_,J));return P8(et)?J8(et,T,_):et}}),T);return V.trpc=_o({path:w}),V}function c(w,E,S){var M,N,j;const A=s(),D=Xn(w,E,"query"),z=E===Xt,B=(M=(N=S==null||(j=S.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount;sE((0,Q.default)((0,Q.default)({},S),{},{queryKey:D,queryFn:z?E:L=>{const P={trpc:(0,Q.default)((0,Q.default)({},S==null?void 0:S.trpc),B?{signal:L.signal}:{})};return A.client.query(...yt(D,P))}}))}function f(w,E,S){var M,N,j;const A=s(),D=Xn(w,E,"query"),z=(M=(N=S==null||(j=S.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount,B=lE((0,Q.default)((0,Q.default)({},S),{},{queryKey:D,queryFn:L=>{const P=(0,Q.default)((0,Q.default)({},S),{},{trpc:(0,Q.default)((0,Q.default)({},S==null?void 0:S.trpc),z?{signal:L.signal}:{signal:null})});return A.client.query(...yt(D,P))}}),A.queryClient);return B.trpc=_o({path:w}),[B.data,B]}function h(w,E){const{client:S,queryClient:M}=s(),N=jc(w),j=M.defaultMutationOptions(M.getMutationDefaults(N)),A=cE((0,Q.default)((0,Q.default)({},E),{},{mutationKey:N,mutationFn:D=>S.mutation(...yt([w,{input:D}],E)),onSuccess(...D){var z,B;return a({originalFn:()=>{var L,P,T;return(L=E==null||(P=E.onSuccess)===null||P===void 0?void 0:P.call(E,...D))!==null&&L!==void 0?L:j==null||(T=j.onSuccess)===null||T===void 0?void 0:T.call(j,...D)},queryClient:M,meta:(z=(B=E==null?void 0:E.meta)!==null&&B!==void 0?B:j==null?void 0:j.meta)!==null&&z!==void 0?z:{}})}}),M);return A.trpc=_o({path:w}),A}const m={data:void 0,error:null,status:"idle"},b={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function y(w,E,S){var M;const N=(M=S==null?void 0:S.enabled)!==null&&M!==void 0?M:E!==Xt,j=Ca(Xn(w,E,"any")),{client:A}=s(),D=p.useRef(S);p.useEffect(()=>{D.current=S});const[z]=p.useState(new Set([])),B=p.useCallback(F=>{z.add(F)},[z]),L=p.useRef(null),P=p.useCallback(F=>{const G=k.current,K=k.current=F(G);let V=!1;for(const I of z)if(G[I]!==K[I]){V=!0;break}V&&U(mb(K,B))},[B,z]),T=p.useCallback(()=>{var F;if((F=L.current)===null||F===void 0||F.unsubscribe(),!N){P(()=>(0,Q.default)((0,Q.default)({},m),{},{reset:T}));return}P(()=>(0,Q.default)((0,Q.default)({},b),{},{reset:T}));const G=A.subscription(w.join("."),E??void 0,{onStarted:()=>{var K,V;(K=(V=D.current).onStarted)===null||K===void 0||K.call(V),P(I=>(0,Q.default)((0,Q.default)({},I),{},{status:"pending",error:null}))},onData:K=>{var V,I;(V=(I=D.current).onData)===null||V===void 0||V.call(I,K),P(J=>(0,Q.default)((0,Q.default)({},J),{},{status:"pending",data:K,error:null}))},onError:K=>{var V,I;(V=(I=D.current).onError)===null||V===void 0||V.call(I,K),P(J=>(0,Q.default)((0,Q.default)({},J),{},{status:"error",error:K}))},onConnectionStateChange:K=>{P(V=>{switch(K.state){case"idle":return(0,Q.default)((0,Q.default)({},V),{},{status:K.state,error:null,data:void 0});case"connecting":return(0,Q.default)((0,Q.default)({},V),{},{error:K.error,status:K.state});case"pending":return V}})},onComplete:()=>{var K,V;(K=(V=D.current).onComplete)===null||K===void 0||K.call(V),P(I=>(0,Q.default)((0,Q.default)({},I),{},{status:"idle",error:null,data:void 0}))}});L.current=G},[A,j,N,P]);p.useEffect(()=>(T(),()=>{var F;(F=L.current)===null||F===void 0||F.unsubscribe()}),[T]);const k=p.useRef(N?(0,Q.default)((0,Q.default)({},b),{},{reset:T}):(0,Q.default)((0,Q.default)({},m),{},{reset:T})),[_,U]=p.useState(mb(k.current,B));return _}function g(w,E,S){var M,N,j,A,D;const{client:z,ssrState:B,prefetchInfiniteQuery:L,queryClient:P,abortOnUnmount:T}=s(),k=Xn(w,E,"infinite"),_=P.getQueryDefaults(k),U=E===Xt;typeof window>"u"&&B==="prepass"&&(S==null||(M=S.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((N=S==null?void 0:S.enabled)!==null&&N!==void 0?N:_==null?void 0:_.enabled)!==!1&&!U&&!P.getQueryCache().find({queryKey:k})&&L(k,(0,Q.default)((0,Q.default)({},_),S));const F=u(k,(0,Q.default)((0,Q.default)({},_),S)),G=(j=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&j!==void 0?j:T,K=dE((0,Q.default)((0,Q.default)({},F),{},{initialPageParam:(D=S.initialCursor)!==null&&D!==void 0?D:null,persister:S.persister,queryKey:k,queryFn:U?E:V=>{var I;const J=(0,Q.default)((0,Q.default)({},F),{},{trpc:(0,Q.default)((0,Q.default)({},F==null?void 0:F.trpc),G?{signal:V.signal}:{signal:null})});return z.query(...yt(k,J,{pageParam:(I=V.pageParam)!==null&&I!==void 0?I:S.initialCursor,direction:V.direction}))}}),P);return K.trpc=_o({path:w}),K}function v(w,E,S){var M,N,j;const A=s(),D=Xn(w,E,"infinite"),z=A.queryClient.getQueryDefaults(D),B=E===Xt,L=u(D,(0,Q.default)((0,Q.default)({},z),S)),P=(M=S==null||(N=S.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount;uE((0,Q.default)((0,Q.default)({},S),{},{initialPageParam:(j=S.initialCursor)!==null&&j!==void 0?j:null,queryKey:D,queryFn:B?E:T=>{var k;const _=(0,Q.default)((0,Q.default)({},L),{},{trpc:(0,Q.default)((0,Q.default)({},L==null?void 0:L.trpc),P?{signal:T.signal}:{})});return A.client.query(...yt(D,_,{pageParam:(k=T.pageParam)!==null&&k!==void 0?k:S.initialCursor,direction:T.direction}))}}))}function x(w,E,S){var M,N,j;const A=s(),D=Xn(w,E,"infinite"),z=A.queryClient.getQueryDefaults(D),B=u(D,(0,Q.default)((0,Q.default)({},z),S)),L=(M=S==null||(N=S.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount,P=iE((0,Q.default)((0,Q.default)({},S),{},{initialPageParam:(j=S.initialCursor)!==null&&j!==void 0?j:null,queryKey:D,queryFn:T=>{var k;const _=(0,Q.default)((0,Q.default)({},B),{},{trpc:(0,Q.default)((0,Q.default)({},B==null?void 0:B.trpc),L?{signal:T.signal}:{})});return A.client.query(...yt(D,_,{pageParam:(k=T.pageParam)!==null&&k!==void 0?k:S.initialCursor,direction:T.direction}))}}),A.queryClient);return P.trpc=_o({path:w}),[P.data,P]}return{Provider:o,createClient:i,useContext:s,useUtils:s,useQuery:d,usePrefetchQuery:c,useSuspenseQuery:f,useQueries:(w,E)=>{const{ssrState:S,queryClient:M,prefetchQuery:N,client:j}=s(),A=pb(j),D=w(A);if(typeof window>"u"&&S==="prepass")for(const B of D){var z;const L=B;((z=L.trpc)===null||z===void 0?void 0:z.ssr)!==!1&&!M.getQueryCache().find({queryKey:L.queryKey})&&N(L.queryKey,L)}return A8({queries:D.map(B=>(0,Q.default)((0,Q.default)({},B),{},{queryKey:B.queryKey})),combine:E==null?void 0:E.combine},M)},useSuspenseQueries:w=>{const{queryClient:E,client:S}=s(),M=pb(S),N=w(M),j=oE({queries:N.map(A=>(0,Q.default)((0,Q.default)({},A),{},{queryFn:A.queryFn,queryKey:A.queryKey}))},E);return[j.map(A=>A.data),j]},useMutation:h,useSubscription:y,useInfiniteQuery:g,usePrefetchInfiniteQuery:v,useSuspenseInfiniteQuery:x}}function _M(e){const t=EM(e);return vg(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return p.useMemo(()=>kM(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function zM(e){const t=LM(e);return _M(t)}var Se=zM({overrides:{useMutation:{onSuccess:function(e){return cM(this,void 0,void 0,function(){return dM(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
58
|
+
* react-router v7.9.5
|
|
59
59
|
*
|
|
60
60
|
* Copyright (c) Remix Software Inc.
|
|
61
61
|
*
|
|
@@ -63,20 +63,20 @@ Error generating stack: `+r.message+`
|
|
|
63
63
|
* LICENSE.md file in the root directory of this source tree.
|
|
64
64
|
*
|
|
65
65
|
* @license MIT
|
|
66
|
-
*/var my="popstate";function zM(e={}){function t(r,a){let{pathname:l,search:i,hash:o}=r.location;return Mp("",{pathname:l,search:i,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Ks(a)}return HM(t,n,null,e)}function ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Hn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function PM(){return Math.random().toString(36).substring(2,10)}function gy(e,t){return{usr:e.state,key:e.key,idx:t}}function Mp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Wi(t):t,state:n,key:t&&t.key||r||PM()}}function Ks({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Wi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function HM(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,i=a.history,o="POP",s=null,u=d();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function d(){return(i.state||{idx:null}).idx}function c(){o="POP";let b=d(),g=b==null?null:b-u;u=b,s&&s({action:o,location:v.location,delta:g})}function f(b,g){o="PUSH";let y=Mp(v.location,b,g);u=d()+1;let w=gy(y,u),C=v.createHref(y);try{i.pushState(w,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(C)}l&&s&&s({action:o,location:v.location,delta:1})}function h(b,g){o="REPLACE";let y=Mp(v.location,b,g);u=d();let w=gy(y,u),C=v.createHref(y);i.replaceState(w,"",C),l&&s&&s({action:o,location:v.location,delta:0})}function m(b){return KM(b)}let v={get action(){return o},get location(){return e(a,i)},listen(b){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(my,c),s=b,()=>{a.removeEventListener(my,c),s=null}},createHref(b){return t(a,b)},createURL:m,encodeLocation(b){let g=m(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(b){return i.go(b)}};return v}function KM(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ke(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ks(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function J8(e,t,n="/"){return UM(e,t,n,!1)}function UM(e,t,n,r){let a=typeof t=="string"?Wi(t):t,l=jr(a.pathname||"/",n);if(l==null)return null;let i=e3(e);BM(i);let o=null;for(let s=0;o==null&&s<i.length;++s){let u=WM(l);o=ZM(i[s],u,r)}return o}function e3(e,t=[],n=[],r="",a=!1){let l=(i,o,s=a,u)=>{let d={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;ke(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let c=Er([r,d.relativePath]),f=n.concat(d);i.children&&i.children.length>0&&(ke(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),e3(i.children,t,f,c,s)),!(i.path==null&&!i.index)&&t.push({path:c,score:YM(c,i.index),routesMeta:f})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let u of t3(i.path))l(i,o,!0,u)}),t}function t3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let i=t3(r.join("/")),o=[];return o.push(...i.map(s=>s===""?l:[l,s].join("/"))),a&&o.push(...i),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function BM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:IM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qM=/^:[\w-]+$/,FM=3,VM=2,GM=1,QM=10,XM=-2,vy=e=>e==="*";function YM(e,t){let n=e.split("/"),r=n.length;return n.some(vy)&&(r+=XM),t&&(r+=VM),n.filter(a=>!vy(a)).reduce((a,l)=>a+(qM.test(l)?FM:l===""?GM:QM),r)}function IM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function ZM(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],u=o===r.length-1,d=l==="/"?t:t.slice(l.length)||"/",c=gd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),f=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=gd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:Er([l,c.pathname]),pathnameBase:nO(Er([l,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(l=Er([l,c.pathnameBase]))}return i}function gd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$M(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((s,{paramName:u,isOptional:d},c)=>{if(u==="*"){let h=o[c]||"";i=l.slice(0,l.length-h.length).replace(/(.)\/+$/,"$1")}const f=o[c];return d&&!f?s[u]=void 0:s[u]=(f||"").replace(/%2F/g,"/"),s},{}),pathname:l,pathnameBase:i,pattern:e}}function $M(e,t=!1,n=!0){Hn(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,o)=>(r.push({paramName:i,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function WM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Hn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function jr(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 JM(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Wi(e):e;return{pathname:n?n.startsWith("/")?n:eO(n,t):t,search:rO(r),hash:aO(a)}}function eO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function P0(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 tO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function n3(e){let t=tO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function r3(e,t,n,r=!1){let a;typeof e=="string"?a=Wi(e):(a={...e},ke(!a.pathname||!a.pathname.includes("?"),P0("?","pathname","search",a)),ke(!a.pathname||!a.pathname.includes("#"),P0("#","pathname","hash",a)),ke(!a.search||!a.search.includes("#"),P0("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,o;if(i==null)o=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),c-=1;a.pathname=f.join("/")}o=c>=0?t[c]:"/"}let s=JM(a,o),u=i&&i!=="/"&&i.endsWith("/"),d=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var Er=e=>e.join("/").replace(/\/\/+/g,"/"),nO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var a3=["POST","PUT","PATCH","DELETE"];new Set(a3);var iO=["GET",...a3];new Set(iO);var Ji=p.createContext(null);Ji.displayName="DataRouter";var gf=p.createContext(null);gf.displayName="DataRouterState";p.createContext(!1);var l3=p.createContext({isTransitioning:!1});l3.displayName="ViewTransition";var oO=p.createContext(new Map);oO.displayName="Fetchers";var sO=p.createContext(null);sO.displayName="Await";var rr=p.createContext(null);rr.displayName="Navigation";var fu=p.createContext(null);fu.displayName="Location";var ar=p.createContext({outlet:null,matches:[],isDataRoute:!1});ar.displayName="Route";var wg=p.createContext(null);wg.displayName="RouteError";function uO(e,{relative:t}={}){ke(hu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=p.useContext(rr),{hash:a,pathname:l,search:i}=pu(e,{relative:t}),o=l;return n!=="/"&&(o=l==="/"?n:Er([n,l])),r.createHref({pathname:o,search:i,hash:a})}function hu(){return p.useContext(fu)!=null}function Da(){return ke(hu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(fu).location}var i3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o3(e){p.useContext(rr).static||p.useLayoutEffect(e)}function s3(){let{isDataRoute:e}=p.useContext(ar);return e?SO():cO()}function cO(){ke(hu(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(Ji),{basename:t,navigator:n}=p.useContext(rr),{matches:r}=p.useContext(ar),{pathname:a}=Da(),l=JSON.stringify(n3(r)),i=p.useRef(!1);return o3(()=>{i.current=!0}),p.useCallback((o,s={})=>{if(Hn(i.current,i3),!i.current)return;if(typeof o=="number"){n.go(o);return}let u=r3(o,JSON.parse(l),a,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Er([t,u.pathname])),(s.replace?n.replace:n.push)(u,s.state,s)},[t,n,l,a,e])}p.createContext(null);function dO(){let{matches:e}=p.useContext(ar),t=e[e.length-1];return t?t.params:{}}function pu(e,{relative:t}={}){let{matches:n}=p.useContext(ar),{pathname:r}=Da(),a=JSON.stringify(n3(n));return p.useMemo(()=>r3(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function fO(e,t){return u3(e,t)}function u3(e,t,n,r,a){var l;ke(hu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=p.useContext(rr),{matches:o}=p.useContext(ar),s=o[o.length-1],u=s?s.params:{},d=s?s.pathname:"/",c=s?s.pathnameBase:"/",f=s&&s.route;{let w=f&&f.path||"";c3(d,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
66
|
+
*/var gb="popstate";function PM(e={}){function t(r,a){let{pathname:l,search:i,hash:o}=r.location;return Mp("",{pathname:l,search:i,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Ks(a)}return KM(t,n,null,e)}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Hn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HM(){return Math.random().toString(36).substring(2,10)}function vb(e,t){return{usr:e.state,key:e.key,idx:t}}function Mp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ji(t):t,state:n,key:t&&t.key||r||HM()}}function Ks({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ji(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function KM(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,i=a.history,o="POP",s=null,u=d();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function d(){return(i.state||{idx:null}).idx}function c(){o="POP";let y=d(),g=y==null?null:y-u;u=y,s&&s({action:o,location:b.location,delta:g})}function f(y,g){o="PUSH";let v=Mp(b.location,y,g);u=d()+1;let x=vb(v,u),w=b.createHref(v);try{i.pushState(x,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(w)}l&&s&&s({action:o,location:b.location,delta:1})}function h(y,g){o="REPLACE";let v=Mp(b.location,y,g);u=d();let x=vb(v,u),w=b.createHref(v);i.replaceState(x,"",w),l&&s&&s({action:o,location:b.location,delta:0})}function m(y){return UM(y)}let b={get action(){return o},get location(){return e(a,i)},listen(y){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(gb,c),s=y,()=>{a.removeEventListener(gb,c),s=null}},createHref(y){return t(a,y)},createURL:m,encodeLocation(y){let g=m(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(y){return i.go(y)}};return b}function UM(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ks(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function e3(e,t,n="/"){return BM(e,t,n,!1)}function BM(e,t,n,r){let a=typeof t=="string"?Ji(t):t,l=Dr(a.pathname||"/",n);if(l==null)return null;let i=t3(e);qM(i);let o=null;for(let s=0;o==null&&s<i.length;++s){let u=JM(l);o=$M(i[s],u,r)}return o}function t3(e,t=[],n=[],r="",a=!1){let l=(i,o,s=a,u)=>{let d={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;Ae(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let c=Er([r,d.relativePath]),f=n.concat(d);i.children&&i.children.length>0&&(Ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),t3(i.children,t,f,c,s)),!(i.path==null&&!i.index)&&t.push({path:c,score:YM(c,i.index),routesMeta:f})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let u of n3(i.path))l(i,o,!0,u)}),t}function n3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let i=n3(r.join("/")),o=[];return o.push(...i.map(s=>s===""?l:[l,s].join("/"))),a&&o.push(...i),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function qM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var FM=/^:[\w-]+$/,VM=3,GM=2,QM=1,IM=10,XM=-2,bb=e=>e==="*";function YM(e,t){let n=e.split("/"),r=n.length;return n.some(bb)&&(r+=XM),t&&(r+=GM),n.filter(a=>!bb(a)).reduce((a,l)=>a+(FM.test(l)?VM:l===""?QM:IM),r)}function ZM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function $M(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],u=o===r.length-1,d=l==="/"?t:t.slice(l.length)||"/",c=gd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),f=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=gd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:Er([l,c.pathname]),pathnameBase:rO(Er([l,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(l=Er([l,c.pathnameBase]))}return i}function gd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=WM(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((s,{paramName:u,isOptional:d},c)=>{if(u==="*"){let h=o[c]||"";i=l.slice(0,l.length-h.length).replace(/(.)\/+$/,"$1")}const f=o[c];return d&&!f?s[u]=void 0:s[u]=(f||"").replace(/%2F/g,"/"),s},{}),pathname:l,pathnameBase:i,pattern:e}}function WM(e,t=!1,n=!0){Hn(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,o)=>(r.push({paramName:i,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function JM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Hn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Dr(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 eO(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ji(e):e;return{pathname:n?n.startsWith("/")?n:tO(n,t):t,search:aO(r),hash:lO(a)}}function tO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function P0(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 nO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function r3(e){let t=nO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function a3(e,t,n,r=!1){let a;typeof e=="string"?a=Ji(e):(a={...e},Ae(!a.pathname||!a.pathname.includes("?"),P0("?","pathname","search",a)),Ae(!a.pathname||!a.pathname.includes("#"),P0("#","pathname","hash",a)),Ae(!a.search||!a.search.includes("#"),P0("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,o;if(i==null)o=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),c-=1;a.pathname=f.join("/")}o=c>=0?t[c]:"/"}let s=eO(a,o),u=i&&i!=="/"&&i.endsWith("/"),d=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var Er=e=>e.join("/").replace(/\/\/+/g,"/"),rO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var l3=["POST","PUT","PATCH","DELETE"];new Set(l3);var oO=["GET",...l3];new Set(oO);var eo=p.createContext(null);eo.displayName="DataRouter";var gf=p.createContext(null);gf.displayName="DataRouterState";p.createContext(!1);var i3=p.createContext({isTransitioning:!1});i3.displayName="ViewTransition";var sO=p.createContext(new Map);sO.displayName="Fetchers";var uO=p.createContext(null);uO.displayName="Await";var rr=p.createContext(null);rr.displayName="Navigation";var fu=p.createContext(null);fu.displayName="Location";var ar=p.createContext({outlet:null,matches:[],isDataRoute:!1});ar.displayName="Route";var xg=p.createContext(null);xg.displayName="RouteError";function cO(e,{relative:t}={}){Ae(hu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=p.useContext(rr),{hash:a,pathname:l,search:i}=pu(e,{relative:t}),o=l;return n!=="/"&&(o=l==="/"?n:Er([n,l])),r.createHref({pathname:o,search:i,hash:a})}function hu(){return p.useContext(fu)!=null}function ka(){return Ae(hu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(fu).location}var o3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s3(e){p.useContext(rr).static||p.useLayoutEffect(e)}function u3(){let{isDataRoute:e}=p.useContext(ar);return e?EO():dO()}function dO(){Ae(hu(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(eo),{basename:t,navigator:n}=p.useContext(rr),{matches:r}=p.useContext(ar),{pathname:a}=ka(),l=JSON.stringify(r3(r)),i=p.useRef(!1);return s3(()=>{i.current=!0}),p.useCallback((o,s={})=>{if(Hn(i.current,o3),!i.current)return;if(typeof o=="number"){n.go(o);return}let u=a3(o,JSON.parse(l),a,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Er([t,u.pathname])),(s.replace?n.replace:n.push)(u,s.state,s)},[t,n,l,a,e])}p.createContext(null);function fO(){let{matches:e}=p.useContext(ar),t=e[e.length-1];return t?t.params:{}}function pu(e,{relative:t}={}){let{matches:n}=p.useContext(ar),{pathname:r}=ka(),a=JSON.stringify(r3(n));return p.useMemo(()=>a3(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function hO(e,t){return c3(e,t)}function c3(e,t,n,r,a){var l;Ae(hu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=p.useContext(rr),{matches:o}=p.useContext(ar),s=o[o.length-1],u=s?s.params:{},d=s?s.pathname:"/",c=s?s.pathnameBase:"/",f=s&&s.route;{let x=f&&f.path||"";d3(d,!f||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
67
67
|
|
|
68
|
-
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=Da(),m;if(t){let w=typeof t=="string"?Wi(t):t;ke(c==="/"||((l=w.pathname)==null?void 0:l.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${w.pathname}" was given in the \`location\` prop.`),m=w}else m=h;let v=m.pathname||"/",b=v;if(c!=="/"){let w=c.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=J8(e,{pathname:b});Hn(f||g!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Hn(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=vO(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:Er([c,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Er([c,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),o,n,r,a);return t&&y?p.createElement(fu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},y):y}function hO(){let e=CO(),t=lO(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:l},"ErrorBoundary")," or"," ",p.createElement("code",{style:l},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,i)}var pO=p.createElement(hO,null),mO=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?p.createElement(ar.Provider,{value:this.props.routeContext},p.createElement(wg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gO({routeContext:e,match:t,children:n}){let r=p.useContext(Ji);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(ar.Provider,{value:e},n)}function vO(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=n==null?void 0:n.errors;if(i!=null){let u=l.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);ke(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),l=l.slice(0,Math.min(l.length,u+1))}let o=!1,s=-1;if(n)for(let u=0;u<l.length;u++){let d=l[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=u),d.route.id){let{loaderData:c,errors:f}=n,h=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||h){o=!0,s>=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((u,d,c)=>{let f,h=!1,m=null,v=null;n&&(f=i&&d.route.id?i[d.route.id]:void 0,m=d.route.errorElement||pO,o&&(s<0&&c===0?(c3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,v=null):s===c&&(h=!0,v=d.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,c+1)),g=()=>{let y;return f?y=m:h?y=v:d.route.Component?y=p.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=u,p.createElement(gO,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?p.createElement(mO,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0},unstable_onError:r}):g()},null)}function xg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yO(e){let t=p.useContext(Ji);return ke(t,xg(e)),t}function bO(e){let t=p.useContext(gf);return ke(t,xg(e)),t}function wO(e){let t=p.useContext(ar);return ke(t,xg(e)),t}function Cg(e){let t=wO(e),n=t.matches[t.matches.length-1];return ke(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function xO(){return Cg("useRouteId")}function CO(){var e;let t=p.useContext(wg),n=bO("useRouteError"),r=Cg("useRouteError");return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function SO(){let{router:e}=yO("useNavigate"),t=Cg("useNavigate"),n=p.useRef(!1);return o3(()=>{n.current=!0}),p.useCallback(async(r,a={})=>{Hn(n.current,i3),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var yy={};function c3(e,t,n){!t&&!yy[e]&&(yy[e]=!0,Hn(!1,n))}p.memo(EO);function EO({routes:e,future:t,state:n,unstable_onError:r}){return u3(e,void 0,n,r,t)}function Op(e){ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function MO({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1}){ke(!hu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),o=p.useMemo(()=>({basename:i,navigator:a,static:l,future:{}}),[i,a,l]);typeof n=="string"&&(n=Wi(n));let{pathname:s="/",search:u="",hash:d="",state:c=null,key:f="default"}=n,h=p.useMemo(()=>{let m=jr(s,i);return m==null?null:{location:{pathname:m,search:u,hash:d,state:c,key:f},navigationType:r}},[i,s,u,d,c,f,r]);return Hn(h!=null,`<Router basename="${i}"> is not able to match the URL "${s}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:p.createElement(rr.Provider,{value:o},p.createElement(fu.Provider,{children:t,value:h}))}function OO({children:e,location:t}){return fO(Rp(e),t)}function Rp(e,t=[]){let n=[];return p.Children.forEach(e,(r,a)=>{if(!p.isValidElement(r))return;let l=[...t,a];if(r.type===p.Fragment){n.push.apply(n,Rp(r.props.children,l));return}ke(r.type===Op,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Rp(r.props.children,l)),n.push(i)}),n}var Nc="get",kc="application/x-www-form-urlencoded";function vf(e){return e!=null&&typeof e.tagName=="string"}function RO(e){return vf(e)&&e.tagName.toLowerCase()==="button"}function TO(e){return vf(e)&&e.tagName.toLowerCase()==="form"}function DO(e){return vf(e)&&e.tagName.toLowerCase()==="input"}function jO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AO(e,t){return e.button===0&&(!t||t==="_self")&&!jO(e)}function Tp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function NO(e,t){let n=Tp(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}var Zu=null;function kO(){if(Zu===null)try{new FormData(document.createElement("form"),0),Zu=!1}catch{Zu=!0}return Zu}var LO=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function H0(e){return e!=null&&!LO.has(e)?(Hn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kc}"`),null):e}function _O(e,t){let n,r,a,l,i;if(TO(e)){let o=e.getAttribute("action");r=o?jr(o,t):null,n=e.getAttribute("method")||Nc,a=H0(e.getAttribute("enctype"))||kc,l=new FormData(e)}else if(RO(e)||DO(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||o.getAttribute("action");if(r=s?jr(s,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Nc,a=H0(e.getAttribute("formenctype"))||H0(o.getAttribute("enctype"))||kc,l=new FormData(o,e),!kO()){let{name:u,type:d,value:c}=e;if(d==="image"){let f=u?`${u}.`:"";l.append(`${f}x`,"0"),l.append(`${f}y`,"0")}else u&&l.append(u,c)}}else{if(vf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Nc,r=null,a=kc,i=e}return l&&a==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zO(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&jr(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function PO(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function HO(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function KO(e,t,n){let r=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let i=await PO(l,n);return i.links?i.links():[]}return[]}));return FO(r.flat(1).filter(HO).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function by(e,t,n,r,a,l){let i=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,o=(s,u)=>{var d;return n[u].pathname!==s.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return l==="assets"?t.filter((s,u)=>i(s,u)||o(s,u)):l==="data"?t.filter((s,u)=>{var d;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(i(s,u)||o(s,u))return!0;if(s.route.shouldRevalidate){let f=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function UO(e,t,{includeHydrateFallback:n}={}){return BO(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function BO(e){return[...new Set(e)]}function qO(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function FO(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let l=JSON.stringify(qO(a));return n.has(l)||(n.add(l),r.push({key:l,link:a})),r},[])}function d3(){let e=p.useContext(Ji);return Sg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function VO(){let e=p.useContext(gf);return Sg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Eg=p.createContext(void 0);Eg.displayName="FrameworkContext";function f3(){let e=p.useContext(Eg);return Sg(e,"You must render this element inside a <HydratedRouter> element"),e}function GO(e,t){let n=p.useContext(Eg),[r,a]=p.useState(!1),[l,i]=p.useState(!1),{onFocus:o,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,f=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let v=g=>{g.forEach(y=>{i(y.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[e]),p.useEffect(()=>{if(r){let v=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(v)}}},[r]);let h=()=>{a(!0)},m=()=>{a(!1),i(!1)};return n?e!=="intent"?[l,f,{}]:[l,f,{onFocus:_o(o,h),onBlur:_o(s,m),onMouseEnter:_o(u,h),onMouseLeave:_o(d,m),onTouchStart:_o(c,h)}]:[!1,f,{}]}function _o(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function QO({page:e,...t}){let{router:n}=d3(),r=p.useMemo(()=>J8(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?p.createElement(YO,{page:e,matches:r,...t}):null}function XO(e){let{manifest:t,routeModules:n}=f3(),[r,a]=p.useState([]);return p.useEffect(()=>{let l=!1;return KO(e,t,n).then(i=>{l||a(i)}),()=>{l=!0}},[e,t,n]),r}function YO({page:e,matches:t,...n}){let r=Da(),{manifest:a,routeModules:l}=f3(),{basename:i}=d3(),{loaderData:o,matches:s}=VO(),u=p.useMemo(()=>by(e,t,s,a,r,"data"),[e,t,s,a,r]),d=p.useMemo(()=>by(e,t,s,a,r,"assets"),[e,t,s,a,r]),c=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,v=!1;if(t.forEach(g=>{var y;let w=a.routes[g.route.id];!w||!w.hasLoader||(!u.some(C=>C.route.id===g.route.id)&&g.route.id in o&&(y=l[g.route.id])!=null&&y.shouldRevalidate||w.hasClientLoader?v=!0:m.add(g.route.id))}),m.size===0)return[];let b=zO(e,i,"data");return v&&m.size>0&&b.searchParams.set("_routes",t.filter(g=>m.has(g.route.id)).map(g=>g.route.id).join(",")),[b.pathname+b.search]},[i,o,r,a,u,t,e,l]),f=p.useMemo(()=>UO(d,a),[d,a]),h=XO(d);return p.createElement(p.Fragment,null,c.map(m=>p.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),f.map(m=>p.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),h.map(({key:m,link:v})=>p.createElement("link",{key:m,nonce:n.nonce,...v})))}function IO(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var h3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{h3&&(window.__reactRouterVersion="7.9.4")}catch{}function ZO({basename:e,children:t,window:n}){let r=p.useRef();r.current==null&&(r.current=zM({window:n,v5Compat:!0}));let a=r.current,[l,i]=p.useState({action:a.action,location:a.location}),o=p.useCallback(s=>{p.startTransition(()=>i(s))},[i]);return p.useLayoutEffect(()=>a.listen(o),[a,o]),p.createElement(MO,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a})}var p3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yf=p.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:l,state:i,target:o,to:s,preventScrollReset:u,viewTransition:d,...c},f){let{basename:h}=p.useContext(rr),m=typeof s=="string"&&p3.test(s),v,b=!1;if(typeof s=="string"&&m&&(v=s,h3))try{let N=new URL(window.location.href),A=s.startsWith("//")?new URL(N.protocol+s):new URL(s),k=jr(A.pathname,h);A.origin===N.origin&&k!=null?s=k+A.search+A.hash:b=!0}catch{Hn(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=uO(s,{relative:r}),[y,w,C]=GO(n,c),E=JO(s,{replace:l,state:i,target:o,preventScrollReset:u,relative:r,viewTransition:d});function S(N){e&&e(N),N.defaultPrevented||E(N)}let M=p.createElement("a",{...c,...C,href:v||g,onClick:b||a?e:S,ref:IO(f,w),target:o,"data-discover":!m&&t==="render"?"true":void 0});return y&&!m?p.createElement(p.Fragment,null,M,p.createElement(QO,{page:g})):M});yf.displayName="Link";var m3=p.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:l,viewTransition:i,children:o,...s},u){let d=pu(l,{relative:s.relative}),c=Da(),f=p.useContext(gf),{navigator:h,basename:m}=p.useContext(rr),v=f!=null&&lR(d)&&i===!0,b=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,g=c.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(g=g.toLowerCase(),y=y?y.toLowerCase():null,b=b.toLowerCase()),y&&m&&(y=jr(y,m)||y);const w=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let C=g===b||!r&&g.startsWith(b)&&g.charAt(w)==="/",E=y!=null&&(y===b||!r&&y.startsWith(b)&&y.charAt(b.length)==="/"),S={isActive:C,isPending:E,isTransitioning:v},M=C?e:void 0,N;typeof n=="function"?N=n(S):N=[n,C?"active":null,E?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A=typeof a=="function"?a(S):a;return p.createElement(yf,{...s,"aria-current":M,className:N,ref:u,style:A,to:l,viewTransition:i},typeof o=="function"?o(S):o)});m3.displayName="NavLink";var $O=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:i=Nc,action:o,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:c,...f},h)=>{let m=rR(),v=aR(o,{relative:u}),b=i.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&p3.test(o),y=w=>{if(s&&s(w),w.defaultPrevented)return;w.preventDefault();let C=w.nativeEvent.submitter,E=(C==null?void 0:C.getAttribute("formmethod"))||i;m(C||w.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:a,state:l,relative:u,preventScrollReset:d,viewTransition:c})};return p.createElement("form",{ref:h,method:b,action:v,onSubmit:r?s:y,...f,"data-discover":!g&&e==="render"?"true":void 0})});$O.displayName="Form";function WO(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function g3(e){let t=p.useContext(Ji);return ke(t,WO(e)),t}function JO(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:l,viewTransition:i}={}){let o=s3(),s=Da(),u=pu(e,{relative:l});return p.useCallback(d=>{if(AO(d,t)){d.preventDefault();let c=n!==void 0?n:Ks(s)===Ks(u);o(e,{replace:c,state:r,preventScrollReset:a,relative:l,viewTransition:i})}},[s,o,u,n,r,t,e,a,l,i])}function eR(e){Hn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(Tp(e)),n=p.useRef(!1),r=Da(),a=p.useMemo(()=>NO(r.search,n.current?null:t.current),[r.search]),l=s3(),i=p.useCallback((o,s)=>{const u=Tp(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,l("?"+u,s)},[l,a]);return[a,i]}var tR=0,nR=()=>`__${String(++tR)}__`;function rR(){let{router:e}=g3("useSubmit"),{basename:t}=p.useContext(rr),n=xO();return p.useCallback(async(r,a={})=>{let{action:l,method:i,encType:o,formData:s,body:u}=_O(r,t);if(a.navigate===!1){let d=a.fetcherKey||nR();await e.fetch(d,n,a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||o,flushSync:a.flushSync})}else await e.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||o,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function aR(e,{relative:t}={}){let{basename:n}=p.useContext(rr),r=p.useContext(ar);ke(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...pu(e||".",{relative:t})},i=Da();if(e==null){l.search=i.search;let o=new URLSearchParams(l.search),s=o.getAll("index");if(s.some(u=>u==="")){o.delete("index"),s.filter(d=>d).forEach(d=>o.append("index",d));let u=o.toString();l.search=u?`?${u}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Er([n,l.pathname])),Ks(l)}function lR(e,{relative:t}={}){let n=p.useContext(l3);ke(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=g3("useViewTransitionState"),a=pu(e,{relative:t});if(!n.isTransitioning)return!1;let l=jr(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=jr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return gd(a.pathname,i)!=null||gd(a.pathname,l)!=null}var vd=function(e){var t=e.className;return x.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function Me(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,l;for(l=0;l<r.length;l++)a=r[l],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var iR=["color"],oR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,iR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),sR=["color"],v3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,sR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),uR=["color"],cR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,uR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dR=["color"],Pi=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,dR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),fR=["color"],Mg=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,fR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hR=["color"],y3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,hR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),pR=["color"],mR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,pR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gR=["color"],vR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,gR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),yR=["color"],bR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,yR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wR=["color"],Dp=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,wR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),xR=["color"],CR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,xR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),SR=["color"],ER=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,SR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),MR=["color"],OR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,MR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),RR=["color"],TR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,RR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),DR=["color"],jR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,DR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),AR=["color"],NR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,AR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),kR=["color"],LR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,kR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_R=["color"],zR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,_R);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),PR=["color"],b3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,PR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),HR=["color"],w3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,HR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),KR=["color"],wy=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,KR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),UR=["color"],x3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,UR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),BR=["color"],qR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,BR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),FR=["color"],Og=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,FR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),VR=["color"],GR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,VR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),QR=["color"],XR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,QR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),YR=["color"],eo=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,YR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);const C3=p.createContext({}),xy=p.createContext(null),IR=p.createContext(null),we=typeof document<"u"?O.useLayoutEffect:()=>{};var K0;const ZR=(K0=O.useInsertionEffect)!==null&&K0!==void 0?K0:we;function wt(e){const t=p.useRef(null);return ZR(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function $R(e){let[t,n]=p.useState(e),r=p.useRef(null),a=wt(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():n(i.value)});we(()=>{r.current&&a()});let l=wt(i=>{r.current=i(t),a()});return[t,l]}const S3={prefix:String(Math.round(Math.random()*1e10)),current:0},E3=O.createContext(S3),WR=O.createContext(!1);let U0=new WeakMap;function JR(e=!1){let t=p.useContext(E3),n=p.useRef(null);if(n.current===null&&!e){var r,a;let l=(a=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let i=U0.get(l);i==null?U0.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,U0.delete(l))}n.current=++t.current}return n.current}function eT(e){let t=p.useContext(E3),n=JR(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function tT(e){let t=O.useId(),[n]=p.useState(ja()),r=n?"react-aria":`react-aria${S3.prefix}`;return e||`${r}-${t}`}const nT=typeof O.useId=="function"?tT:eT;function rT(){return!1}function aT(){return!0}function lT(e){return()=>{}}function ja(){return typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore(lT,rT,aT):p.useContext(WR)}let iT=!!(typeof window<"u"&&window.document&&window.document.createElement),Ci=new Map,Zo;typeof FinalizationRegistry<"u"&&(Zo=new FinalizationRegistry(e=>{Ci.delete(e)}));function an(e){let[t,n]=p.useState(e),r=p.useRef(null),a=nT(t),l=p.useRef(null);if(Zo&&Zo.register(l,a),iT){const i=Ci.get(a);i&&!i.includes(r)?i.push(r):Ci.set(a,[r])}return we(()=>{let i=a;return()=>{Zo&&Zo.unregister(l),Ci.delete(i)}},[a]),p.useEffect(()=>{let i=r.current;return i&&n(i),()=>{i&&(r.current=null)}}),a}function oT(e,t){if(e===t)return e;let n=Ci.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=Ci.get(t);return r?(r.forEach(a=>a.current=e),e):t}function Lc(e=[]){let t=an(),[n,r]=$R(t),a=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return we(a,[t,a,...e]),n}function to(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const he=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},bn=e=>e&&"window"in e&&e.window===e?e:he(e).defaultView||window;function cn(e,t){return t&&e?e.contains(t):!1}const ot=(e=document)=>e.activeElement;function Ue(e){return e.target}function sT(e,t,n,r){return e.createTreeWalker(t,n,r)}function M3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=M3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hi(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=M3(e))&&(r&&(r+=" "),r+=t);return r}function ue(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let l=t[a],i=r[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=to(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=Hi(l,i):a==="id"&&l&&i?t.id=oT(l,i):t[a]=i!==void 0?i:l}}return t}function O3(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(a=>{const l=Cy(a,t);return n||(n=typeof l=="function"),l});if(n)return()=>{r.forEach((a,l)=>{typeof a=="function"?a():Cy(e[l],null)})}}}function Cy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const uT=new Set(["id"]),cT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),dT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fT=new Set(["dir","lang","hidden","inert","translate"]),Sy=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),hT=/^(data-.*)$/;function Je(e,t={}){let{labelable:n,isLink:r,global:a,events:l=a,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(uT.has(s)||n&&cT.has(s)||r&&dT.has(s)||a&&fT.has(s)||l&&Sy.has(s)||s.endsWith("Capture")&&Sy.has(s.slice(0,-7))||i!=null&&i.has(s)||hT.test(s))&&(o[s]=e[s]);return o}function Kn(e){if(pT())e.focus({preventScroll:!0});else{let t=mT(e);e.focus(),gT(t)}}let $u=null;function pT(){if($u==null){$u=!1;try{document.createElement("div").focus({get preventScroll(){return $u=!0,!0}})}catch{}}return $u}function mT(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function gT(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function bf(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Rg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function kr(e){let t=null;return()=>(t==null&&(t=e()),t)}const ml=kr(function(){return Rg(/^Mac/i)}),vT=kr(function(){return Rg(/^iPhone/i)}),R3=kr(function(){return Rg(/^iPad/i)||ml()&&navigator.maxTouchPoints>1}),wf=kr(function(){return vT()||R3()}),yT=kr(function(){return ml()||wf()}),T3=kr(function(){return bf(/AppleWebKit/i)&&!Tg()}),Tg=kr(function(){return bf(/Chrome/i)}),Dg=kr(function(){return bf(/Android/i)}),bT=kr(function(){return bf(/Firefox/i)}),wT=p.createContext({isNative:!0,open:ST,useHref:e=>e});function xf(){return p.useContext(wT)}function xT(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function gl(e,t,n=!0){var r,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;bT()&&!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(ml()?l=!0:i=!0);let u=T3()&&ml()&&!R3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,bubbles:!0,cancelable:!0});gl.isOpening=n,Kn(e),e.dispatchEvent(u),gl.isOpening=!1}gl.isOpening=!1;function CT(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function ST(e,t){CT(e,n=>gl(n,t))}function ET(e){let t=xf();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function MT(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&xT(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let $r=new Map,jp=new Set;function Ey(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=$r.get(r.target);a||(a=new Set,$r.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=$r.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),$r.delete(r.target)),$r.size===0)){for(let l of jp)l();jp.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Ey():document.addEventListener("DOMContentLoaded",Ey));function OT(){for(const[e]of $r)"isConnected"in e&&!e.isConnected&&$r.delete(e)}function D3(e){requestAnimationFrame(()=>{OT(),$r.size===0?e():jp.add(e)})}function Cf(){let e=p.useRef(new Map),t=p.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),n=p.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),r=p.useCallback(()=>{e.current.forEach((a,l)=>{n(a.eventTarget,a.type,l,a.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function j3(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=an(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function no(e){const t=p.useRef(null),n=p.useRef(void 0),r=p.useCallback(a=>{if(typeof e=="function"){const l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=r(a))}}),[r])}function My(e,t){const n=p.useRef(!0),r=p.useRef(null);we(()=>(n.current=!0,()=>{n.current=!1}),[]),we(()=>{n.current?n.current=!1:(!r.current||t.some((a,l)=>!Object.is(a,r[l])))&&e(),r.current=t},t)}function RT(){return typeof window.ResizeObserver<"u"}function yd(e){const{ref:t,box:n,onResize:r}=e;p.useEffect(()=>{let a=t==null?void 0:t.current;if(a)if(RT()){const l=new window.ResizeObserver(i=>{i.length&&r()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function jg(e,t){we(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vl(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function A3(e,t){let n=e;for(vl(n,t)&&(n=n.parentElement);n&&!vl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function TT(e,t){const n=[];for(;e&&e!==document.documentElement;)vl(e,t)&&n.push(e),e=e.parentElement;return n}function Zl(e){return ml()?e.metaKey:e.ctrlKey}const DT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ms(e){return e instanceof HTMLInputElement&&!DT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Nt=typeof document<"u"&&window.visualViewport;function jT(){let e=ja(),[t,n]=p.useState(()=>e?{width:0,height:0}:Oy());return p.useEffect(()=>{let r=()=>{Nt&&Nt.scale>1||n(i=>{let o=Oy();return o.width===i.width&&o.height===i.height?i:o})},a,l=i=>{Nt&&Nt.scale>1||ms(i.target)&&(a=requestAnimationFrame(()=>{(!document.activeElement||!ms(document.activeElement))&&n(o=>{let s={width:window.innerWidth,height:window.innerHeight};return s.width===o.width&&s.height===o.height?o:s})}))};return window.addEventListener("blur",l,!0),Nt?Nt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(a),window.removeEventListener("blur",l,!0),Nt?Nt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Oy(){return{width:Nt?Nt.width*Nt.scale:window.innerWidth,height:Nt?Nt.height*Nt.scale:window.innerHeight}}let AT=0;const B0=new Map;function NT(e){let[t,n]=p.useState();return we(()=>{if(!e)return;let r=B0.get(e);if(r)n(r.element.id);else{let a=`react-aria-description-${AT++}`;n(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),r={refCount:0,element:l},B0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),B0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Wu(e,t,n,r){let a=wt(n),l=n==null;p.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,r),()=>{i.removeEventListener(t,a,r)}},[e,t,r,l,a])}function N3(e,t){let n=Ry(e,t,"left"),r=Ry(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:c,scrollPaddingBottom:f,scrollPaddingLeft:h}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:v,scrollMarginBottom:b,scrollMarginLeft:g}=getComputedStyle(t),y=i+parseInt(u,10),w=o+parseInt(s,10),C=y+e.clientWidth,E=w+e.clientHeight,S=parseInt(d,10)||0,M=parseInt(f,10)||0,N=parseInt(c,10)||0,A=parseInt(h,10)||0,k=parseInt(m,10)||0,j=parseInt(b,10)||0,z=parseInt(v,10)||0,B=parseInt(g,10)||0,L=n-B,P=n+a+z,T=r-k,D=r+l+j,_=i+parseInt(u,10)+A,U=C-N,F=o+parseInt(s,10)+S,G=E-M;(L>_||P<U)&&(L<=i+A?i=L-parseInt(u,10)-A:P>C-N&&(i+=P-C+N)),(T>F||D<G)&&(T<=w+S?o=T-parseInt(s,10)-S:D>E-M&&(o+=D-E+M)),e.scrollTo({left:i,top:o})}function Ry(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function Ty(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow!=="hidden"&&!Tg()){var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(o-u)>1||Math.abs(s-d)>1){var r,a,l;t==null||(a=t.containingElement)===null||a===void 0||(r=a.scrollIntoView)===null||r===void 0||r.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}else{let o=TT(e);for(let s of o)N3(s,e)}}}function k3(e){return e.pointerType===""&&e.isTrusted?!0:Dg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kT(e){return!Dg()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const LT="react-aria-clear-focus",_T="react-aria-focus";function Sf(e,t=!0){let[n,r]=p.useState(!0),a=n&&t;return we(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),L3(e,a,p.useCallback(()=>r(!1),[])),a}function bd(e,t){let[n,r]=p.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let a=n==="exiting";return L3(e,a,p.useCallback(()=>{r(l=>l==="exiting"?"closed":l)},[])),a}function L3(e,t,n){we(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let a=!1;return Promise.all(r.map(l=>l.finished)).then(()=>{a||Is.flushSync(()=>{n()})}).catch(()=>{}),()=>{a=!0}}},[e,t,n])}const zT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function PT(e){const t=bn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:l}=e.ownerDocument.defaultView;let{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function HT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ag(e,t){return zT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&PT(e)&&HT(e,t)&&(!e.parentElement||Ag(e.parentElement,e))}const Ng=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],KT=Ng.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ng.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const UT=Ng.join(':not([hidden]):not([tabindex="-1"]),');function _3(e){return e.matches(KT)&&Ag(e)&&!z3(e)}function BT(e){return e.matches(UT)&&Ag(e)&&!z3(e)}function z3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function mu(e,t,n){let[r,a]=p.useState(e||t),l=p.useRef(e!==void 0),i=e!==void 0;p.useEffect(()=>{l.current,l.current=i},[i]);let o=i?e:r,s=p.useCallback((u,...d)=>{let c=(f,...h)=>{n&&(Object.is(o,f)||n(f,...h)),i||(o=f)};typeof u=="function"?a((f,...h)=>{let m=u(i?o:f,...h);return c(m,...d),i?f:m}):(i||a(u),c(u,...d))},[i,o,n]);return[o,s]}function Us(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const wd=Symbol("default");function Aa({values:e,children:t}){for(let[n,r]of e)t=O.createElement(n.Provider,{value:r},t);return t}function En(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:l,defaultStyle:i,values:o}=e;return p.useMemo(()=>{let s,u,d;return typeof t=="function"?s=t({...o,defaultClassName:a}):s=t,typeof n=="function"?u=n({...o,defaultStyle:i||{}}):u=n,typeof r=="function"?d=r({...o,defaultChildren:l}):r==null?d=l:d=r,{className:s??a,style:u||i?{...i,...u}:void 0,children:d??l,"data-rac":""}},[t,n,r,a,l,i,o])}function P3(e,t){let n=p.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||wd;if(!n.slots[r]){let a=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`)),l=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${a}.`)}return n.slots[r]}return n}function Mn(e,t,n){let r=P3(n,e.slot)||{},{ref:a,...l}=r,i=no(p.useMemo(()=>O3(t,a),[t,a])),o=ue(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof l.style=="function"?l.style(s):l.style,d={...s.defaultStyle,...u},c=typeof e.style=="function"?e.style({...s,defaultStyle:d}):e.style;return{...d,...c}}:o.style={...l.style,...e.style}),[o,i]}function H3(e=!0){let[t,n]=p.useState(e),r=p.useRef(!1),a=p.useCallback(l=>{r.current=!0,n(!!l)},[]);return we(()=>{r.current||n(!1)},[]),[a,t]}const K3=7e3;let qr=null;function qT(e,t="assertive",n=K3){qr?qr.announce(e,t,n):(qr=new FT,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?qr.announce(e,t,n):setTimeout(()=>{qr!=null&&qr.isAttached()&&(qr==null||qr.announce(e,t,n))},100))}class FT{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=K3){var a,l;if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?(a=this.assertiveLog)===null||a===void 0||a.appendChild(i):(l=this.politeLog)===null||l===void 0||l.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Wn={top:"top",bottom:"top",left:"left",right:"left"},xd={top:"bottom",bottom:"top",left:"right",right:"left"},VT={top:"left",left:"top"},Ap={top:"height",left:"width"},U3={width:"totalWidth",height:"totalHeight"},Ju={};let qt=typeof document<"u"?window.visualViewport:null;function Dy(e){let t=0,n=0,r=0,a=0,l=0,i=0,o={};var s;let u=((s=qt==null?void 0:qt.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;r=m.clientWidth,a=m.clientHeight;var d;t=(d=qt==null?void 0:qt.width)!==null&&d!==void 0?d:r;var c;n=(c=qt==null?void 0:qt.height)!==null&&c!==void 0?c:a,o.top=m.scrollTop||e.scrollTop,o.left=m.scrollLeft||e.scrollLeft,qt&&(l=qt.offsetTop,i=qt.offsetLeft)}else({width:t,height:n,top:l,left:i}=Si(e,!1)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,a=n;if(T3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){o.top=0,o.left=0;var f;l=(f=qt==null?void 0:qt.pageTop)!==null&&f!==void 0?f:0;var h;i=(h=qt==null?void 0:qt.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:n,totalWidth:r,totalHeight:a,scroll:o,top:l,left:i}}function GT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function jy(e,t,n,r,a,l,i){var o;let s=(o=a.scroll[e])!==null&&o!==void 0?o:0,u=r[Ap[e]],d=r.scroll[Wn[e]]+l,c=u+r.scroll[Wn[e]]-l,f=t-s+i[e]-r[Wn[e]],h=t-s+n+i[e]-r[Wn[e]];return f<d?d-f:h>c?Math.max(c-h,d-f):0}function QT(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ay(e){if(Ju[e])return Ju[e];let[t,n]=e.split(" "),r=Wn[t]||"right",a=VT[r];Wn[n]||(n="center");let l=Ap[r],i=Ap[a];return Ju[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:l,crossSize:i},Ju[e]}function q0(e,t,n,r,a,l,i,o,s,u){let{placement:d,crossPlacement:c,axis:f,crossAxis:h,size:m,crossSize:v}=r,b={};var g;b[h]=(g=e[h])!==null&&g!==void 0?g:0;var y,w,C,E;c==="center"?b[h]+=(((y=e[v])!==null&&y!==void 0?y:0)-((w=n[v])!==null&&w!==void 0?w:0))/2:c!==h&&(b[h]+=((C=e[v])!==null&&C!==void 0?C:0)-((E=n[v])!==null&&E!==void 0?E:0)),b[h]+=l;const S=e[h]-n[v]+s+u,M=e[h]+e[v]-s-u;if(b[h]=Us(b[h],S,M),d===f){const N=o?i[m]:t[U3[m]];b[xd[f]]=Math.floor(N-e[f]+a)}else b[f]=Math.floor(e[f]+e[m]+a);return b}function XT(e,t,n,r,a,l,i,o){const s=r?n.height:t[U3.height];var u;let d=e.top!=null?n.top+e.top:n.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var c,f,h,m,v,b;let g=o!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-d-(((f=a.top)!==null&&f!==void 0?f:0)+((h=a.bottom)!==null&&h!==void 0?h:0)+l)):Math.max(0,d+i-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((v=a.top)!==null&&v!==void 0?v:0)+((b=a.bottom)!==null&&b!==void 0?b:0)+l));return Math.min(t.height-l*2,g)}function Ny(e,t,n,r,a,l){let{placement:i,axis:o,size:s}=l;var u,d;if(i===o)return Math.max(0,n[o]-e[o]-((u=e.scroll[o])!==null&&u!==void 0?u:0)+t[o]-((d=r[o])!==null&&d!==void 0?d:0)-r[xd[o]]-a);var c;return Math.max(0,e[s]+e[o]+e.scroll[o]-t[o]-n[o]-n[s]-((c=r[o])!==null&&c!==void 0?c:0)-r[xd[o]]-a)}function YT(e,t,n,r,a,l,i,o,s,u,d,c,f,h,m,v){let b=Ay(e),{size:g,crossAxis:y,crossSize:w,placement:C,crossPlacement:E}=b,S=q0(t,o,n,b,d,c,u,f,m,v),M=d,N=Ny(o,u,t,a,l+d,b);if(i&&r[g]>N){let ge=Ay(`${xd[C]} ${E}`),tt=q0(t,o,n,ge,d,c,u,f,m,v);Ny(o,u,t,a,l+d,ge)>N&&(b=ge,S=tt,M=d)}let A="bottom";b.axis==="top"?b.placement==="top"?A="top":b.placement==="bottom"&&(A="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?A="bottom":b.crossPlacement==="bottom"&&(A="top"));let k=jy(y,S[y],n[w],o,s,l,u);S[y]+=k;let j=XT(S,o,u,f,a,l,n.height,A);h&&h<j&&(j=h),n.height=Math.min(n.height,j),S=q0(t,o,n,b,M,c,u,f,m,v),k=jy(y,S[y],n[w],o,s,l,u),S[y]+=k;let z={},B=t[y]-S[y]-a[Wn[y]],L=B+.5*t[w];const P=m/2+v;var T,D,_,U;const F=Wn[y]==="left"?((T=a.left)!==null&&T!==void 0?T:0)+((D=a.right)!==null&&D!==void 0?D:0):((_=a.top)!==null&&_!==void 0?_:0)+((U=a.bottom)!==null&&U!==void 0?U:0),G=n[w]-F-m/2-v,K=t[y]+m/2-(S[y]+a[Wn[y]]),V=t[y]+t[w]-m/2-(S[y]+a[Wn[y]]),X=Us(L,K,V);z[y]=Us(X,P,G),{placement:C,crossPlacement:E}=b,m?B=z[y]:E==="right"?B+=t[w]:E==="center"&&(B+=t[w]/2);let J=C==="left"||C==="top"?n[g]:0,et={x:C==="top"||C==="bottom"?B:J,y:C==="left"||C==="right"?B:J};return{position:S,maxHeight:j,arrowOffsetLeft:z.left,arrowOffsetTop:z.top,placement:C,triggerAnchorPoint:et}}function IT(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:a,padding:l,shouldFlip:i,boundaryElement:o,offset:s,crossOffset:u,maxHeight:d,arrowSize:c=0,arrowBoundaryOffset:f=0}=e,h=r instanceof HTMLElement?ZT(r):document.documentElement,m=h===document.documentElement;const v=window.getComputedStyle(h).position;let b=!!v&&v!=="static",g=m?Si(n,!1):ky(n,h,!1);if(!m){let{marginTop:z,marginLeft:B}=window.getComputedStyle(n);g.top+=parseInt(z,10)||0,g.left+=parseInt(B,10)||0}let y=Si(r,!0),w=QT(r);var C,E;y.width+=((C=w.left)!==null&&C!==void 0?C:0)+((E=w.right)!==null&&E!==void 0?E:0);var S,M;y.height+=((S=w.top)!==null&&S!==void 0?S:0)+((M=w.bottom)!==null&&M!==void 0?M:0);let N=GT(a),A=Dy(o),k=Dy(h),j=o.tagName==="BODY"?Si(h,!1):ky(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),YT(t,g,y,N,w,l,i,A,k,j,s,u,b,d,c,f)}function kg(e,t){let{top:n,left:r,width:a,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,l=e.offsetHeight),{top:n,left:r,width:a,height:l}}function Si(e,t){let{top:n,left:r,width:a,height:l}=kg(e,t),{scrollTop:i,scrollLeft:o,clientTop:s,clientLeft:u}=document.documentElement;return{top:n+i-s,left:r+o-u,width:a,height:l}}function ky(e,t,n){let r=window.getComputedStyle(e),a;if(r.position==="fixed")a=kg(e,n);else{a=Si(e,n);let l=Si(t,n),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(r.marginTop,10)||0,a.left-=parseInt(r.marginLeft,10)||0,a}function ZT(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Ly(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Ly(t);)t=t.parentElement;return t||document.documentElement}function Ly(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const B3=new WeakMap;function $T(e){let{triggerRef:t,isOpen:n,onClose:r}=e;p.useEffect(()=>{if(!n||r===null)return;let a=l=>{let i=l.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement)return;let o=r||B3.get(t.current);o&&o()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[n,r,t])}const WT=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),JT=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function eD(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return WT.has(n.script)}let t=e.split("-")[0];return JT.has(t)}const tD=Symbol.for("react-aria.i18n.locale");function q3(){let e=typeof window<"u"&&window[tD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:eD(e)?"rtl":"ltr"}}let Np=q3(),$o=new Set;function _y(){Np=q3();for(let e of $o)e(Np)}function nD(){let e=ja(),[t,n]=p.useState(Np);return p.useEffect(()=>($o.size===0&&window.addEventListener("languagechange",_y),$o.add(n),()=>{$o.delete(n),$o.size===0&&window.removeEventListener("languagechange",_y)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const rD=O.createContext(null);function Rl(){let e=nD();return p.useContext(rD)||e}const aD=Symbol.for("react-aria.i18n.locale"),lD=Symbol.for("react-aria.i18n.strings");let zo;class Ef{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=iD(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[aD];if(zo===void 0){let a=window[lD];if(!a)return null;zo={};for(let l in a)zo[l]=new Ef({[n]:a[l]},n)}let r=zo==null?void 0:zo[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function iD(e,t,n="en-US"){if(t[e])return t[e];let r=oD(e);if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function oD(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const zy=new Map,Py=new Map;class sD{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let l=this.locale+":"+r,i=zy.get(l);i||(i=new Intl.PluralRules(this.locale,{type:r}),zy.set(l,i));let o=i.select(t);return a=n[o]||n.other,typeof a=="function"?a():a}number(t){let n=Py.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Py.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Hy=new WeakMap;function uD(e){let t=Hy.get(e);return t||(t=new Ef(e),Hy.set(e,t)),t}function cD(e,t){return t&&Ef.getGlobalDictionaryForPackage(t)||uD(e)}function F3(e,t){let{locale:n}=Rl(),r=cD(e,t);return p.useMemo(()=>new sD(n,r),[n,r])}function dD(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fD(e,t,n){dD(e,t),t.set(e,n)}let F0=new Map,kp=!1;try{kp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Cd=!1;try{Cd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const V3={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class hD{format(t){let n="";if(!kp&&this.options.signDisplay!=null?n=mD(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Cd){var r;let{unit:a,unitDisplay:l="short",locale:i}=this.resolvedOptions();if(!a)return n;let o=(r=V3[a])===null||r===void 0?void 0:r[l];n+=o[i]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(n);return[...r.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!kp&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Cd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=pD(t,n),this.options=n}}function pD(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Cd){var r;let{unit:i,unitDisplay:o="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=V3[i])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(F0.has(a))return F0.get(a);let l=new Intl.NumberFormat(e,t);return F0.set(a,l),l}function mD(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),l=e.format(n),i=a.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return e.format(n)}}function gD(e={}){let{locale:t}=Rl();return p.useMemo(()=>new hD(t,e),[t,e])}let V0=new Map;function vD(e){let{locale:t}=Rl(),n=t+(e?Object.entries(e).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(V0.has(n))return V0.get(n);let r=new Intl.Collator(t,e);return V0.set(n,r),r}let Rt=typeof document<"u"?window.visualViewport:null;function G3(e){let{direction:t}=Rl(),{arrowSize:n,targetRef:r,overlayRef:a,arrowRef:l,scrollRef:i=a,placement:o="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:v,maxHeight:b,arrowBoundaryOffset:g=0}=e,[y,w]=p.useState(null),C=[h,o,a.current,r.current,l==null?void 0:l.current,i.current,s,u,d,c,f,m,t,b,g,n],E=p.useRef(Rt==null?void 0:Rt.scale);p.useEffect(()=>{m&&(E.current=Rt==null?void 0:Rt.scale)},[m]);let S=p.useCallback(()=>{if(h===!1||!m||!a.current||!r.current||!d||(Rt==null?void 0:Rt.scale)!==E.current)return;let z=null;if(i.current&&i.current.contains(document.activeElement)){var B;let F=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),G=i.current.getBoundingClientRect();var L;if(z={type:"top",offset:((L=F==null?void 0:F.top)!==null&&L!==void 0?L:0)-G.top},z.offset>G.height/2){z.type="bottom";var P;z.offset=((P=F==null?void 0:F.bottom)!==null&&P!==void 0?P:0)-G.bottom}}let T=a.current;if(!b&&a.current){var D;T.style.top="0px",T.style.bottom="";var _;T.style.maxHeight=((_=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let U=IT({placement:bD(o,t),overlayNode:a.current,targetNode:r.current,scrollNode:i.current||a.current,padding:s,shouldFlip:u,boundaryElement:d,offset:c,crossOffset:f,maxHeight:b,arrowSize:n??(l!=null&&l.current?kg(l.current,!0).width:0),arrowBoundaryOffset:g});if(U.position){if(T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(U.position).forEach(F=>T.style[F]=U.position[F]+"px"),T.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",z&&document.activeElement&&i.current){let F=document.activeElement.getBoundingClientRect(),G=i.current.getBoundingClientRect(),K=F[z.type]-G[z.type];i.current.scrollTop+=K-z.offset}w(U)}},C);we(S,C),yD(S),yd({ref:a,onResize:S}),yd({ref:r,onResize:S});let M=p.useRef(!1);we(()=>{let z,B=()=>{M.current=!0,clearTimeout(z),z=setTimeout(()=>{M.current=!1},500),S()},L=()=>{M.current&&B()};return Rt==null||Rt.addEventListener("resize",B),Rt==null||Rt.addEventListener("scroll",L),()=>{Rt==null||Rt.removeEventListener("resize",B),Rt==null||Rt.removeEventListener("scroll",L)}},[S]);let N=p.useCallback(()=>{M.current||v==null||v()},[v,M]);$T({triggerRef:r,isOpen:m,onClose:v&&N});var A,k,j;return{overlayProps:{style:{position:y?"absolute":"fixed",top:y?void 0:0,left:y?void 0:0,zIndex:1e5,...y==null?void 0:y.position,maxHeight:(A=y==null?void 0:y.maxHeight)!==null&&A!==void 0?A:"100vh"}},placement:(k=y==null?void 0:y.placement)!==null&&k!==void 0?k:null,triggerAnchorPoint:(j=y==null?void 0:y.triggerAnchorPoint)!==null&&j!==void 0?j:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y==null?void 0:y.arrowOffsetLeft,top:y==null?void 0:y.arrowOffsetTop}},updatePosition:S}}function yD(e){we(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function bD(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Lg(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Q3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function X3(e){let t=p.useRef({isFocused:!1,observer:null});we(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wt(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=Lg(i);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Sd=!1;function wD(e){for(;e&&!_3(e);)e=e.parentElement;let t=bn(e),n=t.document.activeElement;if(!n||n===e)return;Sd=!0;let r=!1,a=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},l=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,Kn(n),s()))},i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,Kn(n),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),Sd=!1,r=!1},u=requestAnimationFrame(s);return s}let fi="default",Lp="",_c=new WeakMap;function xD(e){if(wf()){if(fi==="default"){const t=he(e);Lp=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fi="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";_c.set(e,e.style[t]),e.style[t]="none"}}function Ky(e){if(wf()){if(fi!=="disabled")return;fi="restoring",setTimeout(()=>{D3(()=>{if(fi==="restoring"){const t=he(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Lp||""),Lp="",fi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_c.has(e)){let t=_c.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_c.delete(e)}}const Bs=O.createContext({register:()=>{}});Bs.displayName="PressResponderContext";function CD(e,t){return t.get?t.get.call(e):t.value}function Y3(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function SD(e,t){var n=Y3(e,t,"get");return CD(e,n)}function ED(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Uy(e,t,n){var r=Y3(e,t,"set");return ED(e,r,n),n}function MD(e){let t=p.useContext(Bs);if(t){let{register:n,...r}=t;e=ue(r,e),n()}return jg(t,e.ref),e}var ec=new WeakMap;class tc{continuePropagation(){Uy(this,ec,!1)}get shouldStopPropagation(){return SD(this,ec)}constructor(t,n,r,a){fD(this,ec,{writable:!0,value:void 0}),Uy(this,ec,!0);var l;let i=(l=a==null?void 0:a.target)!==null&&l!==void 0?l:r.currentTarget;const o=i==null?void 0:i.getBoundingClientRect();let s,u=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),o&&(d!=null&&c!=null?(s=d-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const By=Symbol("linkClicked"),qy="react-aria-pressable-style",Fy="data-react-aria-pressable";function Mf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...h}=MD(e),[m,v]=p.useState(!1),b=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:g,removeAllGlobalListeners:y}=Cf(),w=wt((j,z)=>{let B=b.current;if(o||B.didFirePressStart)return!1;let L=!0;if(B.isTriggeringEvent=!0,r){let P=new tc("pressstart",z,j);r(P),L=P.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,v(!0),L}),C=wt((j,z,B=!0)=>{let L=b.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let P=!0;if(a){let T=new tc("pressend",z,j);a(T),P=T.shouldStopPropagation}if(n&&n(!1),v(!1),t&&B&&!o){let T=new tc("press",z,j);t(T),P&&(P=T.shouldStopPropagation)}return L.isTriggeringEvent=!1,P}),E=wt((j,z)=>{let B=b.current;if(o)return!1;if(l){B.isTriggeringEvent=!0;let L=new tc("pressup",z,j);return l(L),B.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),S=wt(j=>{let z=b.current;if(z.isPressed&&z.target){z.didFirePressStart&&z.pointerType!=null&&C(Qa(z.target,j),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,y(),c||Ky(z.target);for(let B of z.disposables)B();z.disposables=[]}}),M=wt(j=>{d&&S(j)}),N=wt(j=>{o||i==null||i(j)}),A=wt((j,z)=>{if(!o&&i){let B=new MouseEvent("click",j);Q3(B,z),i(Lg(B))}}),k=p.useMemo(()=>{let j=b.current,z={onKeyDown(L){if(G0(L.nativeEvent,L.currentTarget)&&cn(L.currentTarget,Ue(L.nativeEvent))){var P;Vy(Ue(L.nativeEvent),L.key)&&L.preventDefault();let T=!0;if(!j.isPressed&&!L.repeat){j.target=L.currentTarget,j.isPressed=!0,j.pointerType="keyboard",T=w(L,"keyboard");let D=L.currentTarget,_=U=>{G0(U,D)&&!U.repeat&&cn(D,Ue(U))&&j.target&&E(Qa(j.target,U),"keyboard")};g(he(L.currentTarget),"keyup",to(_,B),!0)}T&&L.stopPropagation(),L.metaKey&&ml()&&((P=j.metaKeyEvents)===null||P===void 0||P.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(j.metaKeyEvents=new Map)},onClick(L){if(!(L&&!cn(L.currentTarget,Ue(L.nativeEvent)))&&L&&L.button===0&&!j.isTriggeringEvent&&!gl.isOpening){let P=!0;if(o&&L.preventDefault(),!j.ignoreEmulatedMouseEvents&&!j.isPressed&&(j.pointerType==="virtual"||k3(L.nativeEvent))){let T=w(L,"virtual"),D=E(L,"virtual"),_=C(L,"virtual");N(L),P=T&&D&&_}else if(j.isPressed&&j.pointerType!=="keyboard"){let T=j.pointerType||L.nativeEvent.pointerType||"virtual",D=E(Qa(L.currentTarget,L),T),_=C(Qa(L.currentTarget,L),T,!0);P=D&&_,j.isOverTarget=!1,N(L),S(L)}j.ignoreEmulatedMouseEvents=!1,P&&L.stopPropagation()}}},B=L=>{var P;if(j.isPressed&&j.target&&G0(L,j.target)){var T;Vy(Ue(L),L.key)&&L.preventDefault();let _=Ue(L),U=cn(j.target,Ue(L));C(Qa(j.target,L),"keyboard",U),U&&A(L,j.target),y(),L.key!=="Enter"&&_g(j.target)&&cn(j.target,_)&&!L[By]&&(L[By]=!0,gl(j.target,L,!1)),j.isPressed=!1,(T=j.metaKeyEvents)===null||T===void 0||T.delete(L.key)}else if(L.key==="Meta"&&!((P=j.metaKeyEvents)===null||P===void 0)&&P.size){var D;let _=j.metaKeyEvents;j.metaKeyEvents=void 0;for(let U of _.values())(D=j.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){z.onPointerDown=T=>{if(T.button!==0||!cn(T.currentTarget,Ue(T.nativeEvent)))return;if(kT(T.nativeEvent)){j.pointerType="virtual";return}j.pointerType=T.pointerType;let D=!0;if(!j.isPressed){j.isPressed=!0,j.isOverTarget=!0,j.activePointerId=T.pointerId,j.target=T.currentTarget,c||xD(j.target),D=w(T,j.pointerType);let _=Ue(T.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(T.pointerId),g(he(T.currentTarget),"pointerup",L,!1),g(he(T.currentTarget),"pointercancel",P,!1)}D&&T.stopPropagation()},z.onMouseDown=T=>{if(cn(T.currentTarget,Ue(T.nativeEvent))&&T.button===0){if(u){let D=wD(T.target);D&&j.disposables.push(D)}T.stopPropagation()}},z.onPointerUp=T=>{!cn(T.currentTarget,Ue(T.nativeEvent))||j.pointerType==="virtual"||T.button===0&&!j.isPressed&&E(T,j.pointerType||T.pointerType)},z.onPointerEnter=T=>{T.pointerId===j.activePointerId&&j.target&&!j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!0,w(Qa(j.target,T),j.pointerType))},z.onPointerLeave=T=>{T.pointerId===j.activePointerId&&j.target&&j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!1,C(Qa(j.target,T),j.pointerType,!1),M(T))};let L=T=>{if(T.pointerId===j.activePointerId&&j.isPressed&&T.button===0&&j.target){if(cn(j.target,Ue(T))&&j.pointerType!=null){let D=!1,_=setTimeout(()=>{j.isPressed&&j.target instanceof HTMLElement&&(D?S(T):(Kn(j.target),j.target.click()))},80);g(T.currentTarget,"click",()=>D=!0,!0),j.disposables.push(()=>clearTimeout(_))}else S(T);j.isOverTarget=!1}},P=T=>{S(T)};z.onDragStart=T=>{cn(T.currentTarget,Ue(T.nativeEvent))&&S(T)}}return z},[g,o,u,y,c,S,M,C,w,E,N,A]);return p.useEffect(()=>{if(!f)return;const j=he(f.current);if(!j||!j.head||j.getElementById(qy))return;const z=j.createElement("style");z.id=qy,z.textContent=`
|
|
68
|
+
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=ka(),m;if(t){let x=typeof t=="string"?Ji(t):t;Ae(c==="/"||((l=x.pathname)==null?void 0:l.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=h;let b=m.pathname||"/",y=b;if(c!=="/"){let x=c.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=e3(e,{pathname:y});Hn(f||g!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Hn(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=bO(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},u,x.params),pathname:Er([c,i.encodeLocation?i.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:Er([c,i.encodeLocation?i.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),o,n,r,a);return t&&v?p.createElement(fu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function pO(){let e=SO(),t=iO(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:l},"ErrorBoundary")," or"," ",p.createElement("code",{style:l},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,i)}var mO=p.createElement(pO,null),gO=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?p.createElement(ar.Provider,{value:this.props.routeContext},p.createElement(xg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function vO({routeContext:e,match:t,children:n}){let r=p.useContext(eo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(ar.Provider,{value:e},n)}function bO(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=n==null?void 0:n.errors;if(i!=null){let u=l.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);Ae(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),l=l.slice(0,Math.min(l.length,u+1))}let o=!1,s=-1;if(n)for(let u=0;u<l.length;u++){let d=l[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=u),d.route.id){let{loaderData:c,errors:f}=n,h=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||h){o=!0,s>=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((u,d,c)=>{let f,h=!1,m=null,b=null;n&&(f=i&&d.route.id?i[d.route.id]:void 0,m=d.route.errorElement||mO,o&&(s<0&&c===0?(d3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,b=null):s===c&&(h=!0,b=d.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,c+1)),g=()=>{let v;return f?v=m:h?v=b:d.route.Component?v=p.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,p.createElement(vO,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?p.createElement(gO,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0},unstable_onError:r}):g()},null)}function wg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yO(e){let t=p.useContext(eo);return Ae(t,wg(e)),t}function xO(e){let t=p.useContext(gf);return Ae(t,wg(e)),t}function wO(e){let t=p.useContext(ar);return Ae(t,wg(e)),t}function Cg(e){let t=wO(e),n=t.matches[t.matches.length-1];return Ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function CO(){return Cg("useRouteId")}function SO(){var e;let t=p.useContext(xg),n=xO("useRouteError"),r=Cg("useRouteError");return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function EO(){let{router:e}=yO("useNavigate"),t=Cg("useNavigate"),n=p.useRef(!1);return s3(()=>{n.current=!0}),p.useCallback(async(r,a={})=>{Hn(n.current,o3),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var yb={};function d3(e,t,n){!t&&!yb[e]&&(yb[e]=!0,Hn(!1,n))}p.memo(MO);function MO({routes:e,future:t,state:n,unstable_onError:r}){return c3(e,void 0,n,r,t)}function Op(e){Ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function OO({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1}){Ae(!hu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),o=p.useMemo(()=>({basename:i,navigator:a,static:l,future:{}}),[i,a,l]);typeof n=="string"&&(n=Ji(n));let{pathname:s="/",search:u="",hash:d="",state:c=null,key:f="default"}=n,h=p.useMemo(()=>{let m=Dr(s,i);return m==null?null:{location:{pathname:m,search:u,hash:d,state:c,key:f},navigationType:r}},[i,s,u,d,c,f,r]);return Hn(h!=null,`<Router basename="${i}"> is not able to match the URL "${s}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:p.createElement(rr.Provider,{value:o},p.createElement(fu.Provider,{children:t,value:h}))}function RO({children:e,location:t}){return hO(Rp(e),t)}function Rp(e,t=[]){let n=[];return p.Children.forEach(e,(r,a)=>{if(!p.isValidElement(r))return;let l=[...t,a];if(r.type===p.Fragment){n.push.apply(n,Rp(r.props.children,l));return}Ae(r.type===Op,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Rp(r.props.children,l)),n.push(i)}),n}var Nc="get",Ac="application/x-www-form-urlencoded";function vf(e){return e!=null&&typeof e.tagName=="string"}function TO(e){return vf(e)&&e.tagName.toLowerCase()==="button"}function kO(e){return vf(e)&&e.tagName.toLowerCase()==="form"}function DO(e){return vf(e)&&e.tagName.toLowerCase()==="input"}function jO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function NO(e,t){return e.button===0&&(!t||t==="_self")&&!jO(e)}function Tp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function AO(e,t){let n=Tp(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}var Zu=null;function LO(){if(Zu===null)try{new FormData(document.createElement("form"),0),Zu=!1}catch{Zu=!0}return Zu}var _O=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function H0(e){return e!=null&&!_O.has(e)?(Hn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ac}"`),null):e}function zO(e,t){let n,r,a,l,i;if(kO(e)){let o=e.getAttribute("action");r=o?Dr(o,t):null,n=e.getAttribute("method")||Nc,a=H0(e.getAttribute("enctype"))||Ac,l=new FormData(e)}else if(TO(e)||DO(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||o.getAttribute("action");if(r=s?Dr(s,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Nc,a=H0(e.getAttribute("formenctype"))||H0(o.getAttribute("enctype"))||Ac,l=new FormData(o,e),!LO()){let{name:u,type:d,value:c}=e;if(d==="image"){let f=u?`${u}.`:"";l.append(`${f}x`,"0"),l.append(`${f}y`,"0")}else u&&l.append(u,c)}}else{if(vf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Nc,r=null,a=Ac,i=e}return l&&a==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function PO(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Dr(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function HO(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function KO(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function UO(e,t,n){let r=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let i=await HO(l,n);return i.links?i.links():[]}return[]}));return VO(r.flat(1).filter(KO).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function xb(e,t,n,r,a,l){let i=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,o=(s,u)=>{var d;return n[u].pathname!==s.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return l==="assets"?t.filter((s,u)=>i(s,u)||o(s,u)):l==="data"?t.filter((s,u)=>{var d;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(i(s,u)||o(s,u))return!0;if(s.route.shouldRevalidate){let f=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function BO(e,t,{includeHydrateFallback:n}={}){return qO(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function qO(e){return[...new Set(e)]}function FO(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function VO(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let l=JSON.stringify(FO(a));return n.has(l)||(n.add(l),r.push({key:l,link:a})),r},[])}function f3(){let e=p.useContext(eo);return Sg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function GO(){let e=p.useContext(gf);return Sg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Eg=p.createContext(void 0);Eg.displayName="FrameworkContext";function h3(){let e=p.useContext(Eg);return Sg(e,"You must render this element inside a <HydratedRouter> element"),e}function QO(e,t){let n=p.useContext(Eg),[r,a]=p.useState(!1),[l,i]=p.useState(!1),{onFocus:o,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,f=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=g=>{g.forEach(v=>{i(v.isIntersecting)})},y=new IntersectionObserver(b,{threshold:.5});return f.current&&y.observe(f.current),()=>{y.disconnect()}}},[e]),p.useEffect(()=>{if(r){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[r]);let h=()=>{a(!0)},m=()=>{a(!1),i(!1)};return n?e!=="intent"?[l,f,{}]:[l,f,{onFocus:zo(o,h),onBlur:zo(s,m),onMouseEnter:zo(u,h),onMouseLeave:zo(d,m),onTouchStart:zo(c,h)}]:[!1,f,{}]}function zo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function IO({page:e,...t}){let{router:n}=f3(),r=p.useMemo(()=>e3(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?p.createElement(YO,{page:e,matches:r,...t}):null}function XO(e){let{manifest:t,routeModules:n}=h3(),[r,a]=p.useState([]);return p.useEffect(()=>{let l=!1;return UO(e,t,n).then(i=>{l||a(i)}),()=>{l=!0}},[e,t,n]),r}function YO({page:e,matches:t,...n}){let r=ka(),{manifest:a,routeModules:l}=h3(),{basename:i}=f3(),{loaderData:o,matches:s}=GO(),u=p.useMemo(()=>xb(e,t,s,a,r,"data"),[e,t,s,a,r]),d=p.useMemo(()=>xb(e,t,s,a,r,"assets"),[e,t,s,a,r]),c=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,b=!1;if(t.forEach(g=>{var v;let x=a.routes[g.route.id];!x||!x.hasLoader||(!u.some(w=>w.route.id===g.route.id)&&g.route.id in o&&(v=l[g.route.id])!=null&&v.shouldRevalidate||x.hasClientLoader?b=!0:m.add(g.route.id))}),m.size===0)return[];let y=PO(e,i,"data");return b&&m.size>0&&y.searchParams.set("_routes",t.filter(g=>m.has(g.route.id)).map(g=>g.route.id).join(",")),[y.pathname+y.search]},[i,o,r,a,u,t,e,l]),f=p.useMemo(()=>BO(d,a),[d,a]),h=XO(d);return p.createElement(p.Fragment,null,c.map(m=>p.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),f.map(m=>p.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),h.map(({key:m,link:b})=>p.createElement("link",{key:m,nonce:n.nonce,...b})))}function ZO(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var p3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{p3&&(window.__reactRouterVersion="7.9.5")}catch{}function $O({basename:e,children:t,window:n}){let r=p.useRef();r.current==null&&(r.current=PM({window:n,v5Compat:!0}));let a=r.current,[l,i]=p.useState({action:a.action,location:a.location}),o=p.useCallback(s=>{p.startTransition(()=>i(s))},[i]);return p.useLayoutEffect(()=>a.listen(o),[a,o]),p.createElement(OO,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a})}var m3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bf=p.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:l,state:i,target:o,to:s,preventScrollReset:u,viewTransition:d,...c},f){let{basename:h}=p.useContext(rr),m=typeof s=="string"&&m3.test(s),b,y=!1;if(typeof s=="string"&&m&&(b=s,p3))try{let N=new URL(window.location.href),j=s.startsWith("//")?new URL(N.protocol+s):new URL(s),A=Dr(j.pathname,h);j.origin===N.origin&&A!=null?s=A+j.search+j.hash:y=!0}catch{Hn(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=cO(s,{relative:r}),[v,x,w]=QO(n,c),E=eR(s,{replace:l,state:i,target:o,preventScrollReset:u,relative:r,viewTransition:d});function S(N){e&&e(N),N.defaultPrevented||E(N)}let M=p.createElement("a",{...c,...w,href:b||g,onClick:y||a?e:S,ref:ZO(f,x),target:o,"data-discover":!m&&t==="render"?"true":void 0});return v&&!m?p.createElement(p.Fragment,null,M,p.createElement(IO,{page:g})):M});bf.displayName="Link";var g3=p.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:l,viewTransition:i,children:o,...s},u){let d=pu(l,{relative:s.relative}),c=ka(),f=p.useContext(gf),{navigator:h,basename:m}=p.useContext(rr),b=f!=null&&iR(d)&&i===!0,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,g=c.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(g=g.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&m&&(v=Dr(v,m)||v);const x=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let w=g===y||!r&&g.startsWith(y)&&g.charAt(x)==="/",E=v!=null&&(v===y||!r&&v.startsWith(y)&&v.charAt(y.length)==="/"),S={isActive:w,isPending:E,isTransitioning:b},M=w?e:void 0,N;typeof n=="function"?N=n(S):N=[n,w?"active":null,E?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(S):a;return p.createElement(bf,{...s,"aria-current":M,className:N,ref:u,style:j,to:l,viewTransition:i},typeof o=="function"?o(S):o)});g3.displayName="NavLink";var WO=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:i=Nc,action:o,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:c,...f},h)=>{let m=aR(),b=lR(o,{relative:u}),y=i.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&m3.test(o),v=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let w=x.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||i;m(w||x.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:a,state:l,relative:u,preventScrollReset:d,viewTransition:c})};return p.createElement("form",{ref:h,method:y,action:b,onSubmit:r?s:v,...f,"data-discover":!g&&e==="render"?"true":void 0})});WO.displayName="Form";function JO(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v3(e){let t=p.useContext(eo);return Ae(t,JO(e)),t}function eR(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:l,viewTransition:i}={}){let o=u3(),s=ka(),u=pu(e,{relative:l});return p.useCallback(d=>{if(NO(d,t)){d.preventDefault();let c=n!==void 0?n:Ks(s)===Ks(u);o(e,{replace:c,state:r,preventScrollReset:a,relative:l,viewTransition:i})}},[s,o,u,n,r,t,e,a,l,i])}function tR(e){Hn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(Tp(e)),n=p.useRef(!1),r=ka(),a=p.useMemo(()=>AO(r.search,n.current?null:t.current),[r.search]),l=u3(),i=p.useCallback((o,s)=>{const u=Tp(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,l("?"+u,s)},[l,a]);return[a,i]}var nR=0,rR=()=>`__${String(++nR)}__`;function aR(){let{router:e}=v3("useSubmit"),{basename:t}=p.useContext(rr),n=CO();return p.useCallback(async(r,a={})=>{let{action:l,method:i,encType:o,formData:s,body:u}=zO(r,t);if(a.navigate===!1){let d=a.fetcherKey||rR();await e.fetch(d,n,a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||o,flushSync:a.flushSync})}else await e.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||o,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function lR(e,{relative:t}={}){let{basename:n}=p.useContext(rr),r=p.useContext(ar);Ae(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...pu(e||".",{relative:t})},i=ka();if(e==null){l.search=i.search;let o=new URLSearchParams(l.search),s=o.getAll("index");if(s.some(u=>u==="")){o.delete("index"),s.filter(d=>d).forEach(d=>o.append("index",d));let u=o.toString();l.search=u?`?${u}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Er([n,l.pathname])),Ks(l)}function iR(e,{relative:t}={}){let n=p.useContext(i3);Ae(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=v3("useViewTransitionState"),a=pu(e,{relative:t});if(!n.isTransitioning)return!1;let l=Dr(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Dr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return gd(a.pathname,i)!=null||gd(a.pathname,l)!=null}var vd=function(e){var t=e.className;return C.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function Me(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,l;for(l=0;l<r.length;l++)a=r[l],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var oR=["color"],sR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,oR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),uR=["color"],b3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,uR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cR=["color"],dR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,cR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),fR=["color"],Hi=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,fR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hR=["color"],Mg=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,hR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),pR=["color"],y3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,pR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mR=["color"],gR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,mR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),vR=["color"],bR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,vR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),yR=["color"],xR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,yR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wR=["color"],kp=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,wR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),CR=["color"],SR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,CR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ER=["color"],MR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,ER);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),OR=["color"],RR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,OR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),TR=["color"],kR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,TR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),DR=["color"],jR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,DR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),NR=["color"],AR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,NR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),LR=["color"],_R=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,LR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),zR=["color"],PR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,zR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),HR=["color"],x3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,HR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),KR=["color"],w3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,KR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),UR=["color"],wb=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,UR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),BR=["color"],C3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,BR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qR=["color"],FR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,qR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),VR=["color"],Og=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,VR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),GR=["color"],QR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,GR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),IR=["color"],XR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,IR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),YR=["color"],to=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Me(e,YR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);const S3=p.createContext({}),Cb=p.createContext(null),ZR=p.createContext(null),xe=typeof document<"u"?O.useLayoutEffect:()=>{};var K0;const $R=(K0=O.useInsertionEffect)!==null&&K0!==void 0?K0:xe;function xt(e){const t=p.useRef(null);return $R(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function WR(e){let[t,n]=p.useState(e),r=p.useRef(null),a=xt(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():n(i.value)});xe(()=>{r.current&&a()});let l=xt(i=>{r.current=i(t),a()});return[t,l]}const E3={prefix:String(Math.round(Math.random()*1e10)),current:0},M3=O.createContext(E3),JR=O.createContext(!1);let U0=new WeakMap;function eT(e=!1){let t=p.useContext(M3),n=p.useRef(null);if(n.current===null&&!e){var r,a;let l=(a=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let i=U0.get(l);i==null?U0.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,U0.delete(l))}n.current=++t.current}return n.current}function tT(e){let t=p.useContext(M3),n=eT(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function nT(e){let t=O.useId(),[n]=p.useState(Da()),r=n?"react-aria":`react-aria${E3.prefix}`;return e||`${r}-${t}`}const rT=typeof O.useId=="function"?nT:tT;function aT(){return!1}function lT(){return!0}function iT(e){return()=>{}}function Da(){return typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore(iT,aT,lT):p.useContext(JR)}let oT=!!(typeof window<"u"&&window.document&&window.document.createElement),Ci=new Map,$o;typeof FinalizationRegistry<"u"&&($o=new FinalizationRegistry(e=>{Ci.delete(e)}));function ln(e){let[t,n]=p.useState(e),r=p.useRef(null),a=rT(t),l=p.useRef(null);if($o&&$o.register(l,a),oT){const i=Ci.get(a);i&&!i.includes(r)?i.push(r):Ci.set(a,[r])}return xe(()=>{let i=a;return()=>{$o&&$o.unregister(l),Ci.delete(i)}},[a]),p.useEffect(()=>{let i=r.current;return i&&n(i),()=>{i&&(r.current=null)}}),a}function sT(e,t){if(e===t)return e;let n=Ci.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=Ci.get(t);return r?(r.forEach(a=>a.current=e),e):t}function Lc(e=[]){let t=ln(),[n,r]=WR(t),a=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return xe(a,[t,a,...e]),n}function no(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const he=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},xn=e=>e&&"window"in e&&e.window===e?e:he(e).defaultView||window;function dn(e,t){return t&&e?e.contains(t):!1}const ot=(e=document)=>e.activeElement;function Ue(e){return e.target}function uT(e,t,n,r){return e.createTreeWalker(t,n,r)}function O3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=O3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ki(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=O3(e))&&(r&&(r+=" "),r+=t);return r}function ue(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let l=t[a],i=r[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=no(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=Ki(l,i):a==="id"&&l&&i?t.id=sT(l,i):t[a]=i!==void 0?i:l}}return t}function R3(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(a=>{const l=Sb(a,t);return n||(n=typeof l=="function"),l});if(n)return()=>{r.forEach((a,l)=>{typeof a=="function"?a():Sb(e[l],null)})}}}function Sb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const cT=new Set(["id"]),dT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),hT=new Set(["dir","lang","hidden","inert","translate"]),Eb=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),pT=/^(data-.*)$/;function Je(e,t={}){let{labelable:n,isLink:r,global:a,events:l=a,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cT.has(s)||n&&dT.has(s)||r&&fT.has(s)||a&&hT.has(s)||l&&Eb.has(s)||s.endsWith("Capture")&&Eb.has(s.slice(0,-7))||i!=null&&i.has(s)||pT.test(s))&&(o[s]=e[s]);return o}function Kn(e){if(mT())e.focus({preventScroll:!0});else{let t=gT(e);e.focus(),vT(t)}}let $u=null;function mT(){if($u==null){$u=!1;try{document.createElement("div").focus({get preventScroll(){return $u=!0,!0}})}catch{}}return $u}function gT(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function vT(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function yf(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Rg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ar(e){let t=null;return()=>(t==null&&(t=e()),t)}const ml=Ar(function(){return Rg(/^Mac/i)}),bT=Ar(function(){return Rg(/^iPhone/i)}),T3=Ar(function(){return Rg(/^iPad/i)||ml()&&navigator.maxTouchPoints>1}),xf=Ar(function(){return bT()||T3()}),yT=Ar(function(){return ml()||xf()}),k3=Ar(function(){return yf(/AppleWebKit/i)&&!Tg()}),Tg=Ar(function(){return yf(/Chrome/i)}),kg=Ar(function(){return yf(/Android/i)}),xT=Ar(function(){return yf(/Firefox/i)}),wT=p.createContext({isNative:!0,open:ET,useHref:e=>e});function wf(){return p.useContext(wT)}function CT(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function gl(e,t,n=!0){var r,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;xT()&&!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(ml()?l=!0:i=!0);let u=k3()&&ml()&&!T3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,bubbles:!0,cancelable:!0});gl.isOpening=n,Kn(e),e.dispatchEvent(u),gl.isOpening=!1}gl.isOpening=!1;function ST(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function ET(e,t){ST(e,n=>gl(n,t))}function MT(e){let t=wf();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function OT(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&CT(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let $r=new Map,Dp=new Set;function Mb(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=$r.get(r.target);a||(a=new Set,$r.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=$r.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),$r.delete(r.target)),$r.size===0)){for(let l of Dp)l();Dp.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Mb():document.addEventListener("DOMContentLoaded",Mb));function RT(){for(const[e]of $r)"isConnected"in e&&!e.isConnected&&$r.delete(e)}function D3(e){requestAnimationFrame(()=>{RT(),$r.size===0?e():Dp.add(e)})}function Cf(){let e=p.useRef(new Map),t=p.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),n=p.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),r=p.useCallback(()=>{e.current.forEach((a,l)=>{n(a.eventTarget,a.type,l,a.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function j3(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=ln(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function ro(e){const t=p.useRef(null),n=p.useRef(void 0),r=p.useCallback(a=>{if(typeof e=="function"){const l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=r(a))}}),[r])}function Ob(e,t){const n=p.useRef(!0),r=p.useRef(null);xe(()=>(n.current=!0,()=>{n.current=!1}),[]),xe(()=>{n.current?n.current=!1:(!r.current||t.some((a,l)=>!Object.is(a,r[l])))&&e(),r.current=t},t)}function TT(){return typeof window.ResizeObserver<"u"}function bd(e){const{ref:t,box:n,onResize:r}=e;p.useEffect(()=>{let a=t==null?void 0:t.current;if(a)if(TT()){const l=new window.ResizeObserver(i=>{i.length&&r()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Dg(e,t){xe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vl(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function N3(e,t){let n=e;for(vl(n,t)&&(n=n.parentElement);n&&!vl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kT(e,t){const n=[];for(;e&&e!==document.documentElement;)vl(e,t)&&n.push(e),e=e.parentElement;return n}function Zl(e){return ml()?e.metaKey:e.ctrlKey}const DT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gs(e){return e instanceof HTMLInputElement&&!DT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Nt=typeof document<"u"&&window.visualViewport;function jT(){let e=Da(),[t,n]=p.useState(()=>e?{width:0,height:0}:Rb());return p.useEffect(()=>{let r=()=>{Nt&&Nt.scale>1||n(i=>{let o=Rb();return o.width===i.width&&o.height===i.height?i:o})},a,l=i=>{Nt&&Nt.scale>1||gs(i.target)&&(a=requestAnimationFrame(()=>{(!document.activeElement||!gs(document.activeElement))&&n(o=>{let s={width:window.innerWidth,height:window.innerHeight};return s.width===o.width&&s.height===o.height?o:s})}))};return window.addEventListener("blur",l,!0),Nt?Nt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(a),window.removeEventListener("blur",l,!0),Nt?Nt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Rb(){return{width:Nt?Nt.width*Nt.scale:window.innerWidth,height:Nt?Nt.height*Nt.scale:window.innerHeight}}let NT=0;const B0=new Map;function AT(e){let[t,n]=p.useState();return xe(()=>{if(!e)return;let r=B0.get(e);if(r)n(r.element.id);else{let a=`react-aria-description-${NT++}`;n(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),r={refCount:0,element:l},B0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),B0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Wu(e,t,n,r){let a=xt(n),l=n==null;p.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,r),()=>{i.removeEventListener(t,a,r)}},[e,t,r,l,a])}function A3(e,t){let n=Tb(e,t,"left"),r=Tb(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:c,scrollPaddingBottom:f,scrollPaddingLeft:h}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:b,scrollMarginBottom:y,scrollMarginLeft:g}=getComputedStyle(t),v=i+parseInt(u,10),x=o+parseInt(s,10),w=v+e.clientWidth,E=x+e.clientHeight,S=parseInt(d,10)||0,M=parseInt(f,10)||0,N=parseInt(c,10)||0,j=parseInt(h,10)||0,A=parseInt(m,10)||0,D=parseInt(y,10)||0,z=parseInt(b,10)||0,B=parseInt(g,10)||0,L=n-B,P=n+a+z,T=r-A,k=r+l+D,_=i+parseInt(u,10)+j,U=w-N,F=o+parseInt(s,10)+S,G=E-M;(L>_||P<U)&&(L<=i+j?i=L-parseInt(u,10)-j:P>w-N&&(i+=P-w+N)),(T>F||k<G)&&(T<=x+S?o=T-parseInt(s,10)-S:k>E-M&&(o+=k-E+M)),e.scrollTo({left:i,top:o})}function Tb(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function kb(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow!=="hidden"&&!Tg()){var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(o-u)>1||Math.abs(s-d)>1){var r,a,l;t==null||(a=t.containingElement)===null||a===void 0||(r=a.scrollIntoView)===null||r===void 0||r.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}else{let o=kT(e);for(let s of o)A3(s,e)}}}function L3(e){return e.pointerType===""&&e.isTrusted?!0:kg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function LT(e){return!kg()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const _T="react-aria-clear-focus",zT="react-aria-focus";function Sf(e,t=!0){let[n,r]=p.useState(!0),a=n&&t;return xe(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),_3(e,a,p.useCallback(()=>r(!1),[])),a}function yd(e,t){let[n,r]=p.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let a=n==="exiting";return _3(e,a,p.useCallback(()=>{r(l=>l==="exiting"?"closed":l)},[])),a}function _3(e,t,n){xe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let a=!1;return Promise.all(r.map(l=>l.finished)).then(()=>{a||Ys.flushSync(()=>{n()})}).catch(()=>{}),()=>{a=!0}}},[e,t,n])}const PT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function HT(e){const t=xn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:l}=e.ownerDocument.defaultView;let{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function KT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function jg(e,t){return PT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&HT(e)&&KT(e,t)&&(!e.parentElement||jg(e.parentElement,e))}const Ng=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],UT=Ng.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ng.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const BT=Ng.join(':not([hidden]):not([tabindex="-1"]),');function z3(e){return e.matches(UT)&&jg(e)&&!P3(e)}function qT(e){return e.matches(BT)&&jg(e)&&!P3(e)}function P3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function mu(e,t,n){let[r,a]=p.useState(e||t),l=p.useRef(e!==void 0),i=e!==void 0;p.useEffect(()=>{l.current,l.current=i},[i]);let o=i?e:r,s=p.useCallback((u,...d)=>{let c=(f,...h)=>{n&&(Object.is(o,f)||n(f,...h)),i||(o=f)};typeof u=="function"?a((f,...h)=>{let m=u(i?o:f,...h);return c(m,...d),i?f:m}):(i||a(u),c(u,...d))},[i,o,n]);return[o,s]}function Us(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const xd=Symbol("default");function ja({values:e,children:t}){for(let[n,r]of e)t=O.createElement(n.Provider,{value:r},t);return t}function Mn(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:l,defaultStyle:i,values:o}=e;return p.useMemo(()=>{let s,u,d;return typeof t=="function"?s=t({...o,defaultClassName:a}):s=t,typeof n=="function"?u=n({...o,defaultStyle:i||{}}):u=n,typeof r=="function"?d=r({...o,defaultChildren:l}):r==null?d=l:d=r,{className:s??a,style:u||i?{...i,...u}:void 0,children:d??l,"data-rac":""}},[t,n,r,a,l,i,o])}function H3(e,t){let n=p.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||xd;if(!n.slots[r]){let a=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`)),l=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${a}.`)}return n.slots[r]}return n}function On(e,t,n){let r=H3(n,e.slot)||{},{ref:a,...l}=r,i=ro(p.useMemo(()=>R3(t,a),[t,a])),o=ue(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof l.style=="function"?l.style(s):l.style,d={...s.defaultStyle,...u},c=typeof e.style=="function"?e.style({...s,defaultStyle:d}):e.style;return{...d,...c}}:o.style={...l.style,...e.style}),[o,i]}function K3(e=!0){let[t,n]=p.useState(e),r=p.useRef(!1),a=p.useCallback(l=>{r.current=!0,n(!!l)},[]);return xe(()=>{r.current||n(!1)},[]),[a,t]}const U3=7e3;let qr=null;function FT(e,t="assertive",n=U3){qr?qr.announce(e,t,n):(qr=new VT,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?qr.announce(e,t,n):setTimeout(()=>{qr!=null&&qr.isAttached()&&(qr==null||qr.announce(e,t,n))},100))}class VT{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=U3){var a,l;if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?(a=this.assertiveLog)===null||a===void 0||a.appendChild(i):(l=this.politeLog)===null||l===void 0||l.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Wn={top:"top",bottom:"top",left:"left",right:"left"},wd={top:"bottom",bottom:"top",left:"right",right:"left"},GT={top:"left",left:"top"},jp={top:"height",left:"width"},B3={width:"totalWidth",height:"totalHeight"},Ju={};let Ft=typeof document<"u"?window.visualViewport:null;function Db(e){let t=0,n=0,r=0,a=0,l=0,i=0,o={};var s;let u=((s=Ft==null?void 0:Ft.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;r=m.clientWidth,a=m.clientHeight;var d;t=(d=Ft==null?void 0:Ft.width)!==null&&d!==void 0?d:r;var c;n=(c=Ft==null?void 0:Ft.height)!==null&&c!==void 0?c:a,o.top=m.scrollTop||e.scrollTop,o.left=m.scrollLeft||e.scrollLeft,Ft&&(l=Ft.offsetTop,i=Ft.offsetLeft)}else({width:t,height:n,top:l,left:i}=Si(e,!1)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,a=n;if(k3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){o.top=0,o.left=0;var f;l=(f=Ft==null?void 0:Ft.pageTop)!==null&&f!==void 0?f:0;var h;i=(h=Ft==null?void 0:Ft.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:n,totalWidth:r,totalHeight:a,scroll:o,top:l,left:i}}function QT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function jb(e,t,n,r,a,l,i){var o;let s=(o=a.scroll[e])!==null&&o!==void 0?o:0,u=r[jp[e]],d=r.scroll[Wn[e]]+l,c=u+r.scroll[Wn[e]]-l,f=t-s+i[e]-r[Wn[e]],h=t-s+n+i[e]-r[Wn[e]];return f<d?d-f:h>c?Math.max(c-h,d-f):0}function IT(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Nb(e){if(Ju[e])return Ju[e];let[t,n]=e.split(" "),r=Wn[t]||"right",a=GT[r];Wn[n]||(n="center");let l=jp[r],i=jp[a];return Ju[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:l,crossSize:i},Ju[e]}function q0(e,t,n,r,a,l,i,o,s,u){let{placement:d,crossPlacement:c,axis:f,crossAxis:h,size:m,crossSize:b}=r,y={};var g;y[h]=(g=e[h])!==null&&g!==void 0?g:0;var v,x,w,E;c==="center"?y[h]+=(((v=e[b])!==null&&v!==void 0?v:0)-((x=n[b])!==null&&x!==void 0?x:0))/2:c!==h&&(y[h]+=((w=e[b])!==null&&w!==void 0?w:0)-((E=n[b])!==null&&E!==void 0?E:0)),y[h]+=l;const S=e[h]-n[b]+s+u,M=e[h]+e[b]-s-u;if(y[h]=Us(y[h],S,M),d===f){const N=o?i[m]:t[B3[m]];y[wd[f]]=Math.floor(N-e[f]+a)}else y[f]=Math.floor(e[f]+e[m]+a);return y}function XT(e,t,n,r,a,l,i,o){const s=r?n.height:t[B3.height];var u;let d=e.top!=null?n.top+e.top:n.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var c,f,h,m,b,y;let g=o!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-d-(((f=a.top)!==null&&f!==void 0?f:0)+((h=a.bottom)!==null&&h!==void 0?h:0)+l)):Math.max(0,d+i-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((b=a.top)!==null&&b!==void 0?b:0)+((y=a.bottom)!==null&&y!==void 0?y:0)+l));return Math.min(t.height-l*2,g)}function Ab(e,t,n,r,a,l){let{placement:i,axis:o,size:s}=l;var u,d;if(i===o)return Math.max(0,n[o]-e[o]-((u=e.scroll[o])!==null&&u!==void 0?u:0)+t[o]-((d=r[o])!==null&&d!==void 0?d:0)-r[wd[o]]-a);var c;return Math.max(0,e[s]+e[o]+e.scroll[o]-t[o]-n[o]-n[s]-((c=r[o])!==null&&c!==void 0?c:0)-r[wd[o]]-a)}function YT(e,t,n,r,a,l,i,o,s,u,d,c,f,h,m,b){let y=Nb(e),{size:g,crossAxis:v,crossSize:x,placement:w,crossPlacement:E}=y,S=q0(t,o,n,y,d,c,u,f,m,b),M=d,N=Ab(o,u,t,a,l+d,y);if(i&&r[g]>N){let ge=Nb(`${wd[w]} ${E}`),tt=q0(t,o,n,ge,d,c,u,f,m,b);Ab(o,u,t,a,l+d,ge)>N&&(y=ge,S=tt,M=d)}let j="bottom";y.axis==="top"?y.placement==="top"?j="top":y.placement==="bottom"&&(j="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?j="bottom":y.crossPlacement==="bottom"&&(j="top"));let A=jb(v,S[v],n[x],o,s,l,u);S[v]+=A;let D=XT(S,o,u,f,a,l,n.height,j);h&&h<D&&(D=h),n.height=Math.min(n.height,D),S=q0(t,o,n,y,M,c,u,f,m,b),A=jb(v,S[v],n[x],o,s,l,u),S[v]+=A;let z={},B=t[v]-S[v]-a[Wn[v]],L=B+.5*t[x];const P=m/2+b;var T,k,_,U;const F=Wn[v]==="left"?((T=a.left)!==null&&T!==void 0?T:0)+((k=a.right)!==null&&k!==void 0?k:0):((_=a.top)!==null&&_!==void 0?_:0)+((U=a.bottom)!==null&&U!==void 0?U:0),G=n[x]-F-m/2-b,K=t[v]+m/2-(S[v]+a[Wn[v]]),V=t[v]+t[x]-m/2-(S[v]+a[Wn[v]]),I=Us(L,K,V);z[v]=Us(I,P,G),{placement:w,crossPlacement:E}=y,m?B=z[v]:E==="right"?B+=t[x]:E==="center"&&(B+=t[x]/2);let J=w==="left"||w==="top"?n[g]:0,et={x:w==="top"||w==="bottom"?B:J,y:w==="left"||w==="right"?B:J};return{position:S,maxHeight:D,arrowOffsetLeft:z.left,arrowOffsetTop:z.top,placement:w,triggerAnchorPoint:et}}function ZT(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:a,padding:l,shouldFlip:i,boundaryElement:o,offset:s,crossOffset:u,maxHeight:d,arrowSize:c=0,arrowBoundaryOffset:f=0}=e,h=r instanceof HTMLElement?$T(r):document.documentElement,m=h===document.documentElement;const b=window.getComputedStyle(h).position;let y=!!b&&b!=="static",g=m?Si(n,!1):Lb(n,h,!1);if(!m){let{marginTop:z,marginLeft:B}=window.getComputedStyle(n);g.top+=parseInt(z,10)||0,g.left+=parseInt(B,10)||0}let v=Si(r,!0),x=IT(r);var w,E;v.width+=((w=x.left)!==null&&w!==void 0?w:0)+((E=x.right)!==null&&E!==void 0?E:0);var S,M;v.height+=((S=x.top)!==null&&S!==void 0?S:0)+((M=x.bottom)!==null&&M!==void 0?M:0);let N=QT(a),j=Db(o),A=Db(h),D=o.tagName==="BODY"?Si(h,!1):Lb(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),YT(t,g,v,N,x,l,i,j,A,D,s,u,y,d,c,f)}function Ag(e,t){let{top:n,left:r,width:a,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,l=e.offsetHeight),{top:n,left:r,width:a,height:l}}function Si(e,t){let{top:n,left:r,width:a,height:l}=Ag(e,t),{scrollTop:i,scrollLeft:o,clientTop:s,clientLeft:u}=document.documentElement;return{top:n+i-s,left:r+o-u,width:a,height:l}}function Lb(e,t,n){let r=window.getComputedStyle(e),a;if(r.position==="fixed")a=Ag(e,n);else{a=Si(e,n);let l=Si(t,n),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(r.marginTop,10)||0,a.left-=parseInt(r.marginLeft,10)||0,a}function $T(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!_b(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!_b(t);)t=t.parentElement;return t||document.documentElement}function _b(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const q3=new WeakMap;function WT(e){let{triggerRef:t,isOpen:n,onClose:r}=e;p.useEffect(()=>{if(!n||r===null)return;let a=l=>{let i=l.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement)return;let o=r||q3.get(t.current);o&&o()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[n,r,t])}const JT=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ek=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function tk(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return JT.has(n.script)}let t=e.split("-")[0];return ek.has(t)}const nk=Symbol.for("react-aria.i18n.locale");function F3(){let e=typeof window<"u"&&window[nk]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:tk(e)?"rtl":"ltr"}}let Np=F3(),Wo=new Set;function zb(){Np=F3();for(let e of Wo)e(Np)}function rk(){let e=Da(),[t,n]=p.useState(Np);return p.useEffect(()=>(Wo.size===0&&window.addEventListener("languagechange",zb),Wo.add(n),()=>{Wo.delete(n),Wo.size===0&&window.removeEventListener("languagechange",zb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ak=O.createContext(null);function Rl(){let e=rk();return p.useContext(ak)||e}const lk=Symbol.for("react-aria.i18n.locale"),ik=Symbol.for("react-aria.i18n.strings");let Po;class Ef{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=ok(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[lk];if(Po===void 0){let a=window[ik];if(!a)return null;Po={};for(let l in a)Po[l]=new Ef({[n]:a[l]},n)}let r=Po==null?void 0:Po[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function ok(e,t,n="en-US"){if(t[e])return t[e];let r=sk(e);if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function sk(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Pb=new Map,Hb=new Map;class uk{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let l=this.locale+":"+r,i=Pb.get(l);i||(i=new Intl.PluralRules(this.locale,{type:r}),Pb.set(l,i));let o=i.select(t);return a=n[o]||n.other,typeof a=="function"?a():a}number(t){let n=Hb.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Hb.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Kb=new WeakMap;function ck(e){let t=Kb.get(e);return t||(t=new Ef(e),Kb.set(e,t)),t}function dk(e,t){return t&&Ef.getGlobalDictionaryForPackage(t)||ck(e)}function V3(e,t){let{locale:n}=Rl(),r=dk(e,t);return p.useMemo(()=>new uk(n,r),[n,r])}function fk(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function hk(e,t,n){fk(e,t),t.set(e,n)}let F0=new Map,Ap=!1;try{Ap=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Cd=!1;try{Cd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const G3={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class pk{format(t){let n="";if(!Ap&&this.options.signDisplay!=null?n=gk(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Cd){var r;let{unit:a,unitDisplay:l="short",locale:i}=this.resolvedOptions();if(!a)return n;let o=(r=G3[a])===null||r===void 0?void 0:r[l];n+=o[i]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(n);return[...r.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ap&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Cd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=mk(t,n),this.options=n}}function mk(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Cd){var r;let{unit:i,unitDisplay:o="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=G3[i])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(F0.has(a))return F0.get(a);let l=new Intl.NumberFormat(e,t);return F0.set(a,l),l}function gk(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),l=e.format(n),i=a.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return e.format(n)}}function vk(e={}){let{locale:t}=Rl();return p.useMemo(()=>new pk(t,e),[t,e])}let V0=new Map;function bk(e){let{locale:t}=Rl(),n=t+(e?Object.entries(e).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(V0.has(n))return V0.get(n);let r=new Intl.Collator(t,e);return V0.set(n,r),r}let Rt=typeof document<"u"?window.visualViewport:null;function Q3(e){let{direction:t}=Rl(),{arrowSize:n,targetRef:r,overlayRef:a,arrowRef:l,scrollRef:i=a,placement:o="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:b,maxHeight:y,arrowBoundaryOffset:g=0}=e,[v,x]=p.useState(null),w=[h,o,a.current,r.current,l==null?void 0:l.current,i.current,s,u,d,c,f,m,t,y,g,n],E=p.useRef(Rt==null?void 0:Rt.scale);p.useEffect(()=>{m&&(E.current=Rt==null?void 0:Rt.scale)},[m]);let S=p.useCallback(()=>{if(h===!1||!m||!a.current||!r.current||!d||(Rt==null?void 0:Rt.scale)!==E.current)return;let z=null;if(i.current&&i.current.contains(document.activeElement)){var B;let F=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),G=i.current.getBoundingClientRect();var L;if(z={type:"top",offset:((L=F==null?void 0:F.top)!==null&&L!==void 0?L:0)-G.top},z.offset>G.height/2){z.type="bottom";var P;z.offset=((P=F==null?void 0:F.bottom)!==null&&P!==void 0?P:0)-G.bottom}}let T=a.current;if(!y&&a.current){var k;T.style.top="0px",T.style.bottom="";var _;T.style.maxHeight=((_=(k=window.visualViewport)===null||k===void 0?void 0:k.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let U=ZT({placement:xk(o,t),overlayNode:a.current,targetNode:r.current,scrollNode:i.current||a.current,padding:s,shouldFlip:u,boundaryElement:d,offset:c,crossOffset:f,maxHeight:y,arrowSize:n??(l!=null&&l.current?Ag(l.current,!0).width:0),arrowBoundaryOffset:g});if(U.position){if(T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(U.position).forEach(F=>T.style[F]=U.position[F]+"px"),T.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",z&&document.activeElement&&i.current){let F=document.activeElement.getBoundingClientRect(),G=i.current.getBoundingClientRect(),K=F[z.type]-G[z.type];i.current.scrollTop+=K-z.offset}x(U)}},w);xe(S,w),yk(S),bd({ref:a,onResize:S}),bd({ref:r,onResize:S});let M=p.useRef(!1);xe(()=>{let z,B=()=>{M.current=!0,clearTimeout(z),z=setTimeout(()=>{M.current=!1},500),S()},L=()=>{M.current&&B()};return Rt==null||Rt.addEventListener("resize",B),Rt==null||Rt.addEventListener("scroll",L),()=>{Rt==null||Rt.removeEventListener("resize",B),Rt==null||Rt.removeEventListener("scroll",L)}},[S]);let N=p.useCallback(()=>{M.current||b==null||b()},[b,M]);WT({triggerRef:r,isOpen:m,onClose:b&&N});var j,A,D;return{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v==null?void 0:v.position,maxHeight:(j=v==null?void 0:v.maxHeight)!==null&&j!==void 0?j:"100vh"}},placement:(A=v==null?void 0:v.placement)!==null&&A!==void 0?A:null,triggerAnchorPoint:(D=v==null?void 0:v.triggerAnchorPoint)!==null&&D!==void 0?D:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v==null?void 0:v.arrowOffsetLeft,top:v==null?void 0:v.arrowOffsetTop}},updatePosition:S}}function yk(e){xe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function xk(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Lg(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function I3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function X3(e){let t=p.useRef({isFocused:!1,observer:null});xe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=xt(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=Lg(i);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Sd=!1;function wk(e){for(;e&&!z3(e);)e=e.parentElement;let t=xn(e),n=t.document.activeElement;if(!n||n===e)return;Sd=!0;let r=!1,a=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},l=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,Kn(n),s()))},i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,Kn(n),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),Sd=!1,r=!1},u=requestAnimationFrame(s);return s}let fi="default",Lp="",_c=new WeakMap;function Ck(e){if(xf()){if(fi==="default"){const t=he(e);Lp=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fi="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";_c.set(e,e.style[t]),e.style[t]="none"}}function Ub(e){if(xf()){if(fi!=="disabled")return;fi="restoring",setTimeout(()=>{D3(()=>{if(fi==="restoring"){const t=he(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Lp||""),Lp="",fi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_c.has(e)){let t=_c.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_c.delete(e)}}const Bs=O.createContext({register:()=>{}});Bs.displayName="PressResponderContext";function Sk(e,t){return t.get?t.get.call(e):t.value}function Y3(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Ek(e,t){var n=Y3(e,t,"get");return Sk(e,n)}function Mk(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Bb(e,t,n){var r=Y3(e,t,"set");return Mk(e,r,n),n}function Ok(e){let t=p.useContext(Bs);if(t){let{register:n,...r}=t;e=ue(r,e),n()}return Dg(t,e.ref),e}var ec=new WeakMap;class tc{continuePropagation(){Bb(this,ec,!1)}get shouldStopPropagation(){return Ek(this,ec)}constructor(t,n,r,a){hk(this,ec,{writable:!0,value:void 0}),Bb(this,ec,!0);var l;let i=(l=a==null?void 0:a.target)!==null&&l!==void 0?l:r.currentTarget;const o=i==null?void 0:i.getBoundingClientRect();let s,u=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),o&&(d!=null&&c!=null?(s=d-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const qb=Symbol("linkClicked"),Fb="react-aria-pressable-style",Vb="data-react-aria-pressable";function Mf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...h}=Ok(e),[m,b]=p.useState(!1),y=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:g,removeAllGlobalListeners:v}=Cf(),x=xt((D,z)=>{let B=y.current;if(o||B.didFirePressStart)return!1;let L=!0;if(B.isTriggeringEvent=!0,r){let P=new tc("pressstart",z,D);r(P),L=P.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,b(!0),L}),w=xt((D,z,B=!0)=>{let L=y.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let P=!0;if(a){let T=new tc("pressend",z,D);a(T),P=T.shouldStopPropagation}if(n&&n(!1),b(!1),t&&B&&!o){let T=new tc("press",z,D);t(T),P&&(P=T.shouldStopPropagation)}return L.isTriggeringEvent=!1,P}),E=xt((D,z)=>{let B=y.current;if(o)return!1;if(l){B.isTriggeringEvent=!0;let L=new tc("pressup",z,D);return l(L),B.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),S=xt(D=>{let z=y.current;if(z.isPressed&&z.target){z.didFirePressStart&&z.pointerType!=null&&w(Qa(z.target,D),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,v(),c||Ub(z.target);for(let B of z.disposables)B();z.disposables=[]}}),M=xt(D=>{d&&S(D)}),N=xt(D=>{o||i==null||i(D)}),j=xt((D,z)=>{if(!o&&i){let B=new MouseEvent("click",D);I3(B,z),i(Lg(B))}}),A=p.useMemo(()=>{let D=y.current,z={onKeyDown(L){if(G0(L.nativeEvent,L.currentTarget)&&dn(L.currentTarget,Ue(L.nativeEvent))){var P;Gb(Ue(L.nativeEvent),L.key)&&L.preventDefault();let T=!0;if(!D.isPressed&&!L.repeat){D.target=L.currentTarget,D.isPressed=!0,D.pointerType="keyboard",T=x(L,"keyboard");let k=L.currentTarget,_=U=>{G0(U,k)&&!U.repeat&&dn(k,Ue(U))&&D.target&&E(Qa(D.target,U),"keyboard")};g(he(L.currentTarget),"keyup",no(_,B),!0)}T&&L.stopPropagation(),L.metaKey&&ml()&&((P=D.metaKeyEvents)===null||P===void 0||P.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(L){if(!(L&&!dn(L.currentTarget,Ue(L.nativeEvent)))&&L&&L.button===0&&!D.isTriggeringEvent&&!gl.isOpening){let P=!0;if(o&&L.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||L3(L.nativeEvent))){let T=x(L,"virtual"),k=E(L,"virtual"),_=w(L,"virtual");N(L),P=T&&k&&_}else if(D.isPressed&&D.pointerType!=="keyboard"){let T=D.pointerType||L.nativeEvent.pointerType||"virtual",k=E(Qa(L.currentTarget,L),T),_=w(Qa(L.currentTarget,L),T,!0);P=k&&_,D.isOverTarget=!1,N(L),S(L)}D.ignoreEmulatedMouseEvents=!1,P&&L.stopPropagation()}}},B=L=>{var P;if(D.isPressed&&D.target&&G0(L,D.target)){var T;Gb(Ue(L),L.key)&&L.preventDefault();let _=Ue(L),U=dn(D.target,Ue(L));w(Qa(D.target,L),"keyboard",U),U&&j(L,D.target),v(),L.key!=="Enter"&&_g(D.target)&&dn(D.target,_)&&!L[qb]&&(L[qb]=!0,gl(D.target,L,!1)),D.isPressed=!1,(T=D.metaKeyEvents)===null||T===void 0||T.delete(L.key)}else if(L.key==="Meta"&&!((P=D.metaKeyEvents)===null||P===void 0)&&P.size){var k;let _=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let U of _.values())(k=D.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){z.onPointerDown=T=>{if(T.button!==0||!dn(T.currentTarget,Ue(T.nativeEvent)))return;if(LT(T.nativeEvent)){D.pointerType="virtual";return}D.pointerType=T.pointerType;let k=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=T.pointerId,D.target=T.currentTarget,c||Ck(D.target),k=x(T,D.pointerType);let _=Ue(T.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(T.pointerId),g(he(T.currentTarget),"pointerup",L,!1),g(he(T.currentTarget),"pointercancel",P,!1)}k&&T.stopPropagation()},z.onMouseDown=T=>{if(dn(T.currentTarget,Ue(T.nativeEvent))&&T.button===0){if(u){let k=wk(T.target);k&&D.disposables.push(k)}T.stopPropagation()}},z.onPointerUp=T=>{!dn(T.currentTarget,Ue(T.nativeEvent))||D.pointerType==="virtual"||T.button===0&&!D.isPressed&&E(T,D.pointerType||T.pointerType)},z.onPointerEnter=T=>{T.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,x(Qa(D.target,T),D.pointerType))},z.onPointerLeave=T=>{T.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,w(Qa(D.target,T),D.pointerType,!1),M(T))};let L=T=>{if(T.pointerId===D.activePointerId&&D.isPressed&&T.button===0&&D.target){if(dn(D.target,Ue(T))&&D.pointerType!=null){let k=!1,_=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(k?S(T):(Kn(D.target),D.target.click()))},80);g(T.currentTarget,"click",()=>k=!0,!0),D.disposables.push(()=>clearTimeout(_))}else S(T);D.isOverTarget=!1}},P=T=>{S(T)};z.onDragStart=T=>{dn(T.currentTarget,Ue(T.nativeEvent))&&S(T)}}return z},[g,o,u,v,c,S,M,w,x,E,N,j]);return p.useEffect(()=>{if(!f)return;const D=he(f.current);if(!D||!D.head||D.getElementById(Fb))return;const z=D.createElement("style");z.id=Fb,z.textContent=`
|
|
69
69
|
@layer {
|
|
70
|
-
[${
|
|
70
|
+
[${Vb}] {
|
|
71
71
|
touch-action: pan-x pan-y pinch-zoom;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`.trim(),j.head.prepend(z)},[f]),p.useEffect(()=>{let j=b.current;return()=>{var z;c||Ky((z=j.target)!==null&&z!==void 0?z:void 0);for(let B of j.disposables)B();j.disposables=[]}},[c]),{isPressed:s||m,pressProps:ue(h,k,{[Fy]:!0})}}function _g(e){return e.tagName==="A"&&e.hasAttribute("href")}function G0(e,t){const{key:n,code:r}=e,a=t,l=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof bn(a).HTMLInputElement&&!I3(a,n)||a instanceof bn(a).HTMLTextAreaElement||a.isContentEditable)&&!((l==="link"||!l&&_g(a))&&n!=="Enter")}function Qa(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function OD(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_g(e)}function Vy(e,t){return e instanceof HTMLInputElement?!I3(e,t):OD(e)}const RD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function I3(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":RD.has(e.type)}let ro=null,_p=new Set,gs=new Map,yl=!1,zp=!1;const TD={Tab:!0,Escape:!0};function zg(e,t){for(let n of _p)n(e,t)}function DD(e){return!(e.metaKey||!ml()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ed(e){yl=!0,DD(e)&&(ro="keyboard",zg("keyboard",e))}function Ei(e){ro="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(yl=!0,zg("pointer",e))}function Z3(e){k3(e)&&(yl=!0,ro="virtual")}function $3(e){e.target===window||e.target===document||Sd||!e.isTrusted||(!yl&&!zp&&(ro="virtual",zg("virtual",e)),yl=!1,zp=!1)}function W3(){Sd||(yl=!1,zp=!0)}function Pp(e){if(typeof window>"u"||typeof document>"u"||gs.get(bn(e)))return;const t=bn(e),n=he(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){yl=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ed,!0),n.addEventListener("keyup",Ed,!0),n.addEventListener("click",Z3,!0),t.addEventListener("focus",$3,!0),t.addEventListener("blur",W3,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ei,!0),n.addEventListener("pointermove",Ei,!0),n.addEventListener("pointerup",Ei,!0)),t.addEventListener("beforeunload",()=>{J3(e)},{once:!0}),gs.set(t,{focus:r})}const J3=(e,t)=>{const n=bn(e),r=he(e);t&&r.removeEventListener("DOMContentLoaded",t),gs.has(n)&&(n.HTMLElement.prototype.focus=gs.get(n).focus,r.removeEventListener("keydown",Ed,!0),r.removeEventListener("keyup",Ed,!0),r.removeEventListener("click",Z3,!0),n.removeEventListener("focus",$3,!0),n.removeEventListener("blur",W3,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Ei,!0),r.removeEventListener("pointermove",Ei,!0),r.removeEventListener("pointerup",Ei,!0)),gs.delete(n))};function jD(e){const t=he(e);let n;return t.readyState!=="loading"?Pp(e):(n=()=>{Pp(e)},t.addEventListener("DOMContentLoaded",n)),()=>J3(e,n)}typeof document<"u"&&jD();function qs(){return ro!=="pointer"}function Fs(){return ro}const AD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ND(e,t,n){let r=he(n==null?void 0:n.target);const a=typeof window<"u"?bn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?bn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?bn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?bn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof a&&!AD.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof o&&!TD[n.key])}function kD(e,t,n){Pp(),p.useEffect(()=>{let r=(a,l)=>{ND(!!(n!=null&&n.isTextInput),a,l)&&e(qs())};return _p.add(r),()=>{_p.delete(r)}},t)}function Sa(e){const t=he(e),n=ot(t);if(Fs()==="virtual"){let r=n;D3(()=>{ot(t)===r&&e.isConnected&&Kn(e)})}else Kn(e)}function Pg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const l=p.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),a&&a(!1),!0},[r,a]),i=X3(l),o=p.useCallback(s=>{const u=he(s.target),d=u?ot(u):ot();s.target===s.currentTarget&&d===Ue(s.nativeEvent)&&(n&&n(s),a&&a(!0),i(s))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?l:void 0}}}function Gy(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function e4(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Gy(e.onKeyDown),onKeyUp:Gy(e.onKeyUp)}}}let Md=O.createContext(null);function LD(e){let t=p.useContext(Md)||{};jg(t,e);let{ref:n,...r}=t;return r}const _D=O.forwardRef(function(e,t){let{children:n,...r}=e,a=no(t),l={...r,ref:a};return O.createElement(Md.Provider,{value:l},n)});function t4(e,t){let{focusProps:n}=Pg(e),{keyboardProps:r}=e4(e),a=ue(n,r),l=LD(t),i=e.isDisabled?{}:l,o=p.useRef(e.autoFocus);p.useEffect(()=>{o.current&&t.current&&Sa(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ue({...a,tabIndex:s},i)}}const n4=O.forwardRef(({children:e,...t},n)=>{let r=p.useRef(!1),a=p.useContext(Bs);n=no(n||(a==null?void 0:a.ref));let l=ue(a||{},{...t,ref:n,register(){r.current=!0,a&&a.register()}});return jg(a,n),p.useEffect(()=>{r.current||(r.current=!0)},[]),O.createElement(Bs.Provider,{value:l},e)});function zD({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return O.createElement(Bs.Provider,{value:t},e)}function Hg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,l=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=Cf(),s=p.useCallback(c=>{c.currentTarget.contains(c.target)&&l.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(l.current.isFocusWithin=!1,o(),n&&n(c),a&&a(!1))},[n,a,l,o]),u=X3(s),d=p.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const f=he(c.target),h=ot(f);if(!l.current.isFocusWithin&&h===Ue(c.nativeEvent)){r&&r(c),a&&a(!0),l.current.isFocusWithin=!0,u(c);let m=c.currentTarget;i(f,"focus",v=>{if(l.current.isFocusWithin&&!cn(m,v.target)){let b=new f.defaultView.FocusEvent("blur",{relatedTarget:v.target});Q3(b,m);let g=Lg(b);s(g)}},{capture:!0})}},[r,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Hp=!1,nc=0;function PD(){Hp=!0,setTimeout(()=>{Hp=!1},50)}function Qy(e){e.pointerType==="touch"&&PD()}function HD(){if(!(typeof document>"u"))return nc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Qy),nc++,()=>{nc--,!(nc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Qy)}}function ao(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[l,i]=p.useState(!1),o=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(HD,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Cf(),{hoverProps:d,triggerHoverEnd:c}=p.useMemo(()=>{let f=(v,b)=>{if(o.pointerType=b,a||b==="touch"||o.isHovered||!v.currentTarget.contains(v.target))return;o.isHovered=!0;let g=v.currentTarget;o.target=g,s(he(v.target),"pointerover",y=>{o.isHovered&&o.target&&!cn(o.target,y.target)&&h(y,y.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),i(!0)},h=(v,b)=>{let g=o.target;o.pointerType="",o.target=null,!(b==="touch"||!o.isHovered||!g)&&(o.isHovered=!1,u(),r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=v=>{Hp&&v.pointerType==="mouse"||f(v,v.pointerType)},m.onPointerLeave=v=>{!a&&v.currentTarget.contains(v.target)&&h(v,v.pointerType)}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,a,o,s,u]);return p.useEffect(()=>{a&&c({currentTarget:o.target},o.pointerType)},[a]),{hoverProps:d,isHovered:l}}function KD(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,l=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=wt(s=>{n&&Xy(s,t)&&(a&&a(s),l.current.isPointerDown=!0)}),o=wt(s=>{n&&n(s)});p.useEffect(()=>{let s=l.current;if(r)return;const u=t.current,d=he(u);if(typeof PointerEvent<"u"){let c=f=>{s.isPointerDown&&Xy(f,t)&&o(f),s.isPointerDown=!1};return d.addEventListener("pointerdown",i,!0),d.addEventListener("click",c,!0),()=>{d.removeEventListener("pointerdown",i,!0),d.removeEventListener("click",c,!0)}}},[t,r,i,o])}function Xy(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const UD=500;function r4(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:a,threshold:l=UD,accessibilityDescription:i}=e;const o=p.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Cf(),{pressProps:d}=Mf({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),o.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),he(f.target).activeElement!==f.target&&Kn(f.target),a&&a({...f,type:"longpress"}),o.current=void 0},l),f.pointerType==="touch")){let h=m=>{m.preventDefault()};s(f.target,"contextmenu",h,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){o.current&&clearTimeout(o.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),c=NT(a&&!t?i:void 0);return{longPressProps:ue(d,c)}}const Yy=O.createContext(null),Kp="react-aria-focus-scope-restore";let Oe=null;function a4(e){let{children:t,contain:n,restoreFocus:r,autoFocus:a}=e,l=p.useRef(null),i=p.useRef(null),o=p.useRef([]),{parentNode:s}=p.useContext(Yy)||{},u=p.useMemo(()=>new Bp({scopeRef:o}),[o]);we(()=>{let f=s||Ve.root;if(Ve.getTreeNode(f.scopeRef)&&Oe&&!Od(Oe,f.scopeRef)){let h=Ve.getTreeNode(Oe);h&&(f=h)}f.addChild(u),Ve.addNode(u)},[u,s]),we(()=>{let f=Ve.getTreeNode(o);f&&(f.contain=!!n)},[n]),we(()=>{var f;let h=(f=l.current)===null||f===void 0?void 0:f.nextSibling,m=[],v=b=>b.stopPropagation();for(;h&&h!==i.current;)m.push(h),h.addEventListener(Kp,v),h=h.nextSibling;return o.current=m,()=>{for(let b of m)b.removeEventListener(Kp,v)}},[t]),QD(o,r,n),FD(o,n),XD(o,r,n),GD(o,a),p.useEffect(()=>{const f=ot(he(o.current?o.current[0]:void 0));let h=null;if(Sn(f,o.current)){for(let m of Ve.traverse())m.scopeRef&&Sn(f,m.scopeRef.current)&&(h=m);h===Ve.getTreeNode(o)&&(Oe=h.scopeRef)}},[o]),we(()=>()=>{var f,h,m;let v=(m=(h=Ve.getTreeNode(o))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(o===Oe||Od(o,Oe))&&(!v||Ve.getTreeNode(v))&&(Oe=v),Ve.removeTreeNode(o)},[o]);let d=p.useMemo(()=>BD(o),[]),c=p.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return O.createElement(Yy.Provider,{value:c},O.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,O.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function BD(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||ot(he((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[0].previousElementSibling,d=nl(n),c=Zt(d,{tabbable:a,accept:i},n);c.currentNode=Sn(s,n)?s:u;let f=c.nextNode();return!f&&l&&(c.currentNode=u,f=c.nextNode()),f&&kt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||ot(he((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[n.length-1].nextElementSibling,d=nl(n),c=Zt(d,{tabbable:a,accept:i},n);c.currentNode=Sn(s,n)?s:u;let f=c.previousNode();return!f&&l&&(c.currentNode=u,f=c.previousNode()),f&&kt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=nl(n),i=Zt(l,{tabbable:r,accept:a},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&kt(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=nl(n),i=Zt(l,{tabbable:r,accept:a},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&kt(o,!0),o}}}function nl(e){return e[0].parentElement}function Wo(e){let t=Ve.getTreeNode(Oe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function qD(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...he(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;t=[...((r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name))??[]]}return t?!t.some(a=>a.checked):!1}function FD(e,t){let n=p.useRef(void 0),r=p.useRef(void 0);we(()=>{let a=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const l=he(a?a[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Wo(e)||u.isComposing)return;let d=ot(l),c=e.current;if(!c||!Sn(d,c))return;let f=nl(c),h=Zt(f,{tabbable:!0},c);if(!d)return;h.currentNode=d;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&kt(m,!0)},o=u=>{(!Oe||Od(Oe,e))&&Sn(Ue(u),e.current)?(Oe=e,n.current=Ue(u)):Wo(e)&&!ra(Ue(u),e)?n.current?n.current.focus():Oe&&Oe.current&&Up(Oe.current):Wo(e)&&(n.current=Ue(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Fs(),c=(d==="virtual"||d===null)&&Dg()&&Tg(),f=ot(l);if(!c&&f&&Wo(e)&&!ra(f,e)){Oe=e;let m=Ue(u);if(m&&m.isConnected){var h;n.current=m,(h=n.current)===null||h===void 0||h.focus()}else Oe.current&&Up(Oe.current)}})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",o,!1),a==null||a.forEach(u=>u.addEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",o,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),we(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function l4(e){return ra(e)}function Sn(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ra(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ve.traverse(Ve.getTreeNode(t)))if(n&&Sn(e,n.current))return!0;return!1}function VD(e){return ra(e,Oe)}function Od(e,t){var n;let r=(n=Ve.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function kt(e,t=!1){if(e!=null&&!t)try{Sa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function i4(e,t=!0){let n=e[0].previousElementSibling,r=nl(e),a=Zt(r,{tabbable:t},e);a.currentNode=n;let l=a.nextNode();return t&&!l&&(r=nl(e),a=Zt(r,{tabbable:!1},e),a.currentNode=n,l=a.nextNode()),l}function Up(e,t=!0){kt(i4(e,t))}function GD(e,t){const n=O.useRef(t);p.useEffect(()=>{if(n.current){Oe=e;const r=he(e.current?e.current[0]:void 0);!Sn(ot(r),Oe.current)&&e.current&&Up(e.current)}n.current=!1},[e])}function QD(e,t,n){we(()=>{if(t||n)return;let r=e.current;const a=he(r?r[0]:void 0);let l=i=>{let o=Ue(i);Sn(o,e.current)?Oe=e:l4(o)||(Oe=null)};return a.addEventListener("focusin",l,!1),r==null||r.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",l,!1))}},[e,t,n])}function Iy(e){let t=Ve.getTreeNode(Oe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function XD(e,t,n){const r=p.useRef(typeof document<"u"?ot(he(e.current?e.current[0]:void 0)):null);we(()=>{let a=e.current;const l=he(a?a[0]:void 0);if(!t||n)return;let i=()=>{(!Oe||Od(Oe,e))&&Sn(ot(l),e.current)&&(Oe=e)};return l.addEventListener("focusin",i,!1),a==null||a.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),a==null||a.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,n]),we(()=>{const a=he(e.current?e.current[0]:void 0);if(!t)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Wo(e)||i.isComposing)return;let o=a.activeElement;if(!ra(o,e)||!Iy(e))return;let s=Ve.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,d=Zt(a.body,{tabbable:!0});d.currentNode=o;let c=i.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===a.body)&&(u=void 0,s.nodeToRestore=void 0),(!c||!ra(c,e))&&u){d.currentNode=u;do c=i.shiftKey?d.previousNode():d.nextNode();while(ra(c,e));i.preventDefault(),i.stopPropagation(),c?kt(c,!0):l4(u)?kt(u,!0):o.blur()}};return n||a.addEventListener("keydown",l,!0),()=>{n||a.removeEventListener("keydown",l,!0)}},[e,t,n]),we(()=>{const a=he(e.current?e.current[0]:void 0);if(!t)return;let l=Ve.getTreeNode(e);if(l){var i;return l.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let o=Ve.getTreeNode(e);if(!o)return;let s=o.nodeToRestore,u=ot(a);if(t&&s&&(u&&ra(u,e)||u===a.body&&Iy(e))){let d=Ve.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Zy(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ve.getTreeNode(c.scopeRef)){let f=i4(c.scopeRef.current,!0);Zy(f);return}c=c.parent}}})}}}},[e,t])}function Zy(e){e.dispatchEvent(new CustomEvent(Kp,{bubbles:!0,cancelable:!0}))&&kt(e)}function Zt(e,t,n){let r=t!=null&&t.tabbable?BT:_3,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=he(a),i=sT(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!qD(o)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||Sn(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function YD(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||ot(he(r)),u=Zt(r,{tabbable:l,accept:o});r.contains(s)&&(u.currentNode=s);let d=u.nextNode();return!d&&i&&(u.currentNode=r,d=u.nextNode()),d&&kt(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||ot(he(r)),u=Zt(r,{tabbable:l,accept:o});if(r.contains(s))u.currentNode=s;else{let c=Q0(u);return c&&kt(c,!0),c??null}let d=u.previousNode();if(!d&&i){u.currentNode=r;let c=Q0(u);if(!c)return null;d=c}return d&&kt(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=Zt(r,{tabbable:a,accept:l}).nextNode();return i&&kt(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=Zt(r,{tabbable:a,accept:l}),o=Q0(i);return o&&kt(o,!0),o??null}}}function Q0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Kg{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let l=new Bp({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),r&&(l.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Sn(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(l=>r&&r.addChild(l))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Kg;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Bp({scopeRef:null}),this.fastMap.set(null,this.root)}}class Bp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ve=new Kg;function o4(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=p.useRef({isFocused:!1,isFocusVisible:t||qs()}),[l,i]=p.useState(!1),[o,s]=p.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=p.useCallback(()=>s(a.current.isFocused&&a.current.isFocusVisible),[]),d=p.useCallback(h=>{a.current.isFocused=h,i(h),u()},[u]);kD(h=>{a.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=Pg({isDisabled:r,onFocusChange:d}),{focusWithinProps:f}=Hg({isDisabled:!r,onFocusWithinChange:d});return{isFocused:l,isFocusVisible:o,focusProps:r?f:c}}function s4(e){let t=ZD(he(e));t!==e&&(t&&ID(t,e),e&&u4(e,t))}function ID(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function u4(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function ZD(e){let t=ot(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Qn=[];function c4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e;p.useEffect(()=>{if(a&&!Qn.includes(t))return Qn.push(t),()=>{let m=Qn.indexOf(t);m>=0&&Qn.splice(m,1)}},[a,t]);let s=()=>{Qn[Qn.length-1]===t&&n&&n()},u=m=>{(!o||o(m.target))&&Qn[Qn.length-1]===t&&(m.stopPropagation(),m.preventDefault())},d=m=>{(!o||o(m.target))&&(Qn[Qn.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},c=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};KD({ref:t,onInteractOutside:l&&a?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=Hg({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||VD(m.relatedTarget)||(!o||o(m.relatedTarget))&&(n==null||n())}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:c,...f},underlayProps:{onPointerDown:h}}}function d4(e,t,n){let{type:r}=e,{isOpen:a}=t;p.useEffect(()=>{n&&n.current&&B3.set(n.current,t.close)});let l;r==="menu"?l=!0:r==="listbox"&&(l="listbox");let i=an();return{triggerProps:{"aria-haspopup":l,"aria-expanded":a,"aria-controls":a?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}const vs=typeof document<"u"&&window.visualViewport;let rc=0,X0;function f4(e={}){let{isDisabled:t}=e;we(()=>{if(!t)return rc++,rc===1&&(wf()?X0=WD():X0=$D()),()=>{rc--,rc===0&&X0()}},[t])}function $D(){let e=window.innerWidth-document.documentElement.clientWidth;return to(e>0&&("scrollbarGutter"in document.documentElement.style?Y0(document.documentElement,"scrollbarGutter","stable"):Y0(document.documentElement,"paddingRight",`${e}px`)),Y0(document.documentElement,"overflow","hidden"))}function WD(){let e,t=!1,n=s=>{let u=s.target;e=vl(u)?u:A3(u,!0),t=!1;let d=u.ownerDocument.defaultView.getSelection();d&&!d.isCollapsed&&d.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
74
|
+
`.trim(),D.head.prepend(z)},[f]),p.useEffect(()=>{let D=y.current;return()=>{var z;c||Ub((z=D.target)!==null&&z!==void 0?z:void 0);for(let B of D.disposables)B();D.disposables=[]}},[c]),{isPressed:s||m,pressProps:ue(h,A,{[Vb]:!0})}}function _g(e){return e.tagName==="A"&&e.hasAttribute("href")}function G0(e,t){const{key:n,code:r}=e,a=t,l=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof xn(a).HTMLInputElement&&!Z3(a,n)||a instanceof xn(a).HTMLTextAreaElement||a.isContentEditable)&&!((l==="link"||!l&&_g(a))&&n!=="Enter")}function Qa(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Rk(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_g(e)}function Gb(e,t){return e instanceof HTMLInputElement?!Z3(e,t):Rk(e)}const Tk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Z3(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Tk.has(e.type)}let ao=null,_p=new Set,vs=new Map,bl=!1,zp=!1;const kk={Tab:!0,Escape:!0};function zg(e,t){for(let n of _p)n(e,t)}function Dk(e){return!(e.metaKey||!ml()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ed(e){bl=!0,Dk(e)&&(ao="keyboard",zg("keyboard",e))}function Ei(e){ao="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bl=!0,zg("pointer",e))}function $3(e){L3(e)&&(bl=!0,ao="virtual")}function W3(e){e.target===window||e.target===document||Sd||!e.isTrusted||(!bl&&!zp&&(ao="virtual",zg("virtual",e)),bl=!1,zp=!1)}function J3(){Sd||(bl=!1,zp=!0)}function Pp(e){if(typeof window>"u"||typeof document>"u"||vs.get(xn(e)))return;const t=xn(e),n=he(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bl=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ed,!0),n.addEventListener("keyup",Ed,!0),n.addEventListener("click",$3,!0),t.addEventListener("focus",W3,!0),t.addEventListener("blur",J3,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ei,!0),n.addEventListener("pointermove",Ei,!0),n.addEventListener("pointerup",Ei,!0)),t.addEventListener("beforeunload",()=>{e4(e)},{once:!0}),vs.set(t,{focus:r})}const e4=(e,t)=>{const n=xn(e),r=he(e);t&&r.removeEventListener("DOMContentLoaded",t),vs.has(n)&&(n.HTMLElement.prototype.focus=vs.get(n).focus,r.removeEventListener("keydown",Ed,!0),r.removeEventListener("keyup",Ed,!0),r.removeEventListener("click",$3,!0),n.removeEventListener("focus",W3,!0),n.removeEventListener("blur",J3,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Ei,!0),r.removeEventListener("pointermove",Ei,!0),r.removeEventListener("pointerup",Ei,!0)),vs.delete(n))};function jk(e){const t=he(e);let n;return t.readyState!=="loading"?Pp(e):(n=()=>{Pp(e)},t.addEventListener("DOMContentLoaded",n)),()=>e4(e,n)}typeof document<"u"&&jk();function qs(){return ao!=="pointer"}function Fs(){return ao}const Nk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ak(e,t,n){let r=he(n==null?void 0:n.target);const a=typeof window<"u"?xn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?xn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?xn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?xn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof a&&!Nk.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof o&&!kk[n.key])}function Lk(e,t,n){Pp(),p.useEffect(()=>{let r=(a,l)=>{Ak(!!(n!=null&&n.isTextInput),a,l)&&e(qs())};return _p.add(r),()=>{_p.delete(r)}},t)}function Sa(e){const t=he(e),n=ot(t);if(Fs()==="virtual"){let r=n;D3(()=>{ot(t)===r&&e.isConnected&&Kn(e)})}else Kn(e)}function Pg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const l=p.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),a&&a(!1),!0},[r,a]),i=X3(l),o=p.useCallback(s=>{const u=he(s.target),d=u?ot(u):ot();s.target===s.currentTarget&&d===Ue(s.nativeEvent)&&(n&&n(s),a&&a(!0),i(s))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?l:void 0}}}function Qb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function t4(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Qb(e.onKeyDown),onKeyUp:Qb(e.onKeyUp)}}}let Md=O.createContext(null);function _k(e){let t=p.useContext(Md)||{};Dg(t,e);let{ref:n,...r}=t;return r}const zk=O.forwardRef(function(e,t){let{children:n,...r}=e,a=ro(t),l={...r,ref:a};return O.createElement(Md.Provider,{value:l},n)});function n4(e,t){let{focusProps:n}=Pg(e),{keyboardProps:r}=t4(e),a=ue(n,r),l=_k(t),i=e.isDisabled?{}:l,o=p.useRef(e.autoFocus);p.useEffect(()=>{o.current&&t.current&&Sa(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ue({...a,tabIndex:s},i)}}const r4=O.forwardRef(({children:e,...t},n)=>{let r=p.useRef(!1),a=p.useContext(Bs);n=ro(n||(a==null?void 0:a.ref));let l=ue(a||{},{...t,ref:n,register(){r.current=!0,a&&a.register()}});return Dg(a,n),p.useEffect(()=>{r.current||(r.current=!0)},[]),O.createElement(Bs.Provider,{value:l},e)});function Pk({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return O.createElement(Bs.Provider,{value:t},e)}function Hg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,l=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=Cf(),s=p.useCallback(c=>{c.currentTarget.contains(c.target)&&l.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(l.current.isFocusWithin=!1,o(),n&&n(c),a&&a(!1))},[n,a,l,o]),u=X3(s),d=p.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const f=he(c.target),h=ot(f);if(!l.current.isFocusWithin&&h===Ue(c.nativeEvent)){r&&r(c),a&&a(!0),l.current.isFocusWithin=!0,u(c);let m=c.currentTarget;i(f,"focus",b=>{if(l.current.isFocusWithin&&!dn(m,b.target)){let y=new f.defaultView.FocusEvent("blur",{relatedTarget:b.target});I3(y,m);let g=Lg(y);s(g)}},{capture:!0})}},[r,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Hp=!1,nc=0;function Hk(){Hp=!0,setTimeout(()=>{Hp=!1},50)}function Ib(e){e.pointerType==="touch"&&Hk()}function Kk(){if(!(typeof document>"u"))return nc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ib),nc++,()=>{nc--,!(nc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ib)}}function lo(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[l,i]=p.useState(!1),o=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(Kk,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Cf(),{hoverProps:d,triggerHoverEnd:c}=p.useMemo(()=>{let f=(b,y)=>{if(o.pointerType=y,a||y==="touch"||o.isHovered||!b.currentTarget.contains(b.target))return;o.isHovered=!0;let g=b.currentTarget;o.target=g,s(he(b.target),"pointerover",v=>{o.isHovered&&o.target&&!dn(o.target,v.target)&&h(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:g,pointerType:y}),n&&n(!0),i(!0)},h=(b,y)=>{let g=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!g)&&(o.isHovered=!1,u(),r&&r({type:"hoverend",target:g,pointerType:y}),n&&n(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=b=>{Hp&&b.pointerType==="mouse"||f(b,b.pointerType)},m.onPointerLeave=b=>{!a&&b.currentTarget.contains(b.target)&&h(b,b.pointerType)}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,a,o,s,u]);return p.useEffect(()=>{a&&c({currentTarget:o.target},o.pointerType)},[a]),{hoverProps:d,isHovered:l}}function Uk(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,l=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=xt(s=>{n&&Xb(s,t)&&(a&&a(s),l.current.isPointerDown=!0)}),o=xt(s=>{n&&n(s)});p.useEffect(()=>{let s=l.current;if(r)return;const u=t.current,d=he(u);if(typeof PointerEvent<"u"){let c=f=>{s.isPointerDown&&Xb(f,t)&&o(f),s.isPointerDown=!1};return d.addEventListener("pointerdown",i,!0),d.addEventListener("click",c,!0),()=>{d.removeEventListener("pointerdown",i,!0),d.removeEventListener("click",c,!0)}}},[t,r,i,o])}function Xb(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Bk=500;function a4(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:a,threshold:l=Bk,accessibilityDescription:i}=e;const o=p.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Cf(),{pressProps:d}=Mf({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),o.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),he(f.target).activeElement!==f.target&&Kn(f.target),a&&a({...f,type:"longpress"}),o.current=void 0},l),f.pointerType==="touch")){let h=m=>{m.preventDefault()};s(f.target,"contextmenu",h,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){o.current&&clearTimeout(o.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),c=AT(a&&!t?i:void 0);return{longPressProps:ue(d,c)}}const Yb=O.createContext(null),Kp="react-aria-focus-scope-restore";let Oe=null;function l4(e){let{children:t,contain:n,restoreFocus:r,autoFocus:a}=e,l=p.useRef(null),i=p.useRef(null),o=p.useRef([]),{parentNode:s}=p.useContext(Yb)||{},u=p.useMemo(()=>new Bp({scopeRef:o}),[o]);xe(()=>{let f=s||Ve.root;if(Ve.getTreeNode(f.scopeRef)&&Oe&&!Od(Oe,f.scopeRef)){let h=Ve.getTreeNode(Oe);h&&(f=h)}f.addChild(u),Ve.addNode(u)},[u,s]),xe(()=>{let f=Ve.getTreeNode(o);f&&(f.contain=!!n)},[n]),xe(()=>{var f;let h=(f=l.current)===null||f===void 0?void 0:f.nextSibling,m=[],b=y=>y.stopPropagation();for(;h&&h!==i.current;)m.push(h),h.addEventListener(Kp,b),h=h.nextSibling;return o.current=m,()=>{for(let y of m)y.removeEventListener(Kp,b)}},[t]),Ik(o,r,n),Vk(o,n),Xk(o,r,n),Qk(o,a),p.useEffect(()=>{const f=ot(he(o.current?o.current[0]:void 0));let h=null;if(En(f,o.current)){for(let m of Ve.traverse())m.scopeRef&&En(f,m.scopeRef.current)&&(h=m);h===Ve.getTreeNode(o)&&(Oe=h.scopeRef)}},[o]),xe(()=>()=>{var f,h,m;let b=(m=(h=Ve.getTreeNode(o))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(o===Oe||Od(o,Oe))&&(!b||Ve.getTreeNode(b))&&(Oe=b),Ve.removeTreeNode(o)},[o]);let d=p.useMemo(()=>qk(o),[]),c=p.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return O.createElement(Yb.Provider,{value:c},O.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,O.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function qk(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||ot(he((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[0].previousElementSibling,d=nl(n),c=$t(d,{tabbable:a,accept:i},n);c.currentNode=En(s,n)?s:u;let f=c.nextNode();return!f&&l&&(c.currentNode=u,f=c.nextNode()),f&&Lt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||ot(he((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[n.length-1].nextElementSibling,d=nl(n),c=$t(d,{tabbable:a,accept:i},n);c.currentNode=En(s,n)?s:u;let f=c.previousNode();return!f&&l&&(c.currentNode=u,f=c.previousNode()),f&&Lt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=nl(n),i=$t(l,{tabbable:r,accept:a},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Lt(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=nl(n),i=$t(l,{tabbable:r,accept:a},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Lt(o,!0),o}}}function nl(e){return e[0].parentElement}function Jo(e){let t=Ve.getTreeNode(Oe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Fk(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...he(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;t=[...((r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name))??[]]}return t?!t.some(a=>a.checked):!1}function Vk(e,t){let n=p.useRef(void 0),r=p.useRef(void 0);xe(()=>{let a=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const l=he(a?a[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Jo(e)||u.isComposing)return;let d=ot(l),c=e.current;if(!c||!En(d,c))return;let f=nl(c),h=$t(f,{tabbable:!0},c);if(!d)return;h.currentNode=d;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&Lt(m,!0)},o=u=>{(!Oe||Od(Oe,e))&&En(Ue(u),e.current)?(Oe=e,n.current=Ue(u)):Jo(e)&&!ra(Ue(u),e)?n.current?n.current.focus():Oe&&Oe.current&&Up(Oe.current):Jo(e)&&(n.current=Ue(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Fs(),c=(d==="virtual"||d===null)&&kg()&&Tg(),f=ot(l);if(!c&&f&&Jo(e)&&!ra(f,e)){Oe=e;let m=Ue(u);if(m&&m.isConnected){var h;n.current=m,(h=n.current)===null||h===void 0||h.focus()}else Oe.current&&Up(Oe.current)}})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",o,!1),a==null||a.forEach(u=>u.addEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",o,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),xe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function i4(e){return ra(e)}function En(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ra(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ve.traverse(Ve.getTreeNode(t)))if(n&&En(e,n.current))return!0;return!1}function Gk(e){return ra(e,Oe)}function Od(e,t){var n;let r=(n=Ve.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Lt(e,t=!1){if(e!=null&&!t)try{Sa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function o4(e,t=!0){let n=e[0].previousElementSibling,r=nl(e),a=$t(r,{tabbable:t},e);a.currentNode=n;let l=a.nextNode();return t&&!l&&(r=nl(e),a=$t(r,{tabbable:!1},e),a.currentNode=n,l=a.nextNode()),l}function Up(e,t=!0){Lt(o4(e,t))}function Qk(e,t){const n=O.useRef(t);p.useEffect(()=>{if(n.current){Oe=e;const r=he(e.current?e.current[0]:void 0);!En(ot(r),Oe.current)&&e.current&&Up(e.current)}n.current=!1},[e])}function Ik(e,t,n){xe(()=>{if(t||n)return;let r=e.current;const a=he(r?r[0]:void 0);let l=i=>{let o=Ue(i);En(o,e.current)?Oe=e:i4(o)||(Oe=null)};return a.addEventListener("focusin",l,!1),r==null||r.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",l,!1))}},[e,t,n])}function Zb(e){let t=Ve.getTreeNode(Oe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Xk(e,t,n){const r=p.useRef(typeof document<"u"?ot(he(e.current?e.current[0]:void 0)):null);xe(()=>{let a=e.current;const l=he(a?a[0]:void 0);if(!t||n)return;let i=()=>{(!Oe||Od(Oe,e))&&En(ot(l),e.current)&&(Oe=e)};return l.addEventListener("focusin",i,!1),a==null||a.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),a==null||a.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,n]),xe(()=>{const a=he(e.current?e.current[0]:void 0);if(!t)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Jo(e)||i.isComposing)return;let o=a.activeElement;if(!ra(o,e)||!Zb(e))return;let s=Ve.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,d=$t(a.body,{tabbable:!0});d.currentNode=o;let c=i.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===a.body)&&(u=void 0,s.nodeToRestore=void 0),(!c||!ra(c,e))&&u){d.currentNode=u;do c=i.shiftKey?d.previousNode():d.nextNode();while(ra(c,e));i.preventDefault(),i.stopPropagation(),c?Lt(c,!0):i4(u)?Lt(u,!0):o.blur()}};return n||a.addEventListener("keydown",l,!0),()=>{n||a.removeEventListener("keydown",l,!0)}},[e,t,n]),xe(()=>{const a=he(e.current?e.current[0]:void 0);if(!t)return;let l=Ve.getTreeNode(e);if(l){var i;return l.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let o=Ve.getTreeNode(e);if(!o)return;let s=o.nodeToRestore,u=ot(a);if(t&&s&&(u&&ra(u,e)||u===a.body&&Zb(e))){let d=Ve.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){$b(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ve.getTreeNode(c.scopeRef)){let f=o4(c.scopeRef.current,!0);$b(f);return}c=c.parent}}})}}}},[e,t])}function $b(e){e.dispatchEvent(new CustomEvent(Kp,{bubbles:!0,cancelable:!0}))&&Lt(e)}function $t(e,t,n){let r=t!=null&&t.tabbable?qT:z3,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=he(a),i=uT(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!Fk(o)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||En(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Yk(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||ot(he(r)),u=$t(r,{tabbable:l,accept:o});r.contains(s)&&(u.currentNode=s);let d=u.nextNode();return!d&&i&&(u.currentNode=r,d=u.nextNode()),d&&Lt(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||ot(he(r)),u=$t(r,{tabbable:l,accept:o});if(r.contains(s))u.currentNode=s;else{let c=Q0(u);return c&&Lt(c,!0),c??null}let d=u.previousNode();if(!d&&i){u.currentNode=r;let c=Q0(u);if(!c)return null;d=c}return d&&Lt(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=$t(r,{tabbable:a,accept:l}).nextNode();return i&&Lt(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=$t(r,{tabbable:a,accept:l}),o=Q0(i);return o&&Lt(o,!0),o??null}}}function Q0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Kg{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let l=new Bp({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),r&&(l.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&En(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(l=>r&&r.addChild(l))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Kg;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Bp({scopeRef:null}),this.fastMap.set(null,this.root)}}class Bp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ve=new Kg;function s4(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=p.useRef({isFocused:!1,isFocusVisible:t||qs()}),[l,i]=p.useState(!1),[o,s]=p.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=p.useCallback(()=>s(a.current.isFocused&&a.current.isFocusVisible),[]),d=p.useCallback(h=>{a.current.isFocused=h,i(h),u()},[u]);Lk(h=>{a.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=Pg({isDisabled:r,onFocusChange:d}),{focusWithinProps:f}=Hg({isDisabled:!r,onFocusWithinChange:d});return{isFocused:l,isFocusVisible:o,focusProps:r?f:c}}function u4(e){let t=$k(he(e));t!==e&&(t&&Zk(t,e),e&&c4(e,t))}function Zk(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function c4(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function $k(e){let t=ot(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Qn=[];function d4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e;p.useEffect(()=>{if(a&&!Qn.includes(t))return Qn.push(t),()=>{let m=Qn.indexOf(t);m>=0&&Qn.splice(m,1)}},[a,t]);let s=()=>{Qn[Qn.length-1]===t&&n&&n()},u=m=>{(!o||o(m.target))&&Qn[Qn.length-1]===t&&(m.stopPropagation(),m.preventDefault())},d=m=>{(!o||o(m.target))&&(Qn[Qn.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},c=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};Uk({ref:t,onInteractOutside:l&&a?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=Hg({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||Gk(m.relatedTarget)||(!o||o(m.relatedTarget))&&(n==null||n())}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:c,...f},underlayProps:{onPointerDown:h}}}function f4(e,t,n){let{type:r}=e,{isOpen:a}=t;p.useEffect(()=>{n&&n.current&&q3.set(n.current,t.close)});let l;r==="menu"?l=!0:r==="listbox"&&(l="listbox");let i=ln();return{triggerProps:{"aria-haspopup":l,"aria-expanded":a,"aria-controls":a?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}const bs=typeof document<"u"&&window.visualViewport;let rc=0,I0;function h4(e={}){let{isDisabled:t}=e;xe(()=>{if(!t)return rc++,rc===1&&(xf()?I0=Jk():I0=Wk()),()=>{rc--,rc===0&&I0()}},[t])}function Wk(){let e=window.innerWidth-document.documentElement.clientWidth;return no(e>0&&("scrollbarGutter"in document.documentElement.style?X0(document.documentElement,"scrollbarGutter","stable"):X0(document.documentElement,"paddingRight",`${e}px`)),X0(document.documentElement,"overflow","hidden"))}function Jk(){let e,t=!1,n=s=>{let u=s.target;e=vl(u)?u:N3(u,!0),t=!1;let d=u.ownerDocument.defaultView.getSelection();d&&!d.isCollapsed&&d.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
75
75
|
@layer {
|
|
76
76
|
* {
|
|
77
77
|
overscroll-behavior: contain;
|
|
78
78
|
}
|
|
79
|
-
}`.trim(),document.head.prepend(r);let a=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},l=s=>{let u=s.target,d=s.relatedTarget;if(d&&ms(d))d.focus({preventScroll:!0}),$y(d,ms(u));else if(!d){var c;let f=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");f==null||f.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&ms(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&$y(this,u)};let o=to(I0(document,"touchstart",n,{passive:!1,capture:!0}),I0(document,"touchmove",a,{passive:!1,capture:!0}),I0(document,"blur",l,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=i}}function Y0(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function I0(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function $y(e,t){t||!vs?Wy(e):vs.addEventListener("resize",()=>Wy(e),{once:!0})}function Wy(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=A3(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let a=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(l.top<a.top||l.bottom>a.top+n.clientHeight){let i=a.bottom;vs&&(i=Math.min(i,vs.offsetTop+vs.height));let o=l.top-a.top-((i-a.top)/2-l.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}const JD=p.createContext({});function h4(){var e;return(e=p.useContext(JD))!==null&&e!==void 0?e:{}}const qp=O.createContext(null);function ej(e){let{children:t}=e,n=p.useContext(qp),[r,a]=p.useState(0),l=p.useMemo(()=>({parent:n,modalCount:r,addModal(){a(i=>i+1),n&&n.addModal()},removeModal(){a(i=>i-1),n&&n.removeModal()}}),[n,r]);return O.createElement(qp.Provider,{value:l},t)}function tj(){let e=p.useContext(qp);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function nj(e){let{modalProviderProps:t}=tj();return O.createElement("div",{"data-overlay-container":!0,...e,...t})}function rj(e){return O.createElement(ej,null,O.createElement(nj,e))}function aj(e){let t=ja(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:a}=h4();if(!e.portalContainer&&a&&(n=a()),O.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=O.createElement(rj,r);return pm.createPortal(l,n)}var p4={};p4={dismiss:"تجاهل"};var m4={};m4={dismiss:"Отхвърляне"};var g4={};g4={dismiss:"Odstranit"};var v4={};v4={dismiss:"Luk"};var y4={};y4={dismiss:"Schließen"};var b4={};b4={dismiss:"Απόρριψη"};var w4={};w4={dismiss:"Dismiss"};var x4={};x4={dismiss:"Descartar"};var C4={};C4={dismiss:"Lõpeta"};var S4={};S4={dismiss:"Hylkää"};var E4={};E4={dismiss:"Rejeter"};var M4={};M4={dismiss:"התעלם"};var O4={};O4={dismiss:"Odbaci"};var R4={};R4={dismiss:"Elutasítás"};var T4={};T4={dismiss:"Ignora"};var D4={};D4={dismiss:"閉じる"};var j4={};j4={dismiss:"무시"};var A4={};A4={dismiss:"Atmesti"};var N4={};N4={dismiss:"Nerādīt"};var k4={};k4={dismiss:"Lukk"};var L4={};L4={dismiss:"Negeren"};var _4={};_4={dismiss:"Zignoruj"};var z4={};z4={dismiss:"Descartar"};var P4={};P4={dismiss:"Dispensar"};var H4={};H4={dismiss:"Revocare"};var K4={};K4={dismiss:"Пропустить"};var U4={};U4={dismiss:"Zrušiť"};var B4={};B4={dismiss:"Opusti"};var q4={};q4={dismiss:"Odbaci"};var F4={};F4={dismiss:"Avvisa"};var V4={};V4={dismiss:"Kapat"};var G4={};G4={dismiss:"Скасувати"};var Q4={};Q4={dismiss:"取消"};var X4={};X4={dismiss:"關閉"};var Y4={};Y4={"ar-AE":p4,"bg-BG":m4,"cs-CZ":g4,"da-DK":v4,"de-DE":y4,"el-GR":b4,"en-US":w4,"es-ES":x4,"et-EE":C4,"fi-FI":S4,"fr-FR":E4,"he-IL":M4,"hr-HR":O4,"hu-HU":R4,"it-IT":T4,"ja-JP":D4,"ko-KR":j4,"lt-LT":A4,"lv-LV":N4,"nb-NO":k4,"nl-NL":L4,"pl-PL":_4,"pt-BR":z4,"pt-PT":P4,"ro-RO":H4,"ru-RU":K4,"sk-SK":U4,"sl-SI":B4,"sr-SP":q4,"sv-SE":F4,"tr-TR":V4,"uk-UA":G4,"zh-CN":Q4,"zh-TW":X4};const Jy={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function lj(e={}){let{style:t,isFocusable:n}=e,[r,a]=p.useState(!1),{focusWithinProps:l}=Hg({isDisabled:!n,onFocusWithinChange:o=>a(o)}),i=p.useMemo(()=>r?t:t?{...Jy,...t}:Jy,[r]);return{visuallyHiddenProps:{...l,style:i}}}function ij(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...l}=e,{visuallyHiddenProps:i}=lj(e);return O.createElement(n,ue(l,i),t)}function oj(e){return e&&e.__esModule?e.default:e}function Fp(e){let{onDismiss:t,...n}=e,r=F3(oj(Y4),"@react-aria/overlays"),a=j3(n,r.format("dismiss")),l=()=>{t&&t()};return O.createElement(ij,null,O.createElement("button",{...a,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}const sj=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Po=new WeakMap,Tt=[];function I4(e,t){let n=bn(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var a;let l=(a=r==null?void 0:r.root)!==null&&a!==void 0?a:document.body,i=(r==null?void 0:r.shouldUseInert)&&sj,o=new Set(e),s=new Set,u=v=>i&&v instanceof n.HTMLElement?v.inert:v.getAttribute("aria-hidden")==="true",d=(v,b)=>{i&&v instanceof n.HTMLElement?v.inert=b:b?v.setAttribute("aria-hidden","true"):(v.removeAttribute("aria-hidden"),v instanceof n.HTMLElement&&(v.inert=!1))},c=v=>{for(let w of v.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(w);let b=w=>{if(s.has(w)||o.has(w)||w.parentElement&&s.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of o)if(w.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},g=document.createTreeWalker(v,NodeFilter.SHOW_ELEMENT,{acceptNode:b}),y=b(v);if(y===NodeFilter.FILTER_ACCEPT&&f(v),y!==NodeFilter.FILTER_REJECT){let w=g.nextNode();for(;w!=null;)f(w),w=g.nextNode()}},f=v=>{var b;let g=(b=Po.get(v))!==null&&b!==void 0?b:0;u(v)&&g===0||(g===0&&d(v,!0),s.add(v),Po.set(v,g+1))};Tt.length&&Tt[Tt.length-1].disconnect(),c(l);let h=new MutationObserver(v=>{for(let b of v)if(b.type==="childList"&&![...o,...s].some(g=>g.contains(b.target)))for(let g of b.addedNodes)(g instanceof HTMLElement||g instanceof SVGElement)&&(g.dataset.liveAnnouncer==="true"||g.dataset.reactAriaTopLayer==="true")?o.add(g):g instanceof Element&&c(g)});h.observe(l,{childList:!0,subtree:!0});let m={visibleNodes:o,hiddenNodes:s,observe(){h.observe(l,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Tt.push(m),()=>{h.disconnect();for(let v of s){let b=Po.get(v);b!=null&&(b===1?(d(v,!1),Po.delete(v)):Po.set(v,b-1))}m===Tt[Tt.length-1]?(Tt.pop(),Tt.length&&Tt[Tt.length-1].observe()):Tt.splice(Tt.indexOf(m),1)}}function uj(e){let t=Tt[Tt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function cj(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:c}=c4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},a??r),{overlayProps:f,arrowProps:h,placement:m,triggerAnchorPoint:v}=G3({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return f4({isDisabled:l||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&r.current){var b,g;return l?uj((b=a==null?void 0:a.current)!==null&&b!==void 0?b:r.current):I4([(g=a==null?void 0:a.current)!==null&&g!==void 0?g:r.current],{shouldUseInert:!0})}},[l,t.isOpen,r,a]),{popoverProps:ue(d,f),arrowProps:h,underlayProps:c,placement:m,triggerAnchorPoint:v}}const Z4=O.createContext(null);function Vp(e){let t=ja(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,l]=p.useState(!1),i=p.useMemo(()=>({contain:a,setContain:l}),[a,l]),{getContainer:o}=h4();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=O.createElement(a4,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},s)),s=O.createElement(Z4.Provider,{value:i},O.createElement(zD,null,s)),pm.createPortal(s,n)}function $4(){let e=p.useContext(Z4),t=e==null?void 0:e.setContain;we(()=>{t==null||t(!0)},[t])}function dj(e,t,n){let{overlayProps:r,underlayProps:a}=c4({...e,isOpen:t.isOpen,onClose:t.close},n);return f4({isDisabled:!t.isOpen}),$4(),p.useEffect(()=>{if(t.isOpen&&n.current)return I4([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ue(r),underlayProps:a}}function fj(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:l="label"}=e;t=an(t);let i=an(),o={};n&&(r=r?`${i} ${r}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=j3({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}function Gp(e){return yT()?e.altKey:e.ctrlKey}function zc(e,t){var n,r;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(a)}const W4=new WeakMap;function hj(e){let t=an();return W4.set(e,t),t}function pj(e){return W4.get(e)}const mj=1e3;function gj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=p.useRef({search:"",timeout:void 0}).current,l=i=>{let o=vj(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},mj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function vj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function yj(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:m=r,linkBehavior:v="action"}=e,{direction:b}=Rl(),g=xf(),y=D=>{var _;if(D.altKey&&D.key==="Tab"&&D.preventDefault(),!(!((_=r.current)===null||_===void 0)&&_.contains(D.target)))return;const U=(Z,Rn)=>{if(Z!=null){if(t.isLink(Z)&&v==="selection"&&u&&!Gp(D)){Is.flushSync(()=>{t.setFocusedKey(Z,Rn)});let Pt=zc(r,Z),Na=t.getItemProps(Z);Pt&&g.open(Pt,D,Na.href,Na.routerOptions);return}if(t.setFocusedKey(Z,Rn),t.isLink(Z)&&v==="override")return;D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&!Gp(D)&&t.replaceSelection(Z)}};switch(D.key){case"ArrowDown":if(n.getKeyBelow){var F,G,K;let Z=t.focusedKey!=null?(F=n.getKeyBelow)===null||F===void 0?void 0:F.call(n,t.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n);Z==null&&l&&(Z=(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),Z!=null&&(D.preventDefault(),U(Z))}break;case"ArrowUp":if(n.getKeyAbove){var V,X,J;let Z=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(X=n.getLastKey)===null||X===void 0?void 0:X.call(n);Z==null&&l&&(Z=(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),Z!=null&&(D.preventDefault(),U(Z))}break;case"ArrowLeft":if(n.getKeyLeftOf){var et,ge,tt;let Z=t.focusedKey!=null?(et=n.getKeyLeftOf)===null||et===void 0?void 0:et.call(n,t.focusedKey):null;Z==null&&l&&(Z=b==="rtl"?(ge=n.getFirstKey)===null||ge===void 0?void 0:ge.call(n,t.focusedKey):(tt=n.getLastKey)===null||tt===void 0?void 0:tt.call(n,t.focusedKey)),Z!=null&&(D.preventDefault(),U(Z,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var on,qn,On;let Z=t.focusedKey!=null?(on=n.getKeyRightOf)===null||on===void 0?void 0:on.call(n,t.focusedKey):null;Z==null&&l&&(Z=b==="rtl"?(qn=n.getLastKey)===null||qn===void 0?void 0:qn.call(n,t.focusedKey):(On=n.getFirstKey)===null||On===void 0?void 0:On.call(n,t.focusedKey)),Z!=null&&(D.preventDefault(),U(Z,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&D.shiftKey)return;D.preventDefault();let Z=n.getFirstKey(t.focusedKey,Zl(D));t.setFocusedKey(Z),Z!=null&&(Zl(D)&&D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&t.replaceSelection(Z))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&D.shiftKey)return;D.preventDefault();let Z=n.getLastKey(t.focusedKey,Zl(D));t.setFocusedKey(Z),Z!=null&&(Zl(D)&&D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&t.replaceSelection(Z))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Z=n.getKeyPageBelow(t.focusedKey);Z!=null&&(D.preventDefault(),U(Z))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Z=n.getKeyPageAbove(t.focusedKey);Z!=null&&(D.preventDefault(),U(Z))}break;case"a":Zl(D)&&t.selectionMode==="multiple"&&o!==!0&&(D.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(D.stopPropagation(),D.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(D.shiftKey)r.current.focus();else{let Z=Zt(r.current,{tabbable:!0}),Rn,Pt;do Pt=Z.lastChild(),Pt&&(Rn=Pt);while(Pt);Rn&&!Rn.contains(document.activeElement)&&Kn(Rn)}break}}},w=p.useRef({top:0,left:0});Wu(m,"scroll",h?void 0:()=>{var D,_,U,F;w.current={top:(U=(D=m.current)===null||D===void 0?void 0:D.scrollTop)!==null&&U!==void 0?U:0,left:(F=(_=m.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&F!==void 0?F:0}});let C=D=>{if(t.isFocused){D.currentTarget.contains(D.target)||t.setFocused(!1);return}if(D.currentTarget.contains(D.target)){if(t.setFocused(!0),t.focusedKey==null){var _,U;let K=X=>{X!=null&&(t.setFocusedKey(X),u&&!t.isSelected(X)&&t.replaceSelection(X))},V=D.relatedTarget;var F,G;V&&D.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?K((F=t.lastSelectedKey)!==null&&F!==void 0?F:(_=n.getLastKey)===null||_===void 0?void 0:_.call(n)):K((G=t.firstSelectedKey)!==null&&G!==void 0?G:(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n))}else!h&&m.current&&(m.current.scrollTop=w.current.top,m.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&m.current){let K=zc(r,t.focusedKey);K instanceof HTMLElement&&(!K.contains(document.activeElement)&&!c&&Kn(K),Fs()==="keyboard"&&Ty(K,{containingElement:r.current}))}}},E=D=>{D.currentTarget.contains(D.relatedTarget)||t.setFocused(!1)},S=p.useRef(!1);Wu(r,_T,c?D=>{let{detail:_}=D;D.stopPropagation(),t.setFocused(!0),(_==null?void 0:_.focusStrategy)==="first"&&(S.current=!0)}:void 0);let M=wt(()=>{var D,_;let U=(_=(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n))!==null&&_!==void 0?_:null;if(U==null){let F=ot();s4(r.current),u4(F,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(U),S.current=!1});My(()=>{S.current&&M()},[t.collection,M]);let N=wt(()=>{t.collection.size>0&&(S.current=!1)});My(()=>{N()},[t.focusedKey,N]),Wu(r,LT,c?D=>{var _;D.stopPropagation(),t.setFocused(!1),!((_=D.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const A=p.useRef(a),k=p.useRef(!1);p.useEffect(()=>{if(A.current){var D,_;let G=null;var U;a==="first"&&(G=(U=(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n))!==null&&U!==void 0?U:null);var F;a==="last"&&(G=(F=(_=n.getLastKey)===null||_===void 0?void 0:_.call(n))!==null&&F!==void 0?F:null);let K=t.selectedKeys;if(K.size){for(let V of K)if(t.canSelectItem(V)){G=V;break}}t.setFocused(!0),t.setFocusedKey(G),G==null&&!c&&r.current&&Sa(r.current),t.collection.size>0&&(A.current=!1,k.current=!0)}});let j=p.useRef(t.focusedKey),z=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==j.current||k.current)&&m.current&&r.current){let D=Fs(),_=zc(r,t.focusedKey);if(!(_ instanceof HTMLElement))return;(D==="keyboard"||k.current)&&(z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame(()=>{m.current&&(N3(m.current,_),D!=="virtual"&&Ty(_,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&j.current!=null&&r.current&&Sa(r.current),j.current=t.focusedKey,k.current=!1}),p.useEffect(()=>()=>{z.current&&cancelAnimationFrame(z.current)},[]),Wu(r,"react-aria-focus-scope-restore",D=>{D.preventDefault(),t.setFocused(!0)});let B={onKeyDown:y,onFocus:C,onBlur:E,onMouseDown(D){m.current===D.target&&D.preventDefault()}},{typeSelectProps:L}=gj({keyboardDelegate:n,selectionManager:t});d||(B=ue(L,B));let P;c||(P=t.focusedKey==null?0:-1);let T=hj(t.collection);return{collectionProps:ue(B,{tabIndex:P,"data-collection":T})}}function bj(e){let{id:t,selectionManager:n,key:r,ref:a,shouldUseVirtualFocus:l,focus:i,isDisabled:o,onAction:s,linkBehavior:u="action"}=e,d=xf();t=an(t);let c=D=>{if(D.pointerType==="keyboard"&&Gp(D))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(u==="selection"&&a.current){let _=n.getItemProps(r);d.open(a.current,D,_.href,_.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(u==="override"||u==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):D&&D.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||D&&(Zl(D)||D.pointerType==="touch"||D.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};p.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?s4(a.current):i?i():document.activeElement!==a.current&&a.current&&Sa(a.current))},[a,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),o=o||n.isDisabled(r);let f={};!l&&!o?f={tabIndex:r===n.focusedKey?0:-1,onFocus(D){D.target===a.current&&n.setFocusedKey(r)}}:o&&(f.onMouseDown=D=>{D.preventDefault()});let h=n.isLink(r)&&u==="override",m=s&&e.UNSTABLE_itemBehavior==="action",v=n.isLink(r)&&u!=="selection"&&u!=="none",b=!o&&n.canSelectItem(r)&&!h&&!m,g=(s||v)&&!o,y=g&&(n.selectionBehavior==="replace"?!b:!b||n.isEmpty),w=g&&b&&n.selectionBehavior==="replace",C=y||w,E=p.useRef(null),S=C&&b,M=p.useRef(!1);p.useRef(!1);let N=n.getItemProps(r),A=D=>{if(s){var _;s(),(_=a.current)===null||_===void 0||_.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}v&&a.current&&d.open(a.current,D,N.href,N.routerOptions)},k={ref:a};if(k.onPressStart=D=>{E.current=D.pointerType,M.current=S,D.pointerType==="keyboard"&&(!C||wj())&&c(D)},k.onPressUp=y?void 0:D=>{D.pointerType==="mouse"&&b&&c(D)},k.onPress=y?A:D=>{D.pointerType!=="keyboard"&&D.pointerType!=="mouse"&&b&&c(D)},f["data-collection"]=pj(n.collection),f["data-key"]=r,k.preventFocusOnPress=l,l&&(k=ue(k,{onPressStart(D){D.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(D){D.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),N)for(let D of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[D]&&(k[D]=to(k[D],N[D]));let{pressProps:j,isPressed:z}=Mf(k),B=w?D=>{E.current==="mouse"&&(D.stopPropagation(),D.preventDefault(),A(D))}:void 0,{longPressProps:L}=r4({isDisabled:!S,onLongPress(D){D.pointerType==="touch"&&(c(D),n.setSelectionBehavior("toggle"))}}),P=D=>{E.current==="touch"&&M.current&&D.preventDefault()},T=u!=="none"&&n.isLink(r)?D=>{gl.isOpening||D.preventDefault()}:void 0;return{itemProps:ue(f,b||y||l&&!o?j:{},S?L:{},{onDoubleClick:B,onDragStartCapture:P,onClick:T,id:t},l?{onMouseDown:D=>D.preventDefault()}:void 0),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:o,allowsSelection:b,hasAction:C}}function wj(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class eb{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?zc(this.ref,t):null;if(!r)return null;let a=n.getBoundingClientRect(),l=r.getBoundingClientRect();return{x:l.left-a.left-n.clientLeft+n.scrollLeft,y:l.top-a.top-n.clientTop+n.scrollTop,width:l.width,height:l.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,l;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.clientWidth)!==null&&a!==void 0?a:0,height:(l=t==null?void 0:t.clientHeight)!==null&&l!==void 0?l:0}}constructor(t){this.ref=t}}class xj{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,l=this.layoutDelegate.getItemRect(a);if(!l||a==null)return null;let i=l;do{if(a=n(a),a==null)break;l=this.layoutDelegate.getItemRect(a)}while(l&&r(i,l)&&a!=null);return a}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!vl(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!vl(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let l=r.getItem(a);if(!l)return null;let i=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(i,t)===0)return a;a=this.getNextKey(a)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new eb(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new eb(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Cj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=vD({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>l||new xj({collection:n,disabledKeys:r,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,n,r,a,o,s]),{collectionProps:d}=yj({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:d}}class Sj{build(t,n){return this.context=n,tb(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(O.isValidElement(n)&&n.type===O.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let a=0;for(let l of r)yield*this.getFullNode({value:l,index:a},{renderer:n}),a++}else{let a=[];O.Children.forEach(n,i=>{i&&a.push(i)});let l=0;for(let i of a){let o=this.getFullNode({element:i,index:l},{});for(let s of o)l++,yield s}}}getKey(t,n,r,a){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${a}${n.key}`;let l=n.value;if(l!=null){var i;let o=(i=l.key)!==null&&i!==void 0?i:l.id;if(o==null)throw new Error("No key found for item");return o}return a?`${a}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,a){if(O.isValidElement(t.element)&&t.element.type===O.Fragment){let b=[];O.Children.forEach(t.element.props.children,y=>{b.push(y)});var l;let g=(l=t.index)!==null&&l!==void 0?l:0;for(const y of b)yield*this.getFullNode({element:y,index:g++},n,r,a);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let b=this.cache.get(t.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=t.index,b.parentKey=a?a.key:null,yield b;return}i=n.renderer(t.value)}if(O.isValidElement(i)){let b=i.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let C=i.type;throw new Error(`Unknown element <${C}> in collection.`)}let g=b.getCollectionNode(i.props,this.context);var o;let y=(o=t.index)!==null&&o!==void 0?o:0,w=g.next();for(;!w.done&&w.value;){let C=w.value;t.index=y;var s;let E=(s=C.key)!==null&&s!==void 0?s:null;E==null&&(E=C.element?null:this.getKey(i,t,n,r));let S=[...this.getFullNode({...C,key:E,index:y,wrapper:Ej(t.wrapper,C.wrapper)},this.getChildState(n,C),r?`${r}${i.key}`:i.key,a)];for(let M of S){var u,d;M.value=(d=(u=C.value)!==null&&u!==void 0?u:t.value)!==null&&d!==void 0?d:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${Z0(M.type)}> in <${Z0((c=a==null?void 0:a.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Z0(t.type)}> is supported.`);y++,yield M}w=g.next(S)}return}if(t.key==null||t.type==null)return;let f=this;var h,m;let v={type:t.type,props:t.props,key:t.key,parentKey:a?a.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:a?a.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:tb(function*(){if(!t.hasChildNodes||!t.childNodes)return;let b=0;for(let g of t.childNodes()){g.key!=null&&(g.key=`${v.key}${g.key}`);let y=f.getFullNode({...g,index:b},f.getChildState(n,g),v.key,v);for(let w of y)b++,yield w}})};yield v}constructor(){this.cache=new WeakMap}}function tb(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Ej(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Z0(e){return e[0].toUpperCase()+e.slice(1)}function Mj(e,t,n){let r=p.useMemo(()=>new Sj,[]),{children:a,items:l,collection:i}=e;return p.useMemo(()=>{if(i)return i;let o=r.build({children:a,items:l},n);return t(o)},[r,a,l,i,n,t])}function J4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Oj(e){return Rj(e)}function Rj(e,t){for(let n of e)return n}function $0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...nb(e,t),t],a=[...nb(e,n),n],l=r.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=r[l],n=a[l],t.index-n.index):r.findIndex(i=>i===n)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function nb(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const rb=new WeakMap;function Tj(e){let t=rb.get(e);if(t!=null)return t;let n=0,r=a=>{for(let l of a)l.type==="section"?r(J4(l,e)):l.type==="item"&&n++};return r(e),rb.set(e,n),n}var e7={};e7={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var t7={};t7={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var n7={};n7={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var r7={};r7={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var a7={};a7={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var l7={};l7={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var i7={};i7={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var o7={};o7={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var s7={};s7={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var u7={};u7={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var c7={};c7={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var d7={};d7={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var f7={};f7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var h7={};h7={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var p7={};p7={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var m7={};m7={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var g7={};g7={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var v7={};v7={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var y7={};y7={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var b7={};b7={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var w7={};w7={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var x7={};x7={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var C7={};C7={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var S7={};S7={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var E7={};E7={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var M7={};M7={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var O7={};O7={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var R7={};R7={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var T7={};T7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var D7={};D7={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var j7={};j7={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var A7={};A7={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var N7={};N7={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var k7={};k7={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var L7={};L7={"ar-AE":e7,"bg-BG":t7,"cs-CZ":n7,"da-DK":r7,"de-DE":a7,"el-GR":l7,"en-US":i7,"es-ES":o7,"et-EE":s7,"fi-FI":u7,"fr-FR":c7,"he-IL":d7,"hr-HR":f7,"hu-HU":h7,"it-IT":p7,"ja-JP":m7,"ko-KR":g7,"lt-LT":v7,"lv-LV":y7,"nb-NO":b7,"nl-NL":w7,"pl-PL":x7,"pt-BR":C7,"pt-PT":S7,"ro-RO":E7,"ru-RU":M7,"sk-SK":O7,"sl-SI":R7,"sr-SP":T7,"sv-SE":D7,"tr-TR":j7,"uk-UA":A7,"zh-CN":N7,"zh-TW":k7};function Dj(e){return e&&e.__esModule?e.default:e}function jj(e,t,n){let{type:r="menu",isDisabled:a,trigger:l="press"}=e,i=an(),{triggerProps:o,overlayProps:s}=d4({type:r},t,n),u=h=>{if(!a&&!(l==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(l==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=F3(Dj(L7),"@react-aria/menu"),{longPressProps:c}=r4({isDisabled:a||l!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!a&&(Kn(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!a&&(Kn(h.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...l==="press"?f:c,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const _7=new WeakMap;function Aj(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Je(e,{labelable:!0}),{listProps:s}=Cj({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return _7.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ue(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function Nj(e,t,n){let{id:r,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:d,onPressChange:c,onPressEnd:f,onClick:h,onHoverStart:m,onHoverChange:v,onHoverEnd:b,onKeyDown:g,onKeyUp:y,onFocus:w,onFocusChange:C,onBlur:E,selectionManager:S=t.selectionManager}=e,M=!!o,N=M&&e["aria-expanded"]==="true";var A;let k=(A=e.isDisabled)!==null&&A!==void 0?A:S.isDisabled(a);var j;let z=(j=e.isSelected)!==null&&j!==void 0?j:S.isSelected(a),B=_7.get(t),L=t.collection.getItem(a),P=e.onClose||B.onClose,T=xf(),D=()=>{var ce;if(!M&&(!(L==null||(ce=L.props)===null||ce===void 0)&&ce.onAction?L.props.onAction():e.onAction&&e.onAction(a),B.onAction)){let Lr=B.onAction;Lr(a)}},_="menuitem";M||(S.selectionMode==="single"?_="menuitemradio":S.selectionMode==="multiple"&&(_="menuitemcheckbox"));let U=Lc(),F=Lc(),G=Lc(),K={id:r,"aria-disabled":k||void 0,role:_,"aria-label":e["aria-label"],"aria-labelledby":U,"aria-describedby":[F,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};S.selectionMode!=="none"&&!M&&(K["aria-checked"]=z),i&&(K["aria-posinset"]=L==null?void 0:L.index,K["aria-setsize"]=Tj(t.collection));let V=p.useRef(!1),X=ce=>{c==null||c(ce),V.current=ce},J=p.useRef(null),et=ce=>{ce.pointerType!=="keyboard"&&(J.current={pointerType:ce.pointerType}),ce.pointerType==="mouse"&&(V.current||ce.target.click()),u==null||u(ce)},ge=ce=>{var Lr,Ht;h==null||h(ce),D(),MT(ce,T,L.props.href,L==null?void 0:L.props.routerOptions);let oo=((Lr=J.current)===null||Lr===void 0?void 0:Lr.pointerType)==="keyboard"?((Ht=J.current)===null||Ht===void 0?void 0:Ht.key)==="Enter"||S.selectionMode==="none"||S.isLink(a):S.selectionMode!=="multiple"||S.isLink(a);oo=l??oo,P&&!M&&oo&&P(),J.current=null},{itemProps:tt,isFocused:on}=bj({id:r,selectionManager:S,key:a,ref:n,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:qn,isPressed:On}=Mf({onPressStart:s,onPress:d,onPressUp:et,onPressChange:X,onPressEnd:f,isDisabled:k}),{hoverProps:Z}=ao({isDisabled:k,onHoverStart(ce){!qs()&&!(N&&o)&&(S.setFocused(!0),S.setFocusedKey(a)),m==null||m(ce)},onHoverChange:v,onHoverEnd:b}),{keyboardProps:Rn}=e4({onKeyDown:ce=>{if(ce.repeat){ce.continuePropagation();return}switch(ce.key){case" ":J.current={pointerType:"keyboard",key:" "},ce.target.click();break;case"Enter":J.current={pointerType:"keyboard",key:"Enter"},ce.target.tagName!=="A"&&ce.target.click();break;default:M||ce.continuePropagation(),g==null||g(ce);break}},onKeyUp:y}),{focusProps:Pt}=Pg({onBlur:E,onFocus:w,onFocusChange:C}),Na=Je(L==null?void 0:L.props);delete Na.id;let bu=ET(L==null?void 0:L.props);return{menuItemProps:{...K,...ue(Na,bu,M?{onFocus:tt.onFocus,"data-collection":tt["data-collection"],"data-key":tt["data-key"]}:tt,qn,Z,Rn,Pt,B.shouldUseVirtualFocus||M?{onMouseDown:ce=>ce.preventDefault()}:void 0,k?void 0:{onClick:ge}),tabIndex:tt.tabIndex!=null&&N&&!B.shouldUseVirtualFocus?-1:tt.tabIndex},labelProps:{id:U},descriptionProps:{id:F},keyboardShortcutProps:{id:G},isFocused:on,isFocusVisible:on&&S.isFocused&&qs()&&!N,isSelected:z,isPressed:On,isDisabled:k}}function kj(e){let{heading:t,"aria-label":n}=e,r=an();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class lo{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let a=this.clone();return n.addDescendants(a,t),a}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class z7 extends lo{filter(t,n,r){let[a,l]=H7(t,n,this.firstChildKey,r),i=this.clone();return i.firstChildKey=a,i.lastChildKey=l,i}}class Lj extends lo{}Lj.type="header";class _j extends lo{}_j.type="loader";class P7 extends z7{filter(t,n,r){if(r(this.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}}P7.type="item";class zj extends z7{filter(t,n,r){let a=super.filter(t,n,r);if(a&&a.lastChildKey!==null){let l=t.getItem(a.lastChildKey);if(l&&l.type!=="header")return a}return null}}zj.type="section";class Pj{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),a=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;a;)yield a,a=a.nextKey!=null?n.get(a.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let a of r)this.addDescendants(a,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,a]=H7(this,n,this.firstKey,t);return n==null||n.commit(r,a),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function H7(e,t,n,r){if(n==null)return[null,null];let a=null,l=null,i=e.getItem(n);for(;i!=null;){let u=i.filter(e,t,r);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}class K7{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class Mi extends K7{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Mi?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,a,l,i,o,s;let u=this.nextVisibleSibling,d=this.getMutableNode();if(d!=null){d.index=this.index,d.level=this.level;var c;d.parentKey=this.parentNode instanceof Mi&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var f;d.prevKey=(f=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&f!==void 0?f:null;var h;d.nextKey=(h=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&h!==void 0?h:null,d.hasChildNodes=!!this.firstChild;var m;d.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&m!==void 0?m:null;var v;if(d.lastChildKey=(v=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&v!==void 0?v:null,(d.colSpan!=null||d.colIndex!=null)&&u){var b,g;let y=((b=d.colIndex)!==null&&b!==void 0?b:d.index)+((g=d.colSpan)!==null&&g!==void 0?g:1);if(u.node!=null&&y!==u.node.colIndex){let w=u.getMutableNode();w.colIndex=y}}}}setProps(t,n,r,a,l){let i,{value:o,textValue:s,id:u,...d}=t;if(this.node==null?(i=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),d.ref=n,i.props=d,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof d.children=="string"?d.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");d.colSpan!=null&&(i.colSpan=d.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Hj extends K7{get isConnected(){return!0}createElement(t){return new Mi(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Mi&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof Mi?(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.node&&this.dirtyNodes.delete(o),o.isMutated=!1):this.dirtyNodes.delete(o);if(this.nextCollection){var t,n,r,a,l,i;this.nextCollection.commit((l=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&l!==void 0?l:null,(i=(a=this.lastVisibleChild)===null||a===void 0||(r=a.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function U7(e){let{children:t,items:n,idScope:r,addIdAndValue:a,dependencies:l=[]}=e,i=p.useMemo(()=>new WeakMap,l);return p.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let d of n){let c=i.get(d);if(!c){c=t(d);var o,s;let f=(s=(o=c.props.id)!==null&&o!==void 0?o:d.key)!==null&&s!==void 0?s:d.id;if(f==null)throw new Error("Could not determine key for item");r&&(f=r+":"+f),c=p.cloneElement(c,a?{key:f,id:f,value:d}:{key:f}),i.set(d,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,i,r,a])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Rd=p.createContext(!1);function Kj(e){if(p.useContext(Rd))return O.createElement(O.Fragment,null,e.children);let t=O.createElement(Rd.Provider,{value:!0},e.children);return O.createElement("template",{"data-react-aria-hidden":!0},t)}function Uj(e){let t=(n,r)=>p.useContext(Rd)?null:e(n,r);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function Bj(){return p.useContext(Rd)}var B7={exports:{}},q7={};/**
|
|
79
|
+
}`.trim(),document.head.prepend(r);let a=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},l=s=>{let u=s.target,d=s.relatedTarget;if(d&&gs(d))d.focus({preventScroll:!0}),Wb(d,gs(u));else if(!d){var c;let f=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");f==null||f.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&gs(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&Wb(this,u)};let o=no(Y0(document,"touchstart",n,{passive:!1,capture:!0}),Y0(document,"touchmove",a,{passive:!1,capture:!0}),Y0(document,"blur",l,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=i}}function X0(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Y0(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Wb(e,t){t||!bs?Jb(e):bs.addEventListener("resize",()=>Jb(e),{once:!0})}function Jb(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=N3(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let a=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(l.top<a.top||l.bottom>a.top+n.clientHeight){let i=a.bottom;bs&&(i=Math.min(i,bs.offsetTop+bs.height));let o=l.top-a.top-((i-a.top)/2-l.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}const eD=p.createContext({});function p4(){var e;return(e=p.useContext(eD))!==null&&e!==void 0?e:{}}const qp=O.createContext(null);function tD(e){let{children:t}=e,n=p.useContext(qp),[r,a]=p.useState(0),l=p.useMemo(()=>({parent:n,modalCount:r,addModal(){a(i=>i+1),n&&n.addModal()},removeModal(){a(i=>i-1),n&&n.removeModal()}}),[n,r]);return O.createElement(qp.Provider,{value:l},t)}function nD(){let e=p.useContext(qp);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function rD(e){let{modalProviderProps:t}=nD();return O.createElement("div",{"data-overlay-container":!0,...e,...t})}function aD(e){return O.createElement(tD,null,O.createElement(rD,e))}function lD(e){let t=Da(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:a}=p4();if(!e.portalContainer&&a&&(n=a()),O.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=O.createElement(aD,r);return pm.createPortal(l,n)}var m4={};m4={dismiss:"تجاهل"};var g4={};g4={dismiss:"Отхвърляне"};var v4={};v4={dismiss:"Odstranit"};var b4={};b4={dismiss:"Luk"};var y4={};y4={dismiss:"Schließen"};var x4={};x4={dismiss:"Απόρριψη"};var w4={};w4={dismiss:"Dismiss"};var C4={};C4={dismiss:"Descartar"};var S4={};S4={dismiss:"Lõpeta"};var E4={};E4={dismiss:"Hylkää"};var M4={};M4={dismiss:"Rejeter"};var O4={};O4={dismiss:"התעלם"};var R4={};R4={dismiss:"Odbaci"};var T4={};T4={dismiss:"Elutasítás"};var k4={};k4={dismiss:"Ignora"};var D4={};D4={dismiss:"閉じる"};var j4={};j4={dismiss:"무시"};var N4={};N4={dismiss:"Atmesti"};var A4={};A4={dismiss:"Nerādīt"};var L4={};L4={dismiss:"Lukk"};var _4={};_4={dismiss:"Negeren"};var z4={};z4={dismiss:"Zignoruj"};var P4={};P4={dismiss:"Descartar"};var H4={};H4={dismiss:"Dispensar"};var K4={};K4={dismiss:"Revocare"};var U4={};U4={dismiss:"Пропустить"};var B4={};B4={dismiss:"Zrušiť"};var q4={};q4={dismiss:"Opusti"};var F4={};F4={dismiss:"Odbaci"};var V4={};V4={dismiss:"Avvisa"};var G4={};G4={dismiss:"Kapat"};var Q4={};Q4={dismiss:"Скасувати"};var I4={};I4={dismiss:"取消"};var X4={};X4={dismiss:"關閉"};var Y4={};Y4={"ar-AE":m4,"bg-BG":g4,"cs-CZ":v4,"da-DK":b4,"de-DE":y4,"el-GR":x4,"en-US":w4,"es-ES":C4,"et-EE":S4,"fi-FI":E4,"fr-FR":M4,"he-IL":O4,"hr-HR":R4,"hu-HU":T4,"it-IT":k4,"ja-JP":D4,"ko-KR":j4,"lt-LT":N4,"lv-LV":A4,"nb-NO":L4,"nl-NL":_4,"pl-PL":z4,"pt-BR":P4,"pt-PT":H4,"ro-RO":K4,"ru-RU":U4,"sk-SK":B4,"sl-SI":q4,"sr-SP":F4,"sv-SE":V4,"tr-TR":G4,"uk-UA":Q4,"zh-CN":I4,"zh-TW":X4};const ey={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function iD(e={}){let{style:t,isFocusable:n}=e,[r,a]=p.useState(!1),{focusWithinProps:l}=Hg({isDisabled:!n,onFocusWithinChange:o=>a(o)}),i=p.useMemo(()=>r?t:t?{...ey,...t}:ey,[r]);return{visuallyHiddenProps:{...l,style:i}}}function oD(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...l}=e,{visuallyHiddenProps:i}=iD(e);return O.createElement(n,ue(l,i),t)}function sD(e){return e&&e.__esModule?e.default:e}function Fp(e){let{onDismiss:t,...n}=e,r=V3(sD(Y4),"@react-aria/overlays"),a=j3(n,r.format("dismiss")),l=()=>{t&&t()};return O.createElement(oD,null,O.createElement("button",{...a,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}const uD=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Ho=new WeakMap,Tt=[];function Z4(e,t){let n=xn(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var a;let l=(a=r==null?void 0:r.root)!==null&&a!==void 0?a:document.body,i=(r==null?void 0:r.shouldUseInert)&&uD,o=new Set(e),s=new Set,u=b=>i&&b instanceof n.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",d=(b,y)=>{i&&b instanceof n.HTMLElement?b.inert=y:y?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof n.HTMLElement&&(b.inert=!1))},c=b=>{for(let x of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(x);let y=x=>{if(s.has(x)||o.has(x)||x.parentElement&&s.has(x.parentElement)&&x.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of o)if(x.contains(w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},g=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),v=y(b);if(v===NodeFilter.FILTER_ACCEPT&&f(b),v!==NodeFilter.FILTER_REJECT){let x=g.nextNode();for(;x!=null;)f(x),x=g.nextNode()}},f=b=>{var y;let g=(y=Ho.get(b))!==null&&y!==void 0?y:0;u(b)&&g===0||(g===0&&d(b,!0),s.add(b),Ho.set(b,g+1))};Tt.length&&Tt[Tt.length-1].disconnect(),c(l);let h=new MutationObserver(b=>{for(let y of b)if(y.type==="childList"&&![...o,...s].some(g=>g.contains(y.target)))for(let g of y.addedNodes)(g instanceof HTMLElement||g instanceof SVGElement)&&(g.dataset.liveAnnouncer==="true"||g.dataset.reactAriaTopLayer==="true")?o.add(g):g instanceof Element&&c(g)});h.observe(l,{childList:!0,subtree:!0});let m={visibleNodes:o,hiddenNodes:s,observe(){h.observe(l,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Tt.push(m),()=>{h.disconnect();for(let b of s){let y=Ho.get(b);y!=null&&(y===1?(d(b,!1),Ho.delete(b)):Ho.set(b,y-1))}m===Tt[Tt.length-1]?(Tt.pop(),Tt.length&&Tt[Tt.length-1].observe()):Tt.splice(Tt.indexOf(m),1)}}function cD(e){let t=Tt[Tt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function dD(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:c}=d4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},a??r),{overlayProps:f,arrowProps:h,placement:m,triggerAnchorPoint:b}=Q3({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return h4({isDisabled:l||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&r.current){var y,g;return l?cD((y=a==null?void 0:a.current)!==null&&y!==void 0?y:r.current):Z4([(g=a==null?void 0:a.current)!==null&&g!==void 0?g:r.current],{shouldUseInert:!0})}},[l,t.isOpen,r,a]),{popoverProps:ue(d,f),arrowProps:h,underlayProps:c,placement:m,triggerAnchorPoint:b}}const $4=O.createContext(null);function Vp(e){let t=Da(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,l]=p.useState(!1),i=p.useMemo(()=>({contain:a,setContain:l}),[a,l]),{getContainer:o}=p4();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=O.createElement(l4,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},s)),s=O.createElement($4.Provider,{value:i},O.createElement(Pk,null,s)),pm.createPortal(s,n)}function W4(){let e=p.useContext($4),t=e==null?void 0:e.setContain;xe(()=>{t==null||t(!0)},[t])}function fD(e,t,n){let{overlayProps:r,underlayProps:a}=d4({...e,isOpen:t.isOpen,onClose:t.close},n);return h4({isDisabled:!t.isOpen}),W4(),p.useEffect(()=>{if(t.isOpen&&n.current)return Z4([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ue(r),underlayProps:a}}function hD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:l="label"}=e;t=ln(t);let i=ln(),o={};n&&(r=r?`${i} ${r}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=j3({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}function Gp(e){return yT()?e.altKey:e.ctrlKey}function zc(e,t){var n,r;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(a)}const J4=new WeakMap;function pD(e){let t=ln();return J4.set(e,t),t}function mD(e){return J4.get(e)}const gD=1e3;function vD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=p.useRef({search:"",timeout:void 0}).current,l=i=>{let o=bD(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},gD)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function bD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function yD(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:m=r,linkBehavior:b="action"}=e,{direction:y}=Rl(),g=wf(),v=k=>{var _;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((_=r.current)===null||_===void 0)&&_.contains(k.target)))return;const U=(Z,Tn)=>{if(Z!=null){if(t.isLink(Z)&&b==="selection"&&u&&!Gp(k)){Ys.flushSync(()=>{t.setFocusedKey(Z,Tn)});let Ht=zc(r,Z),Na=t.getItemProps(Z);Ht&&g.open(Ht,k,Na.href,Na.routerOptions);return}if(t.setFocusedKey(Z,Tn),t.isLink(Z)&&b==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&!Gp(k)&&t.replaceSelection(Z)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var F,G,K;let Z=t.focusedKey!=null?(F=n.getKeyBelow)===null||F===void 0?void 0:F.call(n,t.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n);Z==null&&l&&(Z=(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z))}break;case"ArrowUp":if(n.getKeyAbove){var V,I,J;let Z=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);Z==null&&l&&(Z=(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z))}break;case"ArrowLeft":if(n.getKeyLeftOf){var et,ge,tt;let Z=t.focusedKey!=null?(et=n.getKeyLeftOf)===null||et===void 0?void 0:et.call(n,t.focusedKey):null;Z==null&&l&&(Z=y==="rtl"?(ge=n.getFirstKey)===null||ge===void 0?void 0:ge.call(n,t.focusedKey):(tt=n.getLastKey)===null||tt===void 0?void 0:tt.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var sn,qn,Rn;let Z=t.focusedKey!=null?(sn=n.getKeyRightOf)===null||sn===void 0?void 0:sn.call(n,t.focusedKey):null;Z==null&&l&&(Z=y==="rtl"?(qn=n.getLastKey)===null||qn===void 0?void 0:qn.call(n,t.focusedKey):(Rn=n.getFirstKey)===null||Rn===void 0?void 0:Rn.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Z=n.getFirstKey(t.focusedKey,Zl(k));t.setFocusedKey(Z),Z!=null&&(Zl(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&t.replaceSelection(Z))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Z=n.getLastKey(t.focusedKey,Zl(k));t.setFocusedKey(Z),Z!=null&&(Zl(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&t.replaceSelection(Z))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Z=n.getKeyPageBelow(t.focusedKey);Z!=null&&(k.preventDefault(),U(Z))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Z=n.getKeyPageAbove(t.focusedKey);Z!=null&&(k.preventDefault(),U(Z))}break;case"a":Zl(k)&&t.selectionMode==="multiple"&&o!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(k.shiftKey)r.current.focus();else{let Z=$t(r.current,{tabbable:!0}),Tn,Ht;do Ht=Z.lastChild(),Ht&&(Tn=Ht);while(Ht);Tn&&!Tn.contains(document.activeElement)&&Kn(Tn)}break}}},x=p.useRef({top:0,left:0});Wu(m,"scroll",h?void 0:()=>{var k,_,U,F;x.current={top:(U=(k=m.current)===null||k===void 0?void 0:k.scrollTop)!==null&&U!==void 0?U:0,left:(F=(_=m.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&F!==void 0?F:0}});let w=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){var _,U;let K=I=>{I!=null&&(t.setFocusedKey(I),u&&!t.isSelected(I)&&t.replaceSelection(I))},V=k.relatedTarget;var F,G;V&&k.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?K((F=t.lastSelectedKey)!==null&&F!==void 0?F:(_=n.getLastKey)===null||_===void 0?void 0:_.call(n)):K((G=t.firstSelectedKey)!==null&&G!==void 0?G:(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n))}else!h&&m.current&&(m.current.scrollTop=x.current.top,m.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&m.current){let K=zc(r,t.focusedKey);K instanceof HTMLElement&&(!K.contains(document.activeElement)&&!c&&Kn(K),Fs()==="keyboard"&&kb(K,{containingElement:r.current}))}}},E=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)},S=p.useRef(!1);Wu(r,zT,c?k=>{let{detail:_}=k;k.stopPropagation(),t.setFocused(!0),(_==null?void 0:_.focusStrategy)==="first"&&(S.current=!0)}:void 0);let M=xt(()=>{var k,_;let U=(_=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&_!==void 0?_:null;if(U==null){let F=ot();u4(r.current),c4(F,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(U),S.current=!1});Ob(()=>{S.current&&M()},[t.collection,M]);let N=xt(()=>{t.collection.size>0&&(S.current=!1)});Ob(()=>{N()},[t.focusedKey,N]),Wu(r,_T,c?k=>{var _;k.stopPropagation(),t.setFocused(!1),!((_=k.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const j=p.useRef(a),A=p.useRef(!1);p.useEffect(()=>{if(j.current){var k,_;let G=null;var U;a==="first"&&(G=(U=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&U!==void 0?U:null);var F;a==="last"&&(G=(F=(_=n.getLastKey)===null||_===void 0?void 0:_.call(n))!==null&&F!==void 0?F:null);let K=t.selectedKeys;if(K.size){for(let V of K)if(t.canSelectItem(V)){G=V;break}}t.setFocused(!0),t.setFocusedKey(G),G==null&&!c&&r.current&&Sa(r.current),t.collection.size>0&&(j.current=!1,A.current=!0)}});let D=p.useRef(t.focusedKey),z=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||A.current)&&m.current&&r.current){let k=Fs(),_=zc(r,t.focusedKey);if(!(_ instanceof HTMLElement))return;(k==="keyboard"||A.current)&&(z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame(()=>{m.current&&(A3(m.current,_),k!=="virtual"&&kb(_,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&Sa(r.current),D.current=t.focusedKey,A.current=!1}),p.useEffect(()=>()=>{z.current&&cancelAnimationFrame(z.current)},[]),Wu(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let B={onKeyDown:v,onFocus:w,onBlur:E,onMouseDown(k){m.current===k.target&&k.preventDefault()}},{typeSelectProps:L}=vD({keyboardDelegate:n,selectionManager:t});d||(B=ue(L,B));let P;c||(P=t.focusedKey==null?0:-1);let T=pD(t.collection);return{collectionProps:ue(B,{tabIndex:P,"data-collection":T})}}function xD(e){let{id:t,selectionManager:n,key:r,ref:a,shouldUseVirtualFocus:l,focus:i,isDisabled:o,onAction:s,linkBehavior:u="action"}=e,d=wf();t=ln(t);let c=k=>{if(k.pointerType==="keyboard"&&Gp(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(u==="selection"&&a.current){let _=n.getItemProps(r);d.open(a.current,k,_.href,_.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(u==="override"||u==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(Zl(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};p.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?u4(a.current):i?i():document.activeElement!==a.current&&a.current&&Sa(a.current))},[a,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),o=o||n.isDisabled(r);let f={};!l&&!o?f={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===a.current&&n.setFocusedKey(r)}}:o&&(f.onMouseDown=k=>{k.preventDefault()});let h=n.isLink(r)&&u==="override",m=s&&e.UNSTABLE_itemBehavior==="action",b=n.isLink(r)&&u!=="selection"&&u!=="none",y=!o&&n.canSelectItem(r)&&!h&&!m,g=(s||b)&&!o,v=g&&(n.selectionBehavior==="replace"?!y:!y||n.isEmpty),x=g&&y&&n.selectionBehavior==="replace",w=v||x,E=p.useRef(null),S=w&&y,M=p.useRef(!1);p.useRef(!1);let N=n.getItemProps(r),j=k=>{if(s){var _;s(),(_=a.current)===null||_===void 0||_.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&a.current&&d.open(a.current,k,N.href,N.routerOptions)},A={ref:a};if(A.onPressStart=k=>{E.current=k.pointerType,M.current=S,k.pointerType==="keyboard"&&(!w||wD())&&c(k)},A.onPressUp=v?void 0:k=>{k.pointerType==="mouse"&&y&&c(k)},A.onPress=v?j:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&y&&c(k)},f["data-collection"]=mD(n.collection),f["data-key"]=r,A.preventFocusOnPress=l,l&&(A=ue(A,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),N)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[k]&&(A[k]=no(A[k],N[k]));let{pressProps:D,isPressed:z}=Mf(A),B=x?k=>{E.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),j(k))}:void 0,{longPressProps:L}=a4({isDisabled:!S,onLongPress(k){k.pointerType==="touch"&&(c(k),n.setSelectionBehavior("toggle"))}}),P=k=>{E.current==="touch"&&M.current&&k.preventDefault()},T=u!=="none"&&n.isLink(r)?k=>{gl.isOpening||k.preventDefault()}:void 0;return{itemProps:ue(f,y||v||l&&!o?D:{},S?L:{},{onDoubleClick:B,onDragStartCapture:P,onClick:T,id:t},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:o,allowsSelection:y,hasAction:w}}function wD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ty{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?zc(this.ref,t):null;if(!r)return null;let a=n.getBoundingClientRect(),l=r.getBoundingClientRect();return{x:l.left-a.left-n.clientLeft+n.scrollLeft,y:l.top-a.top-n.clientTop+n.scrollTop,width:l.width,height:l.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,l;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.clientWidth)!==null&&a!==void 0?a:0,height:(l=t==null?void 0:t.clientHeight)!==null&&l!==void 0?l:0}}constructor(t){this.ref=t}}class CD{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,l=this.layoutDelegate.getItemRect(a);if(!l||a==null)return null;let i=l;do{if(a=n(a),a==null)break;l=this.layoutDelegate.getItemRect(a)}while(l&&r(i,l)&&a!=null);return a}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!vl(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!vl(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let l=r.getItem(a);if(!l)return null;let i=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(i,t)===0)return a;a=this.getNextKey(a)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ty(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ty(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function SD(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=bk({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>l||new CD({collection:n,disabledKeys:r,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,n,r,a,o,s]),{collectionProps:d}=yD({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:d}}class ED{build(t,n){return this.context=n,ny(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(O.isValidElement(n)&&n.type===O.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let a=0;for(let l of r)yield*this.getFullNode({value:l,index:a},{renderer:n}),a++}else{let a=[];O.Children.forEach(n,i=>{i&&a.push(i)});let l=0;for(let i of a){let o=this.getFullNode({element:i,index:l},{});for(let s of o)l++,yield s}}}getKey(t,n,r,a){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${a}${n.key}`;let l=n.value;if(l!=null){var i;let o=(i=l.key)!==null&&i!==void 0?i:l.id;if(o==null)throw new Error("No key found for item");return o}return a?`${a}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,a){if(O.isValidElement(t.element)&&t.element.type===O.Fragment){let y=[];O.Children.forEach(t.element.props.children,v=>{y.push(v)});var l;let g=(l=t.index)!==null&&l!==void 0?l:0;for(const v of y)yield*this.getFullNode({element:v,index:g++},n,r,a);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=a?a.key:null,yield y;return}i=n.renderer(t.value)}if(O.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let w=i.type;throw new Error(`Unknown element <${w}> in collection.`)}let g=y.getCollectionNode(i.props,this.context);var o;let v=(o=t.index)!==null&&o!==void 0?o:0,x=g.next();for(;!x.done&&x.value;){let w=x.value;t.index=v;var s;let E=(s=w.key)!==null&&s!==void 0?s:null;E==null&&(E=w.element?null:this.getKey(i,t,n,r));let S=[...this.getFullNode({...w,key:E,index:v,wrapper:MD(t.wrapper,w.wrapper)},this.getChildState(n,w),r?`${r}${i.key}`:i.key,a)];for(let M of S){var u,d;M.value=(d=(u=w.value)!==null&&u!==void 0?u:t.value)!==null&&d!==void 0?d:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${Z0(M.type)}> in <${Z0((c=a==null?void 0:a.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Z0(t.type)}> is supported.`);v++,yield M}x=g.next(S)}return}if(t.key==null||t.type==null)return;let f=this;var h,m;let b={type:t.type,props:t.props,key:t.key,parentKey:a?a.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:a?a.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:ny(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let g of t.childNodes()){g.key!=null&&(g.key=`${b.key}${g.key}`);let v=f.getFullNode({...g,index:y},f.getChildState(n,g),b.key,b);for(let x of v)y++,yield x}})};yield b}constructor(){this.cache=new WeakMap}}function ny(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function MD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Z0(e){return e[0].toUpperCase()+e.slice(1)}function OD(e,t,n){let r=p.useMemo(()=>new ED,[]),{children:a,items:l,collection:i}=e;return p.useMemo(()=>{if(i)return i;let o=r.build({children:a,items:l},n);return t(o)},[r,a,l,i,n,t])}function e7(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function RD(e){return TD(e)}function TD(e,t){for(let n of e)return n}function $0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...ry(e,t),t],a=[...ry(e,n),n],l=r.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=r[l],n=a[l],t.index-n.index):r.findIndex(i=>i===n)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function ry(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const ay=new WeakMap;function kD(e){let t=ay.get(e);if(t!=null)return t;let n=0,r=a=>{for(let l of a)l.type==="section"?r(e7(l,e)):l.type==="item"&&n++};return r(e),ay.set(e,n),n}var t7={};t7={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var n7={};n7={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var r7={};r7={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var a7={};a7={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var l7={};l7={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var i7={};i7={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var o7={};o7={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var s7={};s7={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var u7={};u7={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var c7={};c7={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var d7={};d7={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var f7={};f7={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var h7={};h7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var p7={};p7={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var m7={};m7={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var g7={};g7={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var v7={};v7={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var b7={};b7={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var y7={};y7={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var x7={};x7={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var w7={};w7={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var C7={};C7={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var S7={};S7={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var E7={};E7={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var M7={};M7={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var O7={};O7={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var R7={};R7={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var T7={};T7={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var k7={};k7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var D7={};D7={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var j7={};j7={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var N7={};N7={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var A7={};A7={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var L7={};L7={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var _7={};_7={"ar-AE":t7,"bg-BG":n7,"cs-CZ":r7,"da-DK":a7,"de-DE":l7,"el-GR":i7,"en-US":o7,"es-ES":s7,"et-EE":u7,"fi-FI":c7,"fr-FR":d7,"he-IL":f7,"hr-HR":h7,"hu-HU":p7,"it-IT":m7,"ja-JP":g7,"ko-KR":v7,"lt-LT":b7,"lv-LV":y7,"nb-NO":x7,"nl-NL":w7,"pl-PL":C7,"pt-BR":S7,"pt-PT":E7,"ro-RO":M7,"ru-RU":O7,"sk-SK":R7,"sl-SI":T7,"sr-SP":k7,"sv-SE":D7,"tr-TR":j7,"uk-UA":N7,"zh-CN":A7,"zh-TW":L7};function DD(e){return e&&e.__esModule?e.default:e}function jD(e,t,n){let{type:r="menu",isDisabled:a,trigger:l="press"}=e,i=ln(),{triggerProps:o,overlayProps:s}=f4({type:r},t,n),u=h=>{if(!a&&!(l==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(l==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=V3(DD(_7),"@react-aria/menu"),{longPressProps:c}=a4({isDisabled:a||l!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!a&&(Kn(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!a&&(Kn(h.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...l==="press"?f:c,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const z7=new WeakMap;function ND(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Je(e,{labelable:!0}),{listProps:s}=SD({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return z7.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ue(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function AD(e,t,n){let{id:r,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:d,onPressChange:c,onPressEnd:f,onClick:h,onHoverStart:m,onHoverChange:b,onHoverEnd:y,onKeyDown:g,onKeyUp:v,onFocus:x,onFocusChange:w,onBlur:E,selectionManager:S=t.selectionManager}=e,M=!!o,N=M&&e["aria-expanded"]==="true";var j;let A=(j=e.isDisabled)!==null&&j!==void 0?j:S.isDisabled(a);var D;let z=(D=e.isSelected)!==null&&D!==void 0?D:S.isSelected(a),B=z7.get(t),L=t.collection.getItem(a),P=e.onClose||B.onClose,T=wf(),k=()=>{var ce;if(!M&&(!(L==null||(ce=L.props)===null||ce===void 0)&&ce.onAction?L.props.onAction():e.onAction&&e.onAction(a),B.onAction)){let Lr=B.onAction;Lr(a)}},_="menuitem";M||(S.selectionMode==="single"?_="menuitemradio":S.selectionMode==="multiple"&&(_="menuitemcheckbox"));let U=Lc(),F=Lc(),G=Lc(),K={id:r,"aria-disabled":A||void 0,role:_,"aria-label":e["aria-label"],"aria-labelledby":U,"aria-describedby":[F,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};S.selectionMode!=="none"&&!M&&(K["aria-checked"]=z),i&&(K["aria-posinset"]=L==null?void 0:L.index,K["aria-setsize"]=kD(t.collection));let V=p.useRef(!1),I=ce=>{c==null||c(ce),V.current=ce},J=p.useRef(null),et=ce=>{ce.pointerType!=="keyboard"&&(J.current={pointerType:ce.pointerType}),ce.pointerType==="mouse"&&(V.current||ce.target.click()),u==null||u(ce)},ge=ce=>{var Lr,Kt;h==null||h(ce),k(),OT(ce,T,L.props.href,L==null?void 0:L.props.routerOptions);let so=((Lr=J.current)===null||Lr===void 0?void 0:Lr.pointerType)==="keyboard"?((Kt=J.current)===null||Kt===void 0?void 0:Kt.key)==="Enter"||S.selectionMode==="none"||S.isLink(a):S.selectionMode!=="multiple"||S.isLink(a);so=l??so,P&&!M&&so&&P(),J.current=null},{itemProps:tt,isFocused:sn}=xD({id:r,selectionManager:S,key:a,ref:n,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:qn,isPressed:Rn}=Mf({onPressStart:s,onPress:d,onPressUp:et,onPressChange:I,onPressEnd:f,isDisabled:A}),{hoverProps:Z}=lo({isDisabled:A,onHoverStart(ce){!qs()&&!(N&&o)&&(S.setFocused(!0),S.setFocusedKey(a)),m==null||m(ce)},onHoverChange:b,onHoverEnd:y}),{keyboardProps:Tn}=t4({onKeyDown:ce=>{if(ce.repeat){ce.continuePropagation();return}switch(ce.key){case" ":J.current={pointerType:"keyboard",key:" "},ce.target.click();break;case"Enter":J.current={pointerType:"keyboard",key:"Enter"},ce.target.tagName!=="A"&&ce.target.click();break;default:M||ce.continuePropagation(),g==null||g(ce);break}},onKeyUp:v}),{focusProps:Ht}=Pg({onBlur:E,onFocus:x,onFocusChange:w}),Na=Je(L==null?void 0:L.props);delete Na.id;let yu=MT(L==null?void 0:L.props);return{menuItemProps:{...K,...ue(Na,yu,M?{onFocus:tt.onFocus,"data-collection":tt["data-collection"],"data-key":tt["data-key"]}:tt,qn,Z,Tn,Ht,B.shouldUseVirtualFocus||M?{onMouseDown:ce=>ce.preventDefault()}:void 0,A?void 0:{onClick:ge}),tabIndex:tt.tabIndex!=null&&N&&!B.shouldUseVirtualFocus?-1:tt.tabIndex},labelProps:{id:U},descriptionProps:{id:F},keyboardShortcutProps:{id:G},isFocused:sn,isFocusVisible:sn&&S.isFocused&&qs()&&!N,isSelected:z,isPressed:Rn,isDisabled:A}}function LD(e){let{heading:t,"aria-label":n}=e,r=ln();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class io{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let a=this.clone();return n.addDescendants(a,t),a}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class P7 extends io{filter(t,n,r){let[a,l]=K7(t,n,this.firstChildKey,r),i=this.clone();return i.firstChildKey=a,i.lastChildKey=l,i}}class _D extends io{}_D.type="header";class zD extends io{}zD.type="loader";class H7 extends P7{filter(t,n,r){if(r(this.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}}H7.type="item";class PD extends P7{filter(t,n,r){let a=super.filter(t,n,r);if(a&&a.lastChildKey!==null){let l=t.getItem(a.lastChildKey);if(l&&l.type!=="header")return a}return null}}PD.type="section";class HD{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),a=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;a;)yield a,a=a.nextKey!=null?n.get(a.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let a of r)this.addDescendants(a,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,a]=K7(this,n,this.firstKey,t);return n==null||n.commit(r,a),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function K7(e,t,n,r){if(n==null)return[null,null];let a=null,l=null,i=e.getItem(n);for(;i!=null;){let u=i.filter(e,t,r);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}class U7{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class Mi extends U7{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Mi?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,a,l,i,o,s;let u=this.nextVisibleSibling,d=this.getMutableNode();if(d!=null){d.index=this.index,d.level=this.level;var c;d.parentKey=this.parentNode instanceof Mi&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var f;d.prevKey=(f=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&f!==void 0?f:null;var h;d.nextKey=(h=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&h!==void 0?h:null,d.hasChildNodes=!!this.firstChild;var m;d.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&m!==void 0?m:null;var b;if(d.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&b!==void 0?b:null,(d.colSpan!=null||d.colIndex!=null)&&u){var y,g;let v=((y=d.colIndex)!==null&&y!==void 0?y:d.index)+((g=d.colSpan)!==null&&g!==void 0?g:1);if(u.node!=null&&v!==u.node.colIndex){let x=u.getMutableNode();x.colIndex=v}}}}setProps(t,n,r,a,l){let i,{value:o,textValue:s,id:u,...d}=t;if(this.node==null?(i=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),d.ref=n,i.props=d,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof d.children=="string"?d.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");d.colSpan!=null&&(i.colSpan=d.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class KD extends U7{get isConnected(){return!0}createElement(t){return new Mi(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Mi&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof Mi?(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.node&&this.dirtyNodes.delete(o),o.isMutated=!1):this.dirtyNodes.delete(o);if(this.nextCollection){var t,n,r,a,l,i;this.nextCollection.commit((l=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&l!==void 0?l:null,(i=(a=this.lastVisibleChild)===null||a===void 0||(r=a.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function B7(e){let{children:t,items:n,idScope:r,addIdAndValue:a,dependencies:l=[]}=e,i=p.useMemo(()=>new WeakMap,l);return p.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let d of n){let c=i.get(d);if(!c){c=t(d);var o,s;let f=(s=(o=c.props.id)!==null&&o!==void 0?o:d.key)!==null&&s!==void 0?s:d.id;if(f==null)throw new Error("Could not determine key for item");r&&(f=r+":"+f),c=p.cloneElement(c,a?{key:f,id:f,value:d}:{key:f}),i.set(d,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,i,r,a])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Rd=p.createContext(!1);function UD(e){if(p.useContext(Rd))return O.createElement(O.Fragment,null,e.children);let t=O.createElement(Rd.Provider,{value:!0},e.children);return O.createElement("template",{"data-react-aria-hidden":!0},t)}function BD(e){let t=(n,r)=>p.useContext(Rd)?null:e(n,r);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function qD(){return p.useContext(Rd)}var q7={exports:{}},F7={};/**
|
|
80
80
|
* @license React
|
|
81
81
|
* use-sync-external-store-shim.production.js
|
|
82
82
|
*
|
|
@@ -84,7 +84,7 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the MIT license found in the
|
|
86
86
|
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/var Ki=O;function qj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fj=typeof Object.is=="function"?Object.is:qj,Vj=Ki.useState,Gj=Ki.useEffect,Qj=Ki.useLayoutEffect,Xj=Ki.useDebugValue;function Yj(e,t){var n=t(),r=Vj({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return Qj(function(){a.value=n,a.getSnapshot=t,W0(a)&&l({inst:a})},[e,n,t]),Gj(function(){return W0(a)&&l({inst:a}),e(function(){W0(a)&&l({inst:a})})},[e]),Xj(n),n}function W0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fj(e,n)}catch{return!0}}function Ij(e,t){return t()}var Zj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ij:Yj;q7.useSyncExternalStore=Ki.useSyncExternalStore!==void 0?Ki.useSyncExternalStore:Zj;B7.exports=q7;var $j=B7.exports;const F7=p.createContext(!1),Vs=p.createContext(null);function Wj(e){if(p.useContext(Vs))return e.content;let{collection:t,document:n}=nA(e.createCollection);return O.createElement(O.Fragment,null,O.createElement(Kj,null,O.createElement(Vs.Provider,{value:n},e.content)),O.createElement(Jj,{render:e.children,collection:t}))}function Jj({collection:e,render:t}){return t(e)}function eA(e,t,n){let r=ja(),a=p.useRef(r);a.current=r;let l=p.useCallback(()=>a.current?n():t(),[t,n]);return $j.useSyncExternalStore(e,l)}const tA=typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore:eA;function nA(e){let[t]=p.useState(()=>new Hj((e==null?void 0:e())||new Pj)),n=p.useCallback(l=>t.subscribe(l),[t]),r=p.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),a=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:tA(n,r,a),document:t}}const Qp=p.createContext(null);function rA(e){var t;return t=class extends lo{},t.type=e,t}function aA(e,t,n,r,a,l){typeof e=="string"&&(e=rA(e));let i=p.useCallback(s=>{s==null||s.setProps(t,n,e,r,l)},[t,n,r,l,e]),o=p.useContext(Qp);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?O.createElement(Qp.Provider,{value:s},a):null}return O.createElement(e.type,{ref:i},a)}function lA(e,t){let n=({node:a})=>t(a.props,a.props.ref,a),r=p.forwardRef((a,l)=>{let i=p.useContext(Md);if(!p.useContext(F7)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return aA(e,a,l,"children"in a?a.children:null,null,o=>O.createElement(Md.Provider,{value:i},O.createElement(n,{node:o})))});return r.displayName=t.name,r}function iA(e){return U7({...e,addIdAndValue:!0})}const ab=p.createContext(null);function oA(e){let t=p.useContext(ab),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),a=iA({...e,idScope:r,dependencies:n});return p.useContext(Vs)&&(a=O.createElement(sA,null,a)),t=p.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),O.createElement(ab.Provider,{value:t},a)}function sA({children:e}){let t=p.useContext(Vs),n=p.useMemo(()=>O.createElement(Vs.Provider,{value:null},O.createElement(F7.Provider,{value:!0},e)),[e]);return ja()?O.createElement(Qp.Provider,{value:t},n):Is.createPortal(n,t)}const uA=p.createContext(null),cA={CollectionRoot({collection:e,renderDropIndicator:t}){return lb(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return lb(e,t,n)}};function lb(e,t,n){return U7({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let a=r.render(r);return!n||r.type!=="item"?a:O.createElement(O.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),a,dA(e,r,n))}})}function dA(e,t,n){let r=t.key,a=e.getKeyAfter(r),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&o.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const V7=p.createContext(cA);function fA(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}function G7(e,t){let{elementType:n="button",isDisabled:r,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:c,href:f,target:h,rel:m,type:v="button"}=e,b;n==="button"?b={type:v,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:b={role:"button",href:n==="a"&&!r?f:void 0,target:n==="a"?h:void 0,type:n==="input"?v:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:g,isPressed:y}=Mf({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=t4(e,t);d&&(w.tabIndex=r?-1:w.tabIndex);let C=ue(w,g,Je(e,{labelable:!0}));return{isPressed:y,buttonProps:ue(b,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Q7(e,t,n){const{isSelected:r}=t,{isPressed:a,buttonProps:l}=G7({...e,onPress:to(t.toggle,e.onPress)},n);return{isPressed:a,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ue(l,{"aria-pressed":r})}}function hA(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:a="horizontal"}=e;let[l,i]=p.useState(!1);we(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});const{direction:o}=Rl(),s=o==="rtl"&&a==="horizontal";let u=YD(t);const d=m=>{if(m.currentTarget.contains(m.target)){if(a==="horizontal"&&m.key==="ArrowRight"||a==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(a==="horizontal"&&m.key==="ArrowLeft"||a==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),c.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},c=p.useRef(null),f=m=>{!m.currentTarget.contains(m.relatedTarget)&&!c.current&&(c.current=m.target)},h=m=>{var v;if(c.current&&!m.currentTarget.contains(m.relatedTarget)&&!((v=t.current)===null||v===void 0)&&v.contains(m.target)){var b;(b=c.current)===null||b===void 0||b.focus(),c.current=null}};return{toolbarProps:{...Je(e,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":a,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:l?void 0:d,onFocusCapture:l?void 0:h,onBlurCapture:l?void 0:f}}}function pA(e,t,n){let{isDisabled:r}=e,{toolbarProps:a}=hA(e,n);return{groupProps:{...a,role:t.selectionMode==="single"?"radiogroup":a.role,"aria-disabled":r}}}function mA(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),toggle(){t.toggleKey(e.id)}},{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}=Q7({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(o.role="radio",o["aria-checked"]=r.isSelected,delete o["aria-pressed"]),{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}}function gA(e={}){let{isReadOnly:t}=e,[n,r]=mu(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=p.useState(n);function l(s){t||r(s)}function i(){t||r(!n)}var o;return{isSelected:n,defaultSelected:(o=e.defaultSelected)!==null&&o!==void 0?o:a,setSelected:l,toggle:i}}function vA(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[a,l]=mu(p.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),p.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:a,setSelectedKeys:l,toggleKey(i){let o;t==="multiple"?(o=new Set(a),o.has(i)&&(!n||o.size>1)?o.delete(i):o.add(i)):o=new Set(a.has(i)&&!n?[]:[i]),l(o)},setSelected(i,o){o!==a.has(i)&&this.toggleKey(i)}}}function yA(e,t){let{role:n="dialog"}=e,r=Lc();r=e["aria-label"]?void 0:r;let a=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Sa(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Sa(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),$4(),{dialogProps:{...Je(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:r}}}function bA(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Je(e,{labelable:!0}),{labelProps:s,fieldProps:u}=fj({...e,labelElementType:"span"});t=Us(t,n,r);let d=(t-n)/(r-n),c=gD(i);if(!l&&!a){let f=i.style==="percent"?d:t;a=c.format(f)}return{progressBarProps:ue(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}function wA(e){let{progressBarProps:t,labelProps:n}=bA(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function xA(e,t){let n=Je(e,{labelable:!0}),{hoverProps:r}=ao({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ue(n,r,{role:"tooltip"})}}function CA(e,t,n){let{isDisabled:r,trigger:a}=e,l=an(),i=p.useRef(!1),o=p.useRef(!1),s=()=>{(i.current||o.current)&&t.open(o.current)},u=g=>{!i.current&&!o.current&&t.close(g)};p.useEffect(()=>{let g=y=>{n&&n.current&&y.key==="Escape"&&(y.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[n,t]);let d=()=>{a!=="focus"&&(Fs()==="pointer"?i.current=!0:i.current=!1,s())},c=()=>{a!=="focus"&&(o.current=!1,i.current=!1,u())},f=()=>{o.current=!1,i.current=!1,u(!0)},h=()=>{qs()&&(o.current=!0,s())},m=()=>{o.current=!1,i.current=!1,u(!0)},{hoverProps:v}=ao({isDisabled:r,onHoverStart:d,onHoverEnd:c}),{focusableProps:b}=t4({isDisabled:r,onFocus:h,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...ue(b,v,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:l}}}const SA=p.createContext({}),EA=p.createContext(null),X7=p.createContext({}),Ug=Uj(function(e,t){[e,t]=Mn(e,t,X7);let n=e,{isPending:r}=n,{buttonProps:a,isPressed:l}=G7(e,t);a=MA(a,r);let{focusProps:i,isFocused:o,isFocusVisible:s}=o4(e),{hoverProps:u,isHovered:d}=ao({...e,isDisabled:e.isDisabled||r}),c={isHovered:d,isPressed:(n.isPressed||l)&&!r,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:r??!1},f=En({...e,values:c,defaultClassName:"react-aria-Button"}),h=an(a.id),m=an(),v=a["aria-labelledby"];r&&(v?v=`${v} ${m}`:a["aria-label"]&&(v=`${h} ${m}`));let b=p.useRef(r);p.useEffect(()=>{let y={"aria-labelledby":v||h};(!b.current&&o&&r||b.current&&o&&!r)&&qT(y,"assertive"),b.current=r},[r,o,v,h]);let g=Je(e,{global:!0});return delete g.onClick,O.createElement("button",{...ue(g,f,a,i,u),type:a.type==="submit"&&r?"button":a.type,id:h,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":r?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":d||void 0,"data-focused":o||void 0,"data-pending":r||void 0,"data-focus-visible":s||void 0},O.createElement(EA.Provider,{value:{id:m}},f.children))});function MA(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const OA=p.createContext({});class _n extends Set{constructor(t,n,r){super(t),t instanceof _n?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function RA(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Y7(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=p.useRef(!1),[,o]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,d]=p.useState(null),c=p.useMemo(()=>ib(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>ib(e.defaultSelectedKeys,new _n),[e.defaultSelectedKeys]),[h,m]=mu(c,f,e.onSelectionChange),v=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[b,g]=p.useState(a);a==="replace"&&b==="toggle"&&typeof h=="object"&&h.size===0&&g("replace");let y=p.useRef(a);return p.useEffect(()=>{a!==y.current&&(g(a),y.current=a)},[a]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:b,setSelectionBehavior:g,get isFocused(){return i.current},setFocused(w){i.current=w,o(w)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(w,C="first"){s.current=w,u.current=C,d(w)},selectedKeys:h,setSelectedKeys(w){(r||!RA(w,h))&&m(w)},disabledKeys:v,disabledBehavior:l}}function ib(e,t){return e?e==="all"?"all":new _n(e):t}class Of{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&$0(this.collection,a,t)<0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&$0(this.collection,a,t)>0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new _n([n],n,n);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:n;r=new _n(i,o,n);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:n))r.delete(s);for(let s of this.getKeyRange(n,o))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),a=this.collection.getItem(n);return r&&a?$0(this.collection,r,a)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===n)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new _n(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new _n([n],n,n):new _n;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new _n;for(let r of t){let a=this.getKey(r);if(a!=null&&(n.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var a;let i=this.collection.getItem(r);(i==null?void 0:i.type)==="item"&&t.push(r);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((l=(a=Oj(J4(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new _n)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Of(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var a;this.allowsCellSelection=(a=r==null?void 0:r.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Rf(e){let[t,n]=mu(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),a=p.useCallback(()=>{n(!1)},[n]),l=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:l}}function Bg(e){let t=Rf(e),[n,r]=p.useState(null),[a,l]=p.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}const TA=1500,ob=500;let Xa={},DA=0,Ho=!1,hr=null,Ya=null;function I7(e={}){let{delay:t=TA,closeDelay:n=ob}=e,{isOpen:r,open:a,close:l}=Rf(e),i=p.useMemo(()=>`${++DA}`,[]),o=p.useRef(null),s=p.useRef(l),u=()=>{Xa[i]=f},d=()=>{for(let m in Xa)m!==i&&(Xa[m](!0),delete Xa[m])},c=()=>{o.current&&clearTimeout(o.current),o.current=null,d(),u(),Ho=!0,a(),hr&&(clearTimeout(hr),hr=null),Ya&&(clearTimeout(Ya),Ya=null)},f=m=>{m||n<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},n)),hr&&(clearTimeout(hr),hr=null),Ho&&(Ya&&clearTimeout(Ya),Ya=setTimeout(()=>{delete Xa[i],Ya=null,Ho=!1},Math.max(ob,n)))},h=()=>{d(),u(),!r&&!hr&&!Ho?hr=setTimeout(()=>{hr=null,Ho=!0,c()},t):r||c()};return p.useEffect(()=>{s.current=l},[l]),p.useEffect(()=>()=>{o.current&&clearTimeout(o.current),Xa[i]&&delete Xa[i]},[i]),{isOpen:r,open:m=>{!m&&t>0&&!o.current?h():c()},close:f}}class jA{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let s of o.childNodes)r(s)};for(let o of t)r(o);let a=null,l=0;for(let[o,s]of this.keyMap)a?(a.nextKey=o,s.prevKey=a.key):(this.firstKey=o,s.prevKey=void 0),s.type==="item"&&(s.index=l++),a=s,a.nextKey=void 0;var i;this.lastKey=(i=a==null?void 0:a.key)!==null&&i!==void 0?i:null}}function AA(e){let{onExpandedChange:t}=e,[n,r]=mu(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=Y7(e),l=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Mj(e,p.useCallback(o=>new jA(o,{expandedKeys:n}),[n]),null);return p.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:n,disabledKeys:l,toggleKey:o=>{r(NA(n,o))},setExpandedKeys:r,selectionManager:new Of(i,a)}}function NA(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const kA=p.createContext({}),LA=p.createContext(null);function Z7(e){let t=p.useRef({});return O.createElement(LA.Provider,{value:t},e.children)}const $7=p.createContext({isSelected:!1}),_A=p.createContext({});class zA extends lo{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let a=this.clone();return n.addDescendants(a,t),a}return null}}zA.type="separator";const W7=p.createContext({placement:"bottom"}),qg=p.createContext(null),sb=p.createContext(null),PA=p.forwardRef(function(e,t){[e,t]=Mn(e,t,qg);let n=p.useContext(Tl),r=Rf(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=bd(t,a.isOpen)||e.isExiting||!1,i=Bj(),{direction:o}=Rl();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),O.createElement(O.Fragment,null,s)}return a&&!a.isOpen&&!l?null:O.createElement(HA,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function HA({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...a}){let l=p.useRef(null),i=p.useRef(null),o=p.useContext(sb),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:d,underlayProps:c,arrowProps:f,placement:h,triggerAnchorPoint:m}=cj({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),v=a.popoverRef,b=Sf(v,!!h)||a.isEntering||!1,g=En({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:h,isEntering:b,isExiting:t}}),y=!a.isNonModal||a.trigger==="SubmenuTrigger",[w,C]=p.useState(!1);we(()=>{v.current&&C(y&&!v.current.querySelector("[role=dialog]"))},[v,y]),p.useEffect(()=>{w&&a.trigger!=="SubmenuTrigger"&&v.current&&!v.current.contains(document.activeElement)&&Sa(v.current)},[w,v,a.trigger]);let E=p.useMemo(()=>{let A=g.children;if(r)for(let k of r)A=O.createElement(k.Provider,{value:null},A);return A},[g.children,r]),S={...d.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...g.style},M=O.createElement("div",{...ue(Je(a,{global:!0}),d),...g,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:v,slot:a.slot||void 0,style:S,dir:a.dir,"data-trigger":a.trigger,"data-placement":h,"data-entering":b||void 0,"data-exiting":t||void 0},!a.isNonModal&&O.createElement(Fp,{onDismiss:e.close}),O.createElement(W7.Provider,{value:{...f,placement:h,ref:l}},E),O.createElement(Fp,{onDismiss:e.close}));if(!s)return O.createElement(Vp,{...a,shouldContainFocus:w,isExiting:t,portalContainer:n},!a.isNonModal&&e.isOpen&&O.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),O.createElement("div",{ref:i,style:{display:"contents"}},O.createElement(sb.Provider,{value:i},M)));var N;return O.createElement(Vp,{...a,shouldContainFocus:w,isExiting:t,portalContainer:(N=n??(o==null?void 0:o.current))!==null&&N!==void 0?N:void 0},M)}const KA=p.createContext({}),J7=p.createContext(null),Fg=p.createContext(null),Td=p.createContext(null),Dd=p.createContext(null);function UA(e){let t=Bg(e),n=p.useRef(null),{menuTriggerProps:r,menuProps:a}=jj({...e,type:"menu"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);yd({ref:n,onResize:o});let s=p.useRef(null);return O.createElement(Aa,{values:[[J7,{...a,ref:s}],[Tl,t],[Td,t],[qg,{trigger:"MenuTrigger",triggerRef:n,scrollRef:s,placement:"bottom start",style:{"--trigger-width":l},"aria-labelledby":a["aria-labelledby"]}]]},O.createElement(n4,{...r,ref:n,isPressed:t.isOpen},e.children))}const BA=p.createContext(null);class qA extends lo{filter(t,n,r){let a=t.getItem(this.firstChildKey);if(a&&r(a.textValue,this)){let l=this.clone();return n.addDescendants(l,t),l}return null}}qA.type="submenutrigger";const FA=p.forwardRef(function(e,t){return[e,t]=Mn(e,t,J7),O.createElement(Wj,{content:O.createElement(oA,e)},n=>O.createElement(VA,{props:e,collection:n,menuRef:t}))});function VA({props:e,collection:t,menuRef:n}){[e,n]=Mn(e,n,xy);let{filter:r,...a}=e,l=p.useMemo(()=>r?t.filter(r):t,[t,r]),i=AA({...e,collection:l,children:void 0}),o=p.useContext(Td),{isVirtualized:s,CollectionRoot:u}=p.useContext(V7),{menuProps:d}=Aj({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,n),c=En({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=O.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=Je(e,{global:!0});return O.createElement(a4,null,O.createElement("div",{...ue(h,c,d),ref:n,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},O.createElement(Aa,{values:[[Fg,i],[_A,{elementType:"div"}],[uA,{name:"MenuSection",render:QA}],[BA,{parentMenuRef:n,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[Xp,null],[xy,null],[IR,null],[Dd,i.selectionManager],[Td,o??Bg({})]]},O.createElement(Z7,null,O.createElement(u,{collection:i.collection,persistedKeys:fA(i.selectionManager.focusedKey),scrollRef:n}))),f))}class GA extends Of{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function QA(e,t,n,r="react-aria-MenuSection"){var a,l;let i=p.useContext(Fg),{CollectionBranch:o}=p.useContext(V7),[s,u]=H3();var d;let{headingProps:c,groupProps:f}=kj({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),h=En({defaultClassName:r,className:(a=n.props)===null||a===void 0?void 0:a.className,style:(l=n.props)===null||l===void 0?void 0:l.style,values:{}}),m=p.useContext(Dd),v=Y7(e),b=e.selectionMode!=null?new GA(m,v):m,g=Je(e,{global:!0});return delete g.id,O.createElement("section",{...ue(g,h,f),ref:t},O.createElement(Aa,{values:[[kA,{...c,ref:s}],[Dd,b]]},O.createElement(o,{collection:i.collection,parent:n})))}const Xp=p.createContext(null),XA=lA(P7,function(e,t,n){var r;[e,t]=Mn(e,t,Xp);let a=(r=P3(Xp))===null||r===void 0?void 0:r.id,l=p.useContext(Fg),i=no(t),o=p.useContext(Dd),{menuItemProps:s,labelProps:u,descriptionProps:d,keyboardShortcutProps:c,...f}=Nj({...e,id:a,key:n.key,selectionManager:o},l,i),{hoverProps:h,isHovered:m}=ao({isDisabled:f.isDisabled}),v=En({...e,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),b=e.href?"a":"div",g=Je(e,{global:!0});return delete g.id,delete g.onClick,O.createElement(b,{...ue(g,v,s,h),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},O.createElement(Aa,{values:[[OA,{slots:{[wd]:u,label:u,description:d}}],[KA,c],[$7,{isSelected:f.isSelected}]]},v.children))}),e6=p.createContext(null),Tl=p.createContext(null);function t6(e){let t=Bg(e),n=p.useRef(null),{triggerProps:r,overlayProps:a}=d4({type:"dialog"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);return yd({ref:n,onResize:o}),r.id=an(),a["aria-labelledby"]=r.id,O.createElement(Aa,{values:[[Tl,t],[Td,t],[e6,a],[qg,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},O.createElement(n4,{...r,ref:n,isPressed:t.isOpen},e.children))}const Tf=p.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=Mn(e,t,e6);let{dialogProps:r,titleProps:a}=yA({...e,"aria-labelledby":n},t),l=p.useContext(Tl);!r["aria-label"]&&!r["aria-labelledby"]&&e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=En({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Je(e,{global:!0});return O.createElement("section",{...ue(o,i,r),ref:t,slot:e.slot||void 0},O.createElement(Aa,{values:[[C3,{slots:{[wd]:{},title:{...a,level:2}}}],[X7,{slots:{[wd]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))}),Df=p.forwardRef(function(e,t){[e,t]=Mn(e,t,C3);let{children:n,level:r=3,className:a,...l}=e,i=`h${r}`;return O.createElement(i,{...l,ref:t,className:a??"react-aria-Heading"},n)}),YA=p.createContext(null),IA=p.forwardRef(function(e,t){[e,t]=Mn(e,t,YA);let{value:n=0,minValue:r=0,maxValue:a=100}=e;n=Us(n,r,a);let[l,i]=H3(!e["aria-label"]&&!e["aria-labelledby"]),{meterProps:o,labelProps:s}=wA({...e,label:i}),u=(n-r)/(a-r)*100,d=En({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:o["aria-valuetext"]}}),c=Je(e,{global:!0});return O.createElement("div",{...ue(c,d,o),ref:t,slot:e.slot||void 0},O.createElement(SA.Provider,{value:{...s,ref:l,elementType:"span"}},d.children))}),ZA=p.createContext(null),Vg=p.createContext(null),jf=p.forwardRef(function(e,t){if(p.useContext(Vg))return O.createElement(ub,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,children:o,isEntering:s,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:c,...f}=e;return O.createElement(WA,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,isEntering:s,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:c},O.createElement(ub,{...f,modalRef:t},o))});function $A(e,t){[e,t]=Mn(e,t,ZA);let n=p.useContext(Tl),r=Rf(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=no(t),i=p.useRef(null),o=bd(l,a.isOpen),s=bd(i,a.isOpen),u=o||s||e.isExiting||!1,d=ja();return!a.isOpen&&!u||d?null:O.createElement(JA,{...e,state:a,isExiting:u,overlayRef:l,modalRef:i})}const WA=p.forwardRef($A);function JA({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:a,underlayProps:l}=dj(t,r,n),i=Sf(t.overlayRef)||t.isEntering||!1,o=En({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:r}}),s=jT(),u;if(typeof document<"u"){let c=vl(document.body)?document.body:document.scrollingElement||document.documentElement,f=c.getBoundingClientRect().height%1;u=c.scrollHeight-f}let d={...o.style,"--visual-viewport-height":s.height+"px","--page-height":u!==void 0?u+"px":void 0};return O.createElement(Vp,{isExiting:t.isExiting,portalContainer:e},O.createElement("div",{...ue(Je(t,{global:!0}),l),...o,style:d,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},O.createElement(Aa,{values:[[Vg,{modalProps:a,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Tl,r]]},o.children)))}function ub(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:a}=p.useContext(Vg),l=p.useContext(Tl),i=p.useMemo(()=>O3(e.modalRef,n),[e.modalRef,n]),o=no(i),s=Sf(o),u=En({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:l}});return O.createElement("div",{...ue(Je(e,{global:!0}),t),...u,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},a&&O.createElement(Fp,{onDismiss:l.close}),u.children)}const eN=p.createContext({}),n6=p.createContext(null),tN=p.forwardRef(function(e,t){[e,t]=Mn(e,t,eN);let n=vA(e),{groupProps:r}=pA(e,n,t),a=En({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"}),l=Je(e,{global:!0});return O.createElement("div",{...ue(l,a,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},O.createElement(n6.Provider,{value:n},O.createElement(Z7,null,a.children)))}),nN=p.createContext({}),rN=p.forwardRef(function(e,t){[e,t]=Mn(e,t,nN);let n=p.useContext(n6),r=gA(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(v){n.setSelected(e.id,v)}}:e),{buttonProps:a,isPressed:l,isSelected:i,isDisabled:o}=n&&e.id!=null?mA({...e,id:e.id},n,t):Q7({...e,id:e.id!=null?String(e.id):void 0},r,t),{focusProps:s,isFocused:u,isFocusVisible:d}=o4(e),{hoverProps:c,isHovered:f}=ao(e),h=En({...e,values:{isHovered:f,isPressed:l,isFocused:u,isSelected:r.isSelected,isFocusVisible:d,isDisabled:o,state:r},defaultClassName:"react-aria-ToggleButton"}),m=Je(e,{global:!0});return delete m.id,delete m.onClick,O.createElement("button",{...ue(m,h,a,s,c),ref:t,slot:e.slot||void 0,"data-focused":u||void 0,"data-disabled":o||void 0,"data-pressed":l||void 0,"data-selected":i||void 0,"data-hovered":f||void 0,"data-focus-visible":d||void 0},O.createElement($7.Provider,{value:{isSelected:i}},h.children))}),Gg=p.createContext(null),r6=p.createContext(null);function aN(e){let t=I7(e),n=p.useRef(null),{triggerProps:r,tooltipProps:a}=CA(e,t,n);return O.createElement(Aa,{values:[[Gg,t],[r6,{...a,triggerRef:n}]]},O.createElement(_D,{...r,ref:n},e.children))}const lN=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Mn(t,n,r6);let r=p.useContext(Gg),a=I7(t),l=t.isOpen!=null||t.defaultOpen!=null||!r?a:r,i=bd(n,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!i?null:O.createElement(aj,{portalContainer:e},O.createElement(iN,{...t,tooltipRef:n,isExiting:i}))});function iN(e){let t=p.useContext(Gg),n=p.useRef(null),{overlayProps:r,arrowProps:a,placement:l,triggerAnchorPoint:i}=G3({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),o=Sf(e.tooltipRef,!!l)||e.isEntering||!1,s=En({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:o,isExiting:e.isExiting,state:t}});e=ue(e,r);let{tooltipProps:u}=xA(e,t),d=Je(e,{global:!0});return O.createElement("div",{...ue(d,s,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":l??void 0,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},O.createElement(W7.Provider,{value:{...a,placement:l,ref:n}},s.children))}function oN(e,t){var n=p.useState(function(){if(typeof window>"u")return t;try{for(var i=window.localStorage.getItem(e),o=i?JSON.parse(i):t,s=0,u=Object.entries(t);s<u.length;s++){var d=u[s][0];if(typeof o[d]>"u")throw new Error("Missing key in local storage")}return o}catch(c){return console.log(c),t}}),r=n[0],a=n[1],l=function(i){try{var o=i instanceof Function?i(r):i;a(o),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(o))}catch(s){console.log(s)}};return[r,l]}var sN=function(){var e=oN("user-preferences",{theme:"system"}),t=e[0],n=e[1];return x.jsx(tN,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return x.jsx(vR,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return x.jsx(GR,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return x.jsx(zR,{})},ariaLabel:"Dark theme"}].map(function(r){return x.jsx(rN,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},Yp=function(e){var t=e.message;return x.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4",children:x.jsx("div",{className:"flex flex-col justify-center",children:x.jsx("p",{className:"text-sm text-red-900",children:t})})})},cb=function(e){var t=e.to,n=e.label,r=e.icon;return x.jsxs(m3,{to:t,className:function(a){var l=a.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(l?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,x.jsx("span",{className:"block truncate",children:n})]})},a6=function(e){var t=e.children,n=Se.queue.list.useQuery(),r=n.data,a=n.isLoading,l=n.isError;return x.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[x.jsx("div",{className:"hidden w-64 xl:block",children:x.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[x.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[x.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),x.jsx("defs",{children:x.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[x.jsx("stop",{stopColor:"#bbebff"}),x.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),x.jsxs("div",{className:"space-y-8",children:[x.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[x.jsx(qR,{width:28,height:28}),x.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),x.jsxs("div",{className:"w-full space-y-4",children:[x.jsx(cb,{label:"Overview",icon:x.jsx(mR,{className:"mb-0.5",height:16,width:16}),to:"../"}),x.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),x.jsx("div",{className:"w-full space-y-1",children:a?zn([],new Array(10),!0).map(function(i,o){return x.jsx(vd,{className:"h-8 w-full"},o)}):l?x.jsx(Yp,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(i){return x.jsx(cb,{to:"../".concat(i.name),label:i.displayName},i.name)})})]})]}),x.jsxs("div",{className:"flex w-full items-center justify-between",children:[x.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:x.jsx(OR,{})}),x.jsx(sN,{})]})]})}),x.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:x.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
87
|
+
*/var Ui=O;function FD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var VD=typeof Object.is=="function"?Object.is:FD,GD=Ui.useState,QD=Ui.useEffect,ID=Ui.useLayoutEffect,XD=Ui.useDebugValue;function YD(e,t){var n=t(),r=GD({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return ID(function(){a.value=n,a.getSnapshot=t,W0(a)&&l({inst:a})},[e,n,t]),QD(function(){return W0(a)&&l({inst:a}),e(function(){W0(a)&&l({inst:a})})},[e]),XD(n),n}function W0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!VD(e,n)}catch{return!0}}function ZD(e,t){return t()}var $D=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ZD:YD;F7.useSyncExternalStore=Ui.useSyncExternalStore!==void 0?Ui.useSyncExternalStore:$D;q7.exports=F7;var WD=q7.exports;const V7=p.createContext(!1),Vs=p.createContext(null);function JD(e){if(p.useContext(Vs))return e.content;let{collection:t,document:n}=rj(e.createCollection);return O.createElement(O.Fragment,null,O.createElement(UD,null,O.createElement(Vs.Provider,{value:n},e.content)),O.createElement(ej,{render:e.children,collection:t}))}function ej({collection:e,render:t}){return t(e)}function tj(e,t,n){let r=Da(),a=p.useRef(r);a.current=r;let l=p.useCallback(()=>a.current?n():t(),[t,n]);return WD.useSyncExternalStore(e,l)}const nj=typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore:tj;function rj(e){let[t]=p.useState(()=>new KD((e==null?void 0:e())||new HD)),n=p.useCallback(l=>t.subscribe(l),[t]),r=p.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),a=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:nj(n,r,a),document:t}}const Qp=p.createContext(null);function aj(e){var t;return t=class extends io{},t.type=e,t}function lj(e,t,n,r,a,l){typeof e=="string"&&(e=aj(e));let i=p.useCallback(s=>{s==null||s.setProps(t,n,e,r,l)},[t,n,r,l,e]),o=p.useContext(Qp);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?O.createElement(Qp.Provider,{value:s},a):null}return O.createElement(e.type,{ref:i},a)}function ij(e,t){let n=({node:a})=>t(a.props,a.props.ref,a),r=p.forwardRef((a,l)=>{let i=p.useContext(Md);if(!p.useContext(V7)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return lj(e,a,l,"children"in a?a.children:null,null,o=>O.createElement(Md.Provider,{value:i},O.createElement(n,{node:o})))});return r.displayName=t.name,r}function oj(e){return B7({...e,addIdAndValue:!0})}const ly=p.createContext(null);function sj(e){let t=p.useContext(ly),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),a=oj({...e,idScope:r,dependencies:n});return p.useContext(Vs)&&(a=O.createElement(uj,null,a)),t=p.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),O.createElement(ly.Provider,{value:t},a)}function uj({children:e}){let t=p.useContext(Vs),n=p.useMemo(()=>O.createElement(Vs.Provider,{value:null},O.createElement(V7.Provider,{value:!0},e)),[e]);return Da()?O.createElement(Qp.Provider,{value:t},n):Ys.createPortal(n,t)}const cj=p.createContext(null),dj={CollectionRoot({collection:e,renderDropIndicator:t}){return iy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return iy(e,t,n)}};function iy(e,t,n){return B7({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let a=r.render(r);return!n||r.type!=="item"?a:O.createElement(O.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),a,fj(e,r,n))}})}function fj(e,t,n){let r=t.key,a=e.getKeyAfter(r),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&o.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const G7=p.createContext(dj);function hj(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}function Q7(e,t){let{elementType:n="button",isDisabled:r,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:c,href:f,target:h,rel:m,type:b="button"}=e,y;n==="button"?y={type:b,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?f:void 0,target:n==="a"?h:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:g,isPressed:v}=Mf({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=n4(e,t);d&&(x.tabIndex=r?-1:x.tabIndex);let w=ue(x,g,Je(e,{labelable:!0}));return{isPressed:v,buttonProps:ue(y,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function I7(e,t,n){const{isSelected:r}=t,{isPressed:a,buttonProps:l}=Q7({...e,onPress:no(t.toggle,e.onPress)},n);return{isPressed:a,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ue(l,{"aria-pressed":r})}}function pj(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:a="horizontal"}=e;let[l,i]=p.useState(!1);xe(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});const{direction:o}=Rl(),s=o==="rtl"&&a==="horizontal";let u=Yk(t);const d=m=>{if(m.currentTarget.contains(m.target)){if(a==="horizontal"&&m.key==="ArrowRight"||a==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(a==="horizontal"&&m.key==="ArrowLeft"||a==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),c.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},c=p.useRef(null),f=m=>{!m.currentTarget.contains(m.relatedTarget)&&!c.current&&(c.current=m.target)},h=m=>{var b;if(c.current&&!m.currentTarget.contains(m.relatedTarget)&&!((b=t.current)===null||b===void 0)&&b.contains(m.target)){var y;(y=c.current)===null||y===void 0||y.focus(),c.current=null}};return{toolbarProps:{...Je(e,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":a,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:l?void 0:d,onFocusCapture:l?void 0:h,onBlurCapture:l?void 0:f}}}function mj(e,t,n){let{isDisabled:r}=e,{toolbarProps:a}=pj(e,n);return{groupProps:{...a,role:t.selectionMode==="single"?"radiogroup":a.role,"aria-disabled":r}}}function gj(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),toggle(){t.toggleKey(e.id)}},{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}=I7({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(o.role="radio",o["aria-checked"]=r.isSelected,delete o["aria-pressed"]),{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}}function vj(e={}){let{isReadOnly:t}=e,[n,r]=mu(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=p.useState(n);function l(s){t||r(s)}function i(){t||r(!n)}var o;return{isSelected:n,defaultSelected:(o=e.defaultSelected)!==null&&o!==void 0?o:a,setSelected:l,toggle:i}}function bj(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[a,l]=mu(p.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),p.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:a,setSelectedKeys:l,toggleKey(i){let o;t==="multiple"?(o=new Set(a),o.has(i)&&(!n||o.size>1)?o.delete(i):o.add(i)):o=new Set(a.has(i)&&!n?[]:[i]),l(o)},setSelected(i,o){o!==a.has(i)&&this.toggleKey(i)}}}function yj(e,t){let{role:n="dialog"}=e,r=Lc();r=e["aria-label"]?void 0:r;let a=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Sa(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Sa(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),W4(),{dialogProps:{...Je(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:r}}}function xj(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Je(e,{labelable:!0}),{labelProps:s,fieldProps:u}=hD({...e,labelElementType:"span"});t=Us(t,n,r);let d=(t-n)/(r-n),c=vk(i);if(!l&&!a){let f=i.style==="percent"?d:t;a=c.format(f)}return{progressBarProps:ue(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}function wj(e){let{progressBarProps:t,labelProps:n}=xj(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function Cj(e,t){let n=Je(e,{labelable:!0}),{hoverProps:r}=lo({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ue(n,r,{role:"tooltip"})}}function Sj(e,t,n){let{isDisabled:r,trigger:a}=e,l=ln(),i=p.useRef(!1),o=p.useRef(!1),s=()=>{(i.current||o.current)&&t.open(o.current)},u=g=>{!i.current&&!o.current&&t.close(g)};p.useEffect(()=>{let g=v=>{n&&n.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[n,t]);let d=()=>{a!=="focus"&&(Fs()==="pointer"?i.current=!0:i.current=!1,s())},c=()=>{a!=="focus"&&(o.current=!1,i.current=!1,u())},f=()=>{o.current=!1,i.current=!1,u(!0)},h=()=>{qs()&&(o.current=!0,s())},m=()=>{o.current=!1,i.current=!1,u(!0)},{hoverProps:b}=lo({isDisabled:r,onHoverStart:d,onHoverEnd:c}),{focusableProps:y}=n4({isDisabled:r,onFocus:h,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...ue(y,b,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:l}}}const Ej=p.createContext({}),Mj=p.createContext(null),X7=p.createContext({}),Ug=BD(function(e,t){[e,t]=On(e,t,X7);let n=e,{isPending:r}=n,{buttonProps:a,isPressed:l}=Q7(e,t);a=Oj(a,r);let{focusProps:i,isFocused:o,isFocusVisible:s}=s4(e),{hoverProps:u,isHovered:d}=lo({...e,isDisabled:e.isDisabled||r}),c={isHovered:d,isPressed:(n.isPressed||l)&&!r,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:r??!1},f=Mn({...e,values:c,defaultClassName:"react-aria-Button"}),h=ln(a.id),m=ln(),b=a["aria-labelledby"];r&&(b?b=`${b} ${m}`:a["aria-label"]&&(b=`${h} ${m}`));let y=p.useRef(r);p.useEffect(()=>{let v={"aria-labelledby":b||h};(!y.current&&o&&r||y.current&&o&&!r)&&FT(v,"assertive"),y.current=r},[r,o,b,h]);let g=Je(e,{global:!0});return delete g.onClick,O.createElement("button",{...ue(g,f,a,i,u),type:a.type==="submit"&&r?"button":a.type,id:h,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":r?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":d||void 0,"data-focused":o||void 0,"data-pending":r||void 0,"data-focus-visible":s||void 0},O.createElement(Mj.Provider,{value:{id:m}},f.children))});function Oj(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Rj=p.createContext({});class zn extends Set{constructor(t,n,r){super(t),t instanceof zn?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Tj(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Y7(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=p.useRef(!1),[,o]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,d]=p.useState(null),c=p.useMemo(()=>oy(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>oy(e.defaultSelectedKeys,new zn),[e.defaultSelectedKeys]),[h,m]=mu(c,f,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,g]=p.useState(a);a==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&g("replace");let v=p.useRef(a);return p.useEffect(()=>{a!==v.current&&(g(a),v.current=a)},[a]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:g,get isFocused(){return i.current},setFocused(x){i.current=x,o(x)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(x,w="first"){s.current=x,u.current=w,d(x)},selectedKeys:h,setSelectedKeys(x){(r||!Tj(x,h))&&m(x)},disabledKeys:b,disabledBehavior:l}}function oy(e,t){return e?e==="all"?"all":new zn(e):t}class Of{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&$0(this.collection,a,t)<0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&$0(this.collection,a,t)>0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new zn([n],n,n);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:n;r=new zn(i,o,n);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:n))r.delete(s);for(let s of this.getKeyRange(n,o))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),a=this.collection.getItem(n);return r&&a?$0(this.collection,r,a)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===n)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new zn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new zn([n],n,n):new zn;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new zn;for(let r of t){let a=this.getKey(r);if(a!=null&&(n.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var a;let i=this.collection.getItem(r);(i==null?void 0:i.type)==="item"&&t.push(r);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((l=(a=RD(e7(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new zn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Of(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var a;this.allowsCellSelection=(a=r==null?void 0:r.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Rf(e){let[t,n]=mu(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),a=p.useCallback(()=>{n(!1)},[n]),l=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:l}}function Bg(e){let t=Rf(e),[n,r]=p.useState(null),[a,l]=p.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}const kj=1500,sy=500;let Ia={},Dj=0,Ko=!1,hr=null,Xa=null;function Z7(e={}){let{delay:t=kj,closeDelay:n=sy}=e,{isOpen:r,open:a,close:l}=Rf(e),i=p.useMemo(()=>`${++Dj}`,[]),o=p.useRef(null),s=p.useRef(l),u=()=>{Ia[i]=f},d=()=>{for(let m in Ia)m!==i&&(Ia[m](!0),delete Ia[m])},c=()=>{o.current&&clearTimeout(o.current),o.current=null,d(),u(),Ko=!0,a(),hr&&(clearTimeout(hr),hr=null),Xa&&(clearTimeout(Xa),Xa=null)},f=m=>{m||n<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},n)),hr&&(clearTimeout(hr),hr=null),Ko&&(Xa&&clearTimeout(Xa),Xa=setTimeout(()=>{delete Ia[i],Xa=null,Ko=!1},Math.max(sy,n)))},h=()=>{d(),u(),!r&&!hr&&!Ko?hr=setTimeout(()=>{hr=null,Ko=!0,c()},t):r||c()};return p.useEffect(()=>{s.current=l},[l]),p.useEffect(()=>()=>{o.current&&clearTimeout(o.current),Ia[i]&&delete Ia[i]},[i]),{isOpen:r,open:m=>{!m&&t>0&&!o.current?h():c()},close:f}}class jj{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let s of o.childNodes)r(s)};for(let o of t)r(o);let a=null,l=0;for(let[o,s]of this.keyMap)a?(a.nextKey=o,s.prevKey=a.key):(this.firstKey=o,s.prevKey=void 0),s.type==="item"&&(s.index=l++),a=s,a.nextKey=void 0;var i;this.lastKey=(i=a==null?void 0:a.key)!==null&&i!==void 0?i:null}}function Nj(e){let{onExpandedChange:t}=e,[n,r]=mu(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=Y7(e),l=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=OD(e,p.useCallback(o=>new jj(o,{expandedKeys:n}),[n]),null);return p.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:n,disabledKeys:l,toggleKey:o=>{r(Aj(n,o))},setExpandedKeys:r,selectionManager:new Of(i,a)}}function Aj(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const Lj=p.createContext({}),_j=p.createContext(null);function $7(e){let t=p.useRef({});return O.createElement(_j.Provider,{value:t},e.children)}const W7=p.createContext({isSelected:!1}),zj=p.createContext({});class Pj extends io{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let a=this.clone();return n.addDescendants(a,t),a}return null}}Pj.type="separator";const J7=p.createContext({placement:"bottom"}),qg=p.createContext(null),uy=p.createContext(null),Hj=p.forwardRef(function(e,t){[e,t]=On(e,t,qg);let n=p.useContext(Tl),r=Rf(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=yd(t,a.isOpen)||e.isExiting||!1,i=qD(),{direction:o}=Rl();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),O.createElement(O.Fragment,null,s)}return a&&!a.isOpen&&!l?null:O.createElement(Kj,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function Kj({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...a}){let l=p.useRef(null),i=p.useRef(null),o=p.useContext(uy),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:d,underlayProps:c,arrowProps:f,placement:h,triggerAnchorPoint:m}=dD({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),b=a.popoverRef,y=Sf(b,!!h)||a.isEntering||!1,g=Mn({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:h,isEntering:y,isExiting:t}}),v=!a.isNonModal||a.trigger==="SubmenuTrigger",[x,w]=p.useState(!1);xe(()=>{b.current&&w(v&&!b.current.querySelector("[role=dialog]"))},[b,v]),p.useEffect(()=>{x&&a.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&Sa(b.current)},[x,b,a.trigger]);let E=p.useMemo(()=>{let j=g.children;if(r)for(let A of r)j=O.createElement(A.Provider,{value:null},j);return j},[g.children,r]),S={...d.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...g.style},M=O.createElement("div",{...ue(Je(a,{global:!0}),d),...g,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:b,slot:a.slot||void 0,style:S,dir:a.dir,"data-trigger":a.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!a.isNonModal&&O.createElement(Fp,{onDismiss:e.close}),O.createElement(J7.Provider,{value:{...f,placement:h,ref:l}},E),O.createElement(Fp,{onDismiss:e.close}));if(!s)return O.createElement(Vp,{...a,shouldContainFocus:x,isExiting:t,portalContainer:n},!a.isNonModal&&e.isOpen&&O.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),O.createElement("div",{ref:i,style:{display:"contents"}},O.createElement(uy.Provider,{value:i},M)));var N;return O.createElement(Vp,{...a,shouldContainFocus:x,isExiting:t,portalContainer:(N=n??(o==null?void 0:o.current))!==null&&N!==void 0?N:void 0},M)}const Uj=p.createContext({}),e6=p.createContext(null),Fg=p.createContext(null),Td=p.createContext(null),kd=p.createContext(null);function Bj(e){let t=Bg(e),n=p.useRef(null),{menuTriggerProps:r,menuProps:a}=jD({...e,type:"menu"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);bd({ref:n,onResize:o});let s=p.useRef(null);return O.createElement(ja,{values:[[e6,{...a,ref:s}],[Tl,t],[Td,t],[qg,{trigger:"MenuTrigger",triggerRef:n,scrollRef:s,placement:"bottom start",style:{"--trigger-width":l},"aria-labelledby":a["aria-labelledby"]}]]},O.createElement(r4,{...r,ref:n,isPressed:t.isOpen},e.children))}const qj=p.createContext(null);class Fj extends io{filter(t,n,r){let a=t.getItem(this.firstChildKey);if(a&&r(a.textValue,this)){let l=this.clone();return n.addDescendants(l,t),l}return null}}Fj.type="submenutrigger";const Vj=p.forwardRef(function(e,t){return[e,t]=On(e,t,e6),O.createElement(JD,{content:O.createElement(sj,e)},n=>O.createElement(Gj,{props:e,collection:n,menuRef:t}))});function Gj({props:e,collection:t,menuRef:n}){[e,n]=On(e,n,Cb);let{filter:r,...a}=e,l=p.useMemo(()=>r?t.filter(r):t,[t,r]),i=Nj({...e,collection:l,children:void 0}),o=p.useContext(Td),{isVirtualized:s,CollectionRoot:u}=p.useContext(G7),{menuProps:d}=ND({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,n),c=Mn({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=O.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=Je(e,{global:!0});return O.createElement(l4,null,O.createElement("div",{...ue(h,c,d),ref:n,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},O.createElement(ja,{values:[[Fg,i],[zj,{elementType:"div"}],[cj,{name:"MenuSection",render:Ij}],[qj,{parentMenuRef:n,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[Ip,null],[Cb,null],[ZR,null],[kd,i.selectionManager],[Td,o??Bg({})]]},O.createElement($7,null,O.createElement(u,{collection:i.collection,persistedKeys:hj(i.selectionManager.focusedKey),scrollRef:n}))),f))}class Qj extends Of{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function Ij(e,t,n,r="react-aria-MenuSection"){var a,l;let i=p.useContext(Fg),{CollectionBranch:o}=p.useContext(G7),[s,u]=K3();var d;let{headingProps:c,groupProps:f}=LD({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),h=Mn({defaultClassName:r,className:(a=n.props)===null||a===void 0?void 0:a.className,style:(l=n.props)===null||l===void 0?void 0:l.style,values:{}}),m=p.useContext(kd),b=Y7(e),y=e.selectionMode!=null?new Qj(m,b):m,g=Je(e,{global:!0});return delete g.id,O.createElement("section",{...ue(g,h,f),ref:t},O.createElement(ja,{values:[[Lj,{...c,ref:s}],[kd,y]]},O.createElement(o,{collection:i.collection,parent:n})))}const Ip=p.createContext(null),Xj=ij(H7,function(e,t,n){var r;[e,t]=On(e,t,Ip);let a=(r=H3(Ip))===null||r===void 0?void 0:r.id,l=p.useContext(Fg),i=ro(t),o=p.useContext(kd),{menuItemProps:s,labelProps:u,descriptionProps:d,keyboardShortcutProps:c,...f}=AD({...e,id:a,key:n.key,selectionManager:o},l,i),{hoverProps:h,isHovered:m}=lo({isDisabled:f.isDisabled}),b=Mn({...e,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),y=e.href?"a":"div",g=Je(e,{global:!0});return delete g.id,delete g.onClick,O.createElement(y,{...ue(g,b,s,h),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},O.createElement(ja,{values:[[Rj,{slots:{[xd]:u,label:u,description:d}}],[Uj,c],[W7,{isSelected:f.isSelected}]]},b.children))}),t6=p.createContext(null),Tl=p.createContext(null);function n6(e){let t=Bg(e),n=p.useRef(null),{triggerProps:r,overlayProps:a}=f4({type:"dialog"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);return bd({ref:n,onResize:o}),r.id=ln(),a["aria-labelledby"]=r.id,O.createElement(ja,{values:[[Tl,t],[Td,t],[t6,a],[qg,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},O.createElement(r4,{...r,ref:n,isPressed:t.isOpen},e.children))}const Tf=p.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=On(e,t,t6);let{dialogProps:r,titleProps:a}=yj({...e,"aria-labelledby":n},t),l=p.useContext(Tl);!r["aria-label"]&&!r["aria-labelledby"]&&e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=Mn({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Je(e,{global:!0});return O.createElement("section",{...ue(o,i,r),ref:t,slot:e.slot||void 0},O.createElement(ja,{values:[[S3,{slots:{[xd]:{},title:{...a,level:2}}}],[X7,{slots:{[xd]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))}),kf=p.forwardRef(function(e,t){[e,t]=On(e,t,S3);let{children:n,level:r=3,className:a,...l}=e,i=`h${r}`;return O.createElement(i,{...l,ref:t,className:a??"react-aria-Heading"},n)}),Yj=p.createContext(null),Zj=p.forwardRef(function(e,t){[e,t]=On(e,t,Yj);let{value:n=0,minValue:r=0,maxValue:a=100}=e;n=Us(n,r,a);let[l,i]=K3(!e["aria-label"]&&!e["aria-labelledby"]),{meterProps:o,labelProps:s}=wj({...e,label:i}),u=(n-r)/(a-r)*100,d=Mn({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:o["aria-valuetext"]}}),c=Je(e,{global:!0});return O.createElement("div",{...ue(c,d,o),ref:t,slot:e.slot||void 0},O.createElement(Ej.Provider,{value:{...s,ref:l,elementType:"span"}},d.children))}),$j=p.createContext(null),Vg=p.createContext(null),Df=p.forwardRef(function(e,t){if(p.useContext(Vg))return O.createElement(cy,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,children:o,isEntering:s,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:c,...f}=e;return O.createElement(Jj,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,isEntering:s,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:c},O.createElement(cy,{...f,modalRef:t},o))});function Wj(e,t){[e,t]=On(e,t,$j);let n=p.useContext(Tl),r=Rf(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=ro(t),i=p.useRef(null),o=yd(l,a.isOpen),s=yd(i,a.isOpen),u=o||s||e.isExiting||!1,d=Da();return!a.isOpen&&!u||d?null:O.createElement(eN,{...e,state:a,isExiting:u,overlayRef:l,modalRef:i})}const Jj=p.forwardRef(Wj);function eN({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:a,underlayProps:l}=fD(t,r,n),i=Sf(t.overlayRef)||t.isEntering||!1,o=Mn({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:r}}),s=jT(),u;if(typeof document<"u"){let c=vl(document.body)?document.body:document.scrollingElement||document.documentElement,f=c.getBoundingClientRect().height%1;u=c.scrollHeight-f}let d={...o.style,"--visual-viewport-height":s.height+"px","--page-height":u!==void 0?u+"px":void 0};return O.createElement(Vp,{isExiting:t.isExiting,portalContainer:e},O.createElement("div",{...ue(Je(t,{global:!0}),l),...o,style:d,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},O.createElement(ja,{values:[[Vg,{modalProps:a,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Tl,r]]},o.children)))}function cy(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:a}=p.useContext(Vg),l=p.useContext(Tl),i=p.useMemo(()=>R3(e.modalRef,n),[e.modalRef,n]),o=ro(i),s=Sf(o),u=Mn({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:l}});return O.createElement("div",{...ue(Je(e,{global:!0}),t),...u,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},a&&O.createElement(Fp,{onDismiss:l.close}),u.children)}const tN=p.createContext({}),r6=p.createContext(null),nN=p.forwardRef(function(e,t){[e,t]=On(e,t,tN);let n=bj(e),{groupProps:r}=mj(e,n,t),a=Mn({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"}),l=Je(e,{global:!0});return O.createElement("div",{...ue(l,a,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},O.createElement(r6.Provider,{value:n},O.createElement($7,null,a.children)))}),rN=p.createContext({}),aN=p.forwardRef(function(e,t){[e,t]=On(e,t,rN);let n=p.useContext(r6),r=vj(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(b){n.setSelected(e.id,b)}}:e),{buttonProps:a,isPressed:l,isSelected:i,isDisabled:o}=n&&e.id!=null?gj({...e,id:e.id},n,t):I7({...e,id:e.id!=null?String(e.id):void 0},r,t),{focusProps:s,isFocused:u,isFocusVisible:d}=s4(e),{hoverProps:c,isHovered:f}=lo(e),h=Mn({...e,values:{isHovered:f,isPressed:l,isFocused:u,isSelected:r.isSelected,isFocusVisible:d,isDisabled:o,state:r},defaultClassName:"react-aria-ToggleButton"}),m=Je(e,{global:!0});return delete m.id,delete m.onClick,O.createElement("button",{...ue(m,h,a,s,c),ref:t,slot:e.slot||void 0,"data-focused":u||void 0,"data-disabled":o||void 0,"data-pressed":l||void 0,"data-selected":i||void 0,"data-hovered":f||void 0,"data-focus-visible":d||void 0},O.createElement(W7.Provider,{value:{isSelected:i}},h.children))}),Gg=p.createContext(null),a6=p.createContext(null);function lN(e){let t=Z7(e),n=p.useRef(null),{triggerProps:r,tooltipProps:a}=Sj(e,t,n);return O.createElement(ja,{values:[[Gg,t],[a6,{...a,triggerRef:n}]]},O.createElement(zk,{...r,ref:n},e.children))}const iN=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=On(t,n,a6);let r=p.useContext(Gg),a=Z7(t),l=t.isOpen!=null||t.defaultOpen!=null||!r?a:r,i=yd(n,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!i?null:O.createElement(lD,{portalContainer:e},O.createElement(oN,{...t,tooltipRef:n,isExiting:i}))});function oN(e){let t=p.useContext(Gg),n=p.useRef(null),{overlayProps:r,arrowProps:a,placement:l,triggerAnchorPoint:i}=Q3({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),o=Sf(e.tooltipRef,!!l)||e.isEntering||!1,s=Mn({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:o,isExiting:e.isExiting,state:t}});e=ue(e,r);let{tooltipProps:u}=Cj(e,t),d=Je(e,{global:!0});return O.createElement("div",{...ue(d,s,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":l??void 0,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},O.createElement(J7.Provider,{value:{...a,placement:l,ref:n}},s.children))}function sN(e,t){var n=p.useState(function(){if(typeof window>"u")return t;try{for(var i=window.localStorage.getItem(e),o=i?JSON.parse(i):t,s=0,u=Object.entries(t);s<u.length;s++){var d=u[s][0];if(typeof o[d]>"u")throw new Error("Missing key in local storage")}return o}catch(c){return console.log(c),t}}),r=n[0],a=n[1],l=function(i){try{var o=i instanceof Function?i(r):i;a(o),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(o))}catch(s){console.log(s)}};return[r,l]}var uN=function(){var e=sN("user-preferences",{theme:"system"}),t=e[0],n=e[1];return C.jsx(nN,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return C.jsx(bR,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return C.jsx(QR,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return C.jsx(PR,{})},ariaLabel:"Dark theme"}].map(function(r){return C.jsx(aN,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},Xp=function(e){var t=e.message;return C.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:C.jsx("div",{className:"flex flex-col justify-center",children:C.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},dy=function(e){var t=e.to,n=e.label,r=e.icon;return C.jsxs(g3,{to:t,className:function(a){var l=a.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(l?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,C.jsx("span",{className:"block truncate",children:n})]})},l6=function(e){var t=e.children,n=Se.queue.list.useQuery(),r=n.data,a=n.isLoading,l=n.isError;return C.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[C.jsx("div",{className:"hidden w-64 xl:block",children:C.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[C.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[C.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),C.jsx("defs",{children:C.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{stopColor:"#bbebff"}),C.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),C.jsxs("div",{className:"space-y-8",children:[C.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[C.jsx(FR,{width:28,height:28}),C.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),C.jsxs("div",{className:"w-full space-y-4",children:[C.jsx(dy,{label:"Overview",icon:C.jsx(gR,{className:"mb-0.5",height:16,width:16}),to:"../"}),C.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),C.jsx("div",{className:"w-full space-y-1",children:a?At([],new Array(10),!0).map(function(i,o){return C.jsx(vd,{className:"h-8 w-full"},o)}):l?C.jsx(Xp,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(i){return C.jsx(dy,{to:"../".concat(i.name),label:i.displayName},i.name)})})]})]}),C.jsxs("div",{className:"flex w-full items-center justify-between",children:[C.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:C.jsx(RR,{})}),C.jsx(uN,{})]})]})}),C.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:C.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
88
88
|
* table-core
|
|
89
89
|
*
|
|
90
90
|
* Copyright (c) TanStack
|
|
@@ -93,10 +93,10 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
93
93
|
* LICENSE.md file in the root directory of this source tree.
|
|
94
94
|
*
|
|
95
95
|
* @license MIT
|
|
96
|
-
*/function
|
|
96
|
+
*/function i6(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function aa(e,t){return typeof e=="function"?e(t):e}function on(e,t){return n=>{t.setState(r=>({...r,[e]:aa(n,r[e])}))}}function jf(e){return e instanceof Function}function cN(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function dN(e,t){const n=[],r=a=>{a.forEach(l=>{n.push(l);const i=t(l);i!=null&&i.length&&r(i)})};return r(e),n}function ee(e,t,n){let r=[],a;return l=>{let i;n.key&&n.debug&&(i=Date.now());const o=e(l);if(!(o.length!==r.length||o.some((u,d)=>r[d]!==u)))return a;r=o;let s;if(n.key&&n.debug&&(s=Date.now()),a=t(...o),n==null||n.onChange==null||n.onChange(a),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,d=Math.round((Date.now()-s)*100)/100,c=d/16,f=(h,m)=>{for(h=String(h);h.length<m;)h=" "+h;return h};console.info(`%c⏱ ${f(d,5)} /${f(u,5)} ms`,`
|
|
97
97
|
font-size: .6rem;
|
|
98
98
|
font-weight: bold;
|
|
99
|
-
color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function te(e,t,n,r){return{debug:()=>{var a;return(a=e==null?void 0:e.debugAll)!=null?a:e[t]},key:!1,onChange:r}}function dN(e,t,n,r){const a=()=>{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:a,getContext:ee(()=>[e,n,t,l],(i,o,s,u)=>({table:i,column:o,row:s,cell:u,getValue:u.getValue,renderValue:u.renderValue}),te(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,n,t,e)},{}),l}function fN(e,t,n,r){var a,l;const i={...e._getDefaultColumnDef(),...t},o=i.accessorKey;let s=(a=(l=i.id)!=null?l:o?typeof String.prototype.replaceAll=="function"?o.replaceAll(".","_"):o.replace(/\./g,"_"):void 0)!=null?a:typeof i.header=="string"?i.header:void 0,u;if(i.accessorFn?u=i.accessorFn:o&&(o.includes(".")?u=c=>{let f=c;for(const m of o.split(".")){var h;f=(h=f)==null?void 0:h[m]}return f}:u=c=>c[i.accessorKey]),!s)throw new Error;let d={id:`${String(s)}`,accessorFn:u,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:ee(()=>[!0],()=>{var c;return[d,...(c=d.columns)==null?void 0:c.flatMap(f=>f.getFlatColumns())]},te(e.options,"debugColumns")),getLeafColumns:ee(()=>[e._getOrderColumnsFn()],c=>{var f;if((f=d.columns)!=null&&f.length){let h=d.columns.flatMap(m=>m.getLeafColumns());return c(h)}return[d]},te(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(d,e);return d}const mt="debugHeaders";function db(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],i=o=>{o.subHeaders&&o.subHeaders.length&&o.subHeaders.map(i),l.push(o)};return i(a),l},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(a,e)}),a}const hN={createTable:e=>{e.getHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>{var l,i;const o=(l=r==null?void 0:r.map(d=>n.find(c=>c.id===d)).filter(Boolean))!=null?l:[],s=(i=a==null?void 0:a.map(d=>n.find(c=>c.id===d)).filter(Boolean))!=null?i:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(a!=null&&a.includes(d.id)));return ac(t,[...o,...u,...s],e)},te(e.options,mt)),e.getCenterHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>(n=n.filter(l=>!(r!=null&&r.includes(l.id))&&!(a!=null&&a.includes(l.id))),ac(t,n,e,"center")),te(e.options,mt)),e.getLeftHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return ac(t,l,e,"left")},te(e.options,mt)),e.getRightHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return ac(t,l,e,"right")},te(e.options,mt)),e.getFooterGroups=ee(()=>[e.getHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getLeftFooterGroups=ee(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getCenterFooterGroups=ee(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getRightFooterGroups=ee(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getFlatHeaders=ee(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getLeftFlatHeaders=ee(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getCenterFlatHeaders=ee(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getRightFlatHeaders=ee(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getCenterLeafHeaders=ee(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getLeftLeafHeaders=ee(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getRightLeafHeaders=ee(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getLeafHeaders=ee(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var a,l,i,o,s,u;return[...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(i=(o=n[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[]].map(d=>d.getLeafHeaders()).flat()},te(e.options,mt))}};function ac(e,t,n,r){var a,l;let i=0;const o=function(f,h){h===void 0&&(h=1),i=Math.max(i,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var v;(v=m.columns)!=null&&v.length&&o(m.columns,h+1)},0)};o(e);let s=[];const u=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},v=[];f.forEach(b=>{const g=[...v].reverse()[0],y=b.column.depth===m.depth;let w,C=!1;if(y&&b.column.parent?w=b.column.parent:(w=b.column,C=!0),g&&(g==null?void 0:g.column)===w)g.subHeaders.push(b);else{const E=db(n,w,{id:[r,h,w.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${v.filter(S=>S.column===w).length}`:void 0,depth:h,index:v.length});E.subHeaders.push(b),v.push(E)}m.headers.push(b),b.headerGroup=m}),s.push(m),h>0&&u(v,h-1)},d=t.map((f,h)=>db(n,f,{depth:i,index:h}));u(d,i-1),s.reverse();const c=f=>f.filter(h=>h.column.getIsVisible()).map(h=>{let m=0,v=0,b=[0];h.subHeaders&&h.subHeaders.length?(b=[],c(h.subHeaders).forEach(y=>{let{colSpan:w,rowSpan:C}=y;m+=w,b.push(C)})):m=1;const g=Math.min(...b);return v=v+g,h.colSpan=m,h.rowSpan=v,{colSpan:m,rowSpan:v}});return c((a=(l=s[0])==null?void 0:l.headers)!=null?a:[]),s}const pN=(e,t,n,r,a,l,i)=>{let o={id:t,index:r,original:n,depth:a,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(o._valuesCache.hasOwnProperty(s))return o._valuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return o._valuesCache[s]=u.accessorFn(o.original,r),o._valuesCache[s]},getUniqueValues:s=>{if(o._uniqueValuesCache.hasOwnProperty(s))return o._uniqueValuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(o._uniqueValuesCache[s]=u.columnDef.getUniqueValues(o.original,r),o._uniqueValuesCache[s]):(o._uniqueValuesCache[s]=[o.getValue(s)],o._uniqueValuesCache[s])},renderValue:s=>{var u;return(u=o.getValue(s))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>cN(o.subRows,s=>s.subRows),getParentRow:()=>o.parentId?e.getRow(o.parentId,!0):void 0,getParentRows:()=>{let s=[],u=o;for(;;){const d=u.getParentRow();if(!d)break;s.push(d),u=d}return s.reverse()},getAllCells:ee(()=>[e.getAllLeafColumns()],s=>s.map(u=>dN(e,o,u,u.id)),te(e.options,"debugRows")),_getAllCellsByColumnId:ee(()=>[o.getAllCells()],s=>s.reduce((u,d)=>(u[d.column.id]=d,u),{}),te(e.options,"debugRows"))};for(let s=0;s<e._features.length;s++){const u=e._features[s];u==null||u.createRow==null||u.createRow(o,e)}return o},mN={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},i6=(e,t,n)=>{var r,a;const l=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=e.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(l))};i6.autoRemove=e=>Pn(e);const o6=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};o6.autoRemove=e=>Pn(e);const s6=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};s6.autoRemove=e=>Pn(e);const u6=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};u6.autoRemove=e=>Pn(e);const c6=(e,t,n)=>!n.some(r=>{var a;return!((a=e.getValue(t))!=null&&a.includes(r))});c6.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const d6=(e,t,n)=>n.some(r=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(r)});d6.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const f6=(e,t,n)=>e.getValue(t)===n;f6.autoRemove=e=>Pn(e);const h6=(e,t,n)=>e.getValue(t)==n;h6.autoRemove=e=>Pn(e);const Qg=(e,t,n)=>{let[r,a]=n;const l=e.getValue(t);return l>=r&&l<=a};Qg.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,a=typeof n!="number"?parseFloat(n):n,l=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(a)?1/0:a;if(l>i){const o=l;l=i,i=o}return[l,i]};Qg.autoRemove=e=>Pn(e)||Pn(e[0])&&Pn(e[1]);const Qr={includesString:i6,includesStringSensitive:o6,equalsString:s6,arrIncludes:u6,arrIncludesAll:c6,arrIncludesSome:d6,equals:f6,weakEquals:h6,inNumberRange:Qg};function Pn(e){return e==null||e===""}const gN={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:ln("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Qr.includesString:typeof r=="number"?Qr.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Qr.equals:Array.isArray(r)?Qr.arrIncludes:Qr.weakEquals},e.getFilterFn=()=>{var n,r;return Af(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Qr[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,a;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const a=e.getFilterFn(),l=r==null?void 0:r.find(d=>d.id===e.id),i=aa(n,l?l.value:void 0);if(fb(a,i,e)){var o;return(o=r==null?void 0:r.filter(d=>d.id!==e.id))!=null?o:[]}const s={id:e.id,value:i};if(l){var u;return(u=r==null?void 0:r.map(d=>d.id===e.id?s:d))!=null?u:[]}return r!=null&&r.length?[...r,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=a=>{var l;return(l=aa(t,a))==null?void 0:l.filter(i=>{const o=n.find(s=>s.id===i.id);if(o){const s=o.getFilterFn();if(fb(s,i.value,o))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function fb(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const vN=(e,t,n)=>n.reduce((r,a)=>{const l=a.getValue(e);return r+(typeof l=="number"?l:0)},0),yN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r>l||r===void 0&&l>=l)&&(r=l)}),r},bN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r<l||r===void 0&&l>=l)&&(r=l)}),r},wN=(e,t,n)=>{let r,a;return n.forEach(l=>{const i=l.getValue(e);i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)))}),[r,a]},xN=(e,t)=>{let n=0,r=0;if(t.forEach(a=>{let l=a.getValue(e);l!=null&&(l=+l)>=l&&(++n,r+=l)}),n)return r/n},CN=(e,t)=>{if(!t.length)return;const n=t.map(l=>l.getValue(e));if(!uN(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((l,i)=>l-i);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},SN=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),EN=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,MN=(e,t)=>t.length,J0={sum:vN,min:yN,max:bN,extent:wN,mean:xN,median:CN,unique:SN,uniqueCount:EN,count:MN},ON={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ln("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return J0.sum;if(Object.prototype.toString.call(r)==="[object Date]")return J0.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Af(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:J0[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var a;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function RN(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(l=>l.id===a)).filter(Boolean),...r]}const TN={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ln("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ee(n=>[ys(t,n)],n=>n.findIndex(r=>r.id===e.id),te(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=ys(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const a=ys(t,n);return((r=a[a.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ee(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>a=>{let l=[];if(!(t!=null&&t.length))l=a;else{const i=[...t],o=[...a];for(;o.length&&i.length;){const s=i.shift(),u=o.findIndex(d=>d.id===s);u>-1&&l.push(o.splice(u,1)[0])}l=[...l,...o]}return RN(l,n,r)},te(e.options,"debugTable"))}},eh=()=>({left:[],right:[]}),DN={getInitialState:e=>({columnPinning:eh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ln("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(a=>a.id).filter(Boolean);t.setColumnPinning(a=>{var l,i;if(n==="right"){var o,s;return{left:((o=a==null?void 0:a.left)!=null?o:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((s=a==null?void 0:a.right)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,d;return{left:[...((u=a==null?void 0:a.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((d=a==null?void 0:a.right)!=null?d:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((l=a==null?void 0:a.left)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),right:((i=a==null?void 0:a.right)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var r,a,l;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((a=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(o=>o.id),{left:r,right:a}=t.getState().columnPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();return a?(n=(r=t.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,a)=>{const l=[...r??[],...a??[]];return n.filter(i=>!l.includes(i.column.id))},te(t.options,"debugRows")),e.getLeftVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),te(t.options,"debugRows")),e.getRightVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),te(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?eh():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:eh())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var a,l;return!!((a=r.left)!=null&&a.length||(l=r.right)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getRightLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getCenterLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const a=[...n??[],...r??[]];return t.filter(l=>!a.includes(l.id))},te(e.options,"debugColumns"))}};function jN(e){return e||(typeof document<"u"?document:null)}const lc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},th=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),AN={getDefaultColumnDef:()=>lc,getInitialState:e=>({columnSizing:{},columnSizingInfo:th(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:ln("columnSizing",e),onColumnSizingInfoChange:ln("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,a;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:lc.minSize,(r=l??e.columnDef.size)!=null?r:lc.size),(a=e.columnDef.maxSize)!=null?a:lc.maxSize)},e.getStart=ee(n=>[n,ys(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.getAfter=ee(n=>[n,ys(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...a}=n;return a})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var l;n+=(l=a.column.getSize())!=null?l:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),a=r==null?void 0:r.getCanResize();return l=>{if(!r||!a||(l.persist==null||l.persist(),nh(l)&&l.touches&&l.touches.length>1))return;const i=e.getSize(),o=e?e.getLeafHeaders().map(g=>[g.column.id,g.column.getSize()]):[[r.id,r.getSize()]],s=nh(l)?Math.round(l.touches[0].clientX):l.clientX,u={},d=(g,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(w=>{var C,E;const S=t.options.columnResizeDirection==="rtl"?-1:1,M=(y-((C=w==null?void 0:w.startOffset)!=null?C:0))*S,N=Math.max(M/((E=w==null?void 0:w.startSize)!=null?E:0),-.999999);return w.columnSizingStart.forEach(A=>{let[k,j]=A;u[k]=Math.round(Math.max(j+j*N,0)*100)/100}),{...w,deltaOffset:M,deltaPercentage:N}}),(t.options.columnResizeMode==="onChange"||g==="end")&&t.setColumnSizing(w=>({...w,...u})))},c=g=>d("move",g),f=g=>{d("end",g),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=jN(n),m={moveHandler:g=>c(g.clientX),upHandler:g=>{h==null||h.removeEventListener("mousemove",m.moveHandler),h==null||h.removeEventListener("mouseup",m.upHandler),f(g.clientX)}},v={moveHandler:g=>(g.cancelable&&(g.preventDefault(),g.stopPropagation()),c(g.touches[0].clientX),!1),upHandler:g=>{var y;h==null||h.removeEventListener("touchmove",v.moveHandler),h==null||h.removeEventListener("touchend",v.upHandler),g.cancelable&&(g.preventDefault(),g.stopPropagation()),f((y=g.touches[0])==null?void 0:y.clientX)}},b=NN()?{passive:!1}:!1;nh(l)?(h==null||h.addEventListener("touchmove",v.moveHandler,b),h==null||h.addEventListener("touchend",v.upHandler,b)):(h==null||h.addEventListener("mousemove",m.moveHandler,b),h==null||h.addEventListener("mouseup",m.upHandler,b)),t.setColumnSizingInfo(g=>({...g,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?th():(n=e.initialState.columnSizingInfo)!=null?n:th())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0}}};let ic=null;function NN(){if(typeof ic=="boolean")return ic;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return ic=e,ic}function nh(e){return e.type==="touchstart"}const kN={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ln("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const a=e.columns;return(n=a.length?a.some(l=>l.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ee(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),te(t.options,"debugRows")),e.getVisibleCells=ee(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],te(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>ee(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),te(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((a,l)=>({...a,[l.id]:n||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function ys(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const LN={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},_N={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:ln("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,a,l;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Qr.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Af(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Qr[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},zN={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ln("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var a,l;e.setExpanded(r?{}:(a=(l=e.initialState)==null?void 0:l.expanded)!=null?a:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const l=a.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var a;const l=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(o=>{i[o]=!0}):i=r,n=(a=n)!=null?a:!l,!l&&n)return{...i,[e.id]:!0};if(l&&!n){const{[e.id]:o,...s}=i;return s}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,a;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((a=e.subRows)!=null&&a.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Ip=0,Zp=10,rh=()=>({pageIndex:Ip,pageSize:Zp}),PN={getInitialState:e=>({...e,pagination:{...rh(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:ln("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const a=l=>aa(r,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(a)},e.resetPagination=r=>{var a;e.setPagination(r?rh():(a=e.initialState.pagination)!=null?a:rh())},e.setPageIndex=r=>{e.setPagination(a=>{let l=aa(r,a.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...a,pageIndex:l}})},e.resetPageIndex=r=>{var a,l;e.setPageIndex(r?Ip:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?a:Ip)},e.resetPageSize=r=>{var a,l;e.setPageSize(r?Zp:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?a:Zp)},e.setPageSize=r=>{e.setPagination(a=>{const l=Math.max(1,aa(r,a.pageSize)),i=a.pageSize*a.pageIndex,o=Math.floor(i/l);return{...a,pageIndex:o,pageSize:l}})},e.setPageCount=r=>e.setPagination(a=>{var l;let i=aa(r,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...a,pageCount:i}}),e.getPageOptions=ee(()=>[e.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((l,i)=>i)),a},te(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,a=e.getPageCount();return a===-1?!0:a===0?!1:r<a-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ah=()=>({top:[],bottom:[]}),HN={getInitialState:e=>({rowPinning:ah(),...e}),getDefaultOptions:e=>({onRowPinningChange:ln("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,a)=>{const l=r?e.getLeafRows().map(s=>{let{id:u}=s;return u}):[],i=a?e.getParentRows().map(s=>{let{id:u}=s;return u}):[],o=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var u,d;if(n==="bottom"){var c,f;return{top:((c=s==null?void 0:s.top)!=null?c:[]).filter(v=>!(o!=null&&o.has(v))),bottom:[...((f=s==null?void 0:s.bottom)!=null?f:[]).filter(v=>!(o!=null&&o.has(v))),...Array.from(o)]}}if(n==="top"){var h,m;return{top:[...((h=s==null?void 0:s.top)!=null?h:[]).filter(v=>!(o!=null&&o.has(v))),...Array.from(o)],bottom:((m=s==null?void 0:s.bottom)!=null?m:[]).filter(v=>!(o!=null&&o.has(v)))}}return{top:((u=s==null?void 0:s.top)!=null?u:[]).filter(v=>!(o!=null&&o.has(v))),bottom:((d=s==null?void 0:s.bottom)!=null?d:[]).filter(v=>!(o!=null&&o.has(v)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=t.options;return typeof r=="function"?r(e):(n=r??a)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:a}=t.getState().rowPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();if(!a)return-1;const l=(n=a==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:o}=i;return o});return(r=l==null?void 0:l.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ah():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ah())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var a,l;return!!((a=r.top)!=null&&a.length||(l=r.bottom)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var a;return((a=e.options.keepPinnedRows)==null||a?(n??[]).map(l=>{const i=e.getRow(l,!0);return i.getIsAllParentsExpanded()?i:null}):(n??[]).map(l=>t.find(i=>i.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),te(e.options,"debugRows")),e.getBottomRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),te(e.options,"debugRows")),e.getCenterRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const a=new Set([...n??[],...r??[]]);return t.filter(l=>!a.has(l.id))},te(e.options,"debugRows"))}},KN={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ln("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},a=e.getPreGroupedRowModel().flatRows;return t?a.forEach(l=>{l.getCanSelect()&&(r[l.id]=!0)}):a.forEach(l=>{delete r[l.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),a={...n};return e.getRowModel().rows.forEach(l=>{$p(a,l.id,r,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?lh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getFilteredSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?lh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getGroupedSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?lh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(a=>!n[a.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const a=e.getIsSelected();t.setRowSelection(l=>{var i;if(n=typeof n<"u"?n:!a,e.getCanSelect()&&a===n)return l;const o={...l};return $p(o,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),o})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Xg(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Wp(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Wp(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var a;n&&e.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},$p=(e,t,n,r,a)=>{var l;const i=a.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(o=>delete e[o]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(o=>$p(e,o.id,n,r,a))};function lh(e,t){const n=e.getState().rowSelection,r=[],a={},l=function(i,o){return i.map(s=>{var u;const d=Xg(s,n);if(d&&(r.push(s),a[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:l(s.subRows)}),d)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:r,rowsById:a}}function Xg(e,t){var n;return(n=t[e.id])!=null?n:!1}function Wp(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let a=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!a)&&(i.getCanSelect()&&(Xg(i,t)?l=!0:a=!1),i.subRows&&i.subRows.length)){const o=Wp(i,t);o==="all"?l=!0:(o==="some"&&(l=!0),a=!1)}}),a?"all":l?"some":!1}const Jp=/([0-9]+)/gm,UN=(e,t,n)=>p6(Ea(e.getValue(n)).toLowerCase(),Ea(t.getValue(n)).toLowerCase()),BN=(e,t,n)=>p6(Ea(e.getValue(n)),Ea(t.getValue(n))),qN=(e,t,n)=>Yg(Ea(e.getValue(n)).toLowerCase(),Ea(t.getValue(n)).toLowerCase()),FN=(e,t,n)=>Yg(Ea(e.getValue(n)),Ea(t.getValue(n))),VN=(e,t,n)=>{const r=e.getValue(n),a=t.getValue(n);return r>a?1:r<a?-1:0},GN=(e,t,n)=>Yg(e.getValue(n),t.getValue(n));function Yg(e,t){return e===t?0:e>t?1:-1}function Ea(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function p6(e,t){const n=e.split(Jp).filter(Boolean),r=t.split(Jp).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),l=r.shift(),i=parseInt(a,10),o=parseInt(l,10),s=[i,o].sort();if(isNaN(s[0])){if(a>l)return 1;if(l>a)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}return n.length-r.length}const Ko={alphanumeric:UN,alphanumericCaseSensitive:BN,text:qN,textCaseSensitive:FN,datetime:VN,basic:GN},QN={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:ln("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const l=a==null?void 0:a.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return Ko.datetime;if(typeof l=="string"&&(r=!0,l.split(Jp).length>1))return Ko.alphanumeric}return r?Ko.text:Ko.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Af(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ko[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const a=e.getNextSortingOrder(),l=typeof n<"u"&&n!==null;t.setSorting(i=>{const o=i==null?void 0:i.find(h=>h.id===e.id),s=i==null?void 0:i.findIndex(h=>h.id===e.id);let u=[],d,c=l?n:a==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?o?d="toggle":d="add":i!=null&&i.length&&s!==i.length-1?d="replace":o?d="toggle":d="replace",d==="toggle"&&(l||a||(d="remove")),d==="add"){var f;u=[...i,{id:e.id,desc:c}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?u=i.map(h=>h.id===e.id?{...h,desc:c}:h):d==="remove"?u=i.filter(h=>h.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,a;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(a=t.options.enableMultiRemove)!=null)||a)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(a=>a.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},XN=[hN,kN,TN,DN,mN,gN,LN,_N,QN,ON,zN,PN,HN,KN,AN];function YN(e){var t,n;const r=[...XN,...(t=e._features)!=null?t:[]];let a={_features:r};const l=a._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(a)),{}),i=c=>a.options.mergeOptions?a.options.mergeOptions(l,c):{...l,...c};let o={...(n=e.initialState)!=null?n:{}};a._features.forEach(c=>{var f;o=(f=c.getInitialState==null?void 0:c.getInitialState(o))!=null?f:o});const s=[];let u=!1;const d={_features:r,options:{...l,...e},initialState:o,_queue:c=>{s.push(c),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{a.setState(a.initialState)},setOptions:c=>{const f=aa(c,a.options);a.options=i(f)},getState:()=>a.options.state,setState:c=>{a.options.onStateChange==null||a.options.onStateChange(c)},_getRowId:(c,f,h)=>{var m;return(m=a.options.getRowId==null?void 0:a.options.getRowId(c,f,h))!=null?m:`${h?[h.id,f].join("."):f}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(c,f)=>{let h=(f?a.getPrePaginationRowModel():a.getRowModel()).rowsById[c];if(!h&&(h=a.getCoreRowModel().rowsById[c],!h))throw new Error;return h},_getDefaultColumnDef:ee(()=>[a.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:h=>{const m=h.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:h=>{var m,v;return(m=(v=h.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...a._features.reduce((h,m)=>Object.assign(h,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},te(e,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:ee(()=>[a._getColumnDefs()],c=>{const f=function(h,m,v){return v===void 0&&(v=0),h.map(b=>{const g=fN(a,b,v,m),y=b;return g.columns=y.columns?f(y.columns,g,v+1):[],g})};return f(c)},te(e,"debugColumns")),getAllFlatColumns:ee(()=>[a.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),te(e,"debugColumns")),_getAllFlatColumnsById:ee(()=>[a.getAllFlatColumns()],c=>c.reduce((f,h)=>(f[h.id]=h,f),{}),te(e,"debugColumns")),getAllLeafColumns:ee(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(c,f)=>{let h=c.flatMap(m=>m.getLeafColumns());return f(h)},te(e,"debugColumns")),getColumn:c=>a._getAllFlatColumnsById()[c]};Object.assign(a,d);for(let c=0;c<a._features.length;c++){const f=a._features[c];f==null||f.createTable==null||f.createTable(a)}return a}function m6(){return e=>ee(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,l,i){l===void 0&&(l=0);const o=[];for(let u=0;u<a.length;u++){const d=pN(e,e._getRowId(a[u],u,i),a[u],u,l,void 0,i==null?void 0:i.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,o.push(d),e.options.getSubRows){var s;d.originalSubRows=e.options.getSubRows(a[u],u),(s=d.originalSubRows)!=null&&s.length&&(d.subRows=r(d.originalSubRows,l+1,d))}}return o};return n.rows=r(t),n},te(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
99
|
+
color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function te(e,t,n,r){return{debug:()=>{var a;return(a=e==null?void 0:e.debugAll)!=null?a:e[t]},key:!1,onChange:r}}function fN(e,t,n,r){const a=()=>{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:a,getContext:ee(()=>[e,n,t,l],(i,o,s,u)=>({table:i,column:o,row:s,cell:u,getValue:u.getValue,renderValue:u.renderValue}),te(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,n,t,e)},{}),l}function hN(e,t,n,r){var a,l;const i={...e._getDefaultColumnDef(),...t},o=i.accessorKey;let s=(a=(l=i.id)!=null?l:o?typeof String.prototype.replaceAll=="function"?o.replaceAll(".","_"):o.replace(/\./g,"_"):void 0)!=null?a:typeof i.header=="string"?i.header:void 0,u;if(i.accessorFn?u=i.accessorFn:o&&(o.includes(".")?u=c=>{let f=c;for(const m of o.split(".")){var h;f=(h=f)==null?void 0:h[m]}return f}:u=c=>c[i.accessorKey]),!s)throw new Error;let d={id:`${String(s)}`,accessorFn:u,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:ee(()=>[!0],()=>{var c;return[d,...(c=d.columns)==null?void 0:c.flatMap(f=>f.getFlatColumns())]},te(e.options,"debugColumns")),getLeafColumns:ee(()=>[e._getOrderColumnsFn()],c=>{var f;if((f=d.columns)!=null&&f.length){let h=d.columns.flatMap(m=>m.getLeafColumns());return c(h)}return[d]},te(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(d,e);return d}const mt="debugHeaders";function fy(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],i=o=>{o.subHeaders&&o.subHeaders.length&&o.subHeaders.map(i),l.push(o)};return i(a),l},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(a,e)}),a}const pN={createTable:e=>{e.getHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>{var l,i;const o=(l=r==null?void 0:r.map(d=>n.find(c=>c.id===d)).filter(Boolean))!=null?l:[],s=(i=a==null?void 0:a.map(d=>n.find(c=>c.id===d)).filter(Boolean))!=null?i:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(a!=null&&a.includes(d.id)));return ac(t,[...o,...u,...s],e)},te(e.options,mt)),e.getCenterHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>(n=n.filter(l=>!(r!=null&&r.includes(l.id))&&!(a!=null&&a.includes(l.id))),ac(t,n,e,"center")),te(e.options,mt)),e.getLeftHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return ac(t,l,e,"left")},te(e.options,mt)),e.getRightHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return ac(t,l,e,"right")},te(e.options,mt)),e.getFooterGroups=ee(()=>[e.getHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getLeftFooterGroups=ee(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getCenterFooterGroups=ee(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getRightFooterGroups=ee(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getFlatHeaders=ee(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getLeftFlatHeaders=ee(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getCenterFlatHeaders=ee(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getRightFlatHeaders=ee(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getCenterLeafHeaders=ee(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getLeftLeafHeaders=ee(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getRightLeafHeaders=ee(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getLeafHeaders=ee(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var a,l,i,o,s,u;return[...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(i=(o=n[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[]].map(d=>d.getLeafHeaders()).flat()},te(e.options,mt))}};function ac(e,t,n,r){var a,l;let i=0;const o=function(f,h){h===void 0&&(h=1),i=Math.max(i,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var b;(b=m.columns)!=null&&b.length&&o(m.columns,h+1)},0)};o(e);let s=[];const u=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},b=[];f.forEach(y=>{const g=[...b].reverse()[0],v=y.column.depth===m.depth;let x,w=!1;if(v&&y.column.parent?x=y.column.parent:(x=y.column,w=!0),g&&(g==null?void 0:g.column)===x)g.subHeaders.push(y);else{const E=fy(n,x,{id:[r,h,x.id,y==null?void 0:y.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${b.filter(S=>S.column===x).length}`:void 0,depth:h,index:b.length});E.subHeaders.push(y),b.push(E)}m.headers.push(y),y.headerGroup=m}),s.push(m),h>0&&u(b,h-1)},d=t.map((f,h)=>fy(n,f,{depth:i,index:h}));u(d,i-1),s.reverse();const c=f=>f.filter(h=>h.column.getIsVisible()).map(h=>{let m=0,b=0,y=[0];h.subHeaders&&h.subHeaders.length?(y=[],c(h.subHeaders).forEach(v=>{let{colSpan:x,rowSpan:w}=v;m+=x,y.push(w)})):m=1;const g=Math.min(...y);return b=b+g,h.colSpan=m,h.rowSpan=b,{colSpan:m,rowSpan:b}});return c((a=(l=s[0])==null?void 0:l.headers)!=null?a:[]),s}const mN=(e,t,n,r,a,l,i)=>{let o={id:t,index:r,original:n,depth:a,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(o._valuesCache.hasOwnProperty(s))return o._valuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return o._valuesCache[s]=u.accessorFn(o.original,r),o._valuesCache[s]},getUniqueValues:s=>{if(o._uniqueValuesCache.hasOwnProperty(s))return o._uniqueValuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(o._uniqueValuesCache[s]=u.columnDef.getUniqueValues(o.original,r),o._uniqueValuesCache[s]):(o._uniqueValuesCache[s]=[o.getValue(s)],o._uniqueValuesCache[s])},renderValue:s=>{var u;return(u=o.getValue(s))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>dN(o.subRows,s=>s.subRows),getParentRow:()=>o.parentId?e.getRow(o.parentId,!0):void 0,getParentRows:()=>{let s=[],u=o;for(;;){const d=u.getParentRow();if(!d)break;s.push(d),u=d}return s.reverse()},getAllCells:ee(()=>[e.getAllLeafColumns()],s=>s.map(u=>fN(e,o,u,u.id)),te(e.options,"debugRows")),_getAllCellsByColumnId:ee(()=>[o.getAllCells()],s=>s.reduce((u,d)=>(u[d.column.id]=d,u),{}),te(e.options,"debugRows"))};for(let s=0;s<e._features.length;s++){const u=e._features[s];u==null||u.createRow==null||u.createRow(o,e)}return o},gN={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},o6=(e,t,n)=>{var r,a;const l=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=e.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(l))};o6.autoRemove=e=>Pn(e);const s6=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};s6.autoRemove=e=>Pn(e);const u6=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};u6.autoRemove=e=>Pn(e);const c6=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};c6.autoRemove=e=>Pn(e);const d6=(e,t,n)=>!n.some(r=>{var a;return!((a=e.getValue(t))!=null&&a.includes(r))});d6.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const f6=(e,t,n)=>n.some(r=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(r)});f6.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const h6=(e,t,n)=>e.getValue(t)===n;h6.autoRemove=e=>Pn(e);const p6=(e,t,n)=>e.getValue(t)==n;p6.autoRemove=e=>Pn(e);const Qg=(e,t,n)=>{let[r,a]=n;const l=e.getValue(t);return l>=r&&l<=a};Qg.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,a=typeof n!="number"?parseFloat(n):n,l=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(a)?1/0:a;if(l>i){const o=l;l=i,i=o}return[l,i]};Qg.autoRemove=e=>Pn(e)||Pn(e[0])&&Pn(e[1]);const Qr={includesString:o6,includesStringSensitive:s6,equalsString:u6,arrIncludes:c6,arrIncludesAll:d6,arrIncludesSome:f6,equals:h6,weakEquals:p6,inNumberRange:Qg};function Pn(e){return e==null||e===""}const vN={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:on("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Qr.includesString:typeof r=="number"?Qr.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Qr.equals:Array.isArray(r)?Qr.arrIncludes:Qr.weakEquals},e.getFilterFn=()=>{var n,r;return jf(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Qr[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,a;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const a=e.getFilterFn(),l=r==null?void 0:r.find(d=>d.id===e.id),i=aa(n,l?l.value:void 0);if(hy(a,i,e)){var o;return(o=r==null?void 0:r.filter(d=>d.id!==e.id))!=null?o:[]}const s={id:e.id,value:i};if(l){var u;return(u=r==null?void 0:r.map(d=>d.id===e.id?s:d))!=null?u:[]}return r!=null&&r.length?[...r,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=a=>{var l;return(l=aa(t,a))==null?void 0:l.filter(i=>{const o=n.find(s=>s.id===i.id);if(o){const s=o.getFilterFn();if(hy(s,i.value,o))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function hy(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const bN=(e,t,n)=>n.reduce((r,a)=>{const l=a.getValue(e);return r+(typeof l=="number"?l:0)},0),yN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r>l||r===void 0&&l>=l)&&(r=l)}),r},xN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r<l||r===void 0&&l>=l)&&(r=l)}),r},wN=(e,t,n)=>{let r,a;return n.forEach(l=>{const i=l.getValue(e);i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)))}),[r,a]},CN=(e,t)=>{let n=0,r=0;if(t.forEach(a=>{let l=a.getValue(e);l!=null&&(l=+l)>=l&&(++n,r+=l)}),n)return r/n},SN=(e,t)=>{if(!t.length)return;const n=t.map(l=>l.getValue(e));if(!cN(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((l,i)=>l-i);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},EN=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),MN=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,ON=(e,t)=>t.length,J0={sum:bN,min:yN,max:xN,extent:wN,mean:CN,median:SN,unique:EN,uniqueCount:MN,count:ON},RN={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:on("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return J0.sum;if(Object.prototype.toString.call(r)==="[object Date]")return J0.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return jf(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:J0[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var a;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function TN(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(l=>l.id===a)).filter(Boolean),...r]}const kN={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:on("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ee(n=>[ys(t,n)],n=>n.findIndex(r=>r.id===e.id),te(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=ys(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const a=ys(t,n);return((r=a[a.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ee(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>a=>{let l=[];if(!(t!=null&&t.length))l=a;else{const i=[...t],o=[...a];for(;o.length&&i.length;){const s=i.shift(),u=o.findIndex(d=>d.id===s);u>-1&&l.push(o.splice(u,1)[0])}l=[...l,...o]}return TN(l,n,r)},te(e.options,"debugTable"))}},eh=()=>({left:[],right:[]}),DN={getInitialState:e=>({columnPinning:eh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:on("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(a=>a.id).filter(Boolean);t.setColumnPinning(a=>{var l,i;if(n==="right"){var o,s;return{left:((o=a==null?void 0:a.left)!=null?o:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((s=a==null?void 0:a.right)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,d;return{left:[...((u=a==null?void 0:a.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((d=a==null?void 0:a.right)!=null?d:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((l=a==null?void 0:a.left)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),right:((i=a==null?void 0:a.right)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var r,a,l;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((a=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(o=>o.id),{left:r,right:a}=t.getState().columnPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();return a?(n=(r=t.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,a)=>{const l=[...r??[],...a??[]];return n.filter(i=>!l.includes(i.column.id))},te(t.options,"debugRows")),e.getLeftVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),te(t.options,"debugRows")),e.getRightVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),te(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?eh():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:eh())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var a,l;return!!((a=r.left)!=null&&a.length||(l=r.right)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getRightLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getCenterLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const a=[...n??[],...r??[]];return t.filter(l=>!a.includes(l.id))},te(e.options,"debugColumns"))}};function jN(e){return e||(typeof document<"u"?document:null)}const lc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},th=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),NN={getDefaultColumnDef:()=>lc,getInitialState:e=>({columnSizing:{},columnSizingInfo:th(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:on("columnSizing",e),onColumnSizingInfoChange:on("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,a;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:lc.minSize,(r=l??e.columnDef.size)!=null?r:lc.size),(a=e.columnDef.maxSize)!=null?a:lc.maxSize)},e.getStart=ee(n=>[n,ys(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.getAfter=ee(n=>[n,ys(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...a}=n;return a})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var l;n+=(l=a.column.getSize())!=null?l:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),a=r==null?void 0:r.getCanResize();return l=>{if(!r||!a||(l.persist==null||l.persist(),nh(l)&&l.touches&&l.touches.length>1))return;const i=e.getSize(),o=e?e.getLeafHeaders().map(g=>[g.column.id,g.column.getSize()]):[[r.id,r.getSize()]],s=nh(l)?Math.round(l.touches[0].clientX):l.clientX,u={},d=(g,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(x=>{var w,E;const S=t.options.columnResizeDirection==="rtl"?-1:1,M=(v-((w=x==null?void 0:x.startOffset)!=null?w:0))*S,N=Math.max(M/((E=x==null?void 0:x.startSize)!=null?E:0),-.999999);return x.columnSizingStart.forEach(j=>{let[A,D]=j;u[A]=Math.round(Math.max(D+D*N,0)*100)/100}),{...x,deltaOffset:M,deltaPercentage:N}}),(t.options.columnResizeMode==="onChange"||g==="end")&&t.setColumnSizing(x=>({...x,...u})))},c=g=>d("move",g),f=g=>{d("end",g),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=jN(n),m={moveHandler:g=>c(g.clientX),upHandler:g=>{h==null||h.removeEventListener("mousemove",m.moveHandler),h==null||h.removeEventListener("mouseup",m.upHandler),f(g.clientX)}},b={moveHandler:g=>(g.cancelable&&(g.preventDefault(),g.stopPropagation()),c(g.touches[0].clientX),!1),upHandler:g=>{var v;h==null||h.removeEventListener("touchmove",b.moveHandler),h==null||h.removeEventListener("touchend",b.upHandler),g.cancelable&&(g.preventDefault(),g.stopPropagation()),f((v=g.touches[0])==null?void 0:v.clientX)}},y=AN()?{passive:!1}:!1;nh(l)?(h==null||h.addEventListener("touchmove",b.moveHandler,y),h==null||h.addEventListener("touchend",b.upHandler,y)):(h==null||h.addEventListener("mousemove",m.moveHandler,y),h==null||h.addEventListener("mouseup",m.upHandler,y)),t.setColumnSizingInfo(g=>({...g,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?th():(n=e.initialState.columnSizingInfo)!=null?n:th())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0}}};let ic=null;function AN(){if(typeof ic=="boolean")return ic;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return ic=e,ic}function nh(e){return e.type==="touchstart"}const LN={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:on("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const a=e.columns;return(n=a.length?a.some(l=>l.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ee(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),te(t.options,"debugRows")),e.getVisibleCells=ee(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],te(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>ee(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),te(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((a,l)=>({...a,[l.id]:n||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function ys(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const _N={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},zN={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:on("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,a,l;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Qr.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return jf(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Qr[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},PN={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:on("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var a,l;e.setExpanded(r?{}:(a=(l=e.initialState)==null?void 0:l.expanded)!=null?a:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const l=a.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var a;const l=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(o=>{i[o]=!0}):i=r,n=(a=n)!=null?a:!l,!l&&n)return{...i,[e.id]:!0};if(l&&!n){const{[e.id]:o,...s}=i;return s}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,a;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((a=e.subRows)!=null&&a.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Yp=0,Zp=10,rh=()=>({pageIndex:Yp,pageSize:Zp}),HN={getInitialState:e=>({...e,pagination:{...rh(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:on("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const a=l=>aa(r,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(a)},e.resetPagination=r=>{var a;e.setPagination(r?rh():(a=e.initialState.pagination)!=null?a:rh())},e.setPageIndex=r=>{e.setPagination(a=>{let l=aa(r,a.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...a,pageIndex:l}})},e.resetPageIndex=r=>{var a,l;e.setPageIndex(r?Yp:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?a:Yp)},e.resetPageSize=r=>{var a,l;e.setPageSize(r?Zp:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?a:Zp)},e.setPageSize=r=>{e.setPagination(a=>{const l=Math.max(1,aa(r,a.pageSize)),i=a.pageSize*a.pageIndex,o=Math.floor(i/l);return{...a,pageIndex:o,pageSize:l}})},e.setPageCount=r=>e.setPagination(a=>{var l;let i=aa(r,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...a,pageCount:i}}),e.getPageOptions=ee(()=>[e.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((l,i)=>i)),a},te(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,a=e.getPageCount();return a===-1?!0:a===0?!1:r<a-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ah=()=>({top:[],bottom:[]}),KN={getInitialState:e=>({rowPinning:ah(),...e}),getDefaultOptions:e=>({onRowPinningChange:on("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,a)=>{const l=r?e.getLeafRows().map(s=>{let{id:u}=s;return u}):[],i=a?e.getParentRows().map(s=>{let{id:u}=s;return u}):[],o=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var u,d;if(n==="bottom"){var c,f;return{top:((c=s==null?void 0:s.top)!=null?c:[]).filter(b=>!(o!=null&&o.has(b))),bottom:[...((f=s==null?void 0:s.bottom)!=null?f:[]).filter(b=>!(o!=null&&o.has(b))),...Array.from(o)]}}if(n==="top"){var h,m;return{top:[...((h=s==null?void 0:s.top)!=null?h:[]).filter(b=>!(o!=null&&o.has(b))),...Array.from(o)],bottom:((m=s==null?void 0:s.bottom)!=null?m:[]).filter(b=>!(o!=null&&o.has(b)))}}return{top:((u=s==null?void 0:s.top)!=null?u:[]).filter(b=>!(o!=null&&o.has(b))),bottom:((d=s==null?void 0:s.bottom)!=null?d:[]).filter(b=>!(o!=null&&o.has(b)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=t.options;return typeof r=="function"?r(e):(n=r??a)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:a}=t.getState().rowPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();if(!a)return-1;const l=(n=a==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:o}=i;return o});return(r=l==null?void 0:l.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ah():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ah())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var a,l;return!!((a=r.top)!=null&&a.length||(l=r.bottom)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var a;return((a=e.options.keepPinnedRows)==null||a?(n??[]).map(l=>{const i=e.getRow(l,!0);return i.getIsAllParentsExpanded()?i:null}):(n??[]).map(l=>t.find(i=>i.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),te(e.options,"debugRows")),e.getBottomRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),te(e.options,"debugRows")),e.getCenterRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const a=new Set([...n??[],...r??[]]);return t.filter(l=>!a.has(l.id))},te(e.options,"debugRows"))}},UN={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:on("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},a=e.getPreGroupedRowModel().flatRows;return t?a.forEach(l=>{l.getCanSelect()&&(r[l.id]=!0)}):a.forEach(l=>{delete r[l.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),a={...n};return e.getRowModel().rows.forEach(l=>{$p(a,l.id,r,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?lh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getFilteredSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?lh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getGroupedSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?lh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(a=>!n[a.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const a=e.getIsSelected();t.setRowSelection(l=>{var i;if(n=typeof n<"u"?n:!a,e.getCanSelect()&&a===n)return l;const o={...l};return $p(o,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),o})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ig(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Wp(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Wp(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var a;n&&e.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},$p=(e,t,n,r,a)=>{var l;const i=a.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(o=>delete e[o]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(o=>$p(e,o.id,n,r,a))};function lh(e,t){const n=e.getState().rowSelection,r=[],a={},l=function(i,o){return i.map(s=>{var u;const d=Ig(s,n);if(d&&(r.push(s),a[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:l(s.subRows)}),d)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:r,rowsById:a}}function Ig(e,t){var n;return(n=t[e.id])!=null?n:!1}function Wp(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let a=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!a)&&(i.getCanSelect()&&(Ig(i,t)?l=!0:a=!1),i.subRows&&i.subRows.length)){const o=Wp(i,t);o==="all"?l=!0:(o==="some"&&(l=!0),a=!1)}}),a?"all":l?"some":!1}const Jp=/([0-9]+)/gm,BN=(e,t,n)=>m6(Ea(e.getValue(n)).toLowerCase(),Ea(t.getValue(n)).toLowerCase()),qN=(e,t,n)=>m6(Ea(e.getValue(n)),Ea(t.getValue(n))),FN=(e,t,n)=>Xg(Ea(e.getValue(n)).toLowerCase(),Ea(t.getValue(n)).toLowerCase()),VN=(e,t,n)=>Xg(Ea(e.getValue(n)),Ea(t.getValue(n))),GN=(e,t,n)=>{const r=e.getValue(n),a=t.getValue(n);return r>a?1:r<a?-1:0},QN=(e,t,n)=>Xg(e.getValue(n),t.getValue(n));function Xg(e,t){return e===t?0:e>t?1:-1}function Ea(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function m6(e,t){const n=e.split(Jp).filter(Boolean),r=t.split(Jp).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),l=r.shift(),i=parseInt(a,10),o=parseInt(l,10),s=[i,o].sort();if(isNaN(s[0])){if(a>l)return 1;if(l>a)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}return n.length-r.length}const Uo={alphanumeric:BN,alphanumericCaseSensitive:qN,text:FN,textCaseSensitive:VN,datetime:GN,basic:QN},IN={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:on("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const l=a==null?void 0:a.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return Uo.datetime;if(typeof l=="string"&&(r=!0,l.split(Jp).length>1))return Uo.alphanumeric}return r?Uo.text:Uo.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return jf(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Uo[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const a=e.getNextSortingOrder(),l=typeof n<"u"&&n!==null;t.setSorting(i=>{const o=i==null?void 0:i.find(h=>h.id===e.id),s=i==null?void 0:i.findIndex(h=>h.id===e.id);let u=[],d,c=l?n:a==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?o?d="toggle":d="add":i!=null&&i.length&&s!==i.length-1?d="replace":o?d="toggle":d="replace",d==="toggle"&&(l||a||(d="remove")),d==="add"){var f;u=[...i,{id:e.id,desc:c}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?u=i.map(h=>h.id===e.id?{...h,desc:c}:h):d==="remove"?u=i.filter(h=>h.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,a;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(a=t.options.enableMultiRemove)!=null)||a)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(a=>a.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},XN=[pN,LN,kN,DN,gN,vN,_N,zN,IN,RN,PN,HN,KN,UN,NN];function YN(e){var t,n;const r=[...XN,...(t=e._features)!=null?t:[]];let a={_features:r};const l=a._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(a)),{}),i=c=>a.options.mergeOptions?a.options.mergeOptions(l,c):{...l,...c};let o={...(n=e.initialState)!=null?n:{}};a._features.forEach(c=>{var f;o=(f=c.getInitialState==null?void 0:c.getInitialState(o))!=null?f:o});const s=[];let u=!1;const d={_features:r,options:{...l,...e},initialState:o,_queue:c=>{s.push(c),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{a.setState(a.initialState)},setOptions:c=>{const f=aa(c,a.options);a.options=i(f)},getState:()=>a.options.state,setState:c=>{a.options.onStateChange==null||a.options.onStateChange(c)},_getRowId:(c,f,h)=>{var m;return(m=a.options.getRowId==null?void 0:a.options.getRowId(c,f,h))!=null?m:`${h?[h.id,f].join("."):f}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(c,f)=>{let h=(f?a.getPrePaginationRowModel():a.getRowModel()).rowsById[c];if(!h&&(h=a.getCoreRowModel().rowsById[c],!h))throw new Error;return h},_getDefaultColumnDef:ee(()=>[a.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:h=>{const m=h.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:h=>{var m,b;return(m=(b=h.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...a._features.reduce((h,m)=>Object.assign(h,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},te(e,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:ee(()=>[a._getColumnDefs()],c=>{const f=function(h,m,b){return b===void 0&&(b=0),h.map(y=>{const g=hN(a,y,b,m),v=y;return g.columns=v.columns?f(v.columns,g,b+1):[],g})};return f(c)},te(e,"debugColumns")),getAllFlatColumns:ee(()=>[a.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),te(e,"debugColumns")),_getAllFlatColumnsById:ee(()=>[a.getAllFlatColumns()],c=>c.reduce((f,h)=>(f[h.id]=h,f),{}),te(e,"debugColumns")),getAllLeafColumns:ee(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(c,f)=>{let h=c.flatMap(m=>m.getLeafColumns());return f(h)},te(e,"debugColumns")),getColumn:c=>a._getAllFlatColumnsById()[c]};Object.assign(a,d);for(let c=0;c<a._features.length;c++){const f=a._features[c];f==null||f.createTable==null||f.createTable(a)}return a}function g6(){return e=>ee(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,l,i){l===void 0&&(l=0);const o=[];for(let u=0;u<a.length;u++){const d=mN(e,e._getRowId(a[u],u,i),a[u],u,l,void 0,i==null?void 0:i.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,o.push(d),e.options.getSubRows){var s;d.originalSubRows=e.options.getSubRows(a[u],u),(s=d.originalSubRows)!=null&&s.length&&(d.subRows=r(d.originalSubRows,l+1,d))}}return o};return n.rows=r(t),n},te(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
100
100
|
* react-table
|
|
101
101
|
*
|
|
102
102
|
* Copyright (c) TanStack
|
|
@@ -105,10 +105,10 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
105
105
|
* LICENSE.md file in the root directory of this source tree.
|
|
106
106
|
*
|
|
107
107
|
* @license MIT
|
|
108
|
-
*/function jd(e,t){return e?IN(e)?p.createElement(e,t):e:null}function IN(e){return ZN(e)||typeof e=="function"||$N(e)}function ZN(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function $N(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function g6(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=p.useState(()=>({current:YN(t)})),[r,a]=p.useState(()=>n.current.initialState);return n.current.setOptions(l=>({...l,...e,state:{...r,...e.state},onStateChange:i=>{a(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const v6=6048e5,WN=864e5,hb=6e4,pb=525600,hi=43200,Ad=1440,mb=Symbol.for("constructDateFrom");function Ar(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&mb in e?e[mb](t):e instanceof Date?new e.constructor(t):new Date(t)}function st(e,t){return Ar(t||e,e)}let JN={};function io(){return JN}function Gs(e,t){var n,r,a,l;const i=io(),o=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??i.weekStartsOn??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??0,s=st(e,t==null?void 0:t.in),u=s.getDay(),d=(u<o?7:0)+u-o;return s.setDate(s.getDate()-d),s.setHours(0,0,0,0),s}function Nd(e,t){return Gs(e,{...t,weekStartsOn:1})}function y6(e,t){const n=st(e,void 0),r=n.getFullYear(),a=Ar(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const l=Nd(a),i=Ar(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Nd(i);return n.getTime()>=l.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function Ui(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function gu(e,...t){const n=Ar.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function gb(e,t){const n=st(e,void 0);return n.setHours(0,0,0,0),n}function ek(e,t,n){const[r,a]=gu(void 0,e,t),l=gb(r),i=gb(a),o=+l-Ui(l),s=+i-Ui(i);return Math.round((o-s)/WN)}function tk(e,t){const n=y6(e),r=Ar(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Nd(r)}function bs(e,t){const n=+st(e)-+st(t);return n<0?-1:n>0?1:n}function nk(e){return Ar(e,Date.now())}function rk(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ak(e){return!(!rk(e)&&typeof e!="number"||isNaN(+st(e)))}function lk(e,t,n){const[r,a]=gu(void 0,e,t),l=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return l*12+i}function b6(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function ik(e,t){return+st(e)-+st(t)}function ok(e,t){const n=st(e,void 0);return n.setHours(23,59,59,999),n}function sk(e,t){const n=st(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function uk(e,t){const n=st(e,void 0);return+ok(n)==+sk(n)}function ck(e,t,n){const[r,a,l]=gu(void 0,e,e,t),i=bs(a,l),o=Math.abs(lk(a,l));if(o<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-i*o);let s=bs(a,l)===-i;uk(r)&&o===1&&bs(r,l)===1&&(s=!1);const u=i*(o-+s);return u===0?0:u}function dk(e,t,n){const r=ik(e,t)/1e3;return b6(void 0)(r)}function fk(e,t){const n=st(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const hk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pk=(e,t,n)=>{let r;const a=hk[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ih(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const mk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yk={date:ih({formats:mk,defaultWidth:"full"}),time:ih({formats:gk,defaultWidth:"full"}),dateTime:ih({formats:vk,defaultWidth:"full"})},bk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wk=(e,t,n,r)=>bk[e];function Uo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[o]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}const xk={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ck={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Sk={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ek={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Mk={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ok={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Rk=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Tk={ordinalNumber:Rk,era:Uo({values:xk,defaultWidth:"wide"}),quarter:Uo({values:Ck,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Uo({values:Sk,defaultWidth:"wide"}),day:Uo({values:Ek,defaultWidth:"wide"}),dayPeriod:Uo({values:Mk,defaultWidth:"wide",formattingValues:Ok,defaultFormattingWidth:"wide"})};function Bo(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(a);if(!l)return null;const i=l[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(o)?jk(o,c=>c.test(i)):Dk(o,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function Dk(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function jk(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ak(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],l=t.match(e.parsePattern);if(!l)return null;let i=e.valueCallback?e.valueCallback(l[0]):l[0];i=n.valueCallback?n.valueCallback(i):i;const o=t.slice(a.length);return{value:i,rest:o}}}const Nk=/^(\d+)(th|st|nd|rd)?/i,kk=/\d+/i,Lk={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_k={any:[/^b/i,/^(a|c)/i]},zk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pk={any:[/1/i,/2/i,/3/i,/4/i]},Hk={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Kk={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Uk={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bk={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qk={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fk={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Vk={ordinalNumber:Ak({matchPattern:Nk,parsePattern:kk,valueCallback:e=>parseInt(e,10)}),era:Bo({matchPatterns:Lk,defaultMatchWidth:"wide",parsePatterns:_k,defaultParseWidth:"any"}),quarter:Bo({matchPatterns:zk,defaultMatchWidth:"wide",parsePatterns:Pk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Bo({matchPatterns:Hk,defaultMatchWidth:"wide",parsePatterns:Kk,defaultParseWidth:"any"}),day:Bo({matchPatterns:Uk,defaultMatchWidth:"wide",parsePatterns:Bk,defaultParseWidth:"any"}),dayPeriod:Bo({matchPatterns:qk,defaultMatchWidth:"any",parsePatterns:Fk,defaultParseWidth:"any"})},Ig={code:"en-US",formatDistance:pk,formatLong:yk,formatRelative:wk,localize:Tk,match:Vk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Gk(e,t){const n=st(e,void 0);return ek(n,fk(n))+1}function Qk(e,t){const n=st(e,void 0),r=+Nd(n)-+tk(n);return Math.round(r/v6)+1}function w6(e,t){var n,r,a,l;const i=st(e,t==null?void 0:t.in),o=i.getFullYear(),s=io(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((l=(a=s.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,d=Ar((t==null?void 0:t.in)||e,0);d.setFullYear(o+1,0,u),d.setHours(0,0,0,0);const c=Gs(d,t),f=Ar((t==null?void 0:t.in)||e,0);f.setFullYear(o,0,u),f.setHours(0,0,0,0);const h=Gs(f,t);return+i>=+c?o+1:+i>=+h?o:o-1}function Xk(e,t){var n,r,a,l;const i=io(),o=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??i.firstWeekContainsDate??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,s=w6(e,t),u=Ar((t==null?void 0:t.in)||e,0);return u.setFullYear(s,0,o),u.setHours(0,0,0,0),Gs(u,t)}function Yk(e,t){const n=st(e,t==null?void 0:t.in),r=+Gs(n,t)-+Xk(n,t);return Math.round(r/v6)+1}function ve(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ve(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ve(n+1,2)},d(e,t){return ve(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ve(e.getHours()%12||12,t.length)},H(e,t){return ve(e.getHours(),t.length)},m(e,t){return ve(e.getMinutes(),t.length)},s(e,t){return ve(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return ve(a,t.length)}},Gl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vb={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Fr.y(e,t)},Y:function(e,t,n,r){const a=w6(e,r),l=a>0?a:1-a;if(t==="YY"){const i=l%100;return ve(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):ve(l,t.length)},R:function(e,t){const n=y6(e);return ve(n,t.length)},u:function(e,t){const n=e.getFullYear();return ve(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ve(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ve(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ve(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Yk(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):ve(a,t.length)},I:function(e,t,n){const r=Qk(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ve(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fr.d(e,t)},D:function(e,t,n){const r=Gk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ve(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return ve(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return ve(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return ve(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Gl.noon:r===0?a=Gl.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Gl.evening:r>=12?a=Gl.afternoon:r>=4?a=Gl.morning:a=Gl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ve(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ve(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fr.s(e,t)},S:function(e,t){return Fr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bb(r);case"XXXX":case"XX":return el(r);case"XXXXX":case"XXX":default:return el(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return bb(r);case"xxxx":case"xx":return el(r);case"xxxxx":case"xxx":default:return el(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yb(r,":");case"OOOO":default:return"GMT"+el(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yb(r,":");case"zzzz":default:return"GMT"+el(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ve(r,t.length)},T:function(e,t,n){return ve(+e,t.length)}};function yb(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),l=r%60;return l===0?n+String(a):n+String(a)+t+ve(l,2)}function bb(e,t){return e%60===0?(e>0?"-":"+")+ve(Math.abs(e)/60,2):el(e,t)}function el(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=ve(Math.trunc(r/60),2),l=ve(r%60,2);return n+a+t+l}const wb=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},x6=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ik=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return wb(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",wb(r,t)).replace("{{time}}",x6(a,t))},Zk={p:x6,P:Ik},$k=/^D+$/,Wk=/^Y+$/,Jk=["D","DD","YY","YYYY"];function eL(e){return $k.test(e)}function tL(e){return Wk.test(e)}function nL(e,t,n){const r=rL(e,t,n);if(console.warn(r),Jk.includes(e))throw new RangeError(r)}function rL(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const aL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iL=/^'([^]*?)'?$/,oL=/''/g,sL=/[a-zA-Z]/;function C6(e,t,n){var r,a,l,i;const o=io(),s=o.locale??Ig,u=o.firstWeekContainsDate??((a=(r=o.locale)==null?void 0:r.options)==null?void 0:a.firstWeekContainsDate)??1,d=o.weekStartsOn??((i=(l=o.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??0,c=st(e,void 0);if(!ak(c))throw new RangeError("Invalid time value");let f=t.match(lL).map(m=>{const v=m[0];if(v==="p"||v==="P"){const b=Zk[v];return b(m,s.formatLong)}return m}).join("").match(aL).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const v=m[0];if(v==="'")return{isToken:!1,value:uL(m)};if(vb[v])return{isToken:!0,value:m};if(v.match(sL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(f=s.localize.preprocessor(c,f));const h={firstWeekContainsDate:u,weekStartsOn:d,locale:s};return f.map(m=>{if(!m.isToken)return m.value;const v=m.value;(tL(v)||eL(v))&&nL(v,t,String(e));const b=vb[v[0]];return b(c,v,s.localize,h)}).join("")}function uL(e){const t=e.match(iL);return t?t[1].replace(oL,"'"):e}function cL(e,t,n){const r=io(),a=r.locale??Ig,l=2520,i=bs(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:void 0,comparison:i}),[s,u]=gu(void 0,...i>0?[t,e]:[e,t]),d=dk(u,s),c=(Ui(u)-Ui(s))/1e3,f=Math.round((d-c)/60);let h;if(f<2)return f===0?a.formatDistance("lessThanXMinutes",1,o):a.formatDistance("xMinutes",f,o);if(f<45)return a.formatDistance("xMinutes",f,o);if(f<90)return a.formatDistance("aboutXHours",1,o);if(f<Ad){const m=Math.round(f/60);return a.formatDistance("aboutXHours",m,o)}else{if(f<l)return a.formatDistance("xDays",1,o);if(f<hi){const m=Math.round(f/Ad);return a.formatDistance("xDays",m,o)}else if(f<hi*2)return h=Math.round(f/hi),a.formatDistance("aboutXMonths",h,o)}if(h=ck(u,s),h<12){const m=Math.round(f/hi);return a.formatDistance("xMonths",m,o)}else{const m=h%12,v=Math.trunc(h/12);return m<3?a.formatDistance("aboutXYears",v,o):m<9?a.formatDistance("overXYears",v,o):a.formatDistance("almostXYears",v+1,o)}}function dL(e,t,n){const r=io(),a=(n==null?void 0:n.locale)??r.locale??Ig,l=bs(e,t);if(isNaN(l))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:l}),[o,s]=gu(n==null?void 0:n.in,...l>0?[t,e]:[e,t]),u=b6((n==null?void 0:n.roundingMethod)??"round"),d=s.getTime()-o.getTime(),c=d/hb,f=Ui(s)-Ui(o),h=(d-f)/hb,m=n==null?void 0:n.unit;let v;if(m?v=m:c<1?v="second":c<60?v="minute":c<Ad?v="hour":h<hi?v="day":h<pb?v="month":v="year",v==="second"){const b=u(d/1e3);return a.formatDistance("xSeconds",b,i)}else if(v==="minute"){const b=u(c);return a.formatDistance("xMinutes",b,i)}else if(v==="hour"){const b=u(c/60);return a.formatDistance("xHours",b,i)}else if(v==="day"){const b=u(h/Ad);return a.formatDistance("xDays",b,i)}else if(v==="month"){const b=u(h/hi);return b===12&&m!=="month"?a.formatDistance("xYears",1,i):a.formatDistance("xMonths",b,i)}else{const b=u(h/pb);return a.formatDistance("xYears",b,i)}}function S6(e,t){return cL(e,nk(e),t)}var em=new Map,oh=new WeakMap,xb=0,fL=void 0;function hL(e){return e?(oh.has(e)||(xb+=1,oh.set(e,xb.toString())),oh.get(e)):"0"}function pL(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?hL(e.root):e[t]}`).toString()}function mL(e){const t=pL(e);let n=em.get(t);if(!n){const r=new Map;let a;const l=new IntersectionObserver(i=>{i.forEach(o=>{var s;const u=o.isIntersecting&&a.some(d=>o.intersectionRatio>=d);e.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=u),(s=r.get(o.target))==null||s.forEach(d=>{d(u,o)})})},e);a=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:r},em.set(t,n)}return n}function gL(e,t,n={},r=fL){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:a,observer:l,elements:i}=mL(n),o=i.get(e)||[];return i.has(e)||i.set(e,o),o.push(t),l.observe(e),function(){o.splice(o.indexOf(t),1),o.length===0&&(i.delete(e),l.unobserve(e)),i.size===0&&(l.disconnect(),em.delete(a))}}function vL({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:a,triggerOnce:l,skip:i,initialInView:o,fallbackInView:s,onChange:u}={}){var d;const[c,f]=p.useState(null),h=p.useRef(u),[m,v]=p.useState({inView:!!o,entry:void 0});h.current=u,p.useEffect(()=>{if(i||!c)return;let w;return w=gL(c,(C,E)=>{v({inView:C,entry:E}),h.current&&h.current(C,E),E.isIntersecting&&l&&w&&(w(),w=void 0)},{root:a,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,a,r,l,i,n,s,t]);const b=(d=m.entry)==null?void 0:d.target,g=p.useRef(void 0);!c&&b&&!l&&!i&&g.current!==b&&(g.current=b,v({inView:!!o,entry:void 0}));const y=[f,m.inView,m.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}var E6=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,a=e.onClick,l=e.layoutVariant;return x.jsx("div",{onClick:a,"aria-label":"button",className:"group grid w-full cursor-pointer p-2 active:bg-slate-50/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(l==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},tm=30,nm=2e3,rm=2,M6=function(){return x.jsxs("div",{children:[x.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:x.jsx("span",{className:"opacity-0",children:"Placeholder"})}),zn([],new Array(tm),!0).map(function(e,t){return x.jsx("div",{className:Hi("p-2",tm!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:x.jsx(vd,{className:"h-6 w-full"})},t)})]})};function Cb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function O6(...e){return t=>{let n=!1;const r=e.map(a=>{const l=Cb(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<r.length;a++){const l=r[a];typeof l=="function"?l():Cb(e[a],null)}}}}function Zg(...e){return p.useCallback(O6(...e),e)}function yL(e,t=[]){let n=[];function r(l,i){const o=p.createContext(i),s=n.length;n=[...n,i];const u=c=>{var f;const{scope:h,children:m,...v}=c,b=((f=h==null?void 0:h[e])==null?void 0:f[s])||o,g=p.useMemo(()=>v,Object.values(v));return x.jsx(b.Provider,{value:g,children:m})};u.displayName=l+"Provider";function d(c,f){var h;const m=((h=f==null?void 0:f[e])==null?void 0:h[s])||o,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[u,d]}const a=()=>{const l=n.map(i=>p.createContext(i));return function(i){const o=(i==null?void 0:i[e])||l;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:o}}),[i,o])}};return a.scopeName=e,[r,bL(a,...t)]}function bL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const l=r.reduce((i,{useScope:o,scopeName:s})=>{const u=o(a)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Sb(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var kd=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},wL=y2[" useInsertionEffect ".trim().toString()]||kd;function xL({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,l,i]=CL({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:a;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const c=d.current;c!==o&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${o?"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.`),d.current=o},[o,r])}const u=p.useCallback(d=>{var c;if(o){const f=SL(d)?d(e):d;f!==e&&((c=i.current)==null||c.call(i,f))}else l(d)},[o,e,l,i]);return[s,u]}function CL({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),a=p.useRef(n),l=p.useRef(t);return wL(()=>{l.current=t},[t]),p.useEffect(()=>{var i;a.current!==n&&((i=l.current)==null||i.call(l,n),a.current=n)},[n,a]),[n,r,l]}function SL(e){return typeof e=="function"}function EL(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ML(e){const[t,n]=p.useState(void 0);return kd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let i,o;if("borderBoxSize"in l){const s=l.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,o=u.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function OL(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var R6=e=>{const{present:t,children:n}=e,r=RL(t),a=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),l=Zg(r.ref,TL(a));return typeof n=="function"||r.isPresent?p.cloneElement(a,{ref:l}):null};R6.displayName="Presence";function RL(e){const[t,n]=p.useState(),r=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),i=e?"mounted":"unmounted",[o,s]=OL(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=oc(r.current);l.current=o==="mounted"?u:"none"},[o]),kd(()=>{const u=r.current,d=a.current;if(d!==e){const c=l.current,f=oc(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&c!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),kd(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=h=>{const m=oc(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(s("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=h=>{h.target===t&&(l.current=oc(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function oc(e){return(e==null?void 0:e.animationName)||"none"}function TL(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function DL(e){const t=jL(e),n=p.forwardRef((r,a)=>{const{children:l,...i}=r,o=p.Children.toArray(l),s=o.find(NL);if(s){const u=s.props.children,d=o.map(c=>c===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:c);return x.jsx(t,{...i,ref:a,children:p.isValidElement(u)?p.cloneElement(u,void 0,d):null})}return x.jsx(t,{...i,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function jL(e){const t=p.forwardRef((n,r)=>{const{children:a,...l}=n;if(p.isValidElement(a)){const i=LL(a),o=kL(l,a.props);return a.type!==p.Fragment&&(o.ref=r?O6(r,i):i),p.cloneElement(a,o)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AL=Symbol("radix.slottable");function NL(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AL}function kL(e,t){const n={...t};for(const r in t){const a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...i)=>{const o=l(...i);return a(...i),o}:a&&(n[r]=a):r==="style"?n[r]={...a,...l}:r==="className"&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function LL(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var _L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$g=_L.reduce((e,t)=>{const n=DL(`Primitive.${t}`),r=p.forwardRef((a,l)=>{const{asChild:i,...o}=a,s=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(s,{...o,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Nf="Checkbox",[zL]=yL(Nf),[PL,Wg]=zL(Nf);function HL(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:l,form:i,name:o,onCheckedChange:s,required:u,value:d="on",internal_do_not_use_render:c}=e,[f,h]=xL({prop:n,defaultProp:a??!1,onChange:s,caller:Nf}),[m,v]=p.useState(null),[b,g]=p.useState(null),y=p.useRef(!1),w=m?!!i||!!m.closest("form"):!0,C={checked:f,disabled:l,setChecked:h,control:m,setControl:v,name:o,form:i,value:d,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:ma(a)?!1:a,isFormControl:w,bubbleInput:b,setBubbleInput:g};return x.jsx(PL,{scope:t,...C,children:KL(c)?c(C):r})}var T6="CheckboxTrigger",D6=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:l,value:i,disabled:o,checked:s,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:m}=Wg(T6,e),v=Zg(a,d),b=p.useRef(s);return p.useEffect(()=>{const g=l==null?void 0:l.form;if(g){const y=()=>c(b.current);return g.addEventListener("reset",y),()=>g.removeEventListener("reset",y)}},[l,c]),x.jsx($g.button,{type:"button",role:"checkbox","aria-checked":ma(s)?"mixed":s,"aria-required":u,"data-state":_6(s),"data-disabled":o?"":void 0,disabled:o,value:i,...r,ref:v,onKeyDown:Sb(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:Sb(n,g=>{c(y=>ma(y)?!0:!y),m&&h&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});D6.displayName=T6;var j6=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:l,required:i,disabled:o,value:s,onCheckedChange:u,form:d,...c}=e;return x.jsx(HL,{__scopeCheckbox:n,checked:a,defaultChecked:l,disabled:o,required:i,onCheckedChange:u,name:r,form:d,value:s,internal_do_not_use_render:({isFormControl:f})=>x.jsxs(x.Fragment,{children:[x.jsx(D6,{...c,ref:t,__scopeCheckbox:n}),f&&x.jsx(L6,{__scopeCheckbox:n})]})})});j6.displayName=Nf;var A6="CheckboxIndicator",N6=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,l=Wg(A6,n);return x.jsx(R6,{present:r||ma(l.checked)||l.checked===!0,children:x.jsx($g.span,{"data-state":_6(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});N6.displayName=A6;var k6="CheckboxBubbleInput",L6=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:i,required:o,disabled:s,name:u,value:d,form:c,bubbleInput:f,setBubbleInput:h}=Wg(k6,e),m=Zg(n,h),v=EL(l),b=ML(r);p.useEffect(()=>{const y=f;if(!y)return;const w=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(w,"checked").set,E=!a.current;if(v!==l&&C){const S=new Event("click",{bubbles:E});y.indeterminate=ma(l),C.call(y,ma(l)?!1:l),y.dispatchEvent(S)}},[f,v,l,a]);const g=p.useRef(ma(l)?!1:l);return x.jsx($g.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??g.current,required:o,disabled:s,name:u,value:d,form:c,...t,tabIndex:-1,ref:m,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L6.displayName=k6;function KL(e){return typeof e=="function"}function ma(e){return e==="indeterminate"}function _6(e){return ma(e)?"indeterminate":e?"checked":"unchecked"}var Ld=function(e){var t=e.className,n=sM(e,["className"]);return x.jsx(j6,{className:Hi("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:x.jsxs(N6,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&x.jsx(bR,{height:12,width:12}),n.checked===!0&&x.jsx(oR,{height:12,width:12})]})})},qo=function(e){var t=e.label,n=e.icon;return x.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out",children:[n,x.jsx("span",{children:t})]})},Jg=function(e){var t=e.children,n=e.message;return x.jsxs(aN,{children:[x.jsx(Ug,{children:t}),x.jsx(lN,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md",children:n})]})},z6={exports:{}},P6={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},H6={exports:{}},UL=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},BL=UL,qL=Array.prototype.concat,FL=Array.prototype.slice,Eb=H6.exports=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];BL(a)?t=qL.call(t,FL.call(a)):t.push(a)}return t};Eb.wrap=function(e){return function(){return e(Eb(arguments))}};var VL=H6.exports,ws=P6,vu=VL,K6=Object.hasOwnProperty,U6=Object.create(null);for(var sh in ws)K6.call(ws,sh)&&(U6[ws[sh]]=sh);var $t=z6.exports={to:{},get:{}};$t.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=$t.get.hsl(e),r="hsl";break;case"hwb":n=$t.get.hwb(e),r="hwb";break;default:n=$t.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};$t.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^(\w+)$/,i=[0,0,0,1],o,s,u;if(o=e.match(n)){for(u=o[2],o=o[1],s=0;s<3;s++){var d=s*2;i[s]=parseInt(o.slice(d,d+2),16)}u&&(i[3]=parseInt(u,16)/255)}else if(o=e.match(t)){for(o=o[1],u=o[3],s=0;s<3;s++)i[s]=parseInt(o[s]+o[s],16);u&&(i[3]=parseInt(u+u,16)/255)}else if(o=e.match(r)){for(s=0;s<3;s++)i[s]=parseInt(o[s+1],0);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else if(o=e.match(a)){for(s=0;s<3;s++)i[s]=Math.round(parseFloat(o[s+1])*2.55);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else return(o=e.match(l))?o[1]==="transparent"?[0,0,0,0]:K6.call(ws,o[1])?(i=ws[o[1]],i[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=ga(i[s],0,255);return i[3]=ga(i[3],0,1),i};$t.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=ga(parseFloat(n[2]),0,100),i=ga(parseFloat(n[3]),0,100),o=ga(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};$t.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=ga(parseFloat(n[2]),0,100),i=ga(parseFloat(n[3]),0,100),o=ga(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};$t.to.hex=function(){var e=vu(arguments);return"#"+sc(e[0])+sc(e[1])+sc(e[2])+(e[3]<1?sc(Math.round(e[3]*255)):"")};$t.to.rgb=function(){var e=vu(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};$t.to.rgb.percent=function(){var e=vu(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};$t.to.hsl=function(){var e=vu(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};$t.to.hwb=function(){var e=vu(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};$t.to.keyword=function(e){return U6[e.slice(0,3)]};function ga(e,t,n){return Math.min(Math.max(t,e),n)}function sc(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var GL=z6.exports;const Qs=P6,B6={};for(const e of Object.keys(Qs))B6[Qs[e]]=e;const I={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var q6=I;for(const e of Object.keys(I)){if(!("channels"in I[e]))throw new Error("missing channels property: "+e);if(!("labels"in I[e]))throw new Error("missing channel labels property: "+e);if(I[e].labels.length!==I[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=I[e];delete I[e].channels,delete I[e].labels,Object.defineProperty(I[e],"channels",{value:t}),Object.defineProperty(I[e],"labels",{value:n})}I.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),l=Math.max(t,n,r),i=l-a;let o,s;l===a?o=0:t===l?o=(n-r)/i:n===l?o=2+(r-t)/i:r===l&&(o=4+(t-n)/i),o=Math.min(o*60,360),o<0&&(o+=360);const u=(a+l)/2;return l===a?s=0:u<=.5?s=i/(l+a):s=i/(2-l-a),[o,s*100,u*100]};I.rgb.hsv=function(e){let t,n,r,a,l;const i=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(i,o,s),d=u-Math.min(i,o,s),c=function(f){return(u-f)/6/d+1/2};return d===0?(a=0,l=0):(l=d/u,t=c(i),n=c(o),r=c(s),i===u?a=r-n:o===u?a=1/3+t-r:s===u&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[a*360,l*100,u*100]};I.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=I.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,l*100,r*100]};I.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r),l=(1-t-a)/(1-a)||0,i=(1-n-a)/(1-a)||0,o=(1-r-a)/(1-a)||0;return[l*100,i*100,o*100,a*100]};function QL(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}I.rgb.keyword=function(e){const t=B6[e];if(t)return t;let n=1/0,r;for(const a of Object.keys(Qs)){const l=Qs[a],i=QL(e,l);i<n&&(n=i,r=a)}return r};I.keyword.rgb=function(e){return Qs[e]};I.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const a=t*.4124+n*.3576+r*.1805,l=t*.2126+n*.7152+r*.0722,i=t*.0193+n*.1192+r*.9505;return[a*100,l*100,i*100]};I.rgb.lab=function(e){const t=I.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*r-16,i=500*(n-r),o=200*(r-a);return[l,i,o]};I.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,l,i;if(n===0)return i=r*255,[i,i,i];r<.5?a=r*(1+n):a=r+n-r*n;const o=2*r-a,s=[0,0,0];for(let u=0;u<3;u++)l=t+1/3*-(u-1),l<0&&l++,l>1&&l--,6*l<1?i=o+(a-o)*6*l:2*l<1?i=a:3*l<2?i=o+(a-o)*(2/3-l)*6:i=o,s[u]=i*255;return s};I.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const l=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,a*=l<=1?l:2-l;const i=(r+n)/2,o=r===0?2*a/(l+a):2*n/(r+n);return[t,o*100,i*100]};I.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,l=t-Math.floor(t),i=255*r*(1-n),o=255*r*(1-n*l),s=255*r*(1-n*(1-l));switch(r*=255,a){case 0:return[r,s,i];case 1:return[o,r,i];case 2:return[i,r,s];case 3:return[i,o,r];case 4:return[s,i,r];case 5:return[r,i,o]}};I.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let l,i;i=(2-n)*r;const o=(2-n)*a;return l=n*a,l/=o<=1?o:2-o,l=l||0,i/=2,[t,l*100,i*100]};I.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let l;a>1&&(n/=a,r/=a);const i=Math.floor(6*t),o=1-r;l=6*t-i,i&1&&(l=1-l);const s=n+l*(o-n);let u,d,c;switch(i){default:case 6:case 0:u=o,d=s,c=n;break;case 1:u=s,d=o,c=n;break;case 2:u=n,d=o,c=s;break;case 3:u=n,d=s,c=o;break;case 4:u=s,d=n,c=o;break;case 5:u=o,d=n,c=s;break}return[u*255,d*255,c*255]};I.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100,l=1-Math.min(1,t*(1-a)+a),i=1-Math.min(1,n*(1-a)+a),o=1-Math.min(1,r*(1-a)+a);return[l*255,i*255,o*255]};I.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,l,i;return a=t*3.2406+n*-1.5372+r*-.4986,l=t*-.9689+n*1.8758+r*.0415,i=t*.0557+n*-.204+r*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]};I.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const a=116*n-16,l=500*(t-n),i=200*(n-r);return[a,l,i]};I.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let a,l,i;l=(t+16)/116,a=n/500+l,i=l-r/200;const o=l**3,s=a**3,u=i**3;return l=o>.008856?o:(l-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a*=95.047,l*=100,i*=108.883,[a,l,i]};I.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;a=Math.atan2(r,n)*360/2/Math.PI,a<0&&(a+=360);const l=Math.sqrt(n*n+r*r);return[t,l,a]};I.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,a=n*Math.cos(r),l=n*Math.sin(r);return[t,a,l]};I.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let l=t===null?I.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),l===0)return 30;let i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return l===2&&(i+=60),i};I.hsv.ansi16=function(e){return I.rgb.ansi16(I.hsv.rgb(e),e[2])};I.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};I.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,a=(t>>1&1)*n*255,l=(t>>2&1)*n*255;return[r,a,l]};I.ansi256.rgb=function(e){if(e>=232){const l=(e-232)*10+8;return[l,l,l]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[n,r,a]};I.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};I.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),a=r>>16&255,l=r>>8&255,i=r&255;return[a,l,i]};I.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),l=Math.min(Math.min(t,n),r),i=a-l;let o,s;return i<1?o=l/(1-i):o=0,i<=0?s=0:a===t?s=(n-r)/i%6:a===n?s=2+(r-t)/i:s=4+(t-n)/i,s/=6,s%=1,[s*360,i*100,o*100]};I.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],r*100,a*100]};I.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};I.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const a=[0,0,0],l=t%1*6,i=l%1,o=1-i;let s=0;switch(Math.floor(l)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return s=(1-n)*r,[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};I.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let a=0;return r>0&&(a=t/r),[e[0],a*100,r*100]};I.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};I.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};I.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};I.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};I.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};I.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};I.gray.hsl=function(e){return[0,0,e[0]]};I.gray.hsv=I.gray.hsl;I.gray.hwb=function(e){return[0,100,e[0]]};I.gray.cmyk=function(e){return[0,0,0,e[0]]};I.gray.lab=function(e){return[e[0],0,0]};I.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};I.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const _d=q6;function XL(){const e={},t=Object.keys(_d);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function YL(e){const t=XL(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),a=Object.keys(_d[r]);for(let l=a.length,i=0;i<l;i++){const o=a[i],s=t[o];s.distance===-1&&(s.distance=t[r].distance+1,s.parent=r,n.unshift(o))}}return t}function IL(e,t){return function(n){return t(e(n))}}function ZL(e,t){const n=[t[e].parent,e];let r=_d[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=IL(_d[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}var $L=function(e){const t=YL(e),n={},r=Object.keys(t);for(let a=r.length,l=0;l<a;l++){const i=r[l];t[i].parent!==null&&(n[i]=ZL(i,t))}return n};const am=q6,WL=$L,$l={},JL=Object.keys(am);function e_(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function t_(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const a=e(n);if(typeof a=="object")for(let l=a.length,i=0;i<l;i++)a[i]=Math.round(a[i]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}JL.forEach(e=>{$l[e]={},Object.defineProperty($l[e],"channels",{value:am[e].channels}),Object.defineProperty($l[e],"labels",{value:am[e].labels});const t=WL(e);Object.keys(t).forEach(n=>{const r=t[n];$l[e][n]=t_(r),$l[e][n].raw=e_(r)})});var n_=$l;const Wl=GL,Yt=n_,F6=["keyword","gray","hex"],lm={};for(const e of Object.keys(Yt))lm[[...Yt[e].labels].sort().join("")]=e;const zd={};function at(e,t){if(!(this instanceof at))return new at(e,t);if(t&&t in F6&&(t=null),t&&!(t in Yt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof at)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=Wl.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,r=Yt[this.model].channels,this.color=a.value.slice(0,r),this.valpha=typeof a.value[r]=="number"?a.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=Yt[this.model].channels;const a=Array.prototype.slice.call(e,0,r);this.color=im(a,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const l=a.sort().join("");if(!(l in lm))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=lm[l];const{labels:i}=Yt[this.model],o=[];for(n=0;n<i.length;n++)o.push(e[i[n]]);this.color=im(o)}if(zd[this.model])for(r=Yt[this.model].channels,n=0;n<r;n++){const a=zd[this.model][n];a&&(this.color[n]=a(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}at.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Wl.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Wl.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Wl.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yt[this.model],{labels:n}=Yt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new at([...this.color.map(a_(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new at([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Le("rgb",0,Ze(255)),green:Le("rgb",1,Ze(255)),blue:Le("rgb",2,Ze(255)),hue:Le(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Le("hsl",1,Ze(100)),lightness:Le("hsl",2,Ze(100)),saturationv:Le("hsv",1,Ze(100)),value:Le("hsv",2,Ze(100)),chroma:Le("hcg",1,Ze(100)),gray:Le("hcg",2,Ze(100)),white:Le("hwb",1,Ze(100)),wblack:Le("hwb",2,Ze(100)),cyan:Le("cmyk",0,Ze(100)),magenta:Le("cmyk",1,Ze(100)),yellow:Le("cmyk",2,Ze(100)),black:Le("cmyk",3,Ze(100)),x:Le("xyz",0,Ze(95.047)),y:Le("xyz",1,Ze(100)),z:Le("xyz",2,Ze(108.833)),l:Le("lab",0,Ze(100)),a:Le("lab",1),b:Le("lab",2),keyword(e){return e!==void 0?new at(e):Yt[this.model].keyword(this.color)},hex(e){return e!==void 0?new at(e):Wl.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new at(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Wl.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const a=r/255;t[n]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return at.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=t===void 0?.5:t,l=2*a-1,i=n.alpha()-r.alpha(),o=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-o;return at.rgb(o*n.red()+s*r.red(),o*n.green()+s*r.green(),o*n.blue()+s*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(Yt)){if(F6.includes(e))continue;const{channels:t}=Yt[e];at.prototype[e]=function(...n){return this.model===e?new at(this):n.length>0?new at(n,e):new at([...l_(Yt[this.model][e].raw(this.color)),this.valpha],e)},at[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=im(n,t)),new at(r,e)}}function r_(e,t){return Number(e.toFixed(t))}function a_(e){return function(t){return r_(t,e)}}function Le(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(zd[r]||(zd[r]=[]))[t]=n;return e=e[0],function(r){let a;return r!==void 0?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function Ze(e){return function(t){return Math.max(0,Math.min(e,t))}}function l_(e){return Array.isArray(e)?e:[e]}function im(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var i_=at;const Mb=c8(i_);var o_=typeof global=="object"&&global&&global.Object===Object&&global,s_=typeof self=="object"&&self&&self.Object===Object&&self,Dl=o_||s_||Function("return this")(),Pd=Dl.Symbol,V6=Object.prototype,u_=V6.hasOwnProperty,c_=V6.toString,Fo=Pd?Pd.toStringTag:void 0;function d_(e){var t=u_.call(e,Fo),n=e[Fo];try{e[Fo]=void 0;var r=!0}catch{}var a=c_.call(e);return r&&(t?e[Fo]=n:delete e[Fo]),a}var f_=Object.prototype,h_=f_.toString;function p_(e){return h_.call(e)}var m_="[object Null]",g_="[object Undefined]",Ob=Pd?Pd.toStringTag:void 0;function G6(e){return e==null?e===void 0?g_:m_:Ob&&Ob in Object(e)?d_(e):p_(e)}function Q6(e){return e!=null&&typeof e=="object"}var v_="[object Symbol]";function y_(e){return typeof e=="symbol"||Q6(e)&&G6(e)==v_}var b_=Array.isArray,w_=/\s/;function x_(e){for(var t=e.length;t--&&w_.test(e.charAt(t)););return t}var C_=/^\s+/;function S_(e){return e&&e.slice(0,x_(e)+1).replace(C_,"")}function Bi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rb=NaN,E_=/^[-+]0x[0-9a-f]+$/i,M_=/^0b[01]+$/i,O_=/^0o[0-7]+$/i,R_=parseInt;function T_(e){if(typeof e=="number")return e;if(y_(e))return Rb;if(Bi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Bi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=S_(e);var n=M_.test(e);return n||O_.test(e)?R_(e.slice(2),n?2:8):E_.test(e)?Rb:+e}var Tb=1/0,D_=17976931348623157e292;function j_(e){if(!e)return e===0?e:0;if(e=T_(e),e===Tb||e===-Tb){var t=e<0?-1:1;return t*D_}return e===e?e:0}function Db(e){var t=j_(e),n=t%1;return t===t?n?t-n:t:0}function X6(e){return e}var A_="[object AsyncFunction]",N_="[object Function]",k_="[object GeneratorFunction]",L_="[object Proxy]";function __(e){if(!Bi(e))return!1;var t=G6(e);return t==N_||t==k_||t==A_||t==L_}var uh=Dl["__core-js_shared__"],jb=function(){var e=/[^.]+$/.exec(uh&&uh.keys&&uh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function z_(e){return!!jb&&jb in e}var P_=Function.prototype,H_=P_.toString;function K_(e){if(e!=null){try{return H_.call(e)}catch{}try{return e+""}catch{}}return""}var U_=/[\\^$.*+?()[\]{}|]/g,B_=/^\[object .+?Constructor\]$/,q_=Function.prototype,F_=Object.prototype,V_=q_.toString,G_=F_.hasOwnProperty,Q_=RegExp("^"+V_.call(G_).replace(U_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X_(e){if(!Bi(e)||z_(e))return!1;var t=__(e)?Q_:B_;return t.test(K_(e))}function Y_(e,t){return e==null?void 0:e[t]}function Y6(e,t){var n=Y_(e,t);return X_(n)?n:void 0}var Ab=Y6(Dl,"WeakMap"),Hd=Ab&&new Ab,I6=Hd?function(e,t){return Hd.set(e,t),e}:X6,Nb=Object.create,e1=function(){function e(){}return function(t){if(!Bi(t))return{};if(Nb)return Nb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Xs(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=e1(e.prototype),r=e.apply(n,t);return Bi(r)?r:n}}var I_=1;function Z_(e,t,n){var r=t&I_,a=Xs(e);function l(){var i=this&&this!==Dl&&this instanceof l?a:e;return i.apply(r?n:this,arguments)}return l}function Z6(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $_=Math.max;function $6(e,t,n,r){for(var a=-1,l=e.length,i=n.length,o=-1,s=t.length,u=$_(l-i,0),d=Array(s+u),c=!r;++o<s;)d[o]=t[o];for(;++a<i;)(c||a<l)&&(d[n[a]]=e[a]);for(;u--;)d[o++]=e[a++];return d}var W_=Math.max;function W6(e,t,n,r){for(var a=-1,l=e.length,i=-1,o=n.length,s=-1,u=t.length,d=W_(l-o,0),c=Array(d+u),f=!r;++a<d;)c[a]=e[a];for(var h=a;++s<u;)c[h+s]=t[s];for(;++i<o;)(f||a<l)&&(c[h+n[i]]=e[a++]);return c}function J_(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function t1(){}var ez=4294967295;function qi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ez,this.__views__=[]}qi.prototype=e1(t1.prototype);qi.prototype.constructor=qi;function tz(){}var J6=Hd?function(e){return Hd.get(e)}:tz,kb={},nz=Object.prototype,rz=nz.hasOwnProperty;function az(e){for(var t=e.name+"",n=kb[t],r=rz.call(kb,t)?n.length:0;r--;){var a=n[r],l=a.func;if(l==null||l==e)return a.name}return t}function Fi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Fi.prototype=e1(t1.prototype);Fi.prototype.constructor=Fi;function ew(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function lz(e){if(e instanceof qi)return e.clone();var t=new Fi(e.__wrapped__,e.__chain__);return t.__actions__=ew(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iz=Object.prototype,oz=iz.hasOwnProperty;function Kd(e){if(Q6(e)&&!b_(e)&&!(e instanceof qi)){if(e instanceof Fi)return e;if(oz.call(e,"__wrapped__"))return lz(e)}return new Fi(e)}Kd.prototype=t1.prototype;Kd.prototype.constructor=Kd;function sz(e){var t=az(e),n=Kd[t];if(typeof n!="function"||!(t in qi.prototype))return!1;if(e===n)return!0;var r=J6(n);return!!r&&e===r[0]}var uz=800,cz=16,dz=Date.now;function tw(e){var t=0,n=0;return function(){var r=dz(),a=cz-(r-n);if(n=r,a>0){if(++t>=uz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nw=tw(I6),fz=/\{\n\/\* \[wrapped with (.+)\] \*/,hz=/,? & /;function pz(e){var t=e.match(fz);return t?t[1].split(hz):[]}var mz=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function gz(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(mz,`{
|
|
108
|
+
*/function Dd(e,t){return e?ZN(e)?p.createElement(e,t):e:null}function ZN(e){return $N(e)||typeof e=="function"||WN(e)}function $N(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function WN(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function v6(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=p.useState(()=>({current:YN(t)})),[r,a]=p.useState(()=>n.current.initialState);return n.current.setOptions(l=>({...l,...e,state:{...r,...e.state},onStateChange:i=>{a(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const b6=6048e5,JN=864e5,py=6e4,my=525600,hi=43200,jd=1440,gy=Symbol.for("constructDateFrom");function jr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&gy in e?e[gy](t):e instanceof Date?new e.constructor(t):new Date(t)}function st(e,t){return jr(t||e,e)}let eA={};function oo(){return eA}function Gs(e,t){var n,r,a,l;const i=oo(),o=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??i.weekStartsOn??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??0,s=st(e,t==null?void 0:t.in),u=s.getDay(),d=(u<o?7:0)+u-o;return s.setDate(s.getDate()-d),s.setHours(0,0,0,0),s}function Nd(e,t){return Gs(e,{...t,weekStartsOn:1})}function y6(e,t){const n=st(e,void 0),r=n.getFullYear(),a=jr(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const l=Nd(a),i=jr(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Nd(i);return n.getTime()>=l.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function Bi(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function gu(e,...t){const n=jr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function vy(e,t){const n=st(e,void 0);return n.setHours(0,0,0,0),n}function tA(e,t,n){const[r,a]=gu(void 0,e,t),l=vy(r),i=vy(a),o=+l-Bi(l),s=+i-Bi(i);return Math.round((o-s)/JN)}function nA(e,t){const n=y6(e),r=jr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Nd(r)}function xs(e,t){const n=+st(e)-+st(t);return n<0?-1:n>0?1:n}function rA(e){return jr(e,Date.now())}function aA(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lA(e){return!(!aA(e)&&typeof e!="number"||isNaN(+st(e)))}function iA(e,t,n){const[r,a]=gu(void 0,e,t),l=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return l*12+i}function x6(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function oA(e,t){return+st(e)-+st(t)}function sA(e,t){const n=st(e,void 0);return n.setHours(23,59,59,999),n}function uA(e,t){const n=st(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function cA(e,t){const n=st(e,void 0);return+sA(n)==+uA(n)}function dA(e,t,n){const[r,a,l]=gu(void 0,e,e,t),i=xs(a,l),o=Math.abs(iA(a,l));if(o<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-i*o);let s=xs(a,l)===-i;cA(r)&&o===1&&xs(r,l)===1&&(s=!1);const u=i*(o-+s);return u===0?0:u}function fA(e,t,n){const r=oA(e,t)/1e3;return x6(void 0)(r)}function hA(e,t){const n=st(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const pA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mA=(e,t,n)=>{let r;const a=pA[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ih(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const gA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yA={date:ih({formats:gA,defaultWidth:"full"}),time:ih({formats:vA,defaultWidth:"full"}),dateTime:ih({formats:bA,defaultWidth:"full"})},xA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wA=(e,t,n,r)=>xA[e];function Bo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[o]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}const CA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},SA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},EA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},MA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},OA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},RA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},TA=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},kA={ordinalNumber:TA,era:Bo({values:CA,defaultWidth:"wide"}),quarter:Bo({values:SA,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bo({values:EA,defaultWidth:"wide"}),day:Bo({values:MA,defaultWidth:"wide"}),dayPeriod:Bo({values:OA,defaultWidth:"wide",formattingValues:RA,defaultFormattingWidth:"wide"})};function qo(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(a);if(!l)return null;const i=l[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(o)?jA(o,c=>c.test(i)):DA(o,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function DA(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function jA(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function NA(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],l=t.match(e.parsePattern);if(!l)return null;let i=e.valueCallback?e.valueCallback(l[0]):l[0];i=n.valueCallback?n.valueCallback(i):i;const o=t.slice(a.length);return{value:i,rest:o}}}const AA=/^(\d+)(th|st|nd|rd)?/i,LA=/\d+/i,_A={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zA={any:[/^b/i,/^(a|c)/i]},PA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},HA={any:[/1/i,/2/i,/3/i,/4/i]},KA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},BA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},qA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},FA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},VA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},GA={ordinalNumber:NA({matchPattern:AA,parsePattern:LA,valueCallback:e=>parseInt(e,10)}),era:qo({matchPatterns:_A,defaultMatchWidth:"wide",parsePatterns:zA,defaultParseWidth:"any"}),quarter:qo({matchPatterns:PA,defaultMatchWidth:"wide",parsePatterns:HA,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qo({matchPatterns:KA,defaultMatchWidth:"wide",parsePatterns:UA,defaultParseWidth:"any"}),day:qo({matchPatterns:BA,defaultMatchWidth:"wide",parsePatterns:qA,defaultParseWidth:"any"}),dayPeriod:qo({matchPatterns:FA,defaultMatchWidth:"any",parsePatterns:VA,defaultParseWidth:"any"})},Yg={code:"en-US",formatDistance:mA,formatLong:yA,formatRelative:wA,localize:kA,match:GA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function QA(e,t){const n=st(e,void 0);return tA(n,hA(n))+1}function IA(e,t){const n=st(e,void 0),r=+Nd(n)-+nA(n);return Math.round(r/b6)+1}function w6(e,t){var n,r,a,l;const i=st(e,t==null?void 0:t.in),o=i.getFullYear(),s=oo(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((l=(a=s.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,d=jr((t==null?void 0:t.in)||e,0);d.setFullYear(o+1,0,u),d.setHours(0,0,0,0);const c=Gs(d,t),f=jr((t==null?void 0:t.in)||e,0);f.setFullYear(o,0,u),f.setHours(0,0,0,0);const h=Gs(f,t);return+i>=+c?o+1:+i>=+h?o:o-1}function XA(e,t){var n,r,a,l;const i=oo(),o=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??i.firstWeekContainsDate??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,s=w6(e,t),u=jr((t==null?void 0:t.in)||e,0);return u.setFullYear(s,0,o),u.setHours(0,0,0,0),Gs(u,t)}function YA(e,t){const n=st(e,t==null?void 0:t.in),r=+Gs(n,t)-+XA(n,t);return Math.round(r/b6)+1}function ve(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ve(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ve(n+1,2)},d(e,t){return ve(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ve(e.getHours()%12||12,t.length)},H(e,t){return ve(e.getHours(),t.length)},m(e,t){return ve(e.getMinutes(),t.length)},s(e,t){return ve(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return ve(a,t.length)}},Gl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},by={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Fr.y(e,t)},Y:function(e,t,n,r){const a=w6(e,r),l=a>0?a:1-a;if(t==="YY"){const i=l%100;return ve(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):ve(l,t.length)},R:function(e,t){const n=y6(e);return ve(n,t.length)},u:function(e,t){const n=e.getFullYear();return ve(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ve(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ve(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ve(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=YA(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):ve(a,t.length)},I:function(e,t,n){const r=IA(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ve(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fr.d(e,t)},D:function(e,t,n){const r=QA(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ve(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return ve(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return ve(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return ve(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Gl.noon:r===0?a=Gl.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Gl.evening:r>=12?a=Gl.afternoon:r>=4?a=Gl.morning:a=Gl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ve(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ve(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fr.s(e,t)},S:function(e,t){return Fr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return xy(r);case"XXXX":case"XX":return el(r);case"XXXXX":case"XXX":default:return el(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return xy(r);case"xxxx":case"xx":return el(r);case"xxxxx":case"xxx":default:return el(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yy(r,":");case"OOOO":default:return"GMT"+el(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yy(r,":");case"zzzz":default:return"GMT"+el(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ve(r,t.length)},T:function(e,t,n){return ve(+e,t.length)}};function yy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),l=r%60;return l===0?n+String(a):n+String(a)+t+ve(l,2)}function xy(e,t){return e%60===0?(e>0?"-":"+")+ve(Math.abs(e)/60,2):el(e,t)}function el(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=ve(Math.trunc(r/60),2),l=ve(r%60,2);return n+a+t+l}const wy=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},C6=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ZA=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return wy(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",wy(r,t)).replace("{{time}}",C6(a,t))},$A={p:C6,P:ZA},WA=/^D+$/,JA=/^Y+$/,eL=["D","DD","YY","YYYY"];function tL(e){return WA.test(e)}function nL(e){return JA.test(e)}function rL(e,t,n){const r=aL(e,t,n);if(console.warn(r),eL.includes(e))throw new RangeError(r)}function aL(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const lL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oL=/^'([^]*?)'?$/,sL=/''/g,uL=/[a-zA-Z]/;function S6(e,t,n){var r,a,l,i;const o=oo(),s=o.locale??Yg,u=o.firstWeekContainsDate??((a=(r=o.locale)==null?void 0:r.options)==null?void 0:a.firstWeekContainsDate)??1,d=o.weekStartsOn??((i=(l=o.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??0,c=st(e,void 0);if(!lA(c))throw new RangeError("Invalid time value");let f=t.match(iL).map(m=>{const b=m[0];if(b==="p"||b==="P"){const y=$A[b];return y(m,s.formatLong)}return m}).join("").match(lL).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const b=m[0];if(b==="'")return{isToken:!1,value:cL(m)};if(by[b])return{isToken:!0,value:m};if(b.match(uL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(f=s.localize.preprocessor(c,f));const h={firstWeekContainsDate:u,weekStartsOn:d,locale:s};return f.map(m=>{if(!m.isToken)return m.value;const b=m.value;(nL(b)||tL(b))&&rL(b,t,String(e));const y=by[b[0]];return y(c,b,s.localize,h)}).join("")}function cL(e){const t=e.match(oL);return t?t[1].replace(sL,"'"):e}function dL(e,t,n){const r=oo(),a=r.locale??Yg,l=2520,i=xs(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:void 0,comparison:i}),[s,u]=gu(void 0,...i>0?[t,e]:[e,t]),d=fA(u,s),c=(Bi(u)-Bi(s))/1e3,f=Math.round((d-c)/60);let h;if(f<2)return f===0?a.formatDistance("lessThanXMinutes",1,o):a.formatDistance("xMinutes",f,o);if(f<45)return a.formatDistance("xMinutes",f,o);if(f<90)return a.formatDistance("aboutXHours",1,o);if(f<jd){const m=Math.round(f/60);return a.formatDistance("aboutXHours",m,o)}else{if(f<l)return a.formatDistance("xDays",1,o);if(f<hi){const m=Math.round(f/jd);return a.formatDistance("xDays",m,o)}else if(f<hi*2)return h=Math.round(f/hi),a.formatDistance("aboutXMonths",h,o)}if(h=dA(u,s),h<12){const m=Math.round(f/hi);return a.formatDistance("xMonths",m,o)}else{const m=h%12,b=Math.trunc(h/12);return m<3?a.formatDistance("aboutXYears",b,o):m<9?a.formatDistance("overXYears",b,o):a.formatDistance("almostXYears",b+1,o)}}function fL(e,t,n){const r=oo(),a=(n==null?void 0:n.locale)??r.locale??Yg,l=xs(e,t);if(isNaN(l))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:l}),[o,s]=gu(n==null?void 0:n.in,...l>0?[t,e]:[e,t]),u=x6((n==null?void 0:n.roundingMethod)??"round"),d=s.getTime()-o.getTime(),c=d/py,f=Bi(s)-Bi(o),h=(d-f)/py,m=n==null?void 0:n.unit;let b;if(m?b=m:c<1?b="second":c<60?b="minute":c<jd?b="hour":h<hi?b="day":h<my?b="month":b="year",b==="second"){const y=u(d/1e3);return a.formatDistance("xSeconds",y,i)}else if(b==="minute"){const y=u(c);return a.formatDistance("xMinutes",y,i)}else if(b==="hour"){const y=u(c/60);return a.formatDistance("xHours",y,i)}else if(b==="day"){const y=u(h/jd);return a.formatDistance("xDays",y,i)}else if(b==="month"){const y=u(h/hi);return y===12&&m!=="month"?a.formatDistance("xYears",1,i):a.formatDistance("xMonths",y,i)}else{const y=u(h/my);return a.formatDistance("xYears",y,i)}}function E6(e,t){return dL(e,rA(e),t)}var em=new Map,oh=new WeakMap,Cy=0,hL=void 0;function pL(e){return e?(oh.has(e)||(Cy+=1,oh.set(e,Cy.toString())),oh.get(e)):"0"}function mL(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?pL(e.root):e[t]}`).toString()}function gL(e){const t=mL(e);let n=em.get(t);if(!n){const r=new Map;let a;const l=new IntersectionObserver(i=>{i.forEach(o=>{var s;const u=o.isIntersecting&&a.some(d=>o.intersectionRatio>=d);e.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=u),(s=r.get(o.target))==null||s.forEach(d=>{d(u,o)})})},e);a=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:r},em.set(t,n)}return n}function vL(e,t,n={},r=hL){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:a,observer:l,elements:i}=gL(n),o=i.get(e)||[];return i.has(e)||i.set(e,o),o.push(t),l.observe(e),function(){o.splice(o.indexOf(t),1),o.length===0&&(i.delete(e),l.unobserve(e)),i.size===0&&(l.disconnect(),em.delete(a))}}function bL({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:a,triggerOnce:l,skip:i,initialInView:o,fallbackInView:s,onChange:u}={}){var d;const[c,f]=p.useState(null),h=p.useRef(u),[m,b]=p.useState({inView:!!o,entry:void 0});h.current=u,p.useEffect(()=>{if(i||!c)return;let x;return x=vL(c,(w,E)=>{b({inView:w,entry:E}),h.current&&h.current(w,E),E.isIntersecting&&l&&x&&(x(),x=void 0)},{root:a,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,a,r,l,i,n,s,t]);const y=(d=m.entry)==null?void 0:d.target,g=p.useRef(void 0);!c&&y&&!l&&!i&&g.current!==y&&(g.current=y,b({inView:!!o,entry:void 0}));const v=[f,m.inView,m.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}var M6=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,a=e.onClick,l=e.layoutVariant;return C.jsx("div",{onClick:function(i){return a(i)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(l==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},tm=30,nm=2e3,rm=2,O6=function(){return C.jsxs("div",{children:[C.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:C.jsx("span",{className:"opacity-0",children:"Placeholder"})}),At([],new Array(tm),!0).map(function(e,t){return C.jsx("div",{className:Ki("p-2",tm!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:C.jsx(vd,{className:"h-6 w-full"})},t)})]})};function Sy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function R6(...e){return t=>{let n=!1;const r=e.map(a=>{const l=Sy(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<r.length;a++){const l=r[a];typeof l=="function"?l():Sy(e[a],null)}}}}function Zg(...e){return p.useCallback(R6(...e),e)}function yL(e,t=[]){let n=[];function r(l,i){const o=p.createContext(i),s=n.length;n=[...n,i];const u=c=>{var f;const{scope:h,children:m,...b}=c,y=((f=h==null?void 0:h[e])==null?void 0:f[s])||o,g=p.useMemo(()=>b,Object.values(b));return C.jsx(y.Provider,{value:g,children:m})};u.displayName=l+"Provider";function d(c,f){var h;const m=((h=f==null?void 0:f[e])==null?void 0:h[s])||o,b=p.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[u,d]}const a=()=>{const l=n.map(i=>p.createContext(i));return function(i){const o=(i==null?void 0:i[e])||l;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:o}}),[i,o])}};return a.scopeName=e,[r,xL(a,...t)]}function xL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const l=r.reduce((i,{useScope:o,scopeName:s})=>{const u=o(a)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Ey(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var Ad=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},wL=y2[" useInsertionEffect ".trim().toString()]||Ad;function CL({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,l,i]=SL({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:a;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const c=d.current;c!==o&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${o?"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.`),d.current=o},[o,r])}const u=p.useCallback(d=>{var c;if(o){const f=EL(d)?d(e):d;f!==e&&((c=i.current)==null||c.call(i,f))}else l(d)},[o,e,l,i]);return[s,u]}function SL({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),a=p.useRef(n),l=p.useRef(t);return wL(()=>{l.current=t},[t]),p.useEffect(()=>{var i;a.current!==n&&((i=l.current)==null||i.call(l,n),a.current=n)},[n,a]),[n,r,l]}function EL(e){return typeof e=="function"}function ML(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function OL(e){const[t,n]=p.useState(void 0);return Ad(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let i,o;if("borderBoxSize"in l){const s=l.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,o=u.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function RL(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var T6=e=>{const{present:t,children:n}=e,r=TL(t),a=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),l=Zg(r.ref,kL(a));return typeof n=="function"||r.isPresent?p.cloneElement(a,{ref:l}):null};T6.displayName="Presence";function TL(e){const[t,n]=p.useState(),r=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),i=e?"mounted":"unmounted",[o,s]=RL(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=oc(r.current);l.current=o==="mounted"?u:"none"},[o]),Ad(()=>{const u=r.current,d=a.current;if(d!==e){const c=l.current,f=oc(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&c!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Ad(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=h=>{const m=oc(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(s("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=h=>{h.target===t&&(l.current=oc(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function oc(e){return(e==null?void 0:e.animationName)||"none"}function kL(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function DL(e){const t=jL(e),n=p.forwardRef((r,a)=>{const{children:l,...i}=r,o=p.Children.toArray(l),s=o.find(AL);if(s){const u=s.props.children,d=o.map(c=>c===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:c);return C.jsx(t,{...i,ref:a,children:p.isValidElement(u)?p.cloneElement(u,void 0,d):null})}return C.jsx(t,{...i,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function jL(e){const t=p.forwardRef((n,r)=>{const{children:a,...l}=n;if(p.isValidElement(a)){const i=_L(a),o=LL(l,a.props);return a.type!==p.Fragment&&(o.ref=r?R6(r,i):i),p.cloneElement(a,o)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var NL=Symbol("radix.slottable");function AL(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===NL}function LL(e,t){const n={...t};for(const r in t){const a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...i)=>{const o=l(...i);return a(...i),o}:a&&(n[r]=a):r==="style"?n[r]={...a,...l}:r==="className"&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function _L(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var zL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$g=zL.reduce((e,t)=>{const n=DL(`Primitive.${t}`),r=p.forwardRef((a,l)=>{const{asChild:i,...o}=a,s=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(s,{...o,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Nf="Checkbox",[PL]=yL(Nf),[HL,Wg]=PL(Nf);function KL(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:l,form:i,name:o,onCheckedChange:s,required:u,value:d="on",internal_do_not_use_render:c}=e,[f,h]=CL({prop:n,defaultProp:a??!1,onChange:s,caller:Nf}),[m,b]=p.useState(null),[y,g]=p.useState(null),v=p.useRef(!1),x=m?!!i||!!m.closest("form"):!0,w={checked:f,disabled:l,setChecked:h,control:m,setControl:b,name:o,form:i,value:d,hasConsumerStoppedPropagationRef:v,required:u,defaultChecked:ma(a)?!1:a,isFormControl:x,bubbleInput:y,setBubbleInput:g};return C.jsx(HL,{scope:t,...w,children:UL(c)?c(w):r})}var k6="CheckboxTrigger",D6=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:l,value:i,disabled:o,checked:s,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:m}=Wg(k6,e),b=Zg(a,d),y=p.useRef(s);return p.useEffect(()=>{const g=l==null?void 0:l.form;if(g){const v=()=>c(y.current);return g.addEventListener("reset",v),()=>g.removeEventListener("reset",v)}},[l,c]),C.jsx($g.button,{type:"button",role:"checkbox","aria-checked":ma(s)?"mixed":s,"aria-required":u,"data-state":z6(s),"data-disabled":o?"":void 0,disabled:o,value:i,...r,ref:b,onKeyDown:Ey(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:Ey(n,g=>{c(v=>ma(v)?!0:!v),m&&h&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});D6.displayName=k6;var j6=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:l,required:i,disabled:o,value:s,onCheckedChange:u,form:d,...c}=e;return C.jsx(KL,{__scopeCheckbox:n,checked:a,defaultChecked:l,disabled:o,required:i,onCheckedChange:u,name:r,form:d,value:s,internal_do_not_use_render:({isFormControl:f})=>C.jsxs(C.Fragment,{children:[C.jsx(D6,{...c,ref:t,__scopeCheckbox:n}),f&&C.jsx(_6,{__scopeCheckbox:n})]})})});j6.displayName=Nf;var N6="CheckboxIndicator",A6=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,l=Wg(N6,n);return C.jsx(T6,{present:r||ma(l.checked)||l.checked===!0,children:C.jsx($g.span,{"data-state":z6(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});A6.displayName=N6;var L6="CheckboxBubbleInput",_6=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:i,required:o,disabled:s,name:u,value:d,form:c,bubbleInput:f,setBubbleInput:h}=Wg(L6,e),m=Zg(n,h),b=ML(l),y=OL(r);p.useEffect(()=>{const v=f;if(!v)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set,E=!a.current;if(b!==l&&w){const S=new Event("click",{bubbles:E});v.indeterminate=ma(l),w.call(v,ma(l)?!1:l),v.dispatchEvent(S)}},[f,b,l,a]);const g=p.useRef(ma(l)?!1:l);return C.jsx($g.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??g.current,required:o,disabled:s,name:u,value:d,form:c,...t,tabIndex:-1,ref:m,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});_6.displayName=L6;function UL(e){return typeof e=="function"}function ma(e){return e==="indeterminate"}function z6(e){return ma(e)?"indeterminate":e?"checked":"unchecked"}var Ld=function(e){var t=e.className,n=uM(e,["className"]);return C.jsx(j6,{className:Ki("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:C.jsxs(A6,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&C.jsx(xR,{height:12,width:12}),n.checked===!0&&C.jsx(sR,{height:12,width:12})]})})},Fo=function(e){var t=e.label,n=e.icon;return C.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,C.jsx("span",{children:t})]})},Jg=function(e){var t=e.children,n=e.message;return C.jsxs(lN,{children:[C.jsx(Ug,{children:t}),C.jsx(iN,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},P6={exports:{}},H6={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K6={exports:{}},BL=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},qL=BL,FL=Array.prototype.concat,VL=Array.prototype.slice,My=K6.exports=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];qL(a)?t=FL.call(t,VL.call(a)):t.push(a)}return t};My.wrap=function(e){return function(){return e(My(arguments))}};var GL=K6.exports,ws=H6,vu=GL,U6=Object.hasOwnProperty,B6=Object.create(null);for(var sh in ws)U6.call(ws,sh)&&(B6[ws[sh]]=sh);var Wt=P6.exports={to:{},get:{}};Wt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=Wt.get.hsl(e),r="hsl";break;case"hwb":n=Wt.get.hwb(e),r="hwb";break;default:n=Wt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};Wt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^(\w+)$/,i=[0,0,0,1],o,s,u;if(o=e.match(n)){for(u=o[2],o=o[1],s=0;s<3;s++){var d=s*2;i[s]=parseInt(o.slice(d,d+2),16)}u&&(i[3]=parseInt(u,16)/255)}else if(o=e.match(t)){for(o=o[1],u=o[3],s=0;s<3;s++)i[s]=parseInt(o[s]+o[s],16);u&&(i[3]=parseInt(u+u,16)/255)}else if(o=e.match(r)){for(s=0;s<3;s++)i[s]=parseInt(o[s+1],0);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else if(o=e.match(a)){for(s=0;s<3;s++)i[s]=Math.round(parseFloat(o[s+1])*2.55);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else return(o=e.match(l))?o[1]==="transparent"?[0,0,0,0]:U6.call(ws,o[1])?(i=ws[o[1]],i[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=ga(i[s],0,255);return i[3]=ga(i[3],0,1),i};Wt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=ga(parseFloat(n[2]),0,100),i=ga(parseFloat(n[3]),0,100),o=ga(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};Wt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=ga(parseFloat(n[2]),0,100),i=ga(parseFloat(n[3]),0,100),o=ga(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};Wt.to.hex=function(){var e=vu(arguments);return"#"+sc(e[0])+sc(e[1])+sc(e[2])+(e[3]<1?sc(Math.round(e[3]*255)):"")};Wt.to.rgb=function(){var e=vu(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Wt.to.rgb.percent=function(){var e=vu(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};Wt.to.hsl=function(){var e=vu(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Wt.to.hwb=function(){var e=vu(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Wt.to.keyword=function(e){return B6[e.slice(0,3)]};function ga(e,t,n){return Math.min(Math.max(t,e),n)}function sc(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var QL=P6.exports;const Qs=H6,q6={};for(const e of Object.keys(Qs))q6[Qs[e]]=e;const Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var F6=Y;for(const e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:n})}Y.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),l=Math.max(t,n,r),i=l-a;let o,s;l===a?o=0:t===l?o=(n-r)/i:n===l?o=2+(r-t)/i:r===l&&(o=4+(t-n)/i),o=Math.min(o*60,360),o<0&&(o+=360);const u=(a+l)/2;return l===a?s=0:u<=.5?s=i/(l+a):s=i/(2-l-a),[o,s*100,u*100]};Y.rgb.hsv=function(e){let t,n,r,a,l;const i=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(i,o,s),d=u-Math.min(i,o,s),c=function(f){return(u-f)/6/d+1/2};return d===0?(a=0,l=0):(l=d/u,t=c(i),n=c(o),r=c(s),i===u?a=r-n:o===u?a=1/3+t-r:s===u&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[a*360,l*100,u*100]};Y.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=Y.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,l*100,r*100]};Y.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r),l=(1-t-a)/(1-a)||0,i=(1-n-a)/(1-a)||0,o=(1-r-a)/(1-a)||0;return[l*100,i*100,o*100,a*100]};function IL(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Y.rgb.keyword=function(e){const t=q6[e];if(t)return t;let n=1/0,r;for(const a of Object.keys(Qs)){const l=Qs[a],i=IL(e,l);i<n&&(n=i,r=a)}return r};Y.keyword.rgb=function(e){return Qs[e]};Y.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const a=t*.4124+n*.3576+r*.1805,l=t*.2126+n*.7152+r*.0722,i=t*.0193+n*.1192+r*.9505;return[a*100,l*100,i*100]};Y.rgb.lab=function(e){const t=Y.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*r-16,i=500*(n-r),o=200*(r-a);return[l,i,o]};Y.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,l,i;if(n===0)return i=r*255,[i,i,i];r<.5?a=r*(1+n):a=r+n-r*n;const o=2*r-a,s=[0,0,0];for(let u=0;u<3;u++)l=t+1/3*-(u-1),l<0&&l++,l>1&&l--,6*l<1?i=o+(a-o)*6*l:2*l<1?i=a:3*l<2?i=o+(a-o)*(2/3-l)*6:i=o,s[u]=i*255;return s};Y.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const l=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,a*=l<=1?l:2-l;const i=(r+n)/2,o=r===0?2*a/(l+a):2*n/(r+n);return[t,o*100,i*100]};Y.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,l=t-Math.floor(t),i=255*r*(1-n),o=255*r*(1-n*l),s=255*r*(1-n*(1-l));switch(r*=255,a){case 0:return[r,s,i];case 1:return[o,r,i];case 2:return[i,r,s];case 3:return[i,o,r];case 4:return[s,i,r];case 5:return[r,i,o]}};Y.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let l,i;i=(2-n)*r;const o=(2-n)*a;return l=n*a,l/=o<=1?o:2-o,l=l||0,i/=2,[t,l*100,i*100]};Y.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let l;a>1&&(n/=a,r/=a);const i=Math.floor(6*t),o=1-r;l=6*t-i,i&1&&(l=1-l);const s=n+l*(o-n);let u,d,c;switch(i){default:case 6:case 0:u=o,d=s,c=n;break;case 1:u=s,d=o,c=n;break;case 2:u=n,d=o,c=s;break;case 3:u=n,d=s,c=o;break;case 4:u=s,d=n,c=o;break;case 5:u=o,d=n,c=s;break}return[u*255,d*255,c*255]};Y.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100,l=1-Math.min(1,t*(1-a)+a),i=1-Math.min(1,n*(1-a)+a),o=1-Math.min(1,r*(1-a)+a);return[l*255,i*255,o*255]};Y.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,l,i;return a=t*3.2406+n*-1.5372+r*-.4986,l=t*-.9689+n*1.8758+r*.0415,i=t*.0557+n*-.204+r*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]};Y.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const a=116*n-16,l=500*(t-n),i=200*(n-r);return[a,l,i]};Y.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let a,l,i;l=(t+16)/116,a=n/500+l,i=l-r/200;const o=l**3,s=a**3,u=i**3;return l=o>.008856?o:(l-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a*=95.047,l*=100,i*=108.883,[a,l,i]};Y.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;a=Math.atan2(r,n)*360/2/Math.PI,a<0&&(a+=360);const l=Math.sqrt(n*n+r*r);return[t,l,a]};Y.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,a=n*Math.cos(r),l=n*Math.sin(r);return[t,a,l]};Y.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let l=t===null?Y.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),l===0)return 30;let i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return l===2&&(i+=60),i};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,a=(t>>1&1)*n*255,l=(t>>2&1)*n*255;return[r,a,l]};Y.ansi256.rgb=function(e){if(e>=232){const l=(e-232)*10+8;return[l,l,l]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[n,r,a]};Y.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Y.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),a=r>>16&255,l=r>>8&255,i=r&255;return[a,l,i]};Y.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),l=Math.min(Math.min(t,n),r),i=a-l;let o,s;return i<1?o=l/(1-i):o=0,i<=0?s=0:a===t?s=(n-r)/i%6:a===n?s=2+(r-t)/i:s=4+(t-n)/i,s/=6,s%=1,[s*360,i*100,o*100]};Y.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],r*100,a*100]};Y.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Y.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const a=[0,0,0],l=t%1*6,i=l%1,o=1-i;let s=0;switch(Math.floor(l)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return s=(1-n)*r,[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};Y.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let a=0;return r>0&&(a=t/r),[e[0],a*100,r*100]};Y.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};Y.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Y.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=function(e){return[0,0,e[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const _d=F6;function XL(){const e={},t=Object.keys(_d);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function YL(e){const t=XL(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),a=Object.keys(_d[r]);for(let l=a.length,i=0;i<l;i++){const o=a[i],s=t[o];s.distance===-1&&(s.distance=t[r].distance+1,s.parent=r,n.unshift(o))}}return t}function ZL(e,t){return function(n){return t(e(n))}}function $L(e,t){const n=[t[e].parent,e];let r=_d[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=ZL(_d[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}var WL=function(e){const t=YL(e),n={},r=Object.keys(t);for(let a=r.length,l=0;l<a;l++){const i=r[l];t[i].parent!==null&&(n[i]=$L(i,t))}return n};const am=F6,JL=WL,$l={},e_=Object.keys(am);function t_(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function n_(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const a=e(n);if(typeof a=="object")for(let l=a.length,i=0;i<l;i++)a[i]=Math.round(a[i]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}e_.forEach(e=>{$l[e]={},Object.defineProperty($l[e],"channels",{value:am[e].channels}),Object.defineProperty($l[e],"labels",{value:am[e].labels});const t=JL(e);Object.keys(t).forEach(n=>{const r=t[n];$l[e][n]=n_(r),$l[e][n].raw=t_(r)})});var r_=$l;const Wl=QL,Yt=r_,V6=["keyword","gray","hex"],lm={};for(const e of Object.keys(Yt))lm[[...Yt[e].labels].sort().join("")]=e;const zd={};function at(e,t){if(!(this instanceof at))return new at(e,t);if(t&&t in V6&&(t=null),t&&!(t in Yt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof at)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=Wl.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,r=Yt[this.model].channels,this.color=a.value.slice(0,r),this.valpha=typeof a.value[r]=="number"?a.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=Yt[this.model].channels;const a=Array.prototype.slice.call(e,0,r);this.color=im(a,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const l=a.sort().join("");if(!(l in lm))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=lm[l];const{labels:i}=Yt[this.model],o=[];for(n=0;n<i.length;n++)o.push(e[i[n]]);this.color=im(o)}if(zd[this.model])for(r=Yt[this.model].channels,n=0;n<r;n++){const a=zd[this.model][n];a&&(this.color[n]=a(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}at.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Wl.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Wl.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Wl.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yt[this.model],{labels:n}=Yt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new at([...this.color.map(l_(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new at([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Le("rgb",0,Ze(255)),green:Le("rgb",1,Ze(255)),blue:Le("rgb",2,Ze(255)),hue:Le(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Le("hsl",1,Ze(100)),lightness:Le("hsl",2,Ze(100)),saturationv:Le("hsv",1,Ze(100)),value:Le("hsv",2,Ze(100)),chroma:Le("hcg",1,Ze(100)),gray:Le("hcg",2,Ze(100)),white:Le("hwb",1,Ze(100)),wblack:Le("hwb",2,Ze(100)),cyan:Le("cmyk",0,Ze(100)),magenta:Le("cmyk",1,Ze(100)),yellow:Le("cmyk",2,Ze(100)),black:Le("cmyk",3,Ze(100)),x:Le("xyz",0,Ze(95.047)),y:Le("xyz",1,Ze(100)),z:Le("xyz",2,Ze(108.833)),l:Le("lab",0,Ze(100)),a:Le("lab",1),b:Le("lab",2),keyword(e){return e!==void 0?new at(e):Yt[this.model].keyword(this.color)},hex(e){return e!==void 0?new at(e):Wl.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new at(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Wl.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const a=r/255;t[n]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return at.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=t===void 0?.5:t,l=2*a-1,i=n.alpha()-r.alpha(),o=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-o;return at.rgb(o*n.red()+s*r.red(),o*n.green()+s*r.green(),o*n.blue()+s*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(Yt)){if(V6.includes(e))continue;const{channels:t}=Yt[e];at.prototype[e]=function(...n){return this.model===e?new at(this):n.length>0?new at(n,e):new at([...i_(Yt[this.model][e].raw(this.color)),this.valpha],e)},at[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=im(n,t)),new at(r,e)}}function a_(e,t){return Number(e.toFixed(t))}function l_(e){return function(t){return a_(t,e)}}function Le(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(zd[r]||(zd[r]=[]))[t]=n;return e=e[0],function(r){let a;return r!==void 0?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function Ze(e){return function(t){return Math.max(0,Math.min(e,t))}}function i_(e){return Array.isArray(e)?e:[e]}function im(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var o_=at;const Oy=d8(o_);var s_=typeof global=="object"&&global&&global.Object===Object&&global,u_=typeof self=="object"&&self&&self.Object===Object&&self,kl=s_||u_||Function("return this")(),Pd=kl.Symbol,G6=Object.prototype,c_=G6.hasOwnProperty,d_=G6.toString,Vo=Pd?Pd.toStringTag:void 0;function f_(e){var t=c_.call(e,Vo),n=e[Vo];try{e[Vo]=void 0;var r=!0}catch{}var a=d_.call(e);return r&&(t?e[Vo]=n:delete e[Vo]),a}var h_=Object.prototype,p_=h_.toString;function m_(e){return p_.call(e)}var g_="[object Null]",v_="[object Undefined]",Ry=Pd?Pd.toStringTag:void 0;function Q6(e){return e==null?e===void 0?v_:g_:Ry&&Ry in Object(e)?f_(e):m_(e)}function I6(e){return e!=null&&typeof e=="object"}var b_="[object Symbol]";function y_(e){return typeof e=="symbol"||I6(e)&&Q6(e)==b_}var x_=Array.isArray,w_=/\s/;function C_(e){for(var t=e.length;t--&&w_.test(e.charAt(t)););return t}var S_=/^\s+/;function E_(e){return e&&e.slice(0,C_(e)+1).replace(S_,"")}function qi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ty=NaN,M_=/^[-+]0x[0-9a-f]+$/i,O_=/^0b[01]+$/i,R_=/^0o[0-7]+$/i,T_=parseInt;function k_(e){if(typeof e=="number")return e;if(y_(e))return Ty;if(qi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=E_(e);var n=O_.test(e);return n||R_.test(e)?T_(e.slice(2),n?2:8):M_.test(e)?Ty:+e}var ky=1/0,D_=17976931348623157e292;function j_(e){if(!e)return e===0?e:0;if(e=k_(e),e===ky||e===-ky){var t=e<0?-1:1;return t*D_}return e===e?e:0}function Dy(e){var t=j_(e),n=t%1;return t===t?n?t-n:t:0}function X6(e){return e}var N_="[object AsyncFunction]",A_="[object Function]",L_="[object GeneratorFunction]",__="[object Proxy]";function z_(e){if(!qi(e))return!1;var t=Q6(e);return t==A_||t==L_||t==N_||t==__}var uh=kl["__core-js_shared__"],jy=function(){var e=/[^.]+$/.exec(uh&&uh.keys&&uh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function P_(e){return!!jy&&jy in e}var H_=Function.prototype,K_=H_.toString;function U_(e){if(e!=null){try{return K_.call(e)}catch{}try{return e+""}catch{}}return""}var B_=/[\\^$.*+?()[\]{}|]/g,q_=/^\[object .+?Constructor\]$/,F_=Function.prototype,V_=Object.prototype,G_=F_.toString,Q_=V_.hasOwnProperty,I_=RegExp("^"+G_.call(Q_).replace(B_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X_(e){if(!qi(e)||P_(e))return!1;var t=z_(e)?I_:q_;return t.test(U_(e))}function Y_(e,t){return e==null?void 0:e[t]}function Y6(e,t){var n=Y_(e,t);return X_(n)?n:void 0}var Ny=Y6(kl,"WeakMap"),Hd=Ny&&new Ny,Z6=Hd?function(e,t){return Hd.set(e,t),e}:X6,Ay=Object.create,e1=function(){function e(){}return function(t){if(!qi(t))return{};if(Ay)return Ay(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Is(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=e1(e.prototype),r=e.apply(n,t);return qi(r)?r:n}}var Z_=1;function $_(e,t,n){var r=t&Z_,a=Is(e);function l(){var i=this&&this!==kl&&this instanceof l?a:e;return i.apply(r?n:this,arguments)}return l}function $6(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var W_=Math.max;function W6(e,t,n,r){for(var a=-1,l=e.length,i=n.length,o=-1,s=t.length,u=W_(l-i,0),d=Array(s+u),c=!r;++o<s;)d[o]=t[o];for(;++a<i;)(c||a<l)&&(d[n[a]]=e[a]);for(;u--;)d[o++]=e[a++];return d}var J_=Math.max;function J6(e,t,n,r){for(var a=-1,l=e.length,i=-1,o=n.length,s=-1,u=t.length,d=J_(l-o,0),c=Array(d+u),f=!r;++a<d;)c[a]=e[a];for(var h=a;++s<u;)c[h+s]=t[s];for(;++i<o;)(f||a<l)&&(c[h+n[i]]=e[a++]);return c}function ez(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function t1(){}var tz=4294967295;function Fi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=tz,this.__views__=[]}Fi.prototype=e1(t1.prototype);Fi.prototype.constructor=Fi;function nz(){}var ex=Hd?function(e){return Hd.get(e)}:nz,Ly={},rz=Object.prototype,az=rz.hasOwnProperty;function lz(e){for(var t=e.name+"",n=Ly[t],r=az.call(Ly,t)?n.length:0;r--;){var a=n[r],l=a.func;if(l==null||l==e)return a.name}return t}function Vi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Vi.prototype=e1(t1.prototype);Vi.prototype.constructor=Vi;function tx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function iz(e){if(e instanceof Fi)return e.clone();var t=new Vi(e.__wrapped__,e.__chain__);return t.__actions__=tx(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var oz=Object.prototype,sz=oz.hasOwnProperty;function Kd(e){if(I6(e)&&!x_(e)&&!(e instanceof Fi)){if(e instanceof Vi)return e;if(sz.call(e,"__wrapped__"))return iz(e)}return new Vi(e)}Kd.prototype=t1.prototype;Kd.prototype.constructor=Kd;function uz(e){var t=lz(e),n=Kd[t];if(typeof n!="function"||!(t in Fi.prototype))return!1;if(e===n)return!0;var r=ex(n);return!!r&&e===r[0]}var cz=800,dz=16,fz=Date.now;function nx(e){var t=0,n=0;return function(){var r=fz(),a=dz-(r-n);if(n=r,a>0){if(++t>=cz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rx=nx(Z6),hz=/\{\n\/\* \[wrapped with (.+)\] \*/,pz=/,? & /;function mz(e){var t=e.match(hz);return t?t[1].split(pz):[]}var gz=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function vz(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(gz,`{
|
|
109
109
|
/* [wrapped with `+t+`] */
|
|
110
|
-
`)}function vz(e){return function(){return e}}var Lb=function(){try{var e=Y6(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yz=Lb?function(e,t){return Lb(e,"toString",{configurable:!0,enumerable:!1,value:vz(t),writable:!0})}:X6,bz=tw(yz);function wz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function xz(e,t,n,r){for(var a=e.length,l=n+-1;++l<a;)if(t(e[l],l,e))return l;return-1}function Cz(e){return e!==e}function Sz(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function Ez(e,t,n){return t===t?Sz(e,t,n):xz(e,Cz,n)}function Mz(e,t){var n=e==null?0:e.length;return!!n&&Ez(e,t,0)>-1}var Oz=1,Rz=2,Tz=8,Dz=16,jz=32,Az=64,Nz=128,kz=256,Lz=512,_z=[["ary",Nz],["bind",Oz],["bindKey",Rz],["curry",Tz],["curryRight",Dz],["flip",Lz],["partial",jz],["partialRight",Az],["rearg",kz]];function zz(e,t){return wz(_z,function(n){var r="_."+n[0];t&n[1]&&!Mz(e,r)&&e.push(r)}),e.sort()}function rw(e,t,n){var r=t+"";return bz(e,gz(r,zz(pz(r),n)))}var Pz=4,Hz=8,_b=32,zb=64;function aw(e,t,n,r,a,l,i,o,s,u){var d=t&Hz,c=d?i:void 0,f=d?void 0:i,h=d?l:void 0,m=d?void 0:l;t|=d?_b:zb,t&=~(d?zb:_b),t&Pz||(t&=-4);var v=[e,t,a,h,c,m,f,o,s,u],b=n.apply(void 0,v);return sz(e)&&nw(b,v),b.placeholder=r,rw(b,e,t)}function lw(e){var t=e;return t.placeholder}var Kz=9007199254740991,Uz=/^(?:0|[1-9]\d*)$/;function Bz(e,t){var n=typeof e;return t=t??Kz,!!t&&(n=="number"||n!="symbol"&&Uz.test(e))&&e>-1&&e%1==0&&e<t}var qz=Math.min;function Fz(e,t){for(var n=e.length,r=qz(t.length,n),a=ew(e);r--;){var l=t[r];e[r]=Bz(l,n)?a[l]:void 0}return e}var Pb="__lodash_placeholder__";function Ud(e,t){for(var n=-1,r=e.length,a=0,l=[];++n<r;){var i=e[n];(i===t||i===Pb)&&(e[n]=Pb,l[a++]=n)}return l}var Vz=1,Gz=2,Qz=8,Xz=16,Yz=128,Iz=512;function n1(e,t,n,r,a,l,i,o,s,u){var d=t&Yz,c=t&Vz,f=t&Gz,h=t&(Qz|Xz),m=t&Iz,v=f?void 0:Xs(e);function b(){for(var g=arguments.length,y=Array(g),w=g;w--;)y[w]=arguments[w];if(h)var C=lw(b),E=J_(y,C);if(r&&(y=$6(y,r,a,h)),l&&(y=W6(y,l,i,h)),g-=E,h&&g<u){var S=Ud(y,C);return aw(e,t,n1,b.placeholder,n,y,S,o,s,u-g)}var M=c?n:this,N=f?M[e]:e;return g=y.length,o?y=Fz(y,o):m&&g>1&&y.reverse(),d&&s<g&&(y.length=s),this&&this!==Dl&&this instanceof b&&(N=v||Xs(N)),N.apply(M,y)}return b}function Zz(e,t,n){var r=Xs(e);function a(){for(var l=arguments.length,i=Array(l),o=l,s=lw(a);o--;)i[o]=arguments[o];var u=l<3&&i[0]!==s&&i[l-1]!==s?[]:Ud(i,s);if(l-=u.length,l<n)return aw(e,t,n1,a.placeholder,void 0,i,u,void 0,void 0,n-l);var d=this&&this!==Dl&&this instanceof a?r:e;return Z6(d,this,i)}return a}var $z=1;function Wz(e,t,n,r){var a=t&$z,l=Xs(e);function i(){for(var o=-1,s=arguments.length,u=-1,d=r.length,c=Array(d+s),f=this&&this!==Dl&&this instanceof i?l:e;++u<d;)c[u]=r[u];for(;s--;)c[u++]=arguments[++o];return Z6(f,a?n:this,c)}return i}var Hb="__lodash_placeholder__",ch=1,Jz=2,eP=4,Kb=8,Vo=128,Ub=256,tP=Math.min;function nP(e,t){var n=e[1],r=t[1],a=n|r,l=a<(ch|Jz|Vo),i=r==Vo&&n==Kb||r==Vo&&n==Ub&&e[7].length<=t[8]||r==(Vo|Ub)&&t[7].length<=t[8]&&n==Kb;if(!(l||i))return e;r&ch&&(e[2]=t[2],a|=n&ch?0:eP);var o=t[3];if(o){var s=e[3];e[3]=s?$6(s,o,t[4]):o,e[4]=s?Ud(e[3],Hb):t[4]}return o=t[5],o&&(s=e[5],e[5]=s?W6(s,o,t[6]):o,e[6]=s?Ud(e[5],Hb):t[6]),o=t[7],o&&(e[7]=o),r&Vo&&(e[8]=e[8]==null?t[8]:tP(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var rP="Expected a function",Bb=1,aP=2,qb=8,Fb=16,Vb=32,lP=64,Gb=Math.max;function iP(e,t,n,r,a,l,i,o){var s=t&aP;if(!s&&typeof e!="function")throw new TypeError(rP);var u=r?r.length:0;if(u||(t&=-97,r=a=void 0),i=i===void 0?i:Gb(Db(i),0),o=o===void 0?o:Db(o),u-=a?a.length:0,t&lP){var d=r,c=a;r=a=void 0}var f=s?void 0:J6(e),h=[e,t,n,r,a,d,c,l,i,o];if(f&&nP(h,f),e=h[0],t=h[1],n=h[2],r=h[3],a=h[4],o=h[9]=h[9]===void 0?s?0:e.length:Gb(h[9]-u,0),!o&&t&(qb|Fb)&&(t&=-25),!t||t==Bb)var m=Z_(e,t,n);else t==qb||t==Fb?m=Zz(e,t,o):(t==Vb||t==(Bb|Vb))&&!a.length?m=Wz(e,t,n,r):m=n1.apply(void 0,h);var v=f?I6:nw;return rw(v(m,h),e,t)}var oP=8;function Bd(e,t,n){t=n?void 0:t;var r=iP(e,oP,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Bd.placeholder,r}Bd.placeholder={};function sP(e){const t=e[0],n=e[1],r=e[2];let a,l,i;return a=t*1+n*0+r*1.13983,l=t*1+n*-.39465+r*-.5806,i=t*1+n*2.02311+r*0,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]}function uP(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=t*.299+n*.587+r*.114,l=t*-.14713+n*-.28886+r*.436,i=t*.615+n*-.51499+r*-.10001;return[a,l,i]}const cP={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},dP={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},fP={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},hP={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},pP={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},mP={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},gP={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},vP={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},yP={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},bP={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},wP={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},xP={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},CP={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},SP={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},EP={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},MP={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},OP={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},RP={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},TP={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},DP={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},jP={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},AP={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},NP={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},kP={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},LP={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},_P={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},zP={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},PP={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},HP={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},KP={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},UP={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},BP={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},qP={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},FP={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},VP={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},GP={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},QP={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},XP={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},iw={threezerotwofour:cP,apathy:dP,ashes:fP,atelierDune:hP,atelierForest:pP,atelierHeath:mP,atelierLakeside:gP,atelierSeaside:vP,bespin:yP,brewer:bP,bright:wP,chalk:xP,codeschool:CP,colors:SP,default:EP,eighties:MP,embers:OP,flat:RP,google:TP,grayscale:DP,greenscreen:jP,harmonic:AP,hopscotch:NP,isotope:kP,marrakesh:LP,mocha:_P,monokai:zP,nicinabox:PP,ocean:HP,paraiso:KP,pop:UP,railscasts:BP,shapeshifter:qP,solarized:FP,summerfruit:VP,tomorrow:GP,tube:QP,twilight:XP},ow=iw.default,Qb=Object.keys(ow),YP=e=>e<.25?1:e<.5?.9-e:1.1-e,IP=e=>{const t=Mb(e),[n,r,a]=uP(t.array()),l=[YP(n),r,a],i=sP(l);return Mb.rgb(i).hex()},Ql=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),ZP=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return Ql({className:e,style:t});case"function":return(a,...l)=>Ql({className:e})(t(a,...l))}break;case"object":switch(r){case"string":return Ql({className:t,style:e});case"object":return{...t,...e};case"function":return(a,...l)=>Ql({style:e})(t(a,...l))}break;case"function":switch(r){case"string":return(a,...l)=>e(Ql(a)({className:t}),...l);case"object":return(a,...l)=>e(Ql(a)({style:t}),...l);case"function":return(a,...l)=>e(t(a,...l),...l)}}},$P=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,a)=>(r[a]=ZP(e[a],t[a]),r),{})},WP=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const r=t.map(a=>e[a]).filter(Boolean).reduce((a,l)=>(typeof l=="string"?a.className=[a.className,l].filter(Boolean).join(" "):typeof l=="object"?a.style={...a.style,...l}:typeof l=="function"&&(a={...a,...l(a,...n)}),a),{className:"",style:{}});return r.className||delete r.className,Object.keys(r.style).length===0&&delete r.style,r},om=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?IP(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),JP=Bd((e,t={},n={},...r)=>{const{defaultBase16:a=ow,base16Themes:l=null}=t,i=eH(n,l);i&&(n={...i,...n});const o=Qb.reduce((c,f)=>(c[f]=n[f]||a[f],c),{}),s=Object.keys(n).reduce((c,f)=>(Qb.indexOf(f)===-1&&(c[f]=n[f]),c),{}),u=e(o),d=$P(s,u);return Bd(WP,2)(d,...r)},3),sw=e=>!!e.extend,eH=(e,t)=>{if(e&&sw(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=iw[n],r==="inverted"&&(e=om(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},tH=e=>typeof e=="string"?`${e}:inverted`:e&&sw(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:om(e.extend)}:e&&om(e);function nH(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function uw({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:a}){return O.createElement("div",{...e("arrowContainer",t),onClick:a},O.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&O.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function rH(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function aH(e){return typeof e.set=="function"}function lH(e,t,n,r=0,a=1/0){let l;if(e==="Object"){let i=Object.getOwnPropertyNames(t);n&&i.sort(n===!0?void 0:n),i=i.slice(r,a+1),l={entries:i.map(o=>({key:o,value:t[o]}))}}else if(e==="Array")l={entries:t.slice(r,a+1).map((i,o)=>({key:o+r,value:i}))};else{let i=0;const o=[];let s=!0;const u=aH(t);for(const d of t){if(i>a){s=!1;break}r<=i&&(u&&Array.isArray(d)?typeof d[0]=="string"||typeof d[0]=="number"?o.push({key:d[0],value:d[1]}):o.push({key:`[entry ${i}]`,value:{"[key]":d[0],"[value]":d[1]}}):o.push({key:i,value:d})),i++}l={hasMore:!s,entries:o}}return l}function dh(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let a=e;a<=t;a+=n)r.push({from:a,to:Math.min(t,a+n-1)});return r}function iH(e,t,n,r,a=0,l=1/0){const i=lH.bind(null,e,t,n);if(!r)return i().entries;const o=l<1/0,s=Math.min(l-a,rH(e,t));if(e!=="Iterable"){if(s<=r||r<7)return i(a,l).entries}else if(s<=r&&!o)return i(a,l).entries;let u;if(e==="Iterable"){const{hasMore:d,entries:c}=i(a,a+r-1);u=d?[...c,...dh(a+r,a+2*r-1,r)]:c}else u=o?dh(a,l,r):[...i(0,r-5).entries,...dh(r-4,s-5,r),...i(s-4,s-1).entries];return u}function oH(e){const{styling:t,from:n,to:r,renderChildNodes:a,nodeType:l}=e,[i,o]=p.useState(!1),s=p.useCallback(()=>{o(!i)},[i]);return i?O.createElement("div",{...t("itemRange",i)},a(e,n,r)):O.createElement("div",{...t("itemRange",i),onClick:s},O.createElement(uw,{nodeType:l,styling:t,expanded:!1,onClick:s,arrowStyle:"double"}),`${n} ... ${r}`)}function sH(e){return e.to!==void 0}function cw(e,t,n){const{nodeType:r,data:a,collectionLimit:l,circularCache:i,keyPath:o,postprocessValue:s,sortObjectKeys:u}=e,d=[];return iH(r,a,u,l,t,n).forEach(c=>{if(sH(c))d.push(O.createElement(oH,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:cw}));else{const{key:f,value:h}=c,m=i.includes(h);d.push(O.createElement(dw,{...e,postprocessValue:s,collectionLimit:l,key:`Node--${f}`,keyPath:[f,...o],value:s(h),circularCache:[...i,h],isCircular:m,hideRoot:!1}))}}),d}function r1(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:a,expandable:l,getItemString:i,hideRoot:o,isCircular:s,keyPath:u,labelRenderer:d,level:c=0,nodeType:f,nodeTypeIndicator:h,shouldExpandNodeInitially:m,styling:v}=e,[b,g]=p.useState(s?!1:m(u,a,c)),y=p.useCallback(()=>{l&&g(!b)},[l,b]),w=b||o&&c===0?cw({...e,circularCache:t,level:c+1}):null,C=O.createElement("span",{...v("nestedNodeItemType",b)},h),E=i(f,a,C,r(a,n),u),S=[u,f,b,l];return o?O.createElement("li",{...v("rootNode",...S)},O.createElement("ul",{...v("rootNodeChildren",...S)},w)):O.createElement("li",{...v("nestedNode",...S)},l&&O.createElement(uw,{styling:v,nodeType:f,expanded:b,onClick:y}),O.createElement("label",{...v(["label","nestedNodeLabel"],...S),onClick:y},d(...S)),O.createElement("span",{...v("nestedNodeItemString",...S),onClick:y},E),O.createElement("ul",{...v("nestedNodeChildren",...S)},w))}function uH(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function cH({data:e,...t}){return O.createElement(r1,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:uH,expandable:Object.getOwnPropertyNames(e).length>0})}function dH(e){return`${e.length} ${e.length!==1?"items":"item"}`}function fH({data:e,...t}){return O.createElement(r1,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:dH,expandable:e.length>0})}function hH(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const a of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function pH(e){return O.createElement(r1,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:hH,expandable:!0})}function pr({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:a,value:l,valueGetter:i=o=>o}){return O.createElement("li",{...t("value",e,r)},O.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),O.createElement("span",{...t("valueText",e,r)},a(i(l),l,...r)))}function dw({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:a,valueRenderer:l,isCustomNode:i,...o}){const s=i(a)?"Custom":nH(a),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:s,styling:r,value:a,valueRenderer:l},d={...o,...u,data:a,isCustomNode:i};switch(s){case"Object":case"Error":case"WeakMap":case"WeakSet":return O.createElement(cH,{...d});case"Array":return O.createElement(fH,{...d});case"Iterable":case"Map":case"Set":return O.createElement(pH,{...d});case"String":return O.createElement(pr,{...u,valueGetter:c=>`"${c}"`});case"Number":return O.createElement(pr,{...u});case"Boolean":return O.createElement(pr,{...u,valueGetter:c=>c?"true":"false"});case"Date":return O.createElement(pr,{...u,valueGetter:c=>c.toISOString()});case"Null":return O.createElement(pr,{...u,valueGetter:()=>"null"});case"Undefined":return O.createElement(pr,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return O.createElement(pr,{...u,valueGetter:c=>c.toString()});case"Custom":return O.createElement(pr,{...u});default:return O.createElement(pr,{...u,valueGetter:()=>`<${s}>`})}}const mH={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},gH=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),vH=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),yH=e=>{const t=gH(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,a)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:a.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:vH(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,a)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",transform:a?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,a,l,i)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:i?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,a,l,i)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:i?"inherit":"text",MozUserSelect:i?"inherit":"text",cursor:i?"pointer":"default"}}),nestedNodeItemString:({style:n},r,a,l)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:l?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,a)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:a?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},bH=JP(yH,{defaultBase16:mH}),Xb=e=>e,wH=(e,t,n)=>n===0,xH=(e,t,n,r)=>O.createElement("span",null,n," ",r),CH=([e])=>O.createElement("span",null,e,":"),SH=()=>!1;function qd({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:a=CH,valueRenderer:l=Xb,shouldExpandNodeInitially:i=wH,hideRoot:o=!1,getItemString:s=xH,postprocessValue:u=Xb,isCustomNode:d=SH,collectionLimit:c=50,sortObjectKeys:f=!1}){const h=p.useMemo(()=>bH(n?tH(t):t),[t,n]);return O.createElement("ul",{...h("tree")},O.createElement(dw,{keyPath:o?[]:r,value:u(e),isCustomNode:d,styling:h,labelRenderer:a,valueRenderer:l,shouldExpandNodeInitially:i,hideRoot:o,getItemString:s,postprocessValue:u,collectionLimit:c,sortObjectKeys:f}))}var kf=function(e){var t=e.actions;return x.jsxs(UA,{children:[x.jsx(Ug,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100","aria-label":"Action menu",children:x.jsx(CR,{width:18,height:18})}),x.jsx(PA,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-50 bg-white/75 p-1 shadow-sm backdrop-blur-md ",offset:5,children:x.jsx(FA,{children:t.map(function(n){return x.jsxs(XA,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100",onAction:n.onSelect,children:[n.icon,x.jsx("span",{children:n.label})]},n.label)})})})]})},EH=function(e){var t=e.job,n=e.queueName,r=e.onRemove,a=Se.job.retry.useMutation(),l=a.mutate,i=a.isSuccess,o=Se.job.discard.useMutation(),s=o.mutate,u=o.isSuccess,d=Se.job.rerun.useMutation(),c=d.mutate,f=d.isSuccess,h=Se.job.remove.useMutation(),m=h.mutate,v=h.isSuccess;p.useEffect(function(){(i||u||f||v)&&(r==null||r())},[i,u,f,v,r]);var b={queueName:n,jobId:t.id};return x.jsx(kf,{actions:zn(zn(zn([],t.failedReason?[{label:"Retry",onSelect:function(){l(b)},icon:x.jsx(Pi,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){c(b)},icon:x.jsx(Pi,{})}]:[{label:"Discard",onSelect:function(){s(b)},icon:x.jsx(TR,{})}],!0),[{label:"Remove",onSelect:function(){m(b)},icon:x.jsx(eo,{})}],!1)})},Ma=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,a=r===void 0?"outline":r,l=e.size,i=l===void 0?"md":l,o=e.icon,s=e.label,u=e.isLoading,d=e.onClick,c=e.disabled;return x.jsxs("button",{onClick:d,disabled:u||c,className:Hi("flex items-center space-x-1 rounded-md border text-sm font-medium",{"py-0.5":i==="sm","py-1":i==="md","py-1.5":i==="lg"},[i==="sm"&&o?"pl-1.5 pr-2.5":"px-2.5",i==="md"&&o?"pl-2 pr-3":"px-3",i==="lg"&&o?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50":n==="yellow"&&a==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50":n==="slate"&&a==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50":n==="red"&&a==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900":n==="yellow"&&a==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900":n==="slate"&&a==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900":n==="red"&&a==="filled"}),children:[u?x.jsx("div",{className:"flex w-4 justify-center",children:x.jsx(Og,{width:10,height:10,className:"animate-spin"})}):o?x.jsx("div",{className:"flex w-4 justify-center",children:o}):null,x.jsx("span",{children:s})]})},MH=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,a=Se.queue.byName.useQuery({queueName:n}),l=Se.job.retry.useMutation().mutate,i=Se.job.logs.useQuery({jobId:t.id,queueName:n}).data;return x.jsx(jf,{isOpen:!0,isDismissable:!0,onOpenChange:function(o){o||r()},className:"fixed inset-0 bg-black/10",children:x.jsx(Tf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl",children:function(o){var s,u=o.close;return x.jsxs(x.Fragment,{children:[x.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50","aria-label":"Close",onClick:function(){r(),u()},children:x.jsx(Mg,{})}),x.jsxs("div",{className:"flex items-center space-x-4",children:[x.jsxs(Df,{className:"mb-1 flex items-center space-x-2",children:[x.jsx("span",{className:"text-xl font-semibold text-slate-900",children:t.name}),x.jsxs("span",{className:"rounded-md text-slate-500",children:["#",t.id]})]}),x.jsx(EH,{queueName:n,job:t,onRemove:r})]}),x.jsxs("div",{children:[t.failedReason?x.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4",children:[x.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Error"}),x.jsx("p",{className:"text-sm text-red-600",children:t.failedReason}),x.jsx(Ma,{label:"Retry",size:"sm",icon:x.jsx(Pi,{width:14}),onClick:function(){l({queueName:n,jobId:t.id}),r()}})]}):null,x.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4",children:[x.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Options"}),x.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:x.jsx(qd,{data:t.opts,theme:"monokai"})})]}),x.jsxs("div",{className:"space-y-2 pt-4",children:[x.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Data"}),x.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:x.jsx(qd,{data:t.data,theme:"monokai"})})]}),((s=a.data)===null||s===void 0?void 0:s.type)==="bullmq"&&i!=null&&i.length?x.jsxs("div",{className:"mt-4 space-y-2 border-t border-t-slate-200 pt-4",children:[x.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Logs"}),x.jsx("div",{className:"space-y-1",children:i==null?void 0:i.map(function(d,c){return x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300"}),x.jsx("p",{className:"font-mono text-sm",children:d})]},c)})})]}):null]})]})}})})},uc=l6(),OH=[uc.display({id:"select",header:function(e){var t=e.table;return x.jsx(Ld,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return x.jsx(Ld,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),uc.accessor("name",{cell:function(e){return x.jsxs("div",{className:"flex w-full items-center space-x-2",children:[x.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),x.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),uc.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,a=t.finishedAt,l=t.status,i=t.retriedAt;return x.jsxs("div",{className:"flex items-center space-x-3",children:[x.jsx(fh,{date:new Date(n),variant:"added"}),l==="waiting"?x.jsx(Yb,{}):null,r?x.jsxs(x.Fragment,{children:[x.jsx(Ib,{date:new Date(r),baseDate:new Date(n)}),x.jsx(fh,{date:new Date(r),variant:i?"retried":"processing"})]}):null,l==="active"?x.jsx(Yb,{}):null,a&&r?x.jsxs(x.Fragment,{children:[x.jsx(Ib,{date:new Date(a),baseDate:new Date(r)}),x.jsx(fh,{date:new Date(a),variant:l==="failed"?"failed":"completed"})]}):null]})}}),uc.display({id:"options",header:"Options",cell:function(e){var t=e.row.original.opts;return x.jsxs("div",{className:"flex items-center space-x-2",children:[t.priority?x.jsx(qo,{icon:x.jsx(ER,{width:12,height:12}),label:t.priority}):null,t.attempts&&t.attempts>1?x.jsx(qo,{icon:x.jsx(Pi,{width:12,height:12}),label:t.attempts}):null,t.lifo?x.jsx(qo,{icon:x.jsx(XR,{width:12,height:12}),label:"LIFO"}):null,t.delay?x.jsx(qo,{icon:x.jsx(jR,{width:12,height:12}),label:t.delay}):null,t.repeat?x.jsx(qo,{icon:x.jsx(NR,{width:12,height:12}),label:t.repeat.count}):null]})}})],RH=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,a=e.isLoading,l=e.isFetchingNextPage,i=e.queueName,o=e.status,s=p.useState({}),u=s[0],d=s[1],c=vL({threshold:0,onChange:function(E){E&&r()}}).ref,f=g6({data:t,columns:OH,getCoreRowModel:m6(),state:{rowSelection:u},onRowSelectionChange:d}),h=t.length===0,m=t.length/(n||0)*100,v=p.useState(null),b=v[0],g=v[1],y=Se.job.retry.useMutation().mutate,w=Se.job.rerun.useMutation().mutate,C=Se.job.bulkRemove.useMutation().mutate;return p.useEffect(function(){f.resetRowSelection()},[o]),x.jsxs("div",{children:[b?x.jsx(MH,{queueName:i,job:b,onDismiss:function(){return g(null)}}):null,x.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:a?x.jsx(M6,{}):x.jsxs("div",{children:[f.getHeaderGroups().map(function(E,S){return x.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:E.headers.map(function(M){return x.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(S!==0?"pr-10":"pr-3"),children:M.isPlaceholder?null:jd(M.column.columnDef.header,M.getContext())},M.id)})},E.id)}),f.getRowModel().rows.map(function(E,S){return x.jsx(E6,{isLastRow:f.getRowModel().rows.length!==S+1,isSelected:E.getIsSelected(),onClick:function(){return g(E.original)},layoutVariant:"job",children:E.getVisibleCells().map(function(M,N){return x.jsx("div",{className:"flex h-full items-center ".concat(N!==0?"pr-10":"pr-3"),children:jd(M.column.columnDef.cell,M.getContext())},M.id)})},E.id)}),!a&&h?x.jsx("div",{className:"flex items-center justify-center py-10",children:x.jsx("p",{className:"text-slate-500",children:"No jobs found"})}):null]})}),!a&&h?null:x.jsx("div",{ref:c,className:"my-3 flex justify-center",children:x.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[x.jsxs("p",{className:"text-xs text-slate-500",children:["You've viewed ",t.length," of ",n," jobs"]}),x.jsx(IA,{value:m,children:function(E){var S=E.percentage;return x.jsx(x.Fragment,{children:x.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200",children:x.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-S,"%)")}})})})}}),l?x.jsx(Og,{className:"animate-spin text-slate-300"}):null]})}),f.getSelectedRowModel().rows.length>0?x.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:x.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur",children:[x.jsxs("p",{children:[f.getSelectedRowModel().rows.length," selected"]}),o==="completed"||o==="failed"?x.jsx(Ma,{label:o==="failed"?"Retry":"Rerun",icon:x.jsx(Pi,{}),size:"sm",onClick:function(){f.getSelectedRowModel().rows.forEach(function(E){o==="failed"?y({queueName:i,jobId:E.original.id}):w({queueName:i,jobId:E.original.id})}),f.resetRowSelection()}}):null,x.jsx(Ma,{label:"Delete",colorScheme:"red",icon:x.jsx(eo,{}),size:"sm",onClick:function(){C({queueName:i,jobIds:f.getSelectedRowModel().rows.map(function(E){return E.original.id})}),f.resetRowSelection()}})]})}):null]})},fh=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return x.jsx(Jg,{message:"".concat(r[t]," ").concat(S6(n)," ago"),children:x.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&x.jsx(x3,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900"}),t==="processing"&&x.jsx(cR,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900"}),t==="retried"&&x.jsx(Pi,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900"}),t==="completed"&&x.jsx(v3,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900"}),t==="failed"&&x.jsx(y3,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900"}),x.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:C6(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Yb=function(){return x.jsxs("div",{className:"flex items-center space-x-1.5",children:[x.jsx(Dp,{width:14,height:14,className:"text-slate-300"}),x.jsx(Og,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Ib=function(e){var t=e.date,n=e.baseDate;return x.jsxs("div",{className:"flex items-center space-x-1.5",children:[x.jsx(Dp,{width:14,height:14,className:"text-slate-300"}),x.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:dL(t,n,{locale:{formatDistance:function(r,a){return r==="xSeconds"?"".concat(a,"s"):r==="xMinutes"?"".concat(a,"m"):r==="xHours"?"".concat(a,"h"):r==="xDays"?"".concat(a,"d"):r==="xMonths"?"".concat(a,"mo"):r==="xYears"?"".concat(a,"y"):""}}})}),x.jsx(Dp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},TH=function(e){var t=e.title,n=e.description,r=e.action,a=e.children;return x.jsxs(t6,{children:[x.jsx(Ug,{children:a}),x.jsx(jf,{isDismissable:!0,className:"fixed inset-0 bg-black/10",children:x.jsx(Tf,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl",children:function(l){var i=l.close;return x.jsxs(x.Fragment,{children:[x.jsx(Df,{className:"mb-3 text-xl font-semibold text-slate-900",children:t}),x.jsx("p",{className:"mb-6 text-slate-600",children:n}),x.jsxs("div",{className:"flex justify-end space-x-3",children:[x.jsx(Ma,{onClick:i,label:"Cancel"}),r]})]})}})})]})};function DH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const jH=e=>{switch(e){case"success":return kH;case"info":return _H;case"warning":return LH;case"error":return zH;default:return null}},AH=Array(12).fill(0),NH=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},AH.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),kH=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"})),LH=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"})),_H=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"})),zH=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"})),PH=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"})),HH=()=>{const[e,t]=O.useState(document.hidden);return O.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let sm=1;class KH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:sm++,i=this.toasts.find(s=>s.id===l),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),i?this.toasts=this.toasts.map(s=>s.id===l?(this.publish({...s,...t,id:l,title:r}),{...s,...t,id:l,dismissible:o,title:r}):s):this.addToast({title:r,...a,dismissible:o,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,i;const o=a.then(async u=>{if(i=["resolve",u],O.isValidElement(u))l=!1,this.create({id:r,type:"default",message:u});else if(BH(u)&&!u.ok){l=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,c=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...f})}else if(u instanceof Error){l=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...f})}else if(n.success!==void 0){l=!1;const d=typeof n.success=="function"?await n.success(u):n.success,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:c,...f})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){l=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((u,d)=>o.then(()=>i[0]==="reject"?d(i[1]):u(i[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||sm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const At=new KH,UH=(e,t)=>{const n=(t==null?void 0:t.id)||sm++;return At.addToast({title:e,...t,id:n}),n},BH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qH=UH,FH=()=>At.toasts,VH=()=>At.getActiveToasts(),Jl=Object.assign(qH,{success:At.success,info:At.info,warning:At.warning,error:At.error,custom:At.custom,message:At.message,promise:At.promise,dismiss:At.dismiss,loading:At.loading},{getHistory:FH,getToasts:VH});DH("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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 cc(e){return e.label!==void 0}const GH=3,QH="24px",XH="16px",Zb=4e3,YH=356,IH=14,ZH=45,$H=200;function Xn(...e){return e.filter(Boolean).join(" ")}function WH(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const JH=e=>{var t,n,r,a,l,i,o,s,u;const{invert:d,toast:c,unstyled:f,interacting:h,setHeights:m,visibleToasts:v,heights:b,index:g,toasts:y,expanded:w,removeToast:C,defaultRichColors:E,closeButton:S,style:M,cancelButtonStyle:N,actionButtonStyle:A,className:k="",descriptionClassName:j="",duration:z,position:B,gap:L,expandByDefault:P,classNames:T,icons:D,closeButtonAriaLabel:_="Close toast"}=e,[U,F]=O.useState(null),[G,K]=O.useState(null),[V,X]=O.useState(!1),[J,et]=O.useState(!1),[ge,tt]=O.useState(!1),[on,qn]=O.useState(!1),[On,Z]=O.useState(!1),[Rn,Pt]=O.useState(0),[Na,bu]=O.useState(0),ce=O.useRef(c.duration||z||Zb),Lr=O.useRef(null),Ht=O.useRef(null),oo=g===0,xw=g+1<=v,Kt=c.type,jl=c.dismissible!==!1,Cw=c.className||"",Sw=c.descriptionClassName||"",wu=O.useMemo(()=>b.findIndex(ae=>ae.toastId===c.id)||0,[b,c.id]),Ew=O.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:S},[c.closeButton,S]),a1=O.useMemo(()=>c.duration||z||Zb,[c.duration,z]),_f=O.useRef(0),Al=O.useRef(0),l1=O.useRef(0),Nl=O.useRef(null),[Mw,Ow]=B.split("-"),i1=O.useMemo(()=>b.reduce((ae,Ie,vt)=>vt>=wu?ae:ae+Ie.height,0),[b,wu]),o1=HH(),Rw=c.invert||d,zf=Kt==="loading";Al.current=O.useMemo(()=>wu*L+i1,[wu,i1]),O.useEffect(()=>{ce.current=a1},[a1]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{const ae=Ht.current;if(ae){const Ie=ae.getBoundingClientRect().height;return bu(Ie),m(vt=>[{toastId:c.id,height:Ie,position:c.position},...vt]),()=>m(vt=>vt.filter(Tn=>Tn.toastId!==c.id))}},[m,c.id]),O.useLayoutEffect(()=>{if(!V)return;const ae=Ht.current,Ie=ae.style.height;ae.style.height="auto";const vt=ae.getBoundingClientRect().height;ae.style.height=Ie,bu(vt),m(Tn=>Tn.find(nt=>nt.toastId===c.id)?Tn.map(nt=>nt.toastId===c.id?{...nt,height:vt}:nt):[{toastId:c.id,height:vt,position:c.position},...Tn])},[V,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const _r=O.useCallback(()=>{et(!0),Pt(Al.current),m(ae=>ae.filter(Ie=>Ie.toastId!==c.id)),setTimeout(()=>{C(c)},$H)},[c,C,m,Al]);O.useEffect(()=>{if(c.promise&&Kt==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return w||h||o1?(()=>{if(l1.current<_f.current){const Ie=new Date().getTime()-_f.current;ce.current=ce.current-Ie}l1.current=new Date().getTime()})():ce.current!==1/0&&(_f.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),_r()},ce.current)),()=>clearTimeout(ae)},[w,h,c,Kt,o1,_r]),O.useEffect(()=>{c.delete&&(_r(),c.onDismiss==null||c.onDismiss.call(c,c))},[_r,c.delete]);function Tw(){var ae;if(D!=null&&D.loading){var Ie;return O.createElement("div",{className:Xn(T==null?void 0:T.loader,c==null||(Ie=c.classNames)==null?void 0:Ie.loader,"sonner-loader"),"data-visible":Kt==="loading"},D.loading)}return O.createElement(NH,{className:Xn(T==null?void 0:T.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Kt==="loading"})}const Dw=c.icon||(D==null?void 0:D[Kt])||jH(Kt);var s1,u1;return O.createElement("li",{tabIndex:0,ref:Ht,className:Xn(k,Cw,T==null?void 0:T.toast,c==null||(t=c.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Kt],c==null||(n=c.classNames)==null?void 0:n[Kt]),"data-sonner-toast":"","data-rich-colors":(s1=c.richColors)!=null?s1:E,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":V,"data-promise":!!c.promise,"data-swiped":On,"data-removed":J,"data-visible":xw,"data-y-position":Mw,"data-x-position":Ow,"data-index":g,"data-front":oo,"data-swiping":ge,"data-dismissible":jl,"data-type":Kt,"data-invert":Rw,"data-swipe-out":on,"data-swipe-direction":G,"data-expanded":!!(w||P&&V),"data-testid":c.testId,style:{"--index":g,"--toasts-before":g,"--z-index":y.length-g,"--offset":`${J?Rn:Al.current}px`,"--initial-height":P?"auto":`${Na}px`,...M,...c.style},onDragEnd:()=>{tt(!1),F(null),Nl.current=null},onPointerDown:ae=>{ae.button!==2&&(zf||!jl||(Lr.current=new Date,Pt(Al.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(tt(!0),Nl.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,Ie,vt;if(on||!jl)return;Nl.current=null;const Tn=Number(((ae=Ht.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nt=Number(((Ie=Ht.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dn=new Date().getTime()-((vt=Lr.current)==null?void 0:vt.getTime()),so=U==="x"?Tn:nt,Fn=Math.abs(so)/Dn;if(Math.abs(so)>=ZH||Fn>.11){Pt(Al.current),c.onDismiss==null||c.onDismiss.call(c,c),K(U==="x"?Tn>0?"right":"left":nt>0?"down":"up"),_r(),qn(!0);return}else{var jn,uo;(jn=Ht.current)==null||jn.style.setProperty("--swipe-amount-x","0px"),(uo=Ht.current)==null||uo.style.setProperty("--swipe-amount-y","0px")}Z(!1),tt(!1),F(null)},onPointerMove:ae=>{var Ie,vt,Tn;if(!Nl.current||!jl||((Ie=window.getSelection())==null?void 0:Ie.toString().length)>0)return;const nt=ae.clientY-Nl.current.y,Dn=ae.clientX-Nl.current.x;var so;const Fn=(so=e.swipeDirections)!=null?so:WH(B);!U&&(Math.abs(Dn)>1||Math.abs(nt)>1)&&F(Math.abs(Dn)>Math.abs(nt)?"x":"y");let jn={x:0,y:0};const uo=ka=>1/(1.5+Math.abs(ka)/20);if(U==="y"){if(Fn.includes("top")||Fn.includes("bottom"))if(Fn.includes("top")&&nt<0||Fn.includes("bottom")&&nt>0)jn.y=nt;else{const ka=nt*uo(nt);jn.y=Math.abs(ka)<Math.abs(nt)?ka:nt}}else if(U==="x"&&(Fn.includes("left")||Fn.includes("right")))if(Fn.includes("left")&&Dn<0||Fn.includes("right")&&Dn>0)jn.x=Dn;else{const ka=Dn*uo(Dn);jn.x=Math.abs(ka)<Math.abs(Dn)?ka:Dn}(Math.abs(jn.x)>0||Math.abs(jn.y)>0)&&Z(!0),(vt=Ht.current)==null||vt.style.setProperty("--swipe-amount-x",`${jn.x}px`),(Tn=Ht.current)==null||Tn.style.setProperty("--swipe-amount-y",`${jn.y}px`)}},Ew&&!c.jsx&&Kt!=="loading"?O.createElement("button",{"aria-label":_,"data-disabled":zf,"data-close-button":!0,onClick:zf||!jl?()=>{}:()=>{_r(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Xn(T==null?void 0:T.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(u1=D==null?void 0:D.close)!=null?u1:PH):null,(Kt||c.icon||c.promise)&&c.icon!==null&&((D==null?void 0:D[Kt])!==null||c.icon)?O.createElement("div",{"data-icon":"",className:Xn(T==null?void 0:T.icon,c==null||(a=c.classNames)==null?void 0:a.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Tw():null,c.type!=="loading"?Dw:null):null,O.createElement("div",{"data-content":"",className:Xn(T==null?void 0:T.content,c==null||(l=c.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:Xn(T==null?void 0:T.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?O.createElement("div",{"data-description":"",className:Xn(j,Sw,T==null?void 0:T.description,c==null||(o=c.classNames)==null?void 0:o.description)},typeof c.description=="function"?c.description():c.description):null),O.isValidElement(c.cancel)?c.cancel:c.cancel&&cc(c.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||N,onClick:ae=>{cc(c.cancel)&&jl&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),_r())},className:Xn(T==null?void 0:T.cancelButton,c==null||(s=c.classNames)==null?void 0:s.cancelButton)},c.cancel.label):null,O.isValidElement(c.action)?c.action:c.action&&cc(c.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||A,onClick:ae=>{cc(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&_r())},className:Xn(T==null?void 0:T.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function $b(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function eK(e,t){const n={};return[e,t].forEach((r,a)=>{const l=a===1,i=l?"--mobile-offset":"--offset",o=l?XH:QH;function s(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=o:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):s(o)}),n}const tK=O.forwardRef(function(e,t){const{id:n,invert:r,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:i,closeButton:o,className:s,offset:u,mobileOffset:d,theme:c="light",richColors:f,duration:h,style:m,visibleToasts:v=GH,toastOptions:b,dir:g=$b(),gap:y=IH,icons:w,containerAriaLabel:C="Notifications"}=e,[E,S]=O.useState([]),M=O.useMemo(()=>n?E.filter(K=>K.toasterId===n):E.filter(K=>!K.toasterId),[E,n]),N=O.useMemo(()=>Array.from(new Set([a].concat(M.filter(K=>K.position).map(K=>K.position)))),[M,a]),[A,k]=O.useState([]),[j,z]=O.useState(!1),[B,L]=O.useState(!1),[P,T]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=O.useRef(null),_=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=O.useRef(null),F=O.useRef(!1),G=O.useCallback(K=>{S(V=>{var X;return(X=V.find(J=>J.id===K.id))!=null&&X.delete||At.dismiss(K.id),V.filter(({id:J})=>J!==K.id)})},[]);return O.useEffect(()=>At.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{S(V=>V.map(X=>X.id===K.id?{...X,delete:!0}:X))});return}setTimeout(()=>{pm.flushSync(()=>{S(V=>{const X=V.findIndex(J=>J.id===K.id);return X!==-1?[...V.slice(0,X),{...V[X],...K},...V.slice(X+1)]:[K,...V]})})})}),[E]),O.useEffect(()=>{if(c!=="system"){T(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:V})=>{T(V?"dark":"light")})}catch{K.addListener(({matches:V})=>{try{T(V?"dark":"light")}catch(X){console.error(X)}})}},[c]),O.useEffect(()=>{E.length<=1&&z(!1)},[E]),O.useEffect(()=>{const K=V=>{var X;if(l.every(et=>V[et]||V.code===et)){var J;z(!0),(J=D.current)==null||J.focus()}V.code==="Escape"&&(document.activeElement===D.current||(X=D.current)!=null&&X.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[l]),O.useEffect(()=>{if(D.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,F.current=!1)}},[D.current]),O.createElement("section",{ref:t,"aria-label":`${C} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((K,V)=>{var X;const[J,et]=K.split("-");return M.length?O.createElement("ol",{key:K,dir:g==="auto"?$b():g,tabIndex:-1,ref:D,className:s,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":J,"data-x-position":et,style:{"--front-toast-height":`${((X=A[0])==null?void 0:X.height)||0}px`,"--width":`${YH}px`,"--gap":`${y}px`,...m,...eK(u,d)},onBlur:ge=>{F.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(F.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||F.current||(F.current=!0,U.current=ge.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{B||z(!1)},onDragEnd:()=>z(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},M.filter(ge=>!ge.position&&V===0||ge.position===K).map((ge,tt)=>{var on,qn;return O.createElement(JH,{key:ge.id,icons:w,index:tt,toast:ge,defaultRichColors:f,duration:(on=b==null?void 0:b.duration)!=null?on:h,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:r,visibleToasts:v,closeButton:(qn=b==null?void 0:b.closeButton)!=null?qn:o,interacting:B,position:K,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:G,toasts:M.filter(On=>On.position==ge.position),heights:A.filter(On=>On.position==ge.position),setHeights:k,expandByDefault:i,gap:y,expanded:j,swipeDirections:e.swipeDirections})})):null}))});var nK=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,a=e.queue,l=Se.queue.clean.useMutation({onSuccess:function(){Jl.success("All ".concat(r," jobs have been removed"))}}),i=l.mutate,o=l.status,s=zn(zn(zn(zn([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],a&&"prioritized"in a.counts?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),a&&"waiting-children"in a.counts?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"},{name:"Paused",status:"paused"}],!1);return x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("div",{className:"flex items-center space-x-3",children:s.map(function(u){var d=u.status===r;return x.jsxs(yf,{to:"?status=".concat(u.status),className:Hi("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!d,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":d&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":d&&u.status==="failed","bg-cyan-50 text-cyan-900":d&&u.status==="active","bg-purple-50 text-purple-900":d&&u.status==="prioritized","bg-amber-50 text-amber-900":d&&u.status==="waiting","bg-orange-50 text-orange-900":d&&u.status==="waiting-children","bg-indigo-50 text-indigo-900":d&&u.status==="delayed","bg-stone-50 text-stone-900":d&&u.status==="paused"}),children:[x.jsx("span",{children:u.name}),a!=null&&a.counts[u.status]?x.jsx("span",{className:Hi("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50":!d,"bg-green-600 text-green-50":d&&u.status==="completed","bg-red-600 text-red-50":d&&u.status==="failed","bg-cyan-600 text-cyan-50":d&&u.status==="active","bg-purple-600 text-purple-50":d&&u.status==="prioritized","bg-amber-600 text-amber-50":d&&u.status==="waiting","bg-orange-600 text-orange-50":d&&u.status==="waiting-children","bg-indigo-600 text-indigo-50":d&&u.status==="delayed","bg-stone-600 text-stone-50":d&&u.status==="paused"}),children:a.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"?x.jsx(TH,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:x.jsx(Ma,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return i({queueName:n,status:r})}}),children:x.jsx(Ma,{colorScheme:"yellow",icon:x.jsx(eo,{}),label:"Clean all",size:"sm",isLoading:o==="pending"})}):null]})};function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rK(e){if(Array.isArray(e))return e}function aK(e,t,n){return(t=dK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,i,o=[],s=!0,u=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}function iK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
110
|
+
`)}function bz(e){return function(){return e}}var _y=function(){try{var e=Y6(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yz=_y?function(e,t){return _y(e,"toString",{configurable:!0,enumerable:!1,value:bz(t),writable:!0})}:X6,xz=nx(yz);function wz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Cz(e,t,n,r){for(var a=e.length,l=n+-1;++l<a;)if(t(e[l],l,e))return l;return-1}function Sz(e){return e!==e}function Ez(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function Mz(e,t,n){return t===t?Ez(e,t,n):Cz(e,Sz,n)}function Oz(e,t){var n=e==null?0:e.length;return!!n&&Mz(e,t,0)>-1}var Rz=1,Tz=2,kz=8,Dz=16,jz=32,Nz=64,Az=128,Lz=256,_z=512,zz=[["ary",Az],["bind",Rz],["bindKey",Tz],["curry",kz],["curryRight",Dz],["flip",_z],["partial",jz],["partialRight",Nz],["rearg",Lz]];function Pz(e,t){return wz(zz,function(n){var r="_."+n[0];t&n[1]&&!Oz(e,r)&&e.push(r)}),e.sort()}function ax(e,t,n){var r=t+"";return xz(e,vz(r,Pz(mz(r),n)))}var Hz=4,Kz=8,zy=32,Py=64;function lx(e,t,n,r,a,l,i,o,s,u){var d=t&Kz,c=d?i:void 0,f=d?void 0:i,h=d?l:void 0,m=d?void 0:l;t|=d?zy:Py,t&=~(d?Py:zy),t&Hz||(t&=-4);var b=[e,t,a,h,c,m,f,o,s,u],y=n.apply(void 0,b);return uz(e)&&rx(y,b),y.placeholder=r,ax(y,e,t)}function ix(e){var t=e;return t.placeholder}var Uz=9007199254740991,Bz=/^(?:0|[1-9]\d*)$/;function qz(e,t){var n=typeof e;return t=t??Uz,!!t&&(n=="number"||n!="symbol"&&Bz.test(e))&&e>-1&&e%1==0&&e<t}var Fz=Math.min;function Vz(e,t){for(var n=e.length,r=Fz(t.length,n),a=tx(e);r--;){var l=t[r];e[r]=qz(l,n)?a[l]:void 0}return e}var Hy="__lodash_placeholder__";function Ud(e,t){for(var n=-1,r=e.length,a=0,l=[];++n<r;){var i=e[n];(i===t||i===Hy)&&(e[n]=Hy,l[a++]=n)}return l}var Gz=1,Qz=2,Iz=8,Xz=16,Yz=128,Zz=512;function n1(e,t,n,r,a,l,i,o,s,u){var d=t&Yz,c=t&Gz,f=t&Qz,h=t&(Iz|Xz),m=t&Zz,b=f?void 0:Is(e);function y(){for(var g=arguments.length,v=Array(g),x=g;x--;)v[x]=arguments[x];if(h)var w=ix(y),E=ez(v,w);if(r&&(v=W6(v,r,a,h)),l&&(v=J6(v,l,i,h)),g-=E,h&&g<u){var S=Ud(v,w);return lx(e,t,n1,y.placeholder,n,v,S,o,s,u-g)}var M=c?n:this,N=f?M[e]:e;return g=v.length,o?v=Vz(v,o):m&&g>1&&v.reverse(),d&&s<g&&(v.length=s),this&&this!==kl&&this instanceof y&&(N=b||Is(N)),N.apply(M,v)}return y}function $z(e,t,n){var r=Is(e);function a(){for(var l=arguments.length,i=Array(l),o=l,s=ix(a);o--;)i[o]=arguments[o];var u=l<3&&i[0]!==s&&i[l-1]!==s?[]:Ud(i,s);if(l-=u.length,l<n)return lx(e,t,n1,a.placeholder,void 0,i,u,void 0,void 0,n-l);var d=this&&this!==kl&&this instanceof a?r:e;return $6(d,this,i)}return a}var Wz=1;function Jz(e,t,n,r){var a=t&Wz,l=Is(e);function i(){for(var o=-1,s=arguments.length,u=-1,d=r.length,c=Array(d+s),f=this&&this!==kl&&this instanceof i?l:e;++u<d;)c[u]=r[u];for(;s--;)c[u++]=arguments[++o];return $6(f,a?n:this,c)}return i}var Ky="__lodash_placeholder__",ch=1,eP=2,tP=4,Uy=8,Go=128,By=256,nP=Math.min;function rP(e,t){var n=e[1],r=t[1],a=n|r,l=a<(ch|eP|Go),i=r==Go&&n==Uy||r==Go&&n==By&&e[7].length<=t[8]||r==(Go|By)&&t[7].length<=t[8]&&n==Uy;if(!(l||i))return e;r&ch&&(e[2]=t[2],a|=n&ch?0:tP);var o=t[3];if(o){var s=e[3];e[3]=s?W6(s,o,t[4]):o,e[4]=s?Ud(e[3],Ky):t[4]}return o=t[5],o&&(s=e[5],e[5]=s?J6(s,o,t[6]):o,e[6]=s?Ud(e[5],Ky):t[6]),o=t[7],o&&(e[7]=o),r&Go&&(e[8]=e[8]==null?t[8]:nP(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var aP="Expected a function",qy=1,lP=2,Fy=8,Vy=16,Gy=32,iP=64,Qy=Math.max;function oP(e,t,n,r,a,l,i,o){var s=t&lP;if(!s&&typeof e!="function")throw new TypeError(aP);var u=r?r.length:0;if(u||(t&=-97,r=a=void 0),i=i===void 0?i:Qy(Dy(i),0),o=o===void 0?o:Dy(o),u-=a?a.length:0,t&iP){var d=r,c=a;r=a=void 0}var f=s?void 0:ex(e),h=[e,t,n,r,a,d,c,l,i,o];if(f&&rP(h,f),e=h[0],t=h[1],n=h[2],r=h[3],a=h[4],o=h[9]=h[9]===void 0?s?0:e.length:Qy(h[9]-u,0),!o&&t&(Fy|Vy)&&(t&=-25),!t||t==qy)var m=$_(e,t,n);else t==Fy||t==Vy?m=$z(e,t,o):(t==Gy||t==(qy|Gy))&&!a.length?m=Jz(e,t,n,r):m=n1.apply(void 0,h);var b=f?Z6:rx;return ax(b(m,h),e,t)}var sP=8;function Bd(e,t,n){t=n?void 0:t;var r=oP(e,sP,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Bd.placeholder,r}Bd.placeholder={};function uP(e){const t=e[0],n=e[1],r=e[2];let a,l,i;return a=t*1+n*0+r*1.13983,l=t*1+n*-.39465+r*-.5806,i=t*1+n*2.02311+r*0,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]}function cP(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=t*.299+n*.587+r*.114,l=t*-.14713+n*-.28886+r*.436,i=t*.615+n*-.51499+r*-.10001;return[a,l,i]}const dP={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},fP={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},hP={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},pP={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},mP={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},gP={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},vP={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},bP={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},yP={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},xP={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},wP={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},CP={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},SP={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},EP={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},MP={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},OP={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},RP={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},TP={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},kP={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},DP={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},jP={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},NP={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},AP={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},LP={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},_P={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},zP={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},PP={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},HP={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},KP={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},UP={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},BP={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},qP={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},FP={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},VP={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},GP={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},QP={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},IP={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},XP={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},ox={threezerotwofour:dP,apathy:fP,ashes:hP,atelierDune:pP,atelierForest:mP,atelierHeath:gP,atelierLakeside:vP,atelierSeaside:bP,bespin:yP,brewer:xP,bright:wP,chalk:CP,codeschool:SP,colors:EP,default:MP,eighties:OP,embers:RP,flat:TP,google:kP,grayscale:DP,greenscreen:jP,harmonic:NP,hopscotch:AP,isotope:LP,marrakesh:_P,mocha:zP,monokai:PP,nicinabox:HP,ocean:KP,paraiso:UP,pop:BP,railscasts:qP,shapeshifter:FP,solarized:VP,summerfruit:GP,tomorrow:QP,tube:IP,twilight:XP},sx=ox.default,Iy=Object.keys(sx),YP=e=>e<.25?1:e<.5?.9-e:1.1-e,ZP=e=>{const t=Oy(e),[n,r,a]=cP(t.array()),l=[YP(n),r,a],i=uP(l);return Oy.rgb(i).hex()},Ql=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),$P=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return Ql({className:e,style:t});case"function":return(a,...l)=>Ql({className:e})(t(a,...l))}break;case"object":switch(r){case"string":return Ql({className:t,style:e});case"object":return{...t,...e};case"function":return(a,...l)=>Ql({style:e})(t(a,...l))}break;case"function":switch(r){case"string":return(a,...l)=>e(Ql(a)({className:t}),...l);case"object":return(a,...l)=>e(Ql(a)({style:t}),...l);case"function":return(a,...l)=>e(t(a,...l),...l)}}},WP=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,a)=>(r[a]=$P(e[a],t[a]),r),{})},JP=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const r=t.map(a=>e[a]).filter(Boolean).reduce((a,l)=>(typeof l=="string"?a.className=[a.className,l].filter(Boolean).join(" "):typeof l=="object"?a.style={...a.style,...l}:typeof l=="function"&&(a={...a,...l(a,...n)}),a),{className:"",style:{}});return r.className||delete r.className,Object.keys(r.style).length===0&&delete r.style,r},om=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?ZP(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),eH=Bd((e,t={},n={},...r)=>{const{defaultBase16:a=sx,base16Themes:l=null}=t,i=tH(n,l);i&&(n={...i,...n});const o=Iy.reduce((c,f)=>(c[f]=n[f]||a[f],c),{}),s=Object.keys(n).reduce((c,f)=>(Iy.indexOf(f)===-1&&(c[f]=n[f]),c),{}),u=e(o),d=WP(s,u);return Bd(JP,2)(d,...r)},3),ux=e=>!!e.extend,tH=(e,t)=>{if(e&&ux(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=ox[n],r==="inverted"&&(e=om(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},nH=e=>typeof e=="string"?`${e}:inverted`:e&&ux(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:om(e.extend)}:e&&om(e);function rH(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function cx({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:a}){return O.createElement("div",{...e("arrowContainer",t),onClick:a},O.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&O.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function aH(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function lH(e){return typeof e.set=="function"}function iH(e,t,n,r=0,a=1/0){let l;if(e==="Object"){let i=Object.getOwnPropertyNames(t);n&&i.sort(n===!0?void 0:n),i=i.slice(r,a+1),l={entries:i.map(o=>({key:o,value:t[o]}))}}else if(e==="Array")l={entries:t.slice(r,a+1).map((i,o)=>({key:o+r,value:i}))};else{let i=0;const o=[];let s=!0;const u=lH(t);for(const d of t){if(i>a){s=!1;break}r<=i&&(u&&Array.isArray(d)?typeof d[0]=="string"||typeof d[0]=="number"?o.push({key:d[0],value:d[1]}):o.push({key:`[entry ${i}]`,value:{"[key]":d[0],"[value]":d[1]}}):o.push({key:i,value:d})),i++}l={hasMore:!s,entries:o}}return l}function dh(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let a=e;a<=t;a+=n)r.push({from:a,to:Math.min(t,a+n-1)});return r}function oH(e,t,n,r,a=0,l=1/0){const i=iH.bind(null,e,t,n);if(!r)return i().entries;const o=l<1/0,s=Math.min(l-a,aH(e,t));if(e!=="Iterable"){if(s<=r||r<7)return i(a,l).entries}else if(s<=r&&!o)return i(a,l).entries;let u;if(e==="Iterable"){const{hasMore:d,entries:c}=i(a,a+r-1);u=d?[...c,...dh(a+r,a+2*r-1,r)]:c}else u=o?dh(a,l,r):[...i(0,r-5).entries,...dh(r-4,s-5,r),...i(s-4,s-1).entries];return u}function sH(e){const{styling:t,from:n,to:r,renderChildNodes:a,nodeType:l}=e,[i,o]=p.useState(!1),s=p.useCallback(()=>{o(!i)},[i]);return i?O.createElement("div",{...t("itemRange",i)},a(e,n,r)):O.createElement("div",{...t("itemRange",i),onClick:s},O.createElement(cx,{nodeType:l,styling:t,expanded:!1,onClick:s,arrowStyle:"double"}),`${n} ... ${r}`)}function uH(e){return e.to!==void 0}function dx(e,t,n){const{nodeType:r,data:a,collectionLimit:l,circularCache:i,keyPath:o,postprocessValue:s,sortObjectKeys:u}=e,d=[];return oH(r,a,u,l,t,n).forEach(c=>{if(uH(c))d.push(O.createElement(sH,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:dx}));else{const{key:f,value:h}=c,m=i.includes(h);d.push(O.createElement(fx,{...e,postprocessValue:s,collectionLimit:l,key:`Node--${f}`,keyPath:[f,...o],value:s(h),circularCache:[...i,h],isCircular:m,hideRoot:!1}))}}),d}function r1(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:a,expandable:l,getItemString:i,hideRoot:o,isCircular:s,keyPath:u,labelRenderer:d,level:c=0,nodeType:f,nodeTypeIndicator:h,shouldExpandNodeInitially:m,styling:b}=e,[y,g]=p.useState(s?!1:m(u,a,c)),v=p.useCallback(()=>{l&&g(!y)},[l,y]),x=y||o&&c===0?dx({...e,circularCache:t,level:c+1}):null,w=O.createElement("span",{...b("nestedNodeItemType",y)},h),E=i(f,a,w,r(a,n),u),S=[u,f,y,l];return o?O.createElement("li",{...b("rootNode",...S)},O.createElement("ul",{...b("rootNodeChildren",...S)},x)):O.createElement("li",{...b("nestedNode",...S)},l&&O.createElement(cx,{styling:b,nodeType:f,expanded:y,onClick:v}),O.createElement("label",{...b(["label","nestedNodeLabel"],...S),onClick:v},d(...S)),O.createElement("span",{...b("nestedNodeItemString",...S),onClick:v},E),O.createElement("ul",{...b("nestedNodeChildren",...S)},x))}function cH(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function dH({data:e,...t}){return O.createElement(r1,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:cH,expandable:Object.getOwnPropertyNames(e).length>0})}function fH(e){return`${e.length} ${e.length!==1?"items":"item"}`}function hH({data:e,...t}){return O.createElement(r1,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:fH,expandable:e.length>0})}function pH(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const a of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function mH(e){return O.createElement(r1,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:pH,expandable:!0})}function pr({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:a,value:l,valueGetter:i=o=>o}){return O.createElement("li",{...t("value",e,r)},O.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),O.createElement("span",{...t("valueText",e,r)},a(i(l),l,...r)))}function fx({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:a,valueRenderer:l,isCustomNode:i,...o}){const s=i(a)?"Custom":rH(a),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:s,styling:r,value:a,valueRenderer:l},d={...o,...u,data:a,isCustomNode:i};switch(s){case"Object":case"Error":case"WeakMap":case"WeakSet":return O.createElement(dH,{...d});case"Array":return O.createElement(hH,{...d});case"Iterable":case"Map":case"Set":return O.createElement(mH,{...d});case"String":return O.createElement(pr,{...u,valueGetter:c=>`"${c}"`});case"Number":return O.createElement(pr,{...u});case"Boolean":return O.createElement(pr,{...u,valueGetter:c=>c?"true":"false"});case"Date":return O.createElement(pr,{...u,valueGetter:c=>c.toISOString()});case"Null":return O.createElement(pr,{...u,valueGetter:()=>"null"});case"Undefined":return O.createElement(pr,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return O.createElement(pr,{...u,valueGetter:c=>c.toString()});case"Custom":return O.createElement(pr,{...u});default:return O.createElement(pr,{...u,valueGetter:()=>`<${s}>`})}}const gH={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},vH=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),bH=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),yH=e=>{const t=vH(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,a)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:a.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:bH(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,a)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",transform:a?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,a,l,i)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:i?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,a,l,i)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:i?"inherit":"text",MozUserSelect:i?"inherit":"text",cursor:i?"pointer":"default"}}),nestedNodeItemString:({style:n},r,a,l)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:l?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,a)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:a?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},xH=eH(yH,{defaultBase16:gH}),Xy=e=>e,wH=(e,t,n)=>n===0,CH=(e,t,n,r)=>O.createElement("span",null,n," ",r),SH=([e])=>O.createElement("span",null,e,":"),EH=()=>!1;function qd({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:a=SH,valueRenderer:l=Xy,shouldExpandNodeInitially:i=wH,hideRoot:o=!1,getItemString:s=CH,postprocessValue:u=Xy,isCustomNode:d=EH,collectionLimit:c=50,sortObjectKeys:f=!1}){const h=p.useMemo(()=>xH(n?nH(t):t),[t,n]);return O.createElement("ul",{...h("tree")},O.createElement(fx,{keyPath:o?[]:r,value:u(e),isCustomNode:d,styling:h,labelRenderer:a,valueRenderer:l,shouldExpandNodeInitially:i,hideRoot:o,getItemString:s,postprocessValue:u,collectionLimit:c,sortObjectKeys:f}))}var Af=function(e){var t=e.actions;return C.jsxs(Bj,{children:[C.jsx(Ug,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:C.jsx(SR,{width:18,height:18})}),C.jsx(Hj,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:C.jsx(Vj,{children:t.map(function(n){return C.jsxs(Xj,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,C.jsx("span",{children:n.label})]},n.label)})})})]})},MH=function(e){var t=e.job,n=e.queueName,r=e.queue,a=e.onRemove,l=Se.job.retry.useMutation(),i=l.mutate,o=l.isSuccess,s=Se.job.discard.useMutation(),u=s.mutate,d=s.isSuccess,c=Se.job.rerun.useMutation(),f=c.mutate,h=c.isSuccess,m=Se.job.remove.useMutation(),b=m.mutate,y=m.isSuccess;p.useEffect(function(){(o||d||h||y)&&(a==null||a())},[o,d,h,y,a]);var g={queueName:n,jobId:t.id},v=(r==null?void 0:r.supports.retry)!==!1,x=At(At(At([],t.failedReason&&v?[{label:"Retry",onSelect:function(){i(g)},icon:C.jsx(Hi,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){f(g)},icon:C.jsx(Hi,{})}]:[{label:"Discard",onSelect:function(){u(g)},icon:C.jsx(kR,{})}],!0),[{label:"Remove",onSelect:function(){b(g)},icon:C.jsx(to,{})}],!1);return C.jsx(Af,{actions:x})},Ma=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,a=r===void 0?"outline":r,l=e.size,i=l===void 0?"md":l,o=e.icon,s=e.label,u=e.isLoading,d=e.onClick,c=e.disabled;return C.jsxs("button",{onClick:d,disabled:u||c,className:Ki("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":i==="sm","py-1":i==="md","py-1.5":i==="lg"},[i==="sm"&&o?"pl-1.5 pr-2.5":"px-2.5",i==="md"&&o?"pl-2 pr-3":"px-3",i==="lg"&&o?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&a==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&a==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&a==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&a==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&a==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&a==="filled"}),children:[u?C.jsx("div",{className:"flex w-4 justify-center",children:C.jsx(Og,{width:10,height:10,className:"animate-spin"})}):o?C.jsx("div",{className:"flex w-4 justify-center",children:o}):null,C.jsx("span",{children:s})]})},OH=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,a=Se.queue.byName.useQuery({queueName:n}),l=Se.job.retry.useMutation().mutate,i=Se.job.logs.useQuery({jobId:t.id,queueName:n}).data;return C.jsx(Df,{isOpen:!0,isDismissable:!0,onOpenChange:function(o){o||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:C.jsx(Tf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(o){var s,u,d=o.close;return C.jsxs(C.Fragment,{children:[C.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),d()},children:C.jsx(Mg,{})}),C.jsxs("div",{className:"flex items-center space-x-4",children:[C.jsxs(kf,{className:"mb-1 flex items-center space-x-2",children:[C.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),C.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),C.jsx(MH,{queueName:n,job:t,queue:(s=a.data)!==null&&s!==void 0?s:void 0,onRemove:r})]}),C.jsxs("div",{children:[t.failedReason?C.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[C.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),C.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),C.jsx(Ma,{label:"Retry",size:"sm",icon:C.jsx(Hi,{width:14}),onClick:function(){l({queueName:n,jobId:t.id}),r()}})]}):null,C.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[C.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),C.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:C.jsx(qd,{data:t.opts,theme:"monokai"})})]}),C.jsxs("div",{className:"space-y-2 pt-4",children:[C.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),C.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:C.jsx(qd,{data:t.data,theme:"monokai"})})]}),!((u=a.data)===null||u===void 0)&&u.supports.logs&&i!=null&&i.length?C.jsxs("div",{className:"mt-4 space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[C.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),C.jsx("div",{className:"space-y-1",children:i==null?void 0:i.map(function(c,f){return C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),C.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},f)})})]}):null]})]})}})})},uc=i6(),RH=[uc.display({id:"select",header:function(e){var t=e.table;return C.jsx(Ld,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return C.jsx(Ld,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),uc.accessor("name",{cell:function(e){return C.jsxs("div",{className:"flex w-full items-center space-x-2",children:[C.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),C.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),uc.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,a=t.finishedAt,l=t.status,i=t.retriedAt;return C.jsxs("div",{className:"flex items-center space-x-3",children:[C.jsx(fh,{date:new Date(n),variant:"added"}),l==="waiting"?C.jsx(Yy,{}):null,r?C.jsxs(C.Fragment,{children:[C.jsx(Zy,{date:new Date(r),baseDate:new Date(n)}),C.jsx(fh,{date:new Date(r),variant:i?"retried":"processing"})]}):null,l==="active"?C.jsx(Yy,{}):null,a&&r?C.jsxs(C.Fragment,{children:[C.jsx(Zy,{date:new Date(a),baseDate:new Date(r)}),C.jsx(fh,{date:new Date(a),variant:l==="failed"?"failed":"completed"})]}):null]})}}),uc.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return C.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?C.jsx(Fo,{icon:C.jsx(MR,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?C.jsx(Fo,{icon:C.jsx(Hi,{width:12,height:12}),label:n.attempts}):null,n.lifo?C.jsx(Fo,{icon:C.jsx(XR,{width:12,height:12}),label:"LIFO"}):null,n.delay?C.jsx(Fo,{icon:C.jsx(jR,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?C.jsx(Fo,{icon:C.jsx(AR,{width:12,height:12}),label:n.repeat.count}):null]})}})],TH=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,a=e.isLoading,l=e.isFetchingNextPage,i=e.queueName,o=e.status,s=p.useState({}),u=s[0],d=s[1],c=bL({threshold:0,onChange:function(E){E&&r()}}).ref,f=v6({data:t,columns:RH,getCoreRowModel:g6(),state:{rowSelection:u},onRowSelectionChange:d}),h=t.length===0,m=t.length/(n||0)*100,b=p.useState(null),y=b[0],g=b[1],v=Se.job.retry.useMutation().mutate,x=Se.job.rerun.useMutation().mutate,w=Se.job.bulkRemove.useMutation().mutate;return p.useEffect(function(){f.resetRowSelection()},[o]),C.jsxs("div",{children:[y?C.jsx(OH,{queueName:i,job:y,onDismiss:function(){return g(null)}}):null,C.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:a?C.jsx(O6,{}):C.jsxs("div",{children:[f.getHeaderGroups().map(function(E,S){return C.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:E.headers.map(function(M){return C.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(S!==0?"pr-10":"pr-3"),children:M.isPlaceholder?null:Dd(M.column.columnDef.header,M.getContext())},M.id)})},E.id)}),f.getRowModel().rows.map(function(E,S){return C.jsx(M6,{isLastRow:f.getRowModel().rows.length!==S+1,isSelected:E.getIsSelected(),onClick:function(){return g(E.original)},layoutVariant:"job",children:E.getVisibleCells().map(function(M,N){return C.jsx("div",{className:"flex h-full items-center ".concat(N!==0?"pr-10":"pr-3"),children:Dd(M.column.columnDef.cell,M.getContext())},M.id)})},E.id)}),!a&&h?C.jsx("div",{className:"flex items-center justify-center py-10",children:C.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!a&&h?null:C.jsx("div",{ref:c,className:"my-3 flex justify-center",children:C.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[C.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),C.jsx(Zj,{value:m,children:function(E){var S=E.percentage;return C.jsx(C.Fragment,{children:C.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:C.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-S,"%)")}})})})}}),l?C.jsx(Og,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),f.getSelectedRowModel().rows.length>0?C.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:C.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[C.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[f.getSelectedRowModel().rows.length," selected"]}),o==="completed"||o==="failed"?C.jsx(Ma,{label:o==="failed"?"Retry":"Rerun",icon:C.jsx(Hi,{}),size:"sm",onClick:function(){f.getSelectedRowModel().rows.forEach(function(E){o==="failed"?v({queueName:i,jobId:E.original.id}):x({queueName:i,jobId:E.original.id})}),f.resetRowSelection()}}):null,C.jsx(Ma,{label:"Delete",colorScheme:"red",icon:C.jsx(to,{}),size:"sm",onClick:function(){w({queueName:i,jobIds:f.getSelectedRowModel().rows.map(function(E){return E.original.id})}),f.resetRowSelection()}})]})}):null]})},fh=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return C.jsx(Jg,{message:"".concat(r[t]," ").concat(E6(n)," ago"),children:C.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&C.jsx(C3,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&C.jsx(dR,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&C.jsx(Hi,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&C.jsx(b3,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&C.jsx(y3,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),C.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:S6(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Yy=function(){return C.jsxs("div",{className:"flex items-center space-x-1.5",children:[C.jsx(kp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),C.jsx(Og,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Zy=function(e){var t=e.date,n=e.baseDate;return C.jsxs("div",{className:"flex items-center space-x-1.5",children:[C.jsx(kp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),C.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:fL(t,n,{locale:{formatDistance:function(r,a){return r==="xSeconds"?"".concat(a,"s"):r==="xMinutes"?"".concat(a,"m"):r==="xHours"?"".concat(a,"h"):r==="xDays"?"".concat(a,"d"):r==="xMonths"?"".concat(a,"mo"):r==="xYears"?"".concat(a,"y"):""}}})}),C.jsx(kp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},kH=function(e){var t=e.title,n=e.description,r=e.action,a=e.children;return C.jsxs(n6,{children:[C.jsx(Ug,{children:a}),C.jsx(Df,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:C.jsx(Tf,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(l){var i=l.close;return C.jsxs(C.Fragment,{children:[C.jsx(kf,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),C.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),C.jsxs("div",{className:"flex justify-end space-x-3",children:[C.jsx(Ma,{onClick:i,label:"Cancel"}),r]})]})}})})]})};function DH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const jH=e=>{switch(e){case"success":return LH;case"info":return zH;case"warning":return _H;case"error":return PH;default:return null}},NH=Array(12).fill(0),AH=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},NH.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),LH=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"})),_H=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"})),zH=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"})),PH=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"})),HH=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"})),KH=()=>{const[e,t]=O.useState(document.hidden);return O.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let sm=1;class UH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:sm++,i=this.toasts.find(s=>s.id===l),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),i?this.toasts=this.toasts.map(s=>s.id===l?(this.publish({...s,...t,id:l,title:r}),{...s,...t,id:l,dismissible:o,title:r}):s):this.addToast({title:r,...a,dismissible:o,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,i;const o=a.then(async u=>{if(i=["resolve",u],O.isValidElement(u))l=!1,this.create({id:r,type:"default",message:u});else if(qH(u)&&!u.ok){l=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,c=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...f})}else if(u instanceof Error){l=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...f})}else if(n.success!==void 0){l=!1;const d=typeof n.success=="function"?await n.success(u):n.success,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:c,...f})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){l=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((u,d)=>o.then(()=>i[0]==="reject"?d(i[1]):u(i[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||sm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const jt=new UH,BH=(e,t)=>{const n=(t==null?void 0:t.id)||sm++;return jt.addToast({title:e,...t,id:n}),n},qH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",FH=BH,VH=()=>jt.toasts,GH=()=>jt.getActiveToasts(),Jl=Object.assign(FH,{success:jt.success,info:jt.info,warning:jt.warning,error:jt.error,custom:jt.custom,message:jt.message,promise:jt.promise,dismiss:jt.dismiss,loading:jt.loading},{getHistory:VH,getToasts:GH});DH("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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 cc(e){return e.label!==void 0}const QH=3,IH="24px",XH="16px",$y=4e3,YH=356,ZH=14,$H=45,WH=200;function In(...e){return e.filter(Boolean).join(" ")}function JH(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const eK=e=>{var t,n,r,a,l,i,o,s,u;const{invert:d,toast:c,unstyled:f,interacting:h,setHeights:m,visibleToasts:b,heights:y,index:g,toasts:v,expanded:x,removeToast:w,defaultRichColors:E,closeButton:S,style:M,cancelButtonStyle:N,actionButtonStyle:j,className:A="",descriptionClassName:D="",duration:z,position:B,gap:L,expandByDefault:P,classNames:T,icons:k,closeButtonAriaLabel:_="Close toast"}=e,[U,F]=O.useState(null),[G,K]=O.useState(null),[V,I]=O.useState(!1),[J,et]=O.useState(!1),[ge,tt]=O.useState(!1),[sn,qn]=O.useState(!1),[Rn,Z]=O.useState(!1),[Tn,Ht]=O.useState(0),[Na,yu]=O.useState(0),ce=O.useRef(c.duration||z||$y),Lr=O.useRef(null),Kt=O.useRef(null),so=g===0,Cx=g+1<=b,Ut=c.type,Dl=c.dismissible!==!1,Sx=c.className||"",Ex=c.descriptionClassName||"",xu=O.useMemo(()=>y.findIndex(ae=>ae.toastId===c.id)||0,[y,c.id]),Mx=O.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:S},[c.closeButton,S]),a1=O.useMemo(()=>c.duration||z||$y,[c.duration,z]),_f=O.useRef(0),jl=O.useRef(0),l1=O.useRef(0),Nl=O.useRef(null),[Ox,Rx]=B.split("-"),i1=O.useMemo(()=>y.reduce((ae,Ye,vt)=>vt>=xu?ae:ae+Ye.height,0),[y,xu]),o1=KH(),Tx=c.invert||d,zf=Ut==="loading";jl.current=O.useMemo(()=>xu*L+i1,[xu,i1]),O.useEffect(()=>{ce.current=a1},[a1]),O.useEffect(()=>{I(!0)},[]),O.useEffect(()=>{const ae=Kt.current;if(ae){const Ye=ae.getBoundingClientRect().height;return yu(Ye),m(vt=>[{toastId:c.id,height:Ye,position:c.position},...vt]),()=>m(vt=>vt.filter(kn=>kn.toastId!==c.id))}},[m,c.id]),O.useLayoutEffect(()=>{if(!V)return;const ae=Kt.current,Ye=ae.style.height;ae.style.height="auto";const vt=ae.getBoundingClientRect().height;ae.style.height=Ye,yu(vt),m(kn=>kn.find(nt=>nt.toastId===c.id)?kn.map(nt=>nt.toastId===c.id?{...nt,height:vt}:nt):[{toastId:c.id,height:vt,position:c.position},...kn])},[V,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const _r=O.useCallback(()=>{et(!0),Ht(jl.current),m(ae=>ae.filter(Ye=>Ye.toastId!==c.id)),setTimeout(()=>{w(c)},WH)},[c,w,m,jl]);O.useEffect(()=>{if(c.promise&&Ut==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return x||h||o1?(()=>{if(l1.current<_f.current){const Ye=new Date().getTime()-_f.current;ce.current=ce.current-Ye}l1.current=new Date().getTime()})():ce.current!==1/0&&(_f.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),_r()},ce.current)),()=>clearTimeout(ae)},[x,h,c,Ut,o1,_r]),O.useEffect(()=>{c.delete&&(_r(),c.onDismiss==null||c.onDismiss.call(c,c))},[_r,c.delete]);function kx(){var ae;if(k!=null&&k.loading){var Ye;return O.createElement("div",{className:In(T==null?void 0:T.loader,c==null||(Ye=c.classNames)==null?void 0:Ye.loader,"sonner-loader"),"data-visible":Ut==="loading"},k.loading)}return O.createElement(AH,{className:In(T==null?void 0:T.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Ut==="loading"})}const Dx=c.icon||(k==null?void 0:k[Ut])||jH(Ut);var s1,u1;return O.createElement("li",{tabIndex:0,ref:Kt,className:In(A,Sx,T==null?void 0:T.toast,c==null||(t=c.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Ut],c==null||(n=c.classNames)==null?void 0:n[Ut]),"data-sonner-toast":"","data-rich-colors":(s1=c.richColors)!=null?s1:E,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":V,"data-promise":!!c.promise,"data-swiped":Rn,"data-removed":J,"data-visible":Cx,"data-y-position":Ox,"data-x-position":Rx,"data-index":g,"data-front":so,"data-swiping":ge,"data-dismissible":Dl,"data-type":Ut,"data-invert":Tx,"data-swipe-out":sn,"data-swipe-direction":G,"data-expanded":!!(x||P&&V),"data-testid":c.testId,style:{"--index":g,"--toasts-before":g,"--z-index":v.length-g,"--offset":`${J?Tn:jl.current}px`,"--initial-height":P?"auto":`${Na}px`,...M,...c.style},onDragEnd:()=>{tt(!1),F(null),Nl.current=null},onPointerDown:ae=>{ae.button!==2&&(zf||!Dl||(Lr.current=new Date,Ht(jl.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(tt(!0),Nl.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,Ye,vt;if(sn||!Dl)return;Nl.current=null;const kn=Number(((ae=Kt.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nt=Number(((Ye=Kt.current)==null?void 0:Ye.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dn=new Date().getTime()-((vt=Lr.current)==null?void 0:vt.getTime()),uo=U==="x"?kn:nt,Fn=Math.abs(uo)/Dn;if(Math.abs(uo)>=$H||Fn>.11){Ht(jl.current),c.onDismiss==null||c.onDismiss.call(c,c),K(U==="x"?kn>0?"right":"left":nt>0?"down":"up"),_r(),qn(!0);return}else{var jn,co;(jn=Kt.current)==null||jn.style.setProperty("--swipe-amount-x","0px"),(co=Kt.current)==null||co.style.setProperty("--swipe-amount-y","0px")}Z(!1),tt(!1),F(null)},onPointerMove:ae=>{var Ye,vt,kn;if(!Nl.current||!Dl||((Ye=window.getSelection())==null?void 0:Ye.toString().length)>0)return;const nt=ae.clientY-Nl.current.y,Dn=ae.clientX-Nl.current.x;var uo;const Fn=(uo=e.swipeDirections)!=null?uo:JH(B);!U&&(Math.abs(Dn)>1||Math.abs(nt)>1)&&F(Math.abs(Dn)>Math.abs(nt)?"x":"y");let jn={x:0,y:0};const co=Aa=>1/(1.5+Math.abs(Aa)/20);if(U==="y"){if(Fn.includes("top")||Fn.includes("bottom"))if(Fn.includes("top")&&nt<0||Fn.includes("bottom")&&nt>0)jn.y=nt;else{const Aa=nt*co(nt);jn.y=Math.abs(Aa)<Math.abs(nt)?Aa:nt}}else if(U==="x"&&(Fn.includes("left")||Fn.includes("right")))if(Fn.includes("left")&&Dn<0||Fn.includes("right")&&Dn>0)jn.x=Dn;else{const Aa=Dn*co(Dn);jn.x=Math.abs(Aa)<Math.abs(Dn)?Aa:Dn}(Math.abs(jn.x)>0||Math.abs(jn.y)>0)&&Z(!0),(vt=Kt.current)==null||vt.style.setProperty("--swipe-amount-x",`${jn.x}px`),(kn=Kt.current)==null||kn.style.setProperty("--swipe-amount-y",`${jn.y}px`)}},Mx&&!c.jsx&&Ut!=="loading"?O.createElement("button",{"aria-label":_,"data-disabled":zf,"data-close-button":!0,onClick:zf||!Dl?()=>{}:()=>{_r(),c.onDismiss==null||c.onDismiss.call(c,c)},className:In(T==null?void 0:T.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(u1=k==null?void 0:k.close)!=null?u1:HH):null,(Ut||c.icon||c.promise)&&c.icon!==null&&((k==null?void 0:k[Ut])!==null||c.icon)?O.createElement("div",{"data-icon":"",className:In(T==null?void 0:T.icon,c==null||(a=c.classNames)==null?void 0:a.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||kx():null,c.type!=="loading"?Dx:null):null,O.createElement("div",{"data-content":"",className:In(T==null?void 0:T.content,c==null||(l=c.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:In(T==null?void 0:T.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?O.createElement("div",{"data-description":"",className:In(D,Ex,T==null?void 0:T.description,c==null||(o=c.classNames)==null?void 0:o.description)},typeof c.description=="function"?c.description():c.description):null),O.isValidElement(c.cancel)?c.cancel:c.cancel&&cc(c.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||N,onClick:ae=>{cc(c.cancel)&&Dl&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),_r())},className:In(T==null?void 0:T.cancelButton,c==null||(s=c.classNames)==null?void 0:s.cancelButton)},c.cancel.label):null,O.isValidElement(c.action)?c.action:c.action&&cc(c.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||j,onClick:ae=>{cc(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&_r())},className:In(T==null?void 0:T.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Wy(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function tK(e,t){const n={};return[e,t].forEach((r,a)=>{const l=a===1,i=l?"--mobile-offset":"--offset",o=l?XH:IH;function s(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=o:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):s(o)}),n}const nK=O.forwardRef(function(e,t){const{id:n,invert:r,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:i,closeButton:o,className:s,offset:u,mobileOffset:d,theme:c="light",richColors:f,duration:h,style:m,visibleToasts:b=QH,toastOptions:y,dir:g=Wy(),gap:v=ZH,icons:x,containerAriaLabel:w="Notifications"}=e,[E,S]=O.useState([]),M=O.useMemo(()=>n?E.filter(K=>K.toasterId===n):E.filter(K=>!K.toasterId),[E,n]),N=O.useMemo(()=>Array.from(new Set([a].concat(M.filter(K=>K.position).map(K=>K.position)))),[M,a]),[j,A]=O.useState([]),[D,z]=O.useState(!1),[B,L]=O.useState(!1),[P,T]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),k=O.useRef(null),_=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=O.useRef(null),F=O.useRef(!1),G=O.useCallback(K=>{S(V=>{var I;return(I=V.find(J=>J.id===K.id))!=null&&I.delete||jt.dismiss(K.id),V.filter(({id:J})=>J!==K.id)})},[]);return O.useEffect(()=>jt.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{S(V=>V.map(I=>I.id===K.id?{...I,delete:!0}:I))});return}setTimeout(()=>{pm.flushSync(()=>{S(V=>{const I=V.findIndex(J=>J.id===K.id);return I!==-1?[...V.slice(0,I),{...V[I],...K},...V.slice(I+1)]:[K,...V]})})})}),[E]),O.useEffect(()=>{if(c!=="system"){T(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:V})=>{T(V?"dark":"light")})}catch{K.addListener(({matches:V})=>{try{T(V?"dark":"light")}catch(I){console.error(I)}})}},[c]),O.useEffect(()=>{E.length<=1&&z(!1)},[E]),O.useEffect(()=>{const K=V=>{var I;if(l.every(et=>V[et]||V.code===et)){var J;z(!0),(J=k.current)==null||J.focus()}V.code==="Escape"&&(document.activeElement===k.current||(I=k.current)!=null&&I.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[l]),O.useEffect(()=>{if(k.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,F.current=!1)}},[k.current]),O.createElement("section",{ref:t,"aria-label":`${w} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((K,V)=>{var I;const[J,et]=K.split("-");return M.length?O.createElement("ol",{key:K,dir:g==="auto"?Wy():g,tabIndex:-1,ref:k,className:s,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":J,"data-x-position":et,style:{"--front-toast-height":`${((I=j[0])==null?void 0:I.height)||0}px`,"--width":`${YH}px`,"--gap":`${v}px`,...m,...tK(u,d)},onBlur:ge=>{F.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(F.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||F.current||(F.current=!0,U.current=ge.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{B||z(!1)},onDragEnd:()=>z(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},M.filter(ge=>!ge.position&&V===0||ge.position===K).map((ge,tt)=>{var sn,qn;return O.createElement(eK,{key:ge.id,icons:x,index:tt,toast:ge,defaultRichColors:f,duration:(sn=y==null?void 0:y.duration)!=null?sn:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:b,closeButton:(qn=y==null?void 0:y.closeButton)!=null?qn:o,interacting:B,position:K,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:G,toasts:M.filter(Rn=>Rn.position==ge.position),heights:j.filter(Rn=>Rn.position==ge.position),setHeights:A,expandByDefault:i,gap:v,expanded:D,swipeDirections:e.swipeDirections})})):null}))});var rK=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,a=e.queue,l=Se.queue.clean.useMutation({onSuccess:function(){Jl.success("All ".concat(r," jobs have been removed"))}}),i=l.mutate,o=l.status,s=At(At(At(At(At([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],a!=null&&a.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),a!=null&&a.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),a!=null&&a.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx("div",{className:"flex items-center space-x-3",children:s.map(function(u){var d=u.status===r;return C.jsxs(bf,{to:"?status=".concat(u.status),className:Ki("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!d,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":d&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":d&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":d&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":d&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":d&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":d&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":d&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":d&&u.status==="paused"}),children:[C.jsx("span",{children:u.name}),a!=null&&a.counts[u.status]?C.jsx("span",{className:Ki("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!d,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":d&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":d&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":d&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":d&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":d&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":d&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":d&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":d&&u.status==="paused"}),children:a.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&a!=null&&a.supports.clean?C.jsx(kH,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:C.jsx(Ma,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return i({queueName:n,status:r})}}),children:C.jsx(Ma,{colorScheme:"yellow",icon:C.jsx(to,{}),label:"Clean all",size:"sm",isLoading:o==="pending"})}):null]})};function Jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aK(e){if(Array.isArray(e))return e}function lK(e,t,n){return(t=fK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,i,o=[],s=!0,u=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}function oK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function t2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(r){lK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sK(e,t){if(e==null)return{};var n,r,a=uK(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function uK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cK(e,t){return aK(e)||iK(e,t)||hK(e,t)||oK()}function dK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fK(e){var t=dK(e,"string");return typeof t=="symbol"?t:t+""}function hK(e,t){if(e){if(typeof e=="string")return Jy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jy(e,t):void 0}}function pK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function r2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){pK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,l){return l(a)},r)}}function es(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return a.length>=e.length?e.apply(this,a):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(n,[].concat(a,o))}}}function Fd(e){return{}.toString.call(e).includes("Object")}function gK(e){return!Object.keys(e).length}function Xs(e){return typeof e=="function"}function vK(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function bK(e,t){return Fd(t)||va("changeType"),Object.keys(t).some(function(n){return!vK(e,n)})&&va("changeField"),t}function yK(e){Xs(e)||va("selectorType")}function xK(e){Xs(e)||Fd(e)||va("handlerType"),Fd(e)&&Object.values(e).some(function(t){return!Xs(t)})&&va("handlersType")}function wK(e){e||va("initialIsRequired"),Fd(e)||va("initialType"),gK(e)&&va("initialContent")}function CK(e,t){throw new Error(e[t]||e.default)}var SK={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},va=es(CK)(SK),dc={changes:bK,selector:yK,handler:xK,initial:wK};function EK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dc.initial(e),dc.handler(t);var n={current:e},r=es(RK)(n,t),a=es(OK)(n),l=es(dc.changes)(e),i=es(MK)(n);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return dc.selector(u),u(n.current)}function s(u){mK(r,a,l,i)(u)}return[o,s]}function MK(e,t){return Xs(t)?t(e.current):t}function OK(e,t){return e.current=r2(r2({},e.current),t),t}function RK(e,t,n){return Xs(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var TK={create:EK},kK={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}};function DK(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return a.length>=e.length?e.apply(this,a):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(n,[].concat(a,o))}}}function jK(e){return{}.toString.call(e).includes("Object")}function NK(e){return e||a2("configIsRequired"),jK(e)||a2("configType"),e.urls?(AK(),{paths:{vs:e.urls.monacoBase}}):e}function AK(){console.warn(hx.deprecation)}function LK(e,t){throw new Error(e[t]||e.default)}var hx={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
112
112
|
You are using deprecated way of configuration.
|
|
113
113
|
|
|
114
114
|
Instead of using
|
|
@@ -117,4 +117,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
117
117
|
monaco.config({ paths: { vs: '...' } })
|
|
118
118
|
|
|
119
119
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
120
|
-
`},r2=DK(kK)(fw),LK={config:AK},_K=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,l){return l(a)},r)}};function hw(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],hw(e[n],t[n]))}),e2(e2({},e),t)}var zK={type:"cancelation",msg:"operation is manually canceled"};function hh(e){var t=!1,n=new Promise(function(r,a){e.then(function(l){return t?a(zK):r(l)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var PK=["monaco"],HK=RK.create({config:TK,isInitialized:!1,resolve:null,reject:null,monaco:null}),pw=uK(HK,2),yu=pw[0],Lf=pw[1];function KK(e){var t=LK.config(e),n=t.monaco,r=oK(t,PK);Lf(function(a){return{config:hw(a.config,r),monaco:n}})}function UK(){var e=yu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Lf({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),hh(ph);if(window.monaco&&window.monaco.editor)return mw(window.monaco),e.resolve(window.monaco),hh(ph);_K(BK,FK)(VK)}return hh(ph)}function BK(e){return document.body.appendChild(e)}function qK(e){var t=document.createElement("script");return e&&(t.src=e),t}function FK(e){var t=yu(function(r){var a=r.config,l=r.reject;return{config:a,reject:l}}),n=qK("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function VK(){var e=yu(function(n){var r=n.config,a=n.resolve,l=n.reject;return{config:r,resolve:a,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m;mw(r),e.resolve(r)},function(n){e.reject(n)})}function mw(e){yu().monaco||Lf({monaco:e})}function GK(){return yu(function(e){var t=e.monaco;return t})}var ph=new Promise(function(e,t){return Lf({resolve:e,reject:t})}),gw={config:KK,init:UK,__getMonacoInstance:GK},QK={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},mh=QK,XK={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},YK=XK;function IK({children:e}){return O.createElement("div",{style:YK.container},e)}var ZK=IK,$K=ZK;function WK({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:l,wrapperProps:i}){return O.createElement("section",{style:{...mh.wrapper,width:e,height:t},...i},!n&&O.createElement($K,null,r),O.createElement("div",{ref:a,style:{...mh.fullWidth,...!n&&mh.hide},className:l}))}var JK=WK,vw=p.memo(JK);function eU(e){p.useEffect(e,[])}var yw=eU;function tU(e,t,n=!0){let r=p.useRef(!0);p.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Vt=tU;function xs(){}function pi(e,t,n,r){return nU(e,r)||rU(e,t,n,r)}function nU(e,t){return e.editor.getModel(bw(e,t))}function rU(e,t,n,r){return e.editor.createModel(t,n,r?bw(e,r):void 0)}function bw(e,t){return e.Uri.parse(t)}function aU({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:l,modifiedModelPath:i,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:u="light",loading:d="Loading...",options:c={},height:f="100%",width:h="100%",className:m,wrapperProps:v={},beforeMount:b=xs,onMount:g=xs}){let[y,w]=p.useState(!1),[C,E]=p.useState(!0),S=p.useRef(null),M=p.useRef(null),N=p.useRef(null),A=p.useRef(g),k=p.useRef(b),j=p.useRef(!1);yw(()=>{let P=gw.init();return P.then(T=>(M.current=T)&&E(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>S.current?L():P.cancel()}),Vt(()=>{if(S.current&&M.current){let P=S.current.getOriginalEditor(),T=pi(M.current,e||"",r||n||"text",l||"");T!==P.getModel()&&P.setModel(T)}},[l],y),Vt(()=>{if(S.current&&M.current){let P=S.current.getModifiedEditor(),T=pi(M.current,t||"",a||n||"text",i||"");T!==P.getModel()&&P.setModel(T)}},[i],y),Vt(()=>{let P=S.current.getModifiedEditor();P.getOption(M.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],y),Vt(()=>{var P,T;(T=(P=S.current)==null?void 0:P.getModel())==null||T.original.setValue(e||"")},[e],y),Vt(()=>{let{original:P,modified:T}=S.current.getModel();M.current.editor.setModelLanguage(P,r||n||"text"),M.current.editor.setModelLanguage(T,a||n||"text")},[n,r,a],y),Vt(()=>{var P;(P=M.current)==null||P.editor.setTheme(u)},[u],y),Vt(()=>{var P;(P=S.current)==null||P.updateOptions(c)},[c],y);let z=p.useCallback(()=>{var P;if(!M.current)return;k.current(M.current);let T=pi(M.current,e||"",r||n||"text",l||""),D=pi(M.current,t||"",a||n||"text",i||"");(P=S.current)==null||P.setModel({original:T,modified:D})},[n,t,a,e,r,l,i]),B=p.useCallback(()=>{var P;!j.current&&N.current&&(S.current=M.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...c}),z(),(P=M.current)==null||P.editor.setTheme(u),w(!0),j.current=!0)},[c,u,z]);p.useEffect(()=>{y&&A.current(S.current,M.current)},[y]),p.useEffect(()=>{!C&&!y&&B()},[C,y,B]);function L(){var P,T,D,_;let U=(P=S.current)==null?void 0:P.getModel();o||(T=U==null?void 0:U.original)==null||T.dispose(),s||(D=U==null?void 0:U.modified)==null||D.dispose(),(_=S.current)==null||_.dispose()}return O.createElement(vw,{width:h,height:f,isEditorReady:y,loading:d,_ref:N,className:m,wrapperProps:v})}var lU=aU;p.memo(lU);function iU(e){let t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}var oU=iU,fc=new Map;function sU({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:l,theme:i="light",line:o,loading:s="Loading...",options:u={},overrideServices:d={},saveViewState:c=!0,keepCurrentModel:f=!1,width:h="100%",height:m="100%",className:v,wrapperProps:b={},beforeMount:g=xs,onMount:y=xs,onChange:w,onValidate:C=xs}){let[E,S]=p.useState(!1),[M,N]=p.useState(!0),A=p.useRef(null),k=p.useRef(null),j=p.useRef(null),z=p.useRef(y),B=p.useRef(g),L=p.useRef(),P=p.useRef(r),T=oU(l),D=p.useRef(!1),_=p.useRef(!1);yw(()=>{let G=gw.init();return G.then(K=>(A.current=K)&&N(!1)).catch(K=>(K==null?void 0:K.type)!=="cancelation"&&console.error("Monaco initialization: error:",K)),()=>k.current?F():G.cancel()}),Vt(()=>{var G,K,V,X;let J=pi(A.current,e||r||"",t||a||"",l||n||"");J!==((G=k.current)==null?void 0:G.getModel())&&(c&&fc.set(T,(K=k.current)==null?void 0:K.saveViewState()),(V=k.current)==null||V.setModel(J),c&&((X=k.current)==null||X.restoreViewState(fc.get(l))))},[l],E),Vt(()=>{var G;(G=k.current)==null||G.updateOptions(u)},[u],E),Vt(()=>{!k.current||r===void 0||(k.current.getOption(A.current.editor.EditorOption.readOnly)?k.current.setValue(r):r!==k.current.getValue()&&(_.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),k.current.pushUndoStop(),_.current=!1))},[r],E),Vt(()=>{var G,K;let V=(G=k.current)==null?void 0:G.getModel();V&&a&&((K=A.current)==null||K.editor.setModelLanguage(V,a))},[a],E),Vt(()=>{var G;o!==void 0&&((G=k.current)==null||G.revealLine(o))},[o],E),Vt(()=>{var G;(G=A.current)==null||G.editor.setTheme(i)},[i],E);let U=p.useCallback(()=>{var G;if(!(!j.current||!A.current)&&!D.current){B.current(A.current);let K=l||n,V=pi(A.current,r||e||"",t||a||"",K||"");k.current=(G=A.current)==null?void 0:G.editor.create(j.current,{model:V,automaticLayout:!0,...u},d),c&&k.current.restoreViewState(fc.get(K)),A.current.editor.setTheme(i),o!==void 0&&k.current.revealLine(o),S(!0),D.current=!0}},[e,t,n,r,a,l,u,d,c,i,o]);p.useEffect(()=>{E&&z.current(k.current,A.current)},[E]),p.useEffect(()=>{!M&&!E&&U()},[M,E,U]),P.current=r,p.useEffect(()=>{var G,K;E&&w&&((G=L.current)==null||G.dispose(),L.current=(K=k.current)==null?void 0:K.onDidChangeModelContent(V=>{_.current||w(k.current.getValue(),V)}))},[E,w]),p.useEffect(()=>{if(E){let G=A.current.editor.onDidChangeMarkers(K=>{var V;let X=(V=k.current.getModel())==null?void 0:V.uri;if(X&&K.find(J=>J.path===X.path)){let J=A.current.editor.getModelMarkers({resource:X});C==null||C(J)}});return()=>{G==null||G.dispose()}}return()=>{}},[E,C]);function F(){var G,K;(G=L.current)==null||G.dispose(),f?c&&fc.set(l,k.current.saveViewState()):(K=k.current.getModel())==null||K.dispose(),k.current.dispose()}return O.createElement(vw,{width:h,height:m,isEditorReady:E,loading:s,_ref:j,className:v,wrapperProps:b})}var uU=sU,cU=p.memo(uU),dU=cU,gh=function(e){var t=e.value,n=e.onChange,r=p.useRef(null),a=function(){var i,o;(o=(i=r.current)===null||i===void 0?void 0:i.getAction("editor.action.formatDocument"))===null||o===void 0||o.run()},l=function(i){var o=String.fromCharCode(i.which).toLowerCase();(i.ctrlKey||i.metaKey)&&o==="s"&&(i.preventDefault(),a())};return x.jsx("div",{onKeyDown:l,onBlur:a,className:"mb-6 border border-slate-200",children:x.jsx(dU,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(i){i&&n(i)},onMount:function(i,o){r.current=i,o.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),o.editor.setTheme("solarized-light")}})})},a2=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,a=r===void 0?"job":r,l=Se.queue.addJob.useMutation({onSuccess:function(){Jl.success("New job has been added"),n()},onError:function(S){Jl.error(S.message)}}),i=l.mutate,o=l.status,s=Se.queue.addJobScheduler.useMutation({onSuccess:function(){Jl.success("New job scheduler has been added"),n()},onError:function(S){Jl.error(S.message)}}),u=s.mutate,d=s.status,c=p.useState("{}"),f=c[0],h=c[1],m=p.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),v=m[0],b=m[1],g=p.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),y=g[0],w=g[1],C=a==="job",E=C?o:d;return x.jsx(t6,{isOpen:!0,onOpenChange:function(S){S||n()},children:x.jsx(jf,{isDismissable:!0,className:"fixed inset-0 bg-black/10",children:x.jsx(Tf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl",children:function(S){var M=S.close;return x.jsxs(x.Fragment,{children:[x.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50","aria-label":"Close",onClick:function(){M(),n()},children:x.jsx(Mg,{})}),x.jsx("div",{className:"flex items-center space-x-4",children:x.jsxs(Df,{className:"mb-1 text-xl font-semibold text-slate-900",children:["Add ",C?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),C?x.jsx(gh,{value:f,onChange:h}):x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600",children:"Template"}),x.jsx(gh,{value:v,onChange:b})]}),x.jsxs("div",{children:[x.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600",children:"Options"}),x.jsx(gh,{value:y,onChange:w})]})]}),x.jsx("div",{children:x.jsx(Ma,{label:C?"Add job":"Add scheduler",variant:"filled",disabled:E==="pending",onClick:function(){try{if(C){var N=JSON.parse(f);i({queueName:t.name,data:N})}else{var A=JSON.parse(v),k=JSON.parse(y);u({queueName:t.name,template:A,opts:k})}}catch{Jl.error("Invalid JSON")}}})})]})}})})})},fU=function(e){var t=e.queue,n=Se.queue.pause.useMutation().mutate,r=Se.queue.resume.useMutation().mutate,a=Se.queue.empty.useMutation().mutate,l=p.useState(!1),i=l[0],o=l[1],s=p.useState(!1),u=s[0],d=s[1],c={queueName:t.name};return x.jsxs(x.Fragment,{children:[x.jsx(kf,{actions:zn(zn([{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?x.jsx(w3,{}):x.jsx(b3,{})},{label:"Add job",onSelect:function(){o(!0)},icon:x.jsx(wy,{})}],t.type==="bullmq"?[{label:"Add scheduler",onSelect:function(){d(!0)},icon:x.jsx(wy,{})}]:[],!0),[{label:"Empty",onSelect:function(){a(c)},icon:x.jsx(eo,{})}],!1)}),i?x.jsx(a2,{queue:t,variant:"job",onDismiss:function(){return o(!1)}}):null,u?x.jsx(a2,{queue:t,variant:"scheduler",onDismiss:function(){return d(!1)}}):null]})},ww={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CronParser=void 0;var u=s(515),d=function(){function c(f,h,m){h===void 0&&(h=!0),m===void 0&&(m=!1),this.expression=f,this.dayOfWeekStartIndexZero=h,this.monthStartIndexZero=m}return c.prototype.parse=function(){var f,h,m=(f=this.expression)!==null&&f!==void 0?f:"";if(m==="@reboot")return h=["@reboot","","","","","",""],h;if(m.startsWith("@")){var v=this.parseSpecial(this.expression);h=this.extractParts(v)}else h=this.extractParts(this.expression);return this.normalize(h),this.validate(h),h},c.prototype.parseSpecial=function(f){var h={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},m=h[f];if(!m)throw new Error("Unknown special expression.");return m},c.prototype.extractParts=function(f){if(!this.expression)throw new Error("cron expression is empty");for(var h=f.trim().split(/[ ]+/),m=0;m<h.length;m++)if(h[m].includes(",")){var v=h[m].split(",").map(function(g){return g.trim()}).filter(function(g){return g!==""}).map(function(g){return isNaN(Number(g))?g:Number(g)}).filter(function(g){return g!==null&&g!==""});v.length===0&&v.push("*"),v.sort(function(g,y){return g!==null&&y!==null?g-y:0}),h[m]=v.map(function(g){return g!==null?g.toString():""}).join(",")}if(h.length<5)throw new Error("Expression has only ".concat(h.length," part").concat(h.length==1?"":"s",". At least 5 parts are required."));if(h.length==5)h.unshift(""),h.push("");else if(h.length==6){var b=/\d{4}$/.test(h[5])||h[4]=="?"||h[2]=="?";b?h.unshift(""):h.push("")}else if(h.length>7)throw new Error("Expression has ".concat(h.length," parts; too many!"));return h},c.prototype.normalize=function(f){var h=this;if(f[3]=f[3].replace("?","*"),f[5]=f[5].replace("?","*"),f[2]=f[2].replace("?","*"),f[0].indexOf("0/")==0&&(f[0]=f[0].replace("0/","*/")),f[1].indexOf("0/")==0&&(f[1]=f[1].replace("0/","*/")),f[2].indexOf("0/")==0&&(f[2]=f[2].replace("0/","*/")),f[3].indexOf("1/")==0&&(f[3]=f[3].replace("1/","*/")),f[4].indexOf("1/")==0&&(f[4]=f[4].replace("1/","*/")),f[6].indexOf("1/")==0&&(f[6]=f[6].replace("1/","*/")),f[5]=f[5].replace(/(^\d)|([^#/\s]\d)/g,function(E){var S=E.replace(/\D/,""),M=S;return h.dayOfWeekStartIndexZero?S=="7"&&(M="0"):M=(parseInt(S)-1).toString(),E.replace(S,M)}),f[5]=="L"&&(f[5]="6"),f[3]=="?"&&(f[3]="*"),f[3].indexOf("W")>-1&&(f[3].indexOf(",")>-1||f[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var m={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var v in m)f[5]=f[5].replace(new RegExp(v,"gi"),m[v].toString());f[4]=f[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(E){var S=E.replace(/\D/,""),M=S;return h.monthStartIndexZero&&(M=(parseInt(S)+1).toString()),E.replace(S,M)});var b={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var g in b)f[4]=f[4].replace(new RegExp(g,"gi"),b[g].toString());f[0]=="0"&&(f[0]=""),!/\*|\-|\,|\//.test(f[2])&&(/\*|\//.test(f[1])||/\*|\//.test(f[0]))&&(f[2]+="-".concat(f[2]));for(var y=0;y<f.length;y++)if(f[y].indexOf(",")!=-1&&(f[y]=f[y].split(",").filter(function(E){return E!==""}).join(",")||"*"),f[y]=="*/1"&&(f[y]="*"),f[y].indexOf("/")>-1&&!/^\*|\-|\,/.test(f[y])){var w=null;switch(y){case 4:w="12";break;case 5:w="6";break;case 6:w="9999";break;default:w=null;break}if(w!==null){var C=f[y].split("/");f[y]="".concat(C[0],"-").concat(w,"/").concat(C[1])}}},c.prototype.validate=function(f){var h="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(f[0],h),this.validateOnlyExpectedCharactersFound(f[1],h),this.validateOnlyExpectedCharactersFound(f[2],h),this.validateOnlyExpectedCharactersFound(f[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(f[4],h),this.validateOnlyExpectedCharactersFound(f[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(f[6],h),this.validateAnyRanges(f)},c.prototype.validateAnyRanges=function(f){u.default.secondRange(f[0]),u.default.minuteRange(f[1]),u.default.hourRange(f[2]),u.default.dayOfMonthRange(f[3]),u.default.monthRange(f[4],this.monthStartIndexZero),u.default.dayOfWeekRange(f[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(f,h){var m=f.match(new RegExp("[^".concat(h,"]+"),"gi"));if(m&&m.length)throw new Error("Expression contains invalid values: '".concat(m.toString(),"'"))},c}();o.CronParser=d},333:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ExpressionDescriptor=void 0;var u=s(823),d=s(949),c=function(){function f(h,m){if(this.expression=h,this.options=m,this.expressionParts=new Array(5),!this.options.locale&&f.defaultLocale&&(this.options.locale=f.defaultLocale),!f.locales[this.options.locale]){var v=Object.keys(f.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(v,"'.")),this.options.locale=v}this.i18n=f.locales[this.options.locale],m.use24HourTimeFormat===void 0&&(m.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return f.toString=function(h,m){var v=m===void 0?{}:m,b=v.throwExceptionOnParseError,g=b===void 0?!0:b,y=v.verbose,w=y===void 0?!1:y,C=v.dayOfWeekStartIndexZero,E=C===void 0?!0:C,S=v.monthStartIndexZero,M=S===void 0?!1:S,N=v.use24HourTimeFormat,A=v.locale,k=A===void 0?null:A,j={throwExceptionOnParseError:g,verbose:w,dayOfWeekStartIndexZero:E,monthStartIndexZero:M,use24HourTimeFormat:N,locale:k};j.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var z=new f(h,j);return z.getFullDescription()},f.initialize=function(h,m){m===void 0&&(m="en"),f.specialCharacters=["/","-",",","*"],f.defaultLocale=m,h.load(f.locales)},f.prototype.getFullDescription=function(){var h,m,v="";try{var b=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=b.parse(),this.expressionParts[0]==="@reboot")return((m=(h=this.i18n).atReboot)===null||m===void 0?void 0:m.call(h))||"Run once, at startup";var g=this.getTimeOfDayDescription(),y=this.getDayOfMonthDescription(),w=this.getMonthDescription(),C=this.getDayOfWeekDescription(),E=this.getYearDescription();v+=g+y+C+w+E,v=this.transformVerbosity(v,!!this.options.verbose),v=v.charAt(0).toLocaleUpperCase()+v.substr(1)}catch(S){if(!this.options.throwExceptionOnParseError)v=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(S)}return v},f.prototype.getTimeOfDayDescription=function(){var h=this.expressionParts[0],m=this.expressionParts[1],v=this.expressionParts[2],b="";if(!u.StringUtilities.containsAny(m,f.specialCharacters)&&!u.StringUtilities.containsAny(v,f.specialCharacters)&&!u.StringUtilities.containsAny(h,f.specialCharacters))b+=this.i18n.atSpace()+this.formatTime(v,m,h);else if(!h&&m.indexOf("-")>-1&&!(m.indexOf(",")>-1)&&!(m.indexOf("/")>-1)&&!u.StringUtilities.containsAny(v,f.specialCharacters)){var g=m.split("-");b+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(v,g[0],""),this.formatTime(v,g[1],""))}else if(!h&&v.indexOf(",")>-1&&v.indexOf("-")==-1&&v.indexOf("/")==-1&&!u.StringUtilities.containsAny(m,f.specialCharacters)){var y=v.split(",");b+=this.i18n.at();for(var w=0;w<y.length;w++)b+=" ",b+=this.formatTime(y[w],m,""),w<y.length-2&&(b+=","),w==y.length-2&&(b+=this.i18n.spaceAnd())}else{var C=this.getSecondsDescription(),E=this.getMinutesDescription(),S=this.getHoursDescription();if(b+=C,b&&E&&(b+=", "),b+=E,E===S)return b;b&&S&&(b+=", "),b+=S}return b},f.prototype.getSecondsDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(v){return v},function(v){return u.StringUtilities.format(h.i18n.everyX0Seconds(v),v)},function(v){return h.i18n.secondsX0ThroughX1PastTheMinute()},function(v){return v=="0"?"":parseInt(v)<20?h.i18n.atX0SecondsPastTheMinute(v):h.i18n.atX0SecondsPastTheMinuteGt20()||h.i18n.atX0SecondsPastTheMinute(v)});return m},f.prototype.getMinutesDescription=function(){var h=this,m=this.expressionParts[0],v=this.expressionParts[2],b=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(g){return g},function(g){return u.StringUtilities.format(h.i18n.everyX0Minutes(g),g)},function(g){return h.i18n.minutesX0ThroughX1PastTheHour()},function(g){try{return g=="0"&&v.indexOf("/")==-1&&m==""?h.i18n.everyHour():parseInt(g)<20?h.i18n.atX0MinutesPastTheHour(g):h.i18n.atX0MinutesPastTheHourGt20()||h.i18n.atX0MinutesPastTheHour(g)}catch{return h.i18n.atX0MinutesPastTheHour(g)}});return b},f.prototype.getHoursDescription=function(){var h=this,m=this.expressionParts[2],v=0,b=[];m.split("/")[0].split(",").forEach(function(w){var C=w.split("-");C.length===2&&b.push({value:C[1],index:v+1}),v+=C.length});var g=0,y=this.getSegmentDescription(m,this.i18n.everyHour(),function(w){var C=b.find(function(S){return S.value===w&&S.index===g}),E=C&&h.expressionParts[1]!=="0";return g++,E?h.formatTime(w,"59",""):h.formatTime(w,"0","")},function(w){return u.StringUtilities.format(h.i18n.everyX0Hours(w),w)},function(w){return h.i18n.betweenX0AndX1()},function(w){return h.i18n.atX0()});return y},f.prototype.getDayOfWeekDescription=function(){var h=this,m=this.i18n.daysOfTheWeek(),v=null;return this.expressionParts[5]=="*"?v="":v=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(b,g){var y=b;b.indexOf("#")>-1?y=b.substring(0,b.indexOf("#")):b.indexOf("L")>-1&&(y=y.replace("L",""));var w=parseInt(y),C=h.i18n.daysOfTheWeekInCase?h.i18n.daysOfTheWeekInCase(g)[w]:m[w];if(b.indexOf("#")>-1){var E=null,S=b.substring(b.indexOf("#")+1),M=b.substring(0,b.indexOf("#"));switch(S){case"1":E=h.i18n.first(M);break;case"2":E=h.i18n.second(M);break;case"3":E=h.i18n.third(M);break;case"4":E=h.i18n.fourth(M);break;case"5":E=h.i18n.fifth(M);break}C=E+" "+C}return C},function(b){return parseInt(b)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0DaysOfTheWeek(b),b)},function(b){var g=b.substring(0,b.indexOf("-")),y=h.expressionParts[3]!="*";return y?h.i18n.commaAndX0ThroughX1(g):h.i18n.commaX0ThroughX1(g)},function(b){var g=null;if(b.indexOf("#")>-1){var y=b.substring(b.indexOf("#")+1),w=b.substring(0,b.indexOf("#"));g=h.i18n.commaOnThe(y,w).trim()+h.i18n.spaceX0OfTheMonth()}else if(b.indexOf("L")>-1)g=h.i18n.commaOnTheLastX0OfTheMonth(b.replace("L",""));else{var C=h.expressionParts[3]!="*";g=C?h.i18n.commaAndOnX0():h.i18n.commaOnlyOnX0(b)}return g}),v},f.prototype.getMonthDescription=function(){var h=this,m=this.i18n.monthsOfTheYear(),v=this.getSegmentDescription(this.expressionParts[4],"",function(b,g){return g&&h.i18n.monthsOfTheYearInCase?h.i18n.monthsOfTheYearInCase(g)[parseInt(b)-1]:m[parseInt(b)-1]},function(b){return parseInt(b)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0Months(b),b)},function(b){return h.i18n.commaMonthX0ThroughMonthX1()||h.i18n.commaX0ThroughX1()},function(b){return h.i18n.commaOnlyInMonthX0?h.i18n.commaOnlyInMonthX0():h.i18n.commaOnlyInX0()});return v},f.prototype.getDayOfMonthDescription=function(){var h=this,m=null,v=this.expressionParts[3];switch(v){case"L":m=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":m=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var b=v.match(/(\d{1,2}W)|(W\d{1,2})/);if(b){var g=parseInt(b[0].replace("W","")),y=g==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),g.toString());m=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),y);break}else{var w=v.match(/L-(\d{1,2})/);if(w){var C=w[1];m=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(C),C);break}else{if(v=="*"&&this.expressionParts[5]!="*")return"";m=this.getSegmentDescription(v,this.i18n.commaEveryDay(),function(E){return E=="L"?h.i18n.lastDay():h.i18n.dayX0?u.StringUtilities.format(h.i18n.dayX0(),E):E},function(E){return E=="1"?h.i18n.commaEveryDay():h.i18n.commaEveryX0Days(E)},function(E){return h.i18n.commaBetweenDayX0AndX1OfTheMonth(E)},function(E){return h.i18n.commaOnDayX0OfTheMonth(E)})}break}}return m},f.prototype.getYearDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[6],"",function(v){return/^\d+$/.test(v)?new Date(parseInt(v),1).getFullYear().toString():v},function(v){return u.StringUtilities.format(h.i18n.commaEveryX0Years(v),v)},function(v){return h.i18n.commaYearX0ThroughYearX1()||h.i18n.commaX0ThroughX1()},function(v){return h.i18n.commaOnlyInYearX0?h.i18n.commaOnlyInYearX0():h.i18n.commaOnlyInX0()});return m},f.prototype.getSegmentDescription=function(h,m,v,b,g,y){var w=null,C=h.indexOf("/")>-1,E=h.indexOf("-")>-1,S=h.indexOf(",")>-1;if(!h)w="";else if(h==="*")w=m;else if(!C&&!E&&!S)w=u.StringUtilities.format(y(h),v(h));else if(S){for(var M=h.split(","),N="",A=0;A<M.length;A++)if(A>0&&M.length>2&&(N+=",",A<M.length-1&&(N+=" ")),A>0&&M.length>1&&(A==M.length-1||M.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),M[A].indexOf("/")>-1||M[A].indexOf("-")>-1){var k=M[A].indexOf("-")>-1&&M[A].indexOf("/")==-1,j=this.getSegmentDescription(M[A],m,v,b,k?this.i18n.commaX0ThroughX1:g,y);k&&(j=j.replace(", ","")),N+=j}else C?N+=this.getSegmentDescription(M[A],m,v,b,g,y):N+=v(M[A]);C?w=N:w=u.StringUtilities.format(y(h),N)}else if(C){var M=h.split("/");if(w=u.StringUtilities.format(b(M[1]),M[1]),M[0].indexOf("-")>-1){var z=this.generateRangeSegmentDescription(M[0],g,v);z.indexOf(", ")!=0&&(w+=", "),w+=z}else if(M[0].indexOf("*")==-1){var B=u.StringUtilities.format(y(M[0]),v(M[0]));B=B.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else E&&(w=this.generateRangeSegmentDescription(h,g,v));return w},f.prototype.generateRangeSegmentDescription=function(h,m,v){var b="",g=h.split("-"),y=v(g[0],1),w=v(g[1],2),C=m(h);return b+=u.StringUtilities.format(C,y,w),b},f.prototype.formatTime=function(h,m,v){var b=0,g=0,y=parseInt(h)+b,w=parseInt(m)+g;w>=60?(w-=60,y+=1):w<0&&(w+=60,y-=1),y>=24?y=y-24:y<0&&(y=24+y);var C="",E=!1;this.options.use24HourTimeFormat||(E=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),C=E?"".concat(this.getPeriod(y)," "):" ".concat(this.getPeriod(y)),y>12&&(y-=12),y===0&&(y=12));var S="";return v&&(S=":".concat(("00"+v).substring(v.length))),"".concat(E?C:"").concat(("00"+y.toString()).substring(y.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat(S).concat(E?"":C)},f.prototype.transformVerbosity=function(h,m){if(!m&&(h=h.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),h=h.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),h=h.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),h=h.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var v=0,b=Object.entries(this.i18n.conciseVerbosityReplacements());v<b.length;v++){var g=b[v],y=g[0],w=g[1];h=h.replace(new RegExp(y,"g"),w)}return h},f.prototype.getPeriod=function(h){return h>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},f.locales={},f}();o.ExpressionDescriptor=c},747:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.enLocaleLoader=void 0;var u=s(486),d=function(){function c(){}return c.prototype.load=function(f){f.en=new u.en},c}();o.enLocaleLoader=d},486:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.en=void 0;var s=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();o.en=s},515:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0});function s(d,c){if(!d)throw new Error(c)}var u=function(){function d(){}return d.secondRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=0&&m<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=0&&m<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=0&&m<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=1&&m<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(c,f){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var v=parseInt(h[m],10);s(v>=1&&v<=12,f?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(c,f){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var v=parseInt(h[m],10);s(v>=0&&v<=6,f?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();o.default=u},823:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.StringUtilities=void 0;var s=function(){function u(){}return u.format=function(d){for(var c=[],f=1;f<arguments.length;f++)c[f-1]=arguments[f];return d.replace(/%s/g,function(h){return c.shift()})},u.containsAny=function(d,c){return c.some(function(f){return d.indexOf(f)>-1})},u}();o.StringUtilities=s}},r={};function a(i){var o=r[i];if(o!==void 0)return o.exports;var s=r[i]={exports:{}};return n[i](s,s.exports,a),s.exports}var l={};return(()=>{var i=l;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var o=a(333),s=a(747);o.ExpressionDescriptor.initialize(new s.enLocaleLoader),i.default=o.ExpressionDescriptor;var u=o.ExpressionDescriptor.toString;i.toString=u})(),l})())})(ww);var hU=ww.exports;const pU=c8(hU);var mU=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,a=Se.scheduler.remove.useMutation(),l=a.mutate,i=a.isSuccess;return p.useEffect(function(){i&&(r==null||r())},[i,r]),x.jsx(kf,{actions:[{label:"Remove",onSelect:function(){l({queueName:n,jobSchedulerId:t.key})},icon:x.jsx(eo,{})}]})},gU=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,a=t.template,l=Hs({},t);return delete l.template,x.jsx(jf,{isOpen:!0,isDismissable:!0,onOpenChange:function(i){i||r()},className:"fixed inset-0 bg-black/10",children:x.jsx(Tf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl",children:function(i){var o=i.close;return x.jsxs(x.Fragment,{children:[x.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50","aria-label":"Close",onClick:function(){r(),o()},children:x.jsx(Mg,{})}),x.jsxs("div",{className:"flex items-center space-x-4",children:[x.jsxs(Df,{className:"mb-1 flex items-center space-x-2",children:[x.jsx("span",{className:"text-xl font-semibold text-slate-900",children:t.name}),x.jsxs("span",{className:"rounded-md text-slate-500",children:["#",t.id]})]}),x.jsx(mU,{queueName:n,scheduler:t,onRemove:r})]}),x.jsxs("div",{children:[x.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4",children:[x.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Options"}),x.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:x.jsx(qd,{data:l,theme:"monokai"})})]}),x.jsxs("div",{className:"space-y-2 pt-4",children:[x.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Template"}),x.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:x.jsx(qd,{data:a,theme:"monokai"})})]})]})]})}})})},hc=l6();function vU(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),a=r.find(function(l){return l.type==="timeZoneName"});return(a==null?void 0:a.value)||""}var yU=[hc.display({id:"select",header:function(e){var t=e.table;return x.jsx(Ld,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return x.jsx(Ld,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),hc.accessor("name",{cell:function(e){return x.jsx("div",{className:"flex w-full items-center space-x-2",children:x.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name})})},header:"Scheduler"}),hc.accessor("pattern",{cell:function(e){return x.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[e.cell.row.original.pattern?pU.toString(e.cell.row.original.pattern,{verbose:!0}):e.cell.row.original.every?"Every ".concat(e.cell.row.original.every):""," ",e.cell.row.original.tz?"(".concat(vU(e.cell.row.original.tz),")"):""]})},header:"Pattern"}),hc.accessor("next",{cell:function(e){return e.cell.row.original.next?x.jsx(Jg,{message:C6(new Date(e.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:x.jsx("div",{className:"flex items-center space-x-1.5",children:x.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",S6(new Date(e.cell.row.original.next))," ",x.jsxs("span",{className:"text-sm text-slate-700",children:["(",e.cell.row.original.iterationCount," run",e.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):x.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})],bU=function(e){var t=e.queueName,n=p.useState({}),r=n[0],a=n[1],l=Se.scheduler.list.useQuery({queueName:t}),i=l.data,o=l.isLoading,s=(i==null?void 0:i.length)===0,u=g6({data:i||[],columns:yU,getCoreRowModel:m6(),state:{rowSelection:r},onRowSelectionChange:a}),d=p.useState(null),c=d[0],f=d[1],h=Se.scheduler.bulkRemove.useMutation().mutate;return!o&&s?null:x.jsxs("div",{children:[c?x.jsx(gU,{scheduler:c,queueName:t,onDismiss:function(){return f(null)}}):null,x.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:o?x.jsx(M6,{}):x.jsxs("div",{children:[u.getHeaderGroups().map(function(m,v){return x.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:m.headers.map(function(b){return x.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(v!==0?"pr-10":"pr-3"),children:b.isPlaceholder?null:jd(b.column.columnDef.header,b.getContext())},b.id)})},m.id)}),u.getRowModel().rows.map(function(m,v){return x.jsx(E6,{isLastRow:u.getRowModel().rows.length!==v+1,isSelected:m.getIsSelected(),onClick:function(){return f(m.original)},layoutVariant:"scheduler",children:m.getVisibleCells().map(function(b,g){return x.jsx("div",{className:"flex h-full items-center ".concat(g!==0?"pr-10":"pr-3"),children:jd(b.column.columnDef.cell,b.getContext())},b.id)})},m.id)})]})}),u.getSelectedRowModel().rows.length>0?x.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:x.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur",children:[x.jsxs("p",{children:[u.getSelectedRowModel().rows.length," selected"]}),x.jsx(Ma,{label:"Delete",colorScheme:"red",icon:x.jsx(eo,{}),size:"sm",onClick:function(){h({queueName:t,jobSchedulerIds:u.getSelectedRowModel().rows.map(function(m){return m.original.key})}),u.resetRowSelection()}})]})}):null]})},vh=new Intl.NumberFormat("en-US").format,wU=function(){var e,t,n,r,a=dO().id,l=a,i=eR()[0],o=p.useState("completed"),s=o[0],u=o[1],d=Se.job.list.useInfiniteQuery({queueName:l,limit:tm,status:s},{getNextPageParam:function(w){return w.nextCursor},enabled:!!l,refetchInterval:nm,retry:rm}),c=d.data,f=d.fetchNextPage,h=d.isLoading,m=d.isError,v=d.isFetchingNextPage,b=d.hasNextPage;p.useEffect(function(){var w=i.get("status");w&&u(w),!w&&s&&u("completed")},[i,s]);var g=Se.queue.byName.useQuery({queueName:l},{enabled:!!l,refetchInterval:nm,retry:rm}),y=(e=c==null?void 0:c.pages.map(function(w){return w.jobs}).flat())!==null&&e!==void 0?e:[];return x.jsx(a6,{children:g.data===null?x.jsx(Yp,{message:"No queue found"}):m?x.jsx(Yp,{message:"Could not fetch jobs"}):x.jsxs("div",{children:[x.jsx("div",{className:"mb-2 flex justify-between",children:x.jsxs("div",{className:"flex items-center space-x-4",children:[x.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:g.data?g.data.displayName:x.jsx(vd,{className:"h-8 w-52 rounded-md"})}),x.jsxs("div",{className:"flex items-center space-x-2",children:[g.data?x.jsx(fU,{queue:g.data}):null,!((t=g.data)===null||t===void 0)&&t.paused?x.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out",children:x.jsx("span",{children:"Paused"})}):null]})]})}),x.jsx("div",{className:"mb-5",children:x.jsx("div",{className:"flex items-center space-x-2",children:g.data?x.jsxs(x.Fragment,{children:[x.jsxs("p",{className:"text-slate-600",children:[x.jsxs("span",{className:"text-green-800",children:[vh(g.data.client.connectedClients)," ","connected"]})," ","and"," ",x.jsxs("span",{className:"text-red-800",children:[vh(g.data.client.blockedClients)," ","blocked"]})," ","out of"," ",x.jsxs("span",{className:"text-slate-900",children:[vh(g.data.client.maxClients)," max clients"]})]}),x.jsx("p",{className:"text-slate-600",children:"·"}),x.jsxs("p",{className:"text-slate-600",children:[g.data.client.usedMemoryHuman," /"," ",g.data.client.totalMemoryHuman," (",(g.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),x.jsx("p",{className:"text-slate-600",children:"·"}),x.jsxs("p",{className:"text-slate-600",children:["Redis v",g.data.client.version]})]}):x.jsx(vd,{className:"h-6 w-80"})})}),x.jsxs("div",{className:"space-y-8",children:[((n=g.data)===null||n===void 0?void 0:n.type)==="bullmq"?x.jsx(bU,{queueName:l}):null,x.jsxs("div",{className:"space-y-4",children:[x.jsx(nK,{showCleanAllButton:y.length>0,queueName:l,status:s,queue:g.data}),x.jsx(RH,{onBottomInView:function(){v||!b||f()},status:s,totalJobs:((r=c==null?void 0:c.pages.at(-1))===null||r===void 0?void 0:r.totalCount)||0,jobs:y.map(function(w){return Hs(Hs({},w),{status:s})}),isLoading:h,isFetchingNextPage:v,queueName:l})]})]})]})})},pc=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600",completed:"text-green-600",failed:"text-red-600",waiting:"text-amber-600"},a={active:x.jsx(x3,{width:16,height:16}),completed:x.jsx(v3,{width:16,height:16}),failed:x.jsx(y3,{width:16,height:16}),waiting:x.jsx(LR,{width:16,height:16})};return x.jsx("div",{children:x.jsx(Jg,{message:n.charAt(0).toUpperCase()+n.slice(1),children:x.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[x.jsx("p",{className:"text-lg",children:t}),a[n]]})})})},xU=function(e){var t=e.queueName,n=Se.queue.byName.useQuery({queueName:t},{refetchInterval:nm,retry:rm});return n.data?x.jsxs(yf,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),x.jsx("div",{children:n.data.paused?x.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out",children:x.jsx("span",{children:"Paused"})}):null})]}),x.jsxs("div",{className:"flex space-x-5",children:[x.jsx(pc,{count:n.data.counts.completed,variant:"completed"}),x.jsx(pc,{count:n.data.counts.failed,variant:"failed"}),x.jsx(pc,{count:n.data.counts.active,variant:"active"}),x.jsx(pc,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},CU=function(){var e=Se.queue.list.useQuery().data,t=Se.queue.pauseAll.useMutation().mutate,n=Se.queue.resumeAll.useMutation().mutate;return x.jsx(a6,{children:x.jsxs("div",{className:"xl:max-w-2xl",children:[x.jsxs("div",{className:"flex justify-between",children:[x.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),x.jsx("div",{children:x.jsx(kf,{actions:[{label:"Resume all",icon:x.jsx(w3,{}),onSelect:function(){return n()}},{label:"Pause all",icon:x.jsx(b3,{}),onSelect:function(){return t()}}]})})]}),x.jsx("div",{children:e==null?void 0:e.map(function(r,a){return x.jsx("div",{className:(e==null?void 0:e.length)-1!==a?"border-b border-slate-100 dark:border-slate-700":"",children:x.jsx(xU,{queueName:r.name},r.name)},r.name)})})]})})},SU=function(e){var t=e.apiUrl,n=e.basename,r=p.useState(!1),a=r[0],l=r[1],i=p.useState(function(){return new JS})[0],o=p.useState(function(){return Se.createClient({links:[YE({url:t})]})})[0];return p.useEffect(function(){var s=JSON.parse(localStorage.getItem("user-preferences")||"null");s?s.theme==="dark"||s.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),l(!0)},[]),a?x.jsx(Se.Provider,{client:o,queryClient:i,children:x.jsxs(eE,{client:i,children:[x.jsx(tK,{}),x.jsx(ZO,{basename:n,children:x.jsxs(OO,{children:[x.jsx(Op,{path:"/",element:x.jsx(CU,{})}),x.jsx(Op,{path:"/:id",element:x.jsx(wU,{})})]})})]})}):null};OS.createRoot(document.getElementById("root")).render(c1.jsx(p.StrictMode,{children:c1.jsx(SU,{apiUrl:window.__INITIAL_STATE__.apiUrl,basename:window.__INITIAL_STATE__.basename})}));
|
|
120
|
+
`},a2=DK(LK)(hx),_K={config:NK},zK=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,l){return l(a)},r)}};function px(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],px(e[n],t[n]))}),t2(t2({},e),t)}var PK={type:"cancelation",msg:"operation is manually canceled"};function hh(e){var t=!1,n=new Promise(function(r,a){e.then(function(l){return t?a(PK):r(l)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var HK=["monaco"],KK=TK.create({config:kK,isInitialized:!1,resolve:null,reject:null,monaco:null}),mx=cK(KK,2),bu=mx[0],Lf=mx[1];function UK(e){var t=_K.config(e),n=t.monaco,r=sK(t,HK);Lf(function(a){return{config:px(a.config,r),monaco:n}})}function BK(){var e=bu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Lf({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),hh(ph);if(window.monaco&&window.monaco.editor)return gx(window.monaco),e.resolve(window.monaco),hh(ph);zK(qK,VK)(GK)}return hh(ph)}function qK(e){return document.body.appendChild(e)}function FK(e){var t=document.createElement("script");return e&&(t.src=e),t}function VK(e){var t=bu(function(r){var a=r.config,l=r.reject;return{config:a,reject:l}}),n=FK("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function GK(){var e=bu(function(n){var r=n.config,a=n.resolve,l=n.reject;return{config:r,resolve:a,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m;gx(r),e.resolve(r)},function(n){e.reject(n)})}function gx(e){bu().monaco||Lf({monaco:e})}function QK(){return bu(function(e){var t=e.monaco;return t})}var ph=new Promise(function(e,t){return Lf({resolve:e,reject:t})}),vx={config:UK,init:BK,__getMonacoInstance:QK},IK={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},mh=IK,XK={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},YK=XK;function ZK({children:e}){return O.createElement("div",{style:YK.container},e)}var $K=ZK,WK=$K;function JK({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:l,wrapperProps:i}){return O.createElement("section",{style:{...mh.wrapper,width:e,height:t},...i},!n&&O.createElement(WK,null,r),O.createElement("div",{ref:a,style:{...mh.fullWidth,...!n&&mh.hide},className:l}))}var eU=JK,bx=p.memo(eU);function tU(e){p.useEffect(e,[])}var yx=tU;function nU(e,t,n=!0){let r=p.useRef(!0);p.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Gt=nU;function Cs(){}function pi(e,t,n,r){return rU(e,r)||aU(e,t,n,r)}function rU(e,t){return e.editor.getModel(xx(e,t))}function aU(e,t,n,r){return e.editor.createModel(t,n,r?xx(e,r):void 0)}function xx(e,t){return e.Uri.parse(t)}function lU({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:l,modifiedModelPath:i,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:u="light",loading:d="Loading...",options:c={},height:f="100%",width:h="100%",className:m,wrapperProps:b={},beforeMount:y=Cs,onMount:g=Cs}){let[v,x]=p.useState(!1),[w,E]=p.useState(!0),S=p.useRef(null),M=p.useRef(null),N=p.useRef(null),j=p.useRef(g),A=p.useRef(y),D=p.useRef(!1);yx(()=>{let P=vx.init();return P.then(T=>(M.current=T)&&E(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>S.current?L():P.cancel()}),Gt(()=>{if(S.current&&M.current){let P=S.current.getOriginalEditor(),T=pi(M.current,e||"",r||n||"text",l||"");T!==P.getModel()&&P.setModel(T)}},[l],v),Gt(()=>{if(S.current&&M.current){let P=S.current.getModifiedEditor(),T=pi(M.current,t||"",a||n||"text",i||"");T!==P.getModel()&&P.setModel(T)}},[i],v),Gt(()=>{let P=S.current.getModifiedEditor();P.getOption(M.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],v),Gt(()=>{var P,T;(T=(P=S.current)==null?void 0:P.getModel())==null||T.original.setValue(e||"")},[e],v),Gt(()=>{let{original:P,modified:T}=S.current.getModel();M.current.editor.setModelLanguage(P,r||n||"text"),M.current.editor.setModelLanguage(T,a||n||"text")},[n,r,a],v),Gt(()=>{var P;(P=M.current)==null||P.editor.setTheme(u)},[u],v),Gt(()=>{var P;(P=S.current)==null||P.updateOptions(c)},[c],v);let z=p.useCallback(()=>{var P;if(!M.current)return;A.current(M.current);let T=pi(M.current,e||"",r||n||"text",l||""),k=pi(M.current,t||"",a||n||"text",i||"");(P=S.current)==null||P.setModel({original:T,modified:k})},[n,t,a,e,r,l,i]),B=p.useCallback(()=>{var P;!D.current&&N.current&&(S.current=M.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...c}),z(),(P=M.current)==null||P.editor.setTheme(u),x(!0),D.current=!0)},[c,u,z]);p.useEffect(()=>{v&&j.current(S.current,M.current)},[v]),p.useEffect(()=>{!w&&!v&&B()},[w,v,B]);function L(){var P,T,k,_;let U=(P=S.current)==null?void 0:P.getModel();o||(T=U==null?void 0:U.original)==null||T.dispose(),s||(k=U==null?void 0:U.modified)==null||k.dispose(),(_=S.current)==null||_.dispose()}return O.createElement(bx,{width:h,height:f,isEditorReady:v,loading:d,_ref:N,className:m,wrapperProps:b})}var iU=lU;p.memo(iU);function oU(e){let t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}var sU=oU,fc=new Map;function uU({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:l,theme:i="light",line:o,loading:s="Loading...",options:u={},overrideServices:d={},saveViewState:c=!0,keepCurrentModel:f=!1,width:h="100%",height:m="100%",className:b,wrapperProps:y={},beforeMount:g=Cs,onMount:v=Cs,onChange:x,onValidate:w=Cs}){let[E,S]=p.useState(!1),[M,N]=p.useState(!0),j=p.useRef(null),A=p.useRef(null),D=p.useRef(null),z=p.useRef(v),B=p.useRef(g),L=p.useRef(),P=p.useRef(r),T=sU(l),k=p.useRef(!1),_=p.useRef(!1);yx(()=>{let G=vx.init();return G.then(K=>(j.current=K)&&N(!1)).catch(K=>(K==null?void 0:K.type)!=="cancelation"&&console.error("Monaco initialization: error:",K)),()=>A.current?F():G.cancel()}),Gt(()=>{var G,K,V,I;let J=pi(j.current,e||r||"",t||a||"",l||n||"");J!==((G=A.current)==null?void 0:G.getModel())&&(c&&fc.set(T,(K=A.current)==null?void 0:K.saveViewState()),(V=A.current)==null||V.setModel(J),c&&((I=A.current)==null||I.restoreViewState(fc.get(l))))},[l],E),Gt(()=>{var G;(G=A.current)==null||G.updateOptions(u)},[u],E),Gt(()=>{!A.current||r===void 0||(A.current.getOption(j.current.editor.EditorOption.readOnly)?A.current.setValue(r):r!==A.current.getValue()&&(_.current=!0,A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),A.current.pushUndoStop(),_.current=!1))},[r],E),Gt(()=>{var G,K;let V=(G=A.current)==null?void 0:G.getModel();V&&a&&((K=j.current)==null||K.editor.setModelLanguage(V,a))},[a],E),Gt(()=>{var G;o!==void 0&&((G=A.current)==null||G.revealLine(o))},[o],E),Gt(()=>{var G;(G=j.current)==null||G.editor.setTheme(i)},[i],E);let U=p.useCallback(()=>{var G;if(!(!D.current||!j.current)&&!k.current){B.current(j.current);let K=l||n,V=pi(j.current,r||e||"",t||a||"",K||"");A.current=(G=j.current)==null?void 0:G.editor.create(D.current,{model:V,automaticLayout:!0,...u},d),c&&A.current.restoreViewState(fc.get(K)),j.current.editor.setTheme(i),o!==void 0&&A.current.revealLine(o),S(!0),k.current=!0}},[e,t,n,r,a,l,u,d,c,i,o]);p.useEffect(()=>{E&&z.current(A.current,j.current)},[E]),p.useEffect(()=>{!M&&!E&&U()},[M,E,U]),P.current=r,p.useEffect(()=>{var G,K;E&&x&&((G=L.current)==null||G.dispose(),L.current=(K=A.current)==null?void 0:K.onDidChangeModelContent(V=>{_.current||x(A.current.getValue(),V)}))},[E,x]),p.useEffect(()=>{if(E){let G=j.current.editor.onDidChangeMarkers(K=>{var V;let I=(V=A.current.getModel())==null?void 0:V.uri;if(I&&K.find(J=>J.path===I.path)){let J=j.current.editor.getModelMarkers({resource:I});w==null||w(J)}});return()=>{G==null||G.dispose()}}return()=>{}},[E,w]);function F(){var G,K;(G=L.current)==null||G.dispose(),f?c&&fc.set(l,A.current.saveViewState()):(K=A.current.getModel())==null||K.dispose(),A.current.dispose()}return O.createElement(bx,{width:h,height:m,isEditorReady:E,loading:s,_ref:D,className:b,wrapperProps:y})}var cU=uU,dU=p.memo(cU),fU=dU,gh=function(e){var t=e.value,n=e.onChange,r=p.useRef(null),a=function(){var i,o;(o=(i=r.current)===null||i===void 0?void 0:i.getAction("editor.action.formatDocument"))===null||o===void 0||o.run()},l=function(i){var o=String.fromCharCode(i.which).toLowerCase();(i.ctrlKey||i.metaKey)&&o==="s"&&(i.preventDefault(),a())};return C.jsx("div",{onKeyDown:l,onBlur:a,className:"mb-6 border border-slate-200",children:C.jsx(fU,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(i){i&&n(i)},onMount:function(i,o){r.current=i,o.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),o.editor.setTheme("solarized-light")}})})},l2=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,a=r===void 0?"job":r,l=Se.queue.addJob.useMutation({onSuccess:function(){Jl.success("New job has been added"),n()},onError:function(S){Jl.error(S.message)}}),i=l.mutate,o=l.status,s=Se.queue.addJobScheduler.useMutation({onSuccess:function(){Jl.success("New job scheduler has been added"),n()},onError:function(S){Jl.error(S.message)}}),u=s.mutate,d=s.status,c=p.useState("{}"),f=c[0],h=c[1],m=p.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),b=m[0],y=m[1],g=p.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),v=g[0],x=g[1],w=a==="job",E=w?o:d;return C.jsx(n6,{isOpen:!0,onOpenChange:function(S){S||n()},children:C.jsx(Df,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:C.jsx(Tf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(S){var M=S.close;return C.jsxs(C.Fragment,{children:[C.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){M(),n()},children:C.jsx(Mg,{})}),C.jsx("div",{className:"flex items-center space-x-4",children:C.jsxs(kf,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",w?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),w?C.jsx(gh,{value:f,onChange:h}):C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),C.jsx(gh,{value:b,onChange:y})]}),C.jsxs("div",{children:[C.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),C.jsx(gh,{value:v,onChange:x})]})]}),C.jsx("div",{children:C.jsx(Ma,{label:w?"Add job":"Add scheduler",variant:"filled",disabled:E==="pending",onClick:function(){try{if(w){var N=JSON.parse(f);i({queueName:t.name,data:N})}else{var j=JSON.parse(b),A=JSON.parse(v);u({queueName:t.name,template:j,opts:A})}}catch{Jl.error("Invalid JSON")}}})})]})}})})})},hU=function(e){var t=e.queue,n=Se.queue.pause.useMutation().mutate,r=Se.queue.resume.useMutation().mutate,a=Se.queue.empty.useMutation().mutate,l=p.useState(!1),i=l[0],o=l[1],s=p.useState(!1),u=s[0],d=s[1],c={queueName:t.name},f=At(At(At(At([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?C.jsx(w3,{}):C.jsx(x3,{})}]:[],!0),[{label:"Add job",onSelect:function(){o(!0)},icon:C.jsx(wb,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){d(!0)},icon:C.jsx(wb,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){a(c)},icon:C.jsx(to,{})}]:[],!0);return C.jsxs(C.Fragment,{children:[C.jsx(Af,{actions:f}),i?C.jsx(l2,{queue:t,variant:"job",onDismiss:function(){return o(!1)}}):null,u?C.jsx(l2,{queue:t,variant:"scheduler",onDismiss:function(){return d(!1)}}):null]})},wx={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CronParser=void 0;var u=s(515),d=function(){function c(f,h,m){h===void 0&&(h=!0),m===void 0&&(m=!1),this.expression=f,this.dayOfWeekStartIndexZero=h,this.monthStartIndexZero=m}return c.prototype.parse=function(){var f,h,m=(f=this.expression)!==null&&f!==void 0?f:"";if(m==="@reboot")return h=["@reboot","","","","","",""],h;if(m.startsWith("@")){var b=this.parseSpecial(this.expression);h=this.extractParts(b)}else h=this.extractParts(this.expression);return this.normalize(h),this.validate(h),h},c.prototype.parseSpecial=function(f){var h={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},m=h[f];if(!m)throw new Error("Unknown special expression.");return m},c.prototype.extractParts=function(f){if(!this.expression)throw new Error("cron expression is empty");for(var h=f.trim().split(/[ ]+/),m=0;m<h.length;m++)if(h[m].includes(",")){var b=h[m].split(",").map(function(g){return g.trim()}).filter(function(g){return g!==""}).map(function(g){return isNaN(Number(g))?g:Number(g)}).filter(function(g){return g!==null&&g!==""});b.length===0&&b.push("*"),b.sort(function(g,v){return g!==null&&v!==null?g-v:0}),h[m]=b.map(function(g){return g!==null?g.toString():""}).join(",")}if(h.length<5)throw new Error("Expression has only ".concat(h.length," part").concat(h.length==1?"":"s",". At least 5 parts are required."));if(h.length==5)h.unshift(""),h.push("");else if(h.length==6){var y=/\d{4}$/.test(h[5])||h[4]=="?"||h[2]=="?";y?h.unshift(""):h.push("")}else if(h.length>7)throw new Error("Expression has ".concat(h.length," parts; too many!"));return h},c.prototype.normalize=function(f){var h=this;if(f[3]=f[3].replace("?","*"),f[5]=f[5].replace("?","*"),f[2]=f[2].replace("?","*"),f[0].indexOf("0/")==0&&(f[0]=f[0].replace("0/","*/")),f[1].indexOf("0/")==0&&(f[1]=f[1].replace("0/","*/")),f[2].indexOf("0/")==0&&(f[2]=f[2].replace("0/","*/")),f[3].indexOf("1/")==0&&(f[3]=f[3].replace("1/","*/")),f[4].indexOf("1/")==0&&(f[4]=f[4].replace("1/","*/")),f[6].indexOf("1/")==0&&(f[6]=f[6].replace("1/","*/")),f[5]=f[5].replace(/(^\d)|([^#/\s]\d)/g,function(E){var S=E.replace(/\D/,""),M=S;return h.dayOfWeekStartIndexZero?S=="7"&&(M="0"):M=(parseInt(S)-1).toString(),E.replace(S,M)}),f[5]=="L"&&(f[5]="6"),f[3]=="?"&&(f[3]="*"),f[3].indexOf("W")>-1&&(f[3].indexOf(",")>-1||f[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var m={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in m)f[5]=f[5].replace(new RegExp(b,"gi"),m[b].toString());f[4]=f[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(E){var S=E.replace(/\D/,""),M=S;return h.monthStartIndexZero&&(M=(parseInt(S)+1).toString()),E.replace(S,M)});var y={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var g in y)f[4]=f[4].replace(new RegExp(g,"gi"),y[g].toString());f[0]=="0"&&(f[0]=""),!/\*|\-|\,|\//.test(f[2])&&(/\*|\//.test(f[1])||/\*|\//.test(f[0]))&&(f[2]+="-".concat(f[2]));for(var v=0;v<f.length;v++)if(f[v].indexOf(",")!=-1&&(f[v]=f[v].split(",").filter(function(E){return E!==""}).join(",")||"*"),f[v]=="*/1"&&(f[v]="*"),f[v].indexOf("/")>-1&&!/^\*|\-|\,/.test(f[v])){var x=null;switch(v){case 4:x="12";break;case 5:x="6";break;case 6:x="9999";break;default:x=null;break}if(x!==null){var w=f[v].split("/");f[v]="".concat(w[0],"-").concat(x,"/").concat(w[1])}}},c.prototype.validate=function(f){var h="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(f[0],h),this.validateOnlyExpectedCharactersFound(f[1],h),this.validateOnlyExpectedCharactersFound(f[2],h),this.validateOnlyExpectedCharactersFound(f[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(f[4],h),this.validateOnlyExpectedCharactersFound(f[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(f[6],h),this.validateAnyRanges(f)},c.prototype.validateAnyRanges=function(f){u.default.secondRange(f[0]),u.default.minuteRange(f[1]),u.default.hourRange(f[2]),u.default.dayOfMonthRange(f[3]),u.default.monthRange(f[4],this.monthStartIndexZero),u.default.dayOfWeekRange(f[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(f,h){var m=f.match(new RegExp("[^".concat(h,"]+"),"gi"));if(m&&m.length)throw new Error("Expression contains invalid values: '".concat(m.toString(),"'"))},c}();o.CronParser=d},333:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ExpressionDescriptor=void 0;var u=s(823),d=s(949),c=function(){function f(h,m){if(this.expression=h,this.options=m,this.expressionParts=new Array(5),!this.options.locale&&f.defaultLocale&&(this.options.locale=f.defaultLocale),!f.locales[this.options.locale]){var b=Object.keys(f.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=f.locales[this.options.locale],m.use24HourTimeFormat===void 0&&(m.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return f.toString=function(h,m){var b=m===void 0?{}:m,y=b.throwExceptionOnParseError,g=y===void 0?!0:y,v=b.verbose,x=v===void 0?!1:v,w=b.dayOfWeekStartIndexZero,E=w===void 0?!0:w,S=b.monthStartIndexZero,M=S===void 0?!1:S,N=b.use24HourTimeFormat,j=b.locale,A=j===void 0?null:j,D={throwExceptionOnParseError:g,verbose:x,dayOfWeekStartIndexZero:E,monthStartIndexZero:M,use24HourTimeFormat:N,locale:A};D.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var z=new f(h,D);return z.getFullDescription()},f.initialize=function(h,m){m===void 0&&(m="en"),f.specialCharacters=["/","-",",","*"],f.defaultLocale=m,h.load(f.locales)},f.prototype.getFullDescription=function(){var h,m,b="";try{var y=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=y.parse(),this.expressionParts[0]==="@reboot")return((m=(h=this.i18n).atReboot)===null||m===void 0?void 0:m.call(h))||"Run once, at startup";var g=this.getTimeOfDayDescription(),v=this.getDayOfMonthDescription(),x=this.getMonthDescription(),w=this.getDayOfWeekDescription(),E=this.getYearDescription();b+=g+v+w+x+E,b=this.transformVerbosity(b,!!this.options.verbose),b=b.charAt(0).toLocaleUpperCase()+b.substr(1)}catch(S){if(!this.options.throwExceptionOnParseError)b=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(S)}return b},f.prototype.getTimeOfDayDescription=function(){var h=this.expressionParts[0],m=this.expressionParts[1],b=this.expressionParts[2],y="";if(!u.StringUtilities.containsAny(m,f.specialCharacters)&&!u.StringUtilities.containsAny(b,f.specialCharacters)&&!u.StringUtilities.containsAny(h,f.specialCharacters))y+=this.i18n.atSpace()+this.formatTime(b,m,h);else if(!h&&m.indexOf("-")>-1&&!(m.indexOf(",")>-1)&&!(m.indexOf("/")>-1)&&!u.StringUtilities.containsAny(b,f.specialCharacters)){var g=m.split("-");y+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,g[0],""),this.formatTime(b,g[1],""))}else if(!h&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!u.StringUtilities.containsAny(m,f.specialCharacters)){var v=b.split(",");y+=this.i18n.at();for(var x=0;x<v.length;x++)y+=" ",y+=this.formatTime(v[x],m,""),x<v.length-2&&(y+=","),x==v.length-2&&(y+=this.i18n.spaceAnd())}else{var w=this.getSecondsDescription(),E=this.getMinutesDescription(),S=this.getHoursDescription();if(y+=w,y&&E&&(y+=", "),y+=E,E===S)return y;y&&S&&(y+=", "),y+=S}return y},f.prototype.getSecondsDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(b){return b},function(b){return u.StringUtilities.format(h.i18n.everyX0Seconds(b),b)},function(b){return h.i18n.secondsX0ThroughX1PastTheMinute()},function(b){return b=="0"?"":parseInt(b)<20?h.i18n.atX0SecondsPastTheMinute(b):h.i18n.atX0SecondsPastTheMinuteGt20()||h.i18n.atX0SecondsPastTheMinute(b)});return m},f.prototype.getMinutesDescription=function(){var h=this,m=this.expressionParts[0],b=this.expressionParts[2],y=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(g){return g},function(g){return u.StringUtilities.format(h.i18n.everyX0Minutes(g),g)},function(g){return h.i18n.minutesX0ThroughX1PastTheHour()},function(g){try{return g=="0"&&b.indexOf("/")==-1&&m==""?h.i18n.everyHour():parseInt(g)<20?h.i18n.atX0MinutesPastTheHour(g):h.i18n.atX0MinutesPastTheHourGt20()||h.i18n.atX0MinutesPastTheHour(g)}catch{return h.i18n.atX0MinutesPastTheHour(g)}});return y},f.prototype.getHoursDescription=function(){var h=this,m=this.expressionParts[2],b=0,y=[];m.split("/")[0].split(",").forEach(function(x){var w=x.split("-");w.length===2&&y.push({value:w[1],index:b+1}),b+=w.length});var g=0,v=this.getSegmentDescription(m,this.i18n.everyHour(),function(x){var w=y.find(function(S){return S.value===x&&S.index===g}),E=w&&h.expressionParts[1]!=="0";return g++,E?h.formatTime(x,"59",""):h.formatTime(x,"0","")},function(x){return u.StringUtilities.format(h.i18n.everyX0Hours(x),x)},function(x){return h.i18n.betweenX0AndX1()},function(x){return h.i18n.atX0()});return v},f.prototype.getDayOfWeekDescription=function(){var h=this,m=this.i18n.daysOfTheWeek(),b=null;return this.expressionParts[5]=="*"?b="":b=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(y,g){var v=y;y.indexOf("#")>-1?v=y.substring(0,y.indexOf("#")):y.indexOf("L")>-1&&(v=v.replace("L",""));var x=parseInt(v),w=h.i18n.daysOfTheWeekInCase?h.i18n.daysOfTheWeekInCase(g)[x]:m[x];if(y.indexOf("#")>-1){var E=null,S=y.substring(y.indexOf("#")+1),M=y.substring(0,y.indexOf("#"));switch(S){case"1":E=h.i18n.first(M);break;case"2":E=h.i18n.second(M);break;case"3":E=h.i18n.third(M);break;case"4":E=h.i18n.fourth(M);break;case"5":E=h.i18n.fifth(M);break}w=E+" "+w}return w},function(y){return parseInt(y)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0DaysOfTheWeek(y),y)},function(y){var g=y.substring(0,y.indexOf("-")),v=h.expressionParts[3]!="*";return v?h.i18n.commaAndX0ThroughX1(g):h.i18n.commaX0ThroughX1(g)},function(y){var g=null;if(y.indexOf("#")>-1){var v=y.substring(y.indexOf("#")+1),x=y.substring(0,y.indexOf("#"));g=h.i18n.commaOnThe(v,x).trim()+h.i18n.spaceX0OfTheMonth()}else if(y.indexOf("L")>-1)g=h.i18n.commaOnTheLastX0OfTheMonth(y.replace("L",""));else{var w=h.expressionParts[3]!="*";g=w?h.i18n.commaAndOnX0():h.i18n.commaOnlyOnX0(y)}return g}),b},f.prototype.getMonthDescription=function(){var h=this,m=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(y,g){return g&&h.i18n.monthsOfTheYearInCase?h.i18n.monthsOfTheYearInCase(g)[parseInt(y)-1]:m[parseInt(y)-1]},function(y){return parseInt(y)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0Months(y),y)},function(y){return h.i18n.commaMonthX0ThroughMonthX1()||h.i18n.commaX0ThroughX1()},function(y){return h.i18n.commaOnlyInMonthX0?h.i18n.commaOnlyInMonthX0():h.i18n.commaOnlyInX0()});return b},f.prototype.getDayOfMonthDescription=function(){var h=this,m=null,b=this.expressionParts[3];switch(b){case"L":m=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":m=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var y=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(y){var g=parseInt(y[0].replace("W","")),v=g==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),g.toString());m=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),v);break}else{var x=b.match(/L-(\d{1,2})/);if(x){var w=x[1];m=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(w),w);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";m=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(E){return E=="L"?h.i18n.lastDay():h.i18n.dayX0?u.StringUtilities.format(h.i18n.dayX0(),E):E},function(E){return E=="1"?h.i18n.commaEveryDay():h.i18n.commaEveryX0Days(E)},function(E){return h.i18n.commaBetweenDayX0AndX1OfTheMonth(E)},function(E){return h.i18n.commaOnDayX0OfTheMonth(E)})}break}}return m},f.prototype.getYearDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return u.StringUtilities.format(h.i18n.commaEveryX0Years(b),b)},function(b){return h.i18n.commaYearX0ThroughYearX1()||h.i18n.commaX0ThroughX1()},function(b){return h.i18n.commaOnlyInYearX0?h.i18n.commaOnlyInYearX0():h.i18n.commaOnlyInX0()});return m},f.prototype.getSegmentDescription=function(h,m,b,y,g,v){var x=null,w=h.indexOf("/")>-1,E=h.indexOf("-")>-1,S=h.indexOf(",")>-1;if(!h)x="";else if(h==="*")x=m;else if(!w&&!E&&!S)x=u.StringUtilities.format(v(h),b(h));else if(S){for(var M=h.split(","),N="",j=0;j<M.length;j++)if(j>0&&M.length>2&&(N+=",",j<M.length-1&&(N+=" ")),j>0&&M.length>1&&(j==M.length-1||M.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),M[j].indexOf("/")>-1||M[j].indexOf("-")>-1){var A=M[j].indexOf("-")>-1&&M[j].indexOf("/")==-1,D=this.getSegmentDescription(M[j],m,b,y,A?this.i18n.commaX0ThroughX1:g,v);A&&(D=D.replace(", ","")),N+=D}else w?N+=this.getSegmentDescription(M[j],m,b,y,g,v):N+=b(M[j]);w?x=N:x=u.StringUtilities.format(v(h),N)}else if(w){var M=h.split("/");if(x=u.StringUtilities.format(y(M[1]),M[1]),M[0].indexOf("-")>-1){var z=this.generateRangeSegmentDescription(M[0],g,b);z.indexOf(", ")!=0&&(x+=", "),x+=z}else if(M[0].indexOf("*")==-1){var B=u.StringUtilities.format(v(M[0]),b(M[0]));B=B.replace(", ",""),x+=u.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else E&&(x=this.generateRangeSegmentDescription(h,g,b));return x},f.prototype.generateRangeSegmentDescription=function(h,m,b){var y="",g=h.split("-"),v=b(g[0],1),x=b(g[1],2),w=m(h);return y+=u.StringUtilities.format(w,v,x),y},f.prototype.formatTime=function(h,m,b){var y=0,g=0,v=parseInt(h)+y,x=parseInt(m)+g;x>=60?(x-=60,v+=1):x<0&&(x+=60,v-=1),v>=24?v=v-24:v<0&&(v=24+v);var w="",E=!1;this.options.use24HourTimeFormat||(E=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),w=E?"".concat(this.getPeriod(v)," "):" ".concat(this.getPeriod(v)),v>12&&(v-=12),v===0&&(v=12));var S="";return b&&(S=":".concat(("00"+b).substring(b.length))),"".concat(E?w:"").concat(("00"+v.toString()).substring(v.toString().length),":").concat(("00"+x.toString()).substring(x.toString().length)).concat(S).concat(E?"":w)},f.prototype.transformVerbosity=function(h,m){if(!m&&(h=h.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),h=h.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),h=h.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),h=h.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var b=0,y=Object.entries(this.i18n.conciseVerbosityReplacements());b<y.length;b++){var g=y[b],v=g[0],x=g[1];h=h.replace(new RegExp(v,"g"),x)}return h},f.prototype.getPeriod=function(h){return h>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},f.locales={},f}();o.ExpressionDescriptor=c},747:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.enLocaleLoader=void 0;var u=s(486),d=function(){function c(){}return c.prototype.load=function(f){f.en=new u.en},c}();o.enLocaleLoader=d},486:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.en=void 0;var s=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();o.en=s},515:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0});function s(d,c){if(!d)throw new Error(c)}var u=function(){function d(){}return d.secondRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=0&&m<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=0&&m<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=0&&m<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(c){for(var f=c.split(","),h=0;h<f.length;h++)if(!isNaN(parseInt(f[h],10))){var m=parseInt(f[h],10);s(m>=1&&m<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(c,f){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var b=parseInt(h[m],10);s(b>=1&&b<=12,f?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(c,f){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var b=parseInt(h[m],10);s(b>=0&&b<=6,f?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();o.default=u},823:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.StringUtilities=void 0;var s=function(){function u(){}return u.format=function(d){for(var c=[],f=1;f<arguments.length;f++)c[f-1]=arguments[f];return d.replace(/%s/g,function(h){return c.shift()})},u.containsAny=function(d,c){return c.some(function(f){return d.indexOf(f)>-1})},u}();o.StringUtilities=s}},r={};function a(i){var o=r[i];if(o!==void 0)return o.exports;var s=r[i]={exports:{}};return n[i](s,s.exports,a),s.exports}var l={};return(()=>{var i=l;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var o=a(333),s=a(747);o.ExpressionDescriptor.initialize(new s.enLocaleLoader),i.default=o.ExpressionDescriptor;var u=o.ExpressionDescriptor.toString;i.toString=u})(),l})())})(wx);var pU=wx.exports;const mU=d8(pU);var gU=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,a=Se.scheduler.remove.useMutation(),l=a.mutate,i=a.isSuccess;return p.useEffect(function(){i&&(r==null||r())},[i,r]),C.jsx(Af,{actions:[{label:"Remove",onSelect:function(){l({queueName:n,jobSchedulerId:t.key})},icon:C.jsx(to,{})}]})},vU=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,a=t.template,l=Pi({},t);return delete l.template,C.jsx(Df,{isOpen:!0,isDismissable:!0,onOpenChange:function(i){i||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:C.jsx(Tf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var o=i.close;return C.jsxs(C.Fragment,{children:[C.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),o()},children:C.jsx(Mg,{})}),C.jsxs("div",{className:"flex items-center space-x-4",children:[C.jsxs(kf,{className:"mb-1 flex items-center space-x-2",children:[C.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),C.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),C.jsx(gU,{queueName:n,scheduler:t,onRemove:r})]}),C.jsxs("div",{children:[C.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[C.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),C.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:C.jsx(qd,{data:l,theme:"monokai"})})]}),C.jsxs("div",{className:"space-y-2 pt-4",children:[C.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),C.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:C.jsx(qd,{data:a,theme:"monokai"})})]})]})]})}})})},hc=i6();function bU(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),a=r.find(function(l){return l.type==="timeZoneName"});return(a==null?void 0:a.value)||""}var yU=function(e){return[hc.display({id:"select",header:function(t){var n=t.table;return C.jsx(Ld,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return C.jsx(Ld,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(a){n.getToggleSelectedHandler()(a),e(n.index)}})}}),hc.accessor("name",{cell:function(t){return C.jsx("div",{className:"flex w-full items-center space-x-2",children:C.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),hc.accessor("pattern",{cell:function(t){return C.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?mU.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(bU(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),hc.accessor("next",{cell:function(t){return t.cell.row.original.next?C.jsx(Jg,{message:S6(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:C.jsx("div",{className:"flex items-center space-x-1.5",children:C.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",E6(new Date(t.cell.row.original.next))," ",C.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):C.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},xU=function(e){var t=e.queueName,n=p.useState({}),r=n[0],a=n[1],l=p.useRef(null),i=Se.scheduler.list.useQuery({queueName:t}),o=i.data,s=i.isLoading,u=(o==null?void 0:o.length)===0,d=function(v){l.current=v},c=yU(d),f=v6({data:o||[],columns:c,getCoreRowModel:g6(),state:{rowSelection:r},onRowSelectionChange:a}),h=p.useState(null),m=h[0],b=h[1],y=Se.scheduler.bulkRemove.useMutation().mutate,g=function(v,x){if(v.shiftKey&&l.current!==null){v.preventDefault();for(var w=Math.min(l.current,x),E=Math.max(l.current,x),S=Pi({},r),M=w;M<=E;M++)S[M]=!0;a(S)}else b(f.getRowModel().rows[x].original),l.current=x};return!s&&u?null:C.jsxs("div",{children:[m?C.jsx(vU,{scheduler:m,queueName:t,onDismiss:function(){return b(null)}}):null,C.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:s?C.jsx(O6,{}):C.jsxs("div",{children:[f.getHeaderGroups().map(function(v,x){return C.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:v.headers.map(function(w){return C.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(x!==0?"pr-10":"pr-3"),children:w.isPlaceholder?null:Dd(w.column.columnDef.header,w.getContext())},w.id)})},v.id)}),f.getRowModel().rows.map(function(v,x){return C.jsx(M6,{isLastRow:f.getRowModel().rows.length!==x+1,isSelected:v.getIsSelected(),onClick:function(w){return g(w,x)},layoutVariant:"scheduler",children:v.getVisibleCells().map(function(w,E){return C.jsx("div",{className:"flex h-full items-center ".concat(E!==0?"pr-10":"pr-3"),children:Dd(w.column.columnDef.cell,w.getContext())},w.id)})},v.id)})]})}),f.getSelectedRowModel().rows.length>0?C.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:C.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[C.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[f.getSelectedRowModel().rows.length," selected"]}),C.jsx(Ma,{label:"Delete",colorScheme:"red",icon:C.jsx(to,{}),size:"sm",onClick:function(){y({queueName:t,jobSchedulerIds:f.getSelectedRowModel().rows.map(function(v){return v.original.key})}),f.resetRowSelection()}})]})}):null]})},vh=new Intl.NumberFormat("en-US").format,wU=function(){var e,t,n,r,a=fO().id,l=a,i=tR()[0],o=p.useState("completed"),s=o[0],u=o[1],d=Se.job.list.useInfiniteQuery({queueName:l,limit:tm,status:s},{getNextPageParam:function(x){return x.nextCursor},enabled:!!l,refetchInterval:nm,retry:rm}),c=d.data,f=d.fetchNextPage,h=d.isLoading,m=d.isError,b=d.isFetchingNextPage,y=d.hasNextPage;p.useEffect(function(){var x=i.get("status");x&&u(x),!x&&s&&u("completed")},[i,s]);var g=Se.queue.byName.useQuery({queueName:l},{enabled:!!l,refetchInterval:nm,retry:rm}),v=(e=c==null?void 0:c.pages.map(function(x){return x.jobs}).flat())!==null&&e!==void 0?e:[];return C.jsx(l6,{children:g.data===null?C.jsx(Xp,{message:"No queue found"}):m?C.jsx(Xp,{message:"Could not fetch jobs"}):C.jsxs("div",{children:[C.jsx("div",{className:"mb-2 flex justify-between",children:C.jsxs("div",{className:"flex items-center space-x-4",children:[C.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:g.data?g.data.displayName:C.jsx(vd,{className:"h-8 w-52 rounded-md"})}),C.jsxs("div",{className:"flex items-center space-x-2",children:[g.data?C.jsx(hU,{queue:g.data}):null,!((t=g.data)===null||t===void 0)&&t.paused?C.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:C.jsx("span",{children:"Paused"})}):null]})]})}),C.jsx("div",{className:"mb-5",children:C.jsx("div",{className:"flex items-center space-x-2",children:g.data?C.jsxs(C.Fragment,{children:[C.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[C.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[vh(g.data.client.connectedClients)," ","connected"]})," ","and"," ",C.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[vh(g.data.client.blockedClients)," ","blocked"]})," ","out of"," ",C.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[vh(g.data.client.maxClients)," max clients"]})]}),C.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),C.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[g.data.client.usedMemoryHuman," /"," ",g.data.client.totalMemoryHuman," (",(g.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),C.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),C.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",g.data.client.version]})]}):C.jsx(vd,{className:"h-6 w-80"})})}),C.jsxs("div",{className:"space-y-8",children:[!((n=g.data)===null||n===void 0)&&n.supports.schedulers?C.jsx(xU,{queueName:l}):null,C.jsxs("div",{className:"space-y-4",children:[C.jsx(rK,{showCleanAllButton:v.length>0,queueName:l,status:s,queue:g.data}),C.jsx(TH,{onBottomInView:function(){b||!y||f()},status:s,totalJobs:((r=c==null?void 0:c.pages.at(-1))===null||r===void 0?void 0:r.totalCount)||0,jobs:v.map(function(x){return Pi(Pi({},x),{status:s})}),isLoading:h,isFetchingNextPage:b,queueName:l})]})]})]})})},pc=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},a={active:C.jsx(C3,{width:16,height:16}),completed:C.jsx(b3,{width:16,height:16}),failed:C.jsx(y3,{width:16,height:16}),waiting:C.jsx(_R,{width:16,height:16})};return C.jsx("div",{children:C.jsx(Jg,{message:n.charAt(0).toUpperCase()+n.slice(1),children:C.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[C.jsx("p",{className:"text-lg",children:t}),a[n]]})})})},CU=function(e){var t=e.queueName,n=Se.queue.byName.useQuery({queueName:t},{refetchInterval:nm,retry:rm});return n.data?C.jsxs(bf,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),C.jsx("div",{children:n.data.paused?C.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:C.jsx("span",{children:"Paused"})}):null})]}),C.jsxs("div",{className:"flex space-x-5",children:[C.jsx(pc,{count:n.data.counts.completed,variant:"completed"}),C.jsx(pc,{count:n.data.counts.failed,variant:"failed"}),C.jsx(pc,{count:n.data.counts.active,variant:"active"}),C.jsx(pc,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},SU=function(){var e=Se.queue.list.useQuery().data,t=Se.queue.pauseAll.useMutation().mutate,n=Se.queue.resumeAll.useMutation().mutate;return C.jsx(l6,{children:C.jsxs("div",{className:"xl:max-w-2xl",children:[C.jsxs("div",{className:"flex justify-between",children:[C.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),C.jsx("div",{children:C.jsx(Af,{actions:[{label:"Resume all",icon:C.jsx(w3,{}),onSelect:function(){return n()}},{label:"Pause all",icon:C.jsx(x3,{}),onSelect:function(){return t()}}]})})]}),C.jsx("div",{children:e==null?void 0:e.map(function(r,a){return C.jsx("div",{className:(e==null?void 0:e.length)-1!==a?"border-b border-slate-100 dark:border-slate-700":"",children:C.jsx(CU,{queueName:r.name},r.name)},r.name)})})]})})},EU=function(e){var t=e.apiUrl,n=e.basename,r=p.useState(!1),a=r[0],l=r[1],i=p.useState(function(){return new eE})[0],o=p.useState(function(){return Se.createClient({links:[YE({url:t})]})})[0];return p.useEffect(function(){var s=JSON.parse(localStorage.getItem("user-preferences")||"null");s?s.theme==="dark"||s.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),l(!0)},[]),a?C.jsx(Se.Provider,{client:o,queryClient:i,children:C.jsxs(tE,{client:i,children:[C.jsx(nK,{}),C.jsx($O,{basename:n,children:C.jsxs(RO,{children:[C.jsx(Op,{path:"/",element:C.jsx(SU,{})}),C.jsx(Op,{path:"/:id",element:C.jsx(wU,{})})]})})]})}):null};RS.createRoot(document.getElementById("root")).render(c1.jsx(p.StrictMode,{children:c1.jsx(EU,{apiUrl:window.__INITIAL_STATE__.apiUrl,basename:window.__INITIAL_STATE__.basename})}));
|