@queuedash/client 3.6.0 → 3.7.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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";function R6(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const r in a)if(r!=="default"&&!(r in e)){const l=Object.getOwnPropertyDescriptor(a,r);l&&Object.defineProperty(e,r,l.get?l:{enumerable:!0,get:()=>a[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Cy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sy={exports:{}},yd={};/**
1
+ "use strict";function jw(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 l2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i2={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 O6=Symbol.for("react.transitional.element"),T6=Symbol.for("react.fragment");function Ey(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:O6,type:e,key:a,ref:t!==void 0?t:null,props:n}}yd.Fragment=T6;yd.jsx=Ey;yd.jsxs=Ey;Sy.exports=yd;var Tm=Sy.exports,My={exports:{}},wd={},Ry={exports:{}},Oy={};/**
9
+ */var Aw=Symbol.for("react.transitional.element"),Nw=Symbol.for("react.fragment");function o2(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:Aw,type:e,key:r,ref:t!==void 0?t:null,props:n}}Vd.Fragment=Nw;Vd.jsx=o2;Vd.jsxs=o2;i2.exports=Vd;var c1=i2.exports,s2={exports:{}},Gd={},u2={exports:{}},c2={};/**
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,N){var _=T.length;T.push(N);e:for(;0<_;){var q=_-1>>>1,U=T[q];if(0<r(U,N))T[q]=N,T[_]=U,_=q;else break e}}function n(T){return T.length===0?null:T[0]}function a(T){if(T.length===0)return null;var N=T[0],_=T.pop();if(_!==N){T[0]=_;e:for(var q=0,U=T.length,H=U>>>1;q<H;){var F=2*(q+1)-1,Y=T[F],le=F+1,J=T[le];if(0>r(Y,_))le<U&&0>r(J,Y)?(T[q]=J,T[le]=_,q=le):(T[q]=Y,T[F]=_,q=F);else if(le<U&&0>r(J,_))T[q]=J,T[le]=_,q=le;else break e}}return N}function r(T,N){var _=T.sortIndex-N.sortIndex;return _!==0?_:T.id-N.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=[],f=1,c=null,d=3,h=!1,g=!1,m=!1,w=!1,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function C(T){for(var N=n(u);N!==null;){if(N.callback===null)a(u);else if(N.startTime<=T)a(u),N.sortIndex=N.expirationTime,t(s,N);else break;N=n(u)}}function S(T){if(m=!1,C(T),!g)if(n(s)!==null)g=!0,M||(M=!0,P());else{var N=n(u);N!==null&&L(S,N.startTime-T)}}var M=!1,R=-1,D=5,j=-1;function A(){return w?!0:!(e.unstable_now()-j<D)}function k(){if(w=!1,M){var T=e.unstable_now();j=T;var N=!0;try{e:{g=!1,m&&(m=!1,b(R),R=-1),h=!0;var _=d;try{t:{for(C(T),c=n(s);c!==null&&!(c.expirationTime>T&&A());){var q=c.callback;if(typeof q=="function"){c.callback=null,d=c.priorityLevel;var U=q(c.expirationTime<=T);if(T=e.unstable_now(),typeof U=="function"){c.callback=U,C(T),N=!0;break t}c===n(s)&&a(s),C(T)}else a(s);c=n(s)}if(c!==null)N=!0;else{var H=n(u);H!==null&&L(S,H.startTime-T),N=!1}}break e}finally{c=null,d=_,h=!1}N=void 0}}finally{N?P():M=!1}}}var P;if(typeof y=="function")P=function(){y(k)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,z=B.port2;B.port1.onmessage=k,P=function(){z.postMessage(null)}}else P=function(){v(k,0)};function L(T,N){R=v(function(){T(e.unstable_now())},N)}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"):D=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var N=3;break;default:N=d}var _=d;d=N;try{return T()}finally{d=_}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(T,N){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var _=d;d=T;try{return N()}finally{d=_}},e.unstable_scheduleCallback=function(T,N,_){var q=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?q+_:q):_=q,T){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=_+U,T={id:f++,callback:N,priorityLevel:T,startTime:_,expirationTime:U,sortIndex:-1},_>q?(T.sortIndex=_,t(u,T),n(s)===null&&T===n(u)&&(m?(b(R),R=-1):m=!0,L(S,_-q))):(T.sortIndex=U,t(s,T),g||h||(g=!0,M||(M=!0,P()))),T},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(T){var N=d;return function(){var _=d;d=N;try{return T.apply(this,arguments)}finally{d=_}}}})(Oy);Ry.exports=Oy;var D6=Ry.exports,Ty={exports:{}},te={};/**
17
+ */(function(e){function t(T,D){var _=T.length;T.push(D);e:for(;0<_;){var U=_-1>>>1,F=T[U];if(0<a(F,D))T[U]=D,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 D=T[0],_=T.pop();if(_!==D){T[0]=_;e:for(var U=0,F=T.length,G=F>>>1;U<G;){var K=2*(U+1)-1,V=T[K],X=K+1,J=T[X];if(0>a(V,_))X<F&&0>a(J,V)?(T[U]=J,T[X]=_,U=X):(T[U]=V,T[K]=_,U=K);else if(X<F&&0>a(J,_))T[U]=J,T[X]=_,U=X;else break e}}return D}function a(T,D){var _=T.sortIndex-D.sortIndex;return _!==0?_:T.id-D.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,v=!1,b=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function C(T){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=T)r(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function E(T){if(v=!1,C(T),!m)if(n(s)!==null)m=!0,S||(S=!0,z());else{var D=n(u);D!==null&&P(E,D.startTime-T)}}var S=!1,M=-1,N=5,A=-1;function k(){return b?!0:!(e.unstable_now()-A<N)}function j(){if(b=!1,S){var T=e.unstable_now();A=T;var D=!0;try{e:{m=!1,v&&(v=!1,y(M),M=-1),h=!0;var _=f;try{t:{for(C(T),c=n(s);c!==null&&!(c.expirationTime>T&&k());){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,C(T),D=!0;break t}c===n(s)&&r(s),C(T)}else r(s);c=n(s)}if(c!==null)D=!0;else{var G=n(u);G!==null&&P(E,G.startTime-T),D=!1}}break e}finally{c=null,f=_,h=!1}D=void 0}}finally{D?z():S=!1}}}var z;if(typeof w=="function")z=function(){w(j)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,L=B.port2;B.port1.onmessage=j,z=function(){L.postMessage(null)}}else z=function(){g(j,0)};function P(T,D){M=g(function(){T(e.unstable_now())},D)}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 D=3;break;default:D=f}var _=f;f=D;try{return T()}finally{f=_}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var _=f;f=T;try{return D()}finally{f=_}},e.unstable_scheduleCallback=function(T,D,_){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:D,priorityLevel:T,startTime:_,expirationTime:F,sortIndex:-1},_>U?(T.sortIndex=_,t(u,T),n(s)===null&&T===n(u)&&(v?(y(M),M=-1):v=!0,P(E,_-U))):(T.sortIndex=F,t(s,T),m||h||(m=!0,S||(S=!0,z()))),T},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(T){var D=f;return function(){var _=f;f=D;try{return T.apply(this,arguments)}finally{f=_}}}})(c2);u2.exports=c2;var kw=u2.exports,d2={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 Tp=Symbol.for("react.transitional.element"),k6=Symbol.for("react.portal"),N6=Symbol.for("react.fragment"),A6=Symbol.for("react.strict_mode"),j6=Symbol.for("react.profiler"),L6=Symbol.for("react.consumer"),_6=Symbol.for("react.context"),z6=Symbol.for("react.forward_ref"),P6=Symbol.for("react.suspense"),K6=Symbol.for("react.memo"),Dy=Symbol.for("react.lazy"),Dm=Symbol.iterator;function H6(e){return e===null||typeof e!="object"?null:(e=Dm&&e[Dm]||e["@@iterator"],typeof e=="function"?e:null)}var ky={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ny=Object.assign,Ay={};function Ti(e,t,n){this.props=e,this.context=t,this.refs=Ay,this.updater=n||ky}Ti.prototype.isReactComponent={};Ti.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")};Ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jy(){}jy.prototype=Ti.prototype;function Dp(e,t,n){this.props=e,this.context=t,this.refs=Ay,this.updater=n||ky}var kp=Dp.prototype=new jy;kp.constructor=Dp;Ny(kp,Ti.prototype);kp.isPureReactComponent=!0;var km=Array.isArray,Re={H:null,A:null,T:null,S:null,V:null},Ly=Object.prototype.hasOwnProperty;function Np(e,t,n,a,r,l){return n=l.ref,{$$typeof:Tp,type:e,key:t,ref:n!==void 0?n:null,props:l}}function U6(e,t){return Np(e.type,t,void 0,void 0,void 0,e.props)}function Ap(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tp}function B6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Nm=/\/+/g;function cf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B6(""+e.key):t.toString(36)}function Am(){}function q6(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Am,Am):(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 Ol(e,t,n,a,r){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 Tp:case k6:i=!0;break;case Dy:return i=e._init,Ol(i(e._payload),t,n,a,r)}}if(i)return r=r(e),i=a===""?"."+cf(e,0):a,km(r)?(n="",i!=null&&(n=i.replace(Nm,"$&/")+"/"),Ol(r,t,n,"",function(u){return u})):r!=null&&(Ap(r)&&(r=U6(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Nm,"$&/")+"/")+i)),t.push(r)),1;i=0;var o=a===""?".":a+":";if(km(e))for(var s=0;s<e.length;s++)a=e[s],l=o+cf(a,s),i+=Ol(a,t,n,l,r);else if(s=H6(e),typeof s=="function")for(e=s.call(e),s=0;!(a=e.next()).done;)a=a.value,l=o+cf(a,s++),i+=Ol(a,t,n,l,r);else if(l==="object"){if(typeof e.then=="function")return Ol(q6(e),t,n,a,r);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 tu(e,t,n){if(e==null)return e;var a=[],r=0;return Ol(e,a,"","",function(l){return t.call(n,l,r++)}),a}function F6(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 jm=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)};function V6(){}te.Children={map:tu,forEach:function(e,t,n){tu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tu(e,function(){t++}),t},toArray:function(e){return tu(e,function(t){return t})||[]},only:function(e){if(!Ap(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=Ti;te.Fragment=N6;te.Profiler=j6;te.PureComponent=Dp;te.StrictMode=A6;te.Suspense=P6;te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re;te.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Re.H.useMemoCache(e)}};te.cache=function(e){return function(){return e.apply(null,arguments)}};te.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=Ny({},e.props),r=e.key,l=void 0;if(t!=null)for(i in t.ref!==void 0&&(l=void 0),t.key!==void 0&&(r=""+t.key),t)!Ly.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(a[i]=t[i]);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}return Np(e.type,r,void 0,void 0,l,a)};te.createContext=function(e){return e={$$typeof:_6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:L6,_context:e},e};te.createElement=function(e,t,n){var a,r={},l=null;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)Ly.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(r[a]=t[a]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];r.children=o}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)r[a]===void 0&&(r[a]=i[a]);return Np(e,l,void 0,void 0,null,r)};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:z6,render:e}};te.isValidElement=Ap;te.lazy=function(e){return{$$typeof:Dy,_payload:{_status:-1,_result:e},_init:F6}};te.memo=function(e,t){return{$$typeof:K6,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=Re.T,n={};Re.T=n;try{var a=e(),r=Re.S;r!==null&&r(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(V6,jm)}catch(l){jm(l)}finally{Re.T=t}};te.unstable_useCacheRefresh=function(){return Re.H.useCacheRefresh()};te.use=function(e){return Re.H.use(e)};te.useActionState=function(e,t,n){return Re.H.useActionState(e,t,n)};te.useCallback=function(e,t){return Re.H.useCallback(e,t)};te.useContext=function(e){return Re.H.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e,t){return Re.H.useDeferredValue(e,t)};te.useEffect=function(e,t,n){var a=Re.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return a.useEffect(e,t)};te.useId=function(){return Re.H.useId()};te.useImperativeHandle=function(e,t,n){return Re.H.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return Re.H.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return Re.H.useLayoutEffect(e,t)};te.useMemo=function(e,t){return Re.H.useMemo(e,t)};te.useOptimistic=function(e,t){return Re.H.useOptimistic(e,t)};te.useReducer=function(e,t,n){return Re.H.useReducer(e,t,n)};te.useRef=function(e){return Re.H.useRef(e)};te.useState=function(e){return Re.H.useState(e)};te.useSyncExternalStore=function(e,t,n){return Re.H.useSyncExternalStore(e,t,n)};te.useTransition=function(){return Re.H.useTransition()};te.version="19.1.0";Ty.exports=te;var p=Ty.exports;const E=Cy(p),_y=R6({__proto__:null,default:E},[p]);var zy={exports:{}},pt={};/**
25
+ */var um=Symbol.for("react.transitional.element"),Lw=Symbol.for("react.portal"),_w=Symbol.for("react.fragment"),zw=Symbol.for("react.strict_mode"),Pw=Symbol.for("react.profiler"),Hw=Symbol.for("react.consumer"),Kw=Symbol.for("react.context"),Uw=Symbol.for("react.forward_ref"),Bw=Symbol.for("react.suspense"),qw=Symbol.for("react.memo"),f2=Symbol.for("react.lazy"),Fw=Symbol.for("react.activity"),d1=Symbol.iterator;function Vw(e){return e===null||typeof e!="object"?null:(e=d1&&e[d1]||e["@@iterator"],typeof e=="function"?e:null)}var h2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p2=Object.assign,m2={};function Vi(e,t,n){this.props=e,this.context=t,this.refs=m2,this.updater=n||h2}Vi.prototype.isReactComponent={};Vi.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")};Vi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function g2(){}g2.prototype=Vi.prototype;function cm(e,t,n){this.props=e,this.context=t,this.refs=m2,this.updater=n||h2}var dm=cm.prototype=new g2;dm.constructor=cm;p2(dm,Vi.prototype);dm.isPureReactComponent=!0;var f1=Array.isArray;function yh(){}var je={H:null,A:null,T:null,S:null},v2=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 Gw(e,t){return fm(e.type,t,e.props)}function hm(e){return typeof e=="object"&&e!==null&&e.$$typeof===um}function Qw(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?Qw(""+e.key):t.toString(36)}function Xw(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(yh,yh):(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 Xl(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 Lw:i=!0;break;case f2:return i=e._init,Xl(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,"$&/")+"/"),Xl(a,t,n,"",function(u){return u})):a!=null&&(hm(a)&&(a=Gw(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+=Xl(r,t,n,l,a);else if(s=Vw(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,l=o+Pf(r,s++),i+=Xl(r,t,n,l,a);else if(l==="object"){if(typeof e.then=="function")return Xl(Xw(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 xu(e,t,n){if(e==null)return e;var r=[],a=0;return Xl(e,r,"","",function(l){return t.call(n,l,a++)}),r}function Yw(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)},Iw={map:xu,forEach:function(e,t,n){xu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xu(e,function(){t++}),t},toArray:function(e){return xu(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=Fw;ne.Children=Iw;ne.Component=Vi;ne.Fragment=_w;ne.Profiler=Pw;ne.PureComponent=cm;ne.StrictMode=zw;ne.Suspense=Bw;ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=je;ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return je.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=p2({},e.props),a=e.key;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)!v2.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:Kw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Hw,_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)v2.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:Uw,render:e}};ne.isValidElement=hm;ne.lazy=function(e){return{$$typeof:f2,_payload:{_status:-1,_result:e},_init:Yw}};ne.memo=function(e,t){return{$$typeof:qw,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=je.T,n={};je.T=n;try{var r=e(),a=je.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(yh,p1)}catch(l){p1(l)}finally{t!==null&&n.types!==null&&(t.types=n.types),je.T=t}};ne.unstable_useCacheRefresh=function(){return je.H.useCacheRefresh()};ne.use=function(e){return je.H.use(e)};ne.useActionState=function(e,t,n){return je.H.useActionState(e,t,n)};ne.useCallback=function(e,t){return je.H.useCallback(e,t)};ne.useContext=function(e){return je.H.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e,t){return je.H.useDeferredValue(e,t)};ne.useEffect=function(e,t){return je.H.useEffect(e,t)};ne.useEffectEvent=function(e){return je.H.useEffectEvent(e)};ne.useId=function(){return je.H.useId()};ne.useImperativeHandle=function(e,t,n){return je.H.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return je.H.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return je.H.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return je.H.useMemo(e,t)};ne.useOptimistic=function(e,t){return je.H.useOptimistic(e,t)};ne.useReducer=function(e,t,n){return je.H.useReducer(e,t,n)};ne.useRef=function(e){return je.H.useRef(e)};ne.useState=function(e){return je.H.useState(e)};ne.useSyncExternalStore=function(e,t,n){return je.H.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return je.H.useTransition()};ne.version="19.2.0";d2.exports=ne;var p=d2.exports;const O=l2(p),y2=jw({__proto__:null,default:O},[p]);var b2={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 G6=p;function Py(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 xa(){}var ht={d:{f:xa,r:function(){throw Error(Py(522))},D:xa,C:xa,L:xa,m:xa,X:xa,S:xa,M:xa},p:0,findDOMNode:null},Q6=Symbol.for("react.portal");function X6(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Q6,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var _o=G6.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function xd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ht;pt.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(Py(299));return X6(e,t,null,n)};pt.flushSync=function(e){var t=_o.T,n=ht.p;try{if(_o.T=null,ht.p=2,e)return e()}finally{_o.T=t,ht.p=n,ht.d.f()}};pt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,ht.d.C(e,t))};pt.prefetchDNS=function(e){typeof e=="string"&&ht.d.D(e)};pt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=xd(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?ht.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:l}):n==="script"&&ht.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};pt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=xd(t.as,t.crossOrigin);ht.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&&ht.d.M(e)};pt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=xd(n,t.crossOrigin);ht.d.L(e,n,{crossOrigin:a,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})}};pt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=xd(t.as,t.crossOrigin);ht.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 ht.d.m(e)};pt.requestFormReset=function(e){ht.d.r(e)};pt.unstable_batchedUpdates=function(e,t){return e(t)};pt.useFormState=function(e,t,n){return _o.H.useFormState(e,t,n)};pt.useFormStatus=function(){return _o.H.useHostTransitionStatus()};pt.version="19.1.0";function Ky(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ky)}catch(e){console.error(e)}}Ky(),zy.exports=pt;var Ts=zy.exports;const jp=Cy(Ts);/**
33
+ */var Zw=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 xt={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},$w=Symbol.for("react.portal");function Ww(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$w,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var es=Zw.__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=xt;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 Ww(e,t,null,n)};Ct.flushSync=function(e){var t=es.T,n=xt.p;try{if(es.T=null,xt.p=2,e)return e()}finally{es.T=t,xt.p=n,xt.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,xt.d.C(e,t))};Ct.prefetchDNS=function(e){typeof e=="string"&&xt.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"?xt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:l}):n==="script"&&xt.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);xt.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&&xt.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);xt.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);xt.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 xt.d.m(e)};Ct.requestFormReset=function(e){xt.d.r(e)};Ct.unstable_batchedUpdates=function(e,t){return e(t)};Ct.useFormState=function(e,t,n){return es.H.useFormState(e,t,n)};Ct.useFormStatus=function(){return es.H.useHostTransitionStatus()};Ct.version="19.2.0";function x2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x2)}catch(e){console.error(e)}}x2(),b2.exports=Ct;var Is=b2.exports;const pm=l2(Is);/**
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 Qe=D6,Hy=p,Y6=Ts;function K(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 Uy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ds(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 By(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 Lm(e){if(Ds(e)!==e)throw Error(K(188))}function I6(e){var t=e.alternate;if(!t){if(t=Ds(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var l=r.alternate;if(l===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===l.child){for(l=r.child;l;){if(l===n)return Lm(r),e;if(l===a)return Lm(r),t;l=l.sibling}throw Error(K(188))}if(n.return!==a.return)n=r,a=l;else{for(var i=!1,o=r.child;o;){if(o===n){i=!0,n=r,a=l;break}if(o===a){i=!0,a=r,n=l;break}o=o.sibling}if(!i){for(o=l.child;o;){if(o===n){i=!0,n=l,a=r;break}if(o===a){i=!0,a=l,n=r;break}o=o.sibling}if(!i)throw Error(K(189))}}if(n.alternate!==a)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function qy(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=qy(e),t!==null)return t;e=e.sibling}return null}var Ee=Object.assign,Z6=Symbol.for("react.element"),nu=Symbol.for("react.transitional.element"),Oo=Symbol.for("react.portal"),Ll=Symbol.for("react.fragment"),Fy=Symbol.for("react.strict_mode"),U0=Symbol.for("react.profiler"),W6=Symbol.for("react.provider"),Vy=Symbol.for("react.consumer"),ra=Symbol.for("react.context"),Lp=Symbol.for("react.forward_ref"),B0=Symbol.for("react.suspense"),q0=Symbol.for("react.suspense_list"),_p=Symbol.for("react.memo"),Da=Symbol.for("react.lazy"),F0=Symbol.for("react.activity"),$6=Symbol.for("react.memo_cache_sentinel"),_m=Symbol.iterator;function Fi(e){return e===null||typeof e!="object"?null:(e=_m&&e[_m]||e["@@iterator"],typeof e=="function"?e:null)}var J6=Symbol.for("react.client.reference");function V0(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J6?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ll:return"Fragment";case U0:return"Profiler";case Fy:return"StrictMode";case B0:return"Suspense";case q0:return"SuspenseList";case F0:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Oo:return"Portal";case ra:return(e.displayName||"Context")+".Provider";case Vy:return(e._context.displayName||"Context")+".Consumer";case Lp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _p:return t=e.displayName||null,t!==null?t:V0(e.type)||"Memo";case Da:t=e._payload,e=e._init;try{return V0(e(t))}catch{}}return null}var To=Array.isArray,Z=Hy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Y6.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kr={pending:!1,data:null,method:null,action:null},G0=[],_l=-1;function Fn(e){return{current:e}}function $e(e){0>_l||(e.current=G0[_l],G0[_l]=null,_l--)}function Oe(e,t){_l++,G0[_l]=e.current,e.current=t}var Un=Fn(null),ts=Fn(null),Fa=Fn(null),cc=Fn(null);function dc(e,t){switch(Oe(Fa,t),Oe(ts,e),Oe(Un,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?U1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=U1(t),e=o9(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$e(Un),Oe(Un,e)}function ui(){$e(Un),$e(ts),$e(Fa)}function Q0(e){e.memoizedState!==null&&Oe(cc,e);var t=Un.current,n=o9(t,e.type);t!==n&&(Oe(ts,e),Oe(Un,n))}function fc(e){ts.current===e&&($e(Un),$e(ts)),cc.current===e&&($e(cc),ds._currentValue=Kr)}var X0=Object.prototype.hasOwnProperty,zp=Qe.unstable_scheduleCallback,df=Qe.unstable_cancelCallback,ew=Qe.unstable_shouldYield,tw=Qe.unstable_requestPaint,Bn=Qe.unstable_now,nw=Qe.unstable_getCurrentPriorityLevel,Gy=Qe.unstable_ImmediatePriority,Qy=Qe.unstable_UserBlockingPriority,hc=Qe.unstable_NormalPriority,aw=Qe.unstable_LowPriority,Xy=Qe.unstable_IdlePriority,rw=Qe.log,lw=Qe.unstable_setDisableYieldValue,ks=null,qt=null;function Pa(e){if(typeof rw=="function"&&lw(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(ks,e)}catch{}}var Ft=Math.clz32?Math.clz32:sw,iw=Math.log,ow=Math.LN2;function sw(e){return e>>>=0,e===0?32:31-(iw(e)/ow|0)|0}var au=256,ru=4194304;function Ar(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Cd(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~l,a!==0?r=Ar(a):(i&=o,i!==0?r=Ar(i):n||(n=o&~e,n!==0&&(r=Ar(n))))):(o=a&~l,o!==0?r=Ar(o):i!==0?r=Ar(i):n||(n=a&~e,n!==0&&(r=Ar(n)))),r===0?0:t!==0&&t!==r&&!(t&l)&&(l=r&-r,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:r}function Ns(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function uw(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 Yy(){var e=au;return au<<=1,!(au&4194048)&&(au=256),e}function Iy(){var e=ru;return ru<<=1,!(ru&62914560)&&(ru=4194304),e}function ff(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function As(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cw(e,t,n,a,r,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 f=31-Ft(n),c=1<<f;o[f]=0,s[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var h=d[f];h!==null&&(h.lane&=-536870913)}n&=~c}a!==0&&Zy(e,a,0),l!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function Zy(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ft(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function Wy(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ft(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function Pp(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 Kp(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function $y(){var e=fe.p;return e!==0?e:(e=window.event,e===void 0?32:v9(e.type))}function dw(e,t){var n=fe.p;try{return fe.p=e,t()}finally{fe.p=n}}var sr=Math.random().toString(36).slice(2),it="__reactFiber$"+sr,Mt="__reactProps$"+sr,Di="__reactContainer$"+sr,Y0="__reactEvents$"+sr,fw="__reactListeners$"+sr,hw="__reactHandles$"+sr,zm="__reactResources$"+sr,js="__reactMarker$"+sr;function Hp(e){delete e[it],delete e[Mt],delete e[Y0],delete e[fw],delete e[hw]}function zl(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Di]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=F1(e);e!==null;){if(n=e[it])return n;e=F1(e)}return t}e=n,n=e.parentNode}return null}function ki(e){if(e=e[it]||e[Di]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Do(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(K(33))}function Zl(e){var t=e[zm];return t||(t=e[zm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[js]=!0}var Jy=new Set,e2={};function tl(e,t){ci(e,t),ci(e+"Capture",t)}function ci(e,t){for(e2[e]=t,e=0;e<t.length;e++)Jy.add(t[e])}var pw=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]*$"),Pm={},Km={};function gw(e){return X0.call(Km,e)?!0:X0.call(Pm,e)?!1:pw.test(e)?Km[e]=!0:(Pm[e]=!0,!1)}function Vu(e,t,n){if(gw(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function lu(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 Yn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var hf,Hm;function Tl(e){if(hf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hf=t&&t[1]||"",Hm=-1<n.stack.indexOf(`
41
+ */var We=kw,C2=p,Jw=Is;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 S2(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 E2(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 M2(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 ex(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 O2(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=O2(e),t!==null)return t;e=e.sibling}return null}var Ae=Object.assign,tx=Symbol.for("react.element"),Cu=Symbol.for("react.transitional.element"),Go=Symbol.for("react.portal"),ei=Symbol.for("react.fragment"),R2=Symbol.for("react.strict_mode"),bh=Symbol.for("react.profiler"),T2=Symbol.for("react.consumer"),yr=Symbol.for("react.context"),mm=Symbol.for("react.forward_ref"),wh=Symbol.for("react.suspense"),xh=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),Vr=Symbol.for("react.lazy"),Ch=Symbol.for("react.activity"),nx=Symbol.for("react.memo_cache_sentinel"),g1=Symbol.iterator;function co(e){return e===null||typeof e!="object"?null:(e=g1&&e[g1]||e["@@iterator"],typeof e=="function"?e:null)}var rx=Symbol.for("react.client.reference");function Sh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===rx?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ei:return"Fragment";case bh:return"Profiler";case R2:return"StrictMode";case wh:return"Suspense";case xh:return"SuspenseList";case Ch:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Go:return"Portal";case yr:return e.displayName||"Context";case T2: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 Qo=Array.isArray,W=C2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=Jw.__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),Cs=er(null),la=er(null),Pc=er(null);function Hc(e,t){switch(Re(la,t),Re(Cs,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(Cs),it(la)}function Mh(e){e.memoizedState!==null&&Re(Pc,e);var t=Jn.current,n=Y9(t,e.type);t!==n&&(Re(Cs,e),Re(Jn,n))}function Kc(e){Cs.current===e&&(it(Jn),it(Cs)),Pc.current===e&&(it(Pc),ks._currentValue=rl)}var Hf,v1;function Ia(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
- `+hf+e+Hm}var pf=!1;function gf(e,t){if(!e||pf)return"";pf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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 d=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){d=h}e.call(c.prototype)}}else{try{throw Error()}catch(h){d=h}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=a.DetermineComponentFrameRoot(),i=l[0],o=l[1];if(i&&o){var s=i.split(`
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
- `);for(r=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(a===s.length||r===u.length)for(a=s.length-1,r=u.length-1;1<=a&&0<=r&&s[a]!==u[r];)r--;for(;1<=a&&0<=r;a--,r--)if(s[a]!==u[r]){if(a!==1||r!==1)do if(a--,r--,0>r||s[a]!==u[r]){var f=`
46
- `+s[a].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=a&&0<=r);break}}}finally{pf=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Tl(n):""}function mw(e){switch(e.tag){case 26:case 27:case 5:return Tl(e.type);case 16:return Tl("Lazy");case 13:return Tl("Suspense");case 19:return Tl("SuspenseList");case 0:case 15:return gf(e.type,!1);case 11:return gf(e.type.render,!1);case 1:return gf(e.type,!0);case 31:return Tl("Activity");default:return""}}function Um(e){try{var t="";do t+=mw(e),e=e.return;while(e);return t}catch(n){return`
47
- Error generating stack: `+n.message+`
48
- `+n.stack}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vw(e){var t=t2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pc(e){e._valueTracker||(e._valueTracker=vw(e))}function n2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=t2(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function gc(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 bw=/[\n"\\]/g;function rn(e){return e.replace(bw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function I0(e,t,n,a,r,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=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Z0(e,i,tn(t)):n!=null?Z0(e,i,tn(n)):a!=null&&e.removeAttribute("value"),r==null&&l!=null&&(e.defaultChecked=!!l),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+tn(o):e.removeAttribute("name")}function a2(e,t,n,a,r,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))return;n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i)}function Z0(e,t,n){t==="number"&&gc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Wl(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function r2(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function l2(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(K(92));if(To(a)){if(1<a.length)throw Error(K(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function di(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yw=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 Bm(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||yw.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function i2(e,t,n){if(t!=null&&typeof t!="object")throw Error(K(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&Bm(e,r,a)}else for(var l in t)t.hasOwnProperty(l)&&Bm(e,l,t[l])}function Up(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 ww=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"]]),xw=/^[\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 Gu(e){return xw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var W0=null;function Bp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pl=null,$l=null;function qm(e){var t=ki(e);if(t&&(e=t.stateNode)){var n=e[Mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(I0(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="'+rn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Mt]||null;if(!r)throw Error(K(90));I0(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&n2(a)}break e;case"textarea":r2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Wl(e,!!n.multiple,t,!1)}}}var mf=!1;function o2(e,t,n){if(mf)return e(t,n);mf=!0;try{var a=e(t);return a}finally{if(mf=!1,(Pl!==null||$l!==null)&&(Ad(),Pl&&(t=Pl,e=$l,$l=Pl=null,qm(t),e)))for(t=0;t<e.length;t++)qm(e[t])}}function ns(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Mt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$0=!1;if(fa)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){$0=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{$0=!1}var Ka=null,qp=null,Qu=null;function s2(){if(Qu)return Qu;var e,t=qp,n=t.length,a,r="value"in Ka?Ka.value:Ka.textContent,l=r.length;for(e=0;e<n&&t[e]===r[e];e++);var i=n-e;for(a=1;a<=i&&t[n-a]===r[l-a];a++);return Qu=r.slice(e,1<a?1-a:void 0)}function Xu(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 iu(){return!0}function Fm(){return!1}function Rt(e){function t(n,a,r,l,i){this._reactName=n,this._targetInst=r,this.type=a,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)?iu:Fm,this.isPropagationStopped=Fm,this}return Ee(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=iu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=iu)},persist:function(){},isPersistent:iu}),t}var nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sd=Rt(nl),Ls=Ee({},nl,{view:0,detail:0}),Cw=Rt(Ls),vf,bf,Gi,Ed=Ee({},Ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fp,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!==Gi&&(Gi&&e.type==="mousemove"?(vf=e.screenX-Gi.screenX,bf=e.screenY-Gi.screenY):bf=vf=0,Gi=e),vf)},movementY:function(e){return"movementY"in e?e.movementY:bf}}),Vm=Rt(Ed),Sw=Ee({},Ed,{dataTransfer:0}),Ew=Rt(Sw),Mw=Ee({},Ls,{relatedTarget:0}),yf=Rt(Mw),Rw=Ee({},nl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ow=Rt(Rw),Tw=Ee({},nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dw=Rt(Tw),kw=Ee({},nl,{data:0}),Gm=Rt(kw),Nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Aw={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"},jw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jw[e])?!!t[e]:!1}function Fp(){return Lw}var _w=Ee({},Ls,{key:function(e){if(e.key){var t=Nw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Aw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fp,charCode:function(e){return e.type==="keypress"?Xu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zw=Rt(_w),Pw=Ee({},Ed,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qm=Rt(Pw),Kw=Ee({},Ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fp}),Hw=Rt(Kw),Uw=Ee({},nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bw=Rt(Uw),qw=Ee({},Ed,{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}),Fw=Rt(qw),Vw=Ee({},nl,{newState:0,oldState:0}),Gw=Rt(Vw),Qw=[9,13,27,32],Vp=fa&&"CompositionEvent"in window,zo=null;fa&&"documentMode"in document&&(zo=document.documentMode);var Xw=fa&&"TextEvent"in window&&!zo,u2=fa&&(!Vp||zo&&8<zo&&11>=zo),Xm=" ",Ym=!1;function c2(e,t){switch(e){case"keyup":return Qw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kl=!1;function Yw(e,t){switch(e){case"compositionend":return d2(t);case"keypress":return t.which!==32?null:(Ym=!0,Xm);case"textInput":return e=t.data,e===Xm&&Ym?null:e;default:return null}}function Iw(e,t){if(Kl)return e==="compositionend"||!Vp&&c2(e,t)?(e=s2(),Qu=qp=Ka=null,Kl=!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 u2&&t.locale!=="ko"?null:t.data;default:return null}}var Zw={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 Im(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zw[e.type]:t==="textarea"}function f2(e,t,n,a){Pl?$l?$l.push(a):$l=[a]:Pl=a,t=jc(t,"onChange"),0<t.length&&(n=new Sd("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Po=null,as=null;function Ww(e){r9(e,0)}function Md(e){var t=Do(e);if(n2(t))return e}function Zm(e,t){if(e==="change")return t}var h2=!1;if(fa){var wf;if(fa){var xf="oninput"in document;if(!xf){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),xf=typeof Wm.oninput=="function"}wf=xf}else wf=!1;h2=wf&&(!document.documentMode||9<document.documentMode)}function $m(){Po&&(Po.detachEvent("onpropertychange",p2),as=Po=null)}function p2(e){if(e.propertyName==="value"&&Md(as)){var t=[];f2(t,as,e,Bp(e)),o2(Ww,t)}}function $w(e,t,n){e==="focusin"?($m(),Po=t,as=n,Po.attachEvent("onpropertychange",p2)):e==="focusout"&&$m()}function Jw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Md(as)}function ex(e,t){if(e==="click")return Md(t)}function tx(e,t){if(e==="input"||e==="change")return Md(t)}function nx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:nx;function rs(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!X0.call(t,r)||!Qt(e[r],t[r]))return!1}return!0}function Jm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function e1(e,t){var n=Jm(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jm(n)}}function g2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?g2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m2(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gc(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=gc(e.document)}return t}function Gp(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 ax=fa&&"documentMode"in document&&11>=document.documentMode,Hl=null,J0=null,Ko=null,eh=!1;function t1(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eh||Hl==null||Hl!==gc(a)||(a=Hl,"selectionStart"in a&&Gp(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ko&&rs(Ko,a)||(Ko=a,a=jc(J0,"onSelect"),0<a.length&&(t=new Sd("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Hl)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ul={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionrun:vr("Transition","TransitionRun"),transitionstart:vr("Transition","TransitionStart"),transitioncancel:vr("Transition","TransitionCancel"),transitionend:vr("Transition","TransitionEnd")},Cf={},v2={};fa&&(v2=document.createElement("div").style,"AnimationEvent"in window||(delete Ul.animationend.animation,delete Ul.animationiteration.animation,delete Ul.animationstart.animation),"TransitionEvent"in window||delete Ul.transitionend.transition);function al(e){if(Cf[e])return Cf[e];if(!Ul[e])return e;var t=Ul[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in v2)return Cf[e]=t[n];return e}var b2=al("animationend"),y2=al("animationiteration"),w2=al("animationstart"),rx=al("transitionrun"),lx=al("transitionstart"),ix=al("transitioncancel"),x2=al("transitionend"),C2=new Map,th="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(" ");th.push("scrollEnd");function On(e,t){C2.set(e,t),tl(t,[e])}var n1=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var n=n1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Um(t)},n1.set(e,t),t)}return{value:e,source:t,stack:Um(t)}}var en=[],Bl=0,Qp=0;function Rd(){for(var e=Bl,t=Qp=Bl=0;t<e;){var n=en[t];en[t++]=null;var a=en[t];en[t++]=null;var r=en[t];en[t++]=null;var l=en[t];if(en[t++]=null,a!==null&&r!==null){var i=a.pending;i===null?r.next=r:(r.next=i.next,i.next=r),a.pending=r}l!==0&&S2(n,r,l)}}function Od(e,t,n,a){en[Bl++]=e,en[Bl++]=t,en[Bl++]=n,en[Bl++]=a,Qp|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Xp(e,t,n,a){return Od(e,t,n,a),mc(e)}function Ni(e,t){return Od(e,null,null,t),mc(e)}function S2(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,l=e.return;l!==null;)l.childLanes|=n,a=l.alternate,a!==null&&(a.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(r=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,r&&t!==null&&(r=31-Ft(n),e=l.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),l):null}function mc(e){if(50<Yo)throw Yo=0,Ch=null,Error(K(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ql={};function ox(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new ox(e,t,n,a)}function Yp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var n=e.alternate;return n===null?(n=Pt(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 E2(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 Yu(e,t,n,a,r,l){var i=0;if(a=e,typeof e=="function")Yp(e)&&(i=1);else if(typeof e=="string")i=uC(e,n,Un.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F0:return e=Pt(31,n,t,r),e.elementType=F0,e.lanes=l,e;case Ll:return Hr(n.children,r,l,t);case Fy:i=8,r|=24;break;case U0:return e=Pt(12,n,t,r|2),e.elementType=U0,e.lanes=l,e;case B0:return e=Pt(13,n,t,r),e.elementType=B0,e.lanes=l,e;case q0:return e=Pt(19,n,t,r),e.elementType=q0,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W6:case ra:i=10;break e;case Vy:i=9;break e;case Lp:i=11;break e;case _p:i=14;break e;case Da:i=16,a=null;break e}i=29,n=Error(K(130,e===null?"null":typeof e,"")),a=null}return t=Pt(i,n,t,r),t.elementType=e,t.type=a,t.lanes=l,t}function Hr(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Sf(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ef(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fl=[],Vl=0,vc=null,bc=0,nn=[],an=0,Ur=null,la=1,ia="";function jr(e,t){Fl[Vl++]=bc,Fl[Vl++]=vc,vc=e,bc=t}function M2(e,t,n){nn[an++]=la,nn[an++]=ia,nn[an++]=Ur,Ur=e;var a=la;e=ia;var r=32-Ft(a)-1;a&=~(1<<r),n+=1;var l=32-Ft(t)+r;if(30<l){var i=r-r%5;l=(a&(1<<i)-1).toString(32),a>>=i,r-=i,la=1<<32-Ft(t)+r|n<<r|a,ia=l+e}else la=1<<l|n<<r|a,ia=e}function Ip(e){e.return!==null&&(jr(e,1),M2(e,1,0))}function Zp(e){for(;e===vc;)vc=Fl[--Vl],Fl[Vl]=null,bc=Fl[--Vl],Fl[Vl]=null;for(;e===Ur;)Ur=nn[--an],nn[an]=null,ia=nn[--an],nn[an]=null,la=nn[--an],nn[an]=null}var ft=null,Ne=null,ce=!1,Br=null,Pn=!1,nh=Error(K(519));function Qr(e){var t=Error(K(418,""));throw ls(ln(t,e)),nh}function a1(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[it]=e,t[Mt]=a,n){case"dialog":ae("cancel",t),ae("close",t);break;case"iframe":case"object":case"embed":ae("load",t);break;case"video":case"audio":for(n=0;n<ss.length;n++)ae(ss[n],t);break;case"source":ae("error",t);break;case"img":case"image":case"link":ae("error",t),ae("load",t);break;case"details":ae("toggle",t);break;case"input":ae("invalid",t),a2(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),pc(t);break;case"select":ae("invalid",t);break;case"textarea":ae("invalid",t),l2(t,a.value,a.defaultValue,a.children),pc(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||i9(t.textContent,n)?(a.popover!=null&&(ae("beforetoggle",t),ae("toggle",t)),a.onScroll!=null&&ae("scroll",t),a.onScrollEnd!=null&&ae("scrollend",t),a.onClick!=null&&(t.onclick=_d),t=!0):t=!1,t||Qr(e)}function r1(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 13:Pn=!1;return;case 27:case 3:Pn=!0;return;default:ft=ft.return}}function Qi(e){if(e!==ft)return!1;if(!ce)return r1(e),ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Th(e.type,e.memoizedProps)),n=!n),n&&Ne&&Qr(e),r1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Ne=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Ne=null}}else t===27?(t=Ne,ur(e.type)?(e=Nh,Nh=null,Ne=e):Ne=t):Ne=ft?Sn(e.stateNode.nextSibling):null;return!0}function _s(){Ne=ft=null,ce=!1}function l1(){var e=Br;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Br=null),e}function ls(e){Br===null?Br=[e]:Br.push(e)}var ah=Fn(null),rl=null,oa=null;function Aa(e,t,n){Oe(ah,t._currentValue),t._currentValue=n}function ca(e){e._currentValue=ah.current,$e(ah)}function rh(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function lh(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var l=r.dependencies;if(l!==null){var i=r.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=r;for(var s=0;s<t.length;s++)if(o.context===t[s]){l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),rh(l.return,n,e),a||(i=null);break e}l=o.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(K(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),rh(i,n,e),i=null}else i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function zs(e,t,n,a){e=null;for(var r=t,l=!1;r!==null;){if(!l){if(r.flags&524288)l=!0;else if(r.flags&262144)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(K(387));if(i=i.memoizedProps,i!==null){var o=r.type;Qt(r.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(r===cc.current){if(i=r.alternate,i===null)throw Error(K(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ds):e=[ds])}r=r.return}e!==null&&lh(t,e,n,a),t.flags|=262144}function yc(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xr(e){rl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return R2(rl,e)}function ou(e,t){return rl===null&&Xr(e),R2(e,t)}function R2(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(K(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var sx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ux=Qe.unstable_scheduleCallback,cx=Qe.unstable_NormalPriority,Ve={$$typeof:ra,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wp(){return{controller:new sx,data:new Map,refCount:0}}function Ps(e){e.refCount--,e.refCount===0&&ux(cx,function(){e.controller.abort()})}var Ho=null,ih=0,fi=0,Jl=null;function dx(e,t){if(Ho===null){var n=Ho=[];ih=0,fi=wg(),Jl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ih++,t.then(i1,i1),t}function i1(){if(--ih===0&&Ho!==null){Jl!==null&&(Jl.status="fulfilled");var e=Ho;Ho=null,fi=0,Jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fx(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var o1=Z.S;Z.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&dx(e,t),o1!==null&&o1(e,t)};var qr=Fn(null);function $p(){var e=qr.current;return e!==null?e:Se.pooledCache}function Iu(e,t){t===null?Oe(qr,qr.current):Oe(qr,t.pool)}function O2(){var e=$p();return e===null?null:{parent:Ve._currentValue,pool:e}}var Ks=Error(K(460)),T2=Error(K(474)),Td=Error(K(542)),oh={then:function(){}};function s1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function su(){}function D2(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(su,su),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,c1(e),e;default:if(typeof t.status=="string")t.then(su,su);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(K(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,c1(e),e}throw Uo=t,Ks}}var Uo=null;function u1(){if(Uo===null)throw Error(K(459));var e=Uo;return Uo=null,e}function c1(e){if(e===Ks||e===Td)throw Error(K(483))}var ka=!1;function Jp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sh(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 Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,ge&2){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=mc(e),S2(e,null,n),t}return Od(e,a,t,n),mc(e)}function Bo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Wy(e,n)}}function Mf(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=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?r=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?r=l=t:l=l.next=t}else r=l=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:l,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uh=!1;function qo(){if(uh){var e=Jl;if(e!==null)throw e}}function Fo(e,t,n,a){uh=!1;var r=e.updateQueue;ka=!1;var l=r.firstBaseUpdate,i=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var s=o,u=s.next;s.next=null,i===null?l=u:i.next=u,i=s;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==i&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=s))}if(l!==null){var c=r.baseState;i=0,f=u=s=null,o=l;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(oe&d)===d:(a&d)===d){d!==0&&d===fi&&(uh=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,m=o;d=t;var w=n;switch(m.tag){case 1:if(g=m.payload,typeof g=="function"){c=g.call(w,c,d);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,d=typeof g=="function"?g.call(w,c,d):g,d==null)break e;c=Ee({},c,d);break e;case 2:ka=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,i|=d;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;h=o,o=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);f===null&&(s=c),r.baseState=s,r.firstBaseUpdate=u,r.lastBaseUpdate=f,l===null&&(r.shared.lanes=0),ar|=i,e.lanes=i,e.memoizedState=c}}function k2(e,t){if(typeof e!="function")throw Error(K(191,e));e.call(t)}function N2(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)k2(n[e],t)}var hi=Fn(null),wc=Fn(0);function d1(e,t){e=ga,Oe(wc,e),Oe(hi,t),ga=e|t.baseLanes}function ch(){Oe(wc,ga),Oe(hi,hi.current)}function eg(){ga=wc.current,$e(hi),$e(wc)}var tr=0,ne=null,be=null,Ue=null,xc=!1,ei=!1,Yr=!1,Cc=0,is=0,ti=null,hx=0;function Le(){throw Error(K(321))}function tg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function ng(e,t,n,a,r,l){return tr=l,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Z.H=e===null||e.memoizedState===null?s5:u5,Yr=!1,l=n(a,r),Yr=!1,ei&&(l=j2(t,n,a,r)),A2(e),l}function A2(e){Z.H=Sc;var t=be!==null&&be.next!==null;if(tr=0,Ue=be=ne=null,xc=!1,is=0,ti=null,t)throw Error(K(300));e===null||We||(e=e.dependencies,e!==null&&yc(e)&&(We=!0))}function j2(e,t,n,a){ne=e;var r=0;do{if(ei&&(ti=null),is=0,ei=!1,25<=r)throw Error(K(301));if(r+=1,Ue=be=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}Z.H=wx,l=t(n,a)}while(ei);return l}function px(){var e=Z.H,t=e.useState()[0];return t=typeof t.then=="function"?Hs(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(ne.flags|=1024),t}function ag(){var e=Cc!==0;return Cc=0,e}function rg(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function lg(e){if(xc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xc=!1}tr=0,Ue=be=ne=null,ei=!1,is=Cc=0,ti=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?ne.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Be(){if(be===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Ue===null?ne.memoizedState:Ue.next;if(t!==null)Ue=t,be=e;else{if(e===null)throw ne.alternate===null?Error(K(467)):Error(K(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Ue===null?ne.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function ig(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hs(e){var t=is;return is+=1,ti===null&&(ti=[]),e=D2(ti,e,t),t=ne,(Ue===null?t.memoizedState:Ue.next)===null&&(t=t.alternate,Z.H=t===null||t.memoizedState===null?s5:u5),e}function Dd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hs(e);if(e.$$typeof===ra)return ot(e)}throw Error(K(438,String(e)))}function og(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ne.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ig(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=$6;return t.index++,n}function ha(e,t){return typeof t=="function"?t(e):t}function Zu(e){var t=Be();return sg(t,be,e)}function sg(e,t,n){var a=e.queue;if(a===null)throw Error(K(311));a.lastRenderedReducer=n;var r=e.baseQueue,l=a.pending;if(l!==null){if(r!==null){var i=r.next;r.next=l.next,l.next=i}t.baseQueue=r=l,a.pending=null}if(l=e.baseState,r===null)e.memoizedState=l;else{t=r.next;var o=i=null,s=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(oe&c)===c:(tr&c)===c){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===fi&&(f=!0);else if((tr&d)===d){u=u.next,d===fi&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=c,i=l):s=s.next=c,ne.lanes|=d,ar|=d;c=u.action,Yr&&n(l,c),l=u.hasEagerState?u.eagerState:n(l,c)}else d={lane:c,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,i=l):s=s.next=d,ne.lanes|=c,ar|=c;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!Qt(l,e.memoizedState)&&(We=!0,f&&(n=Jl,n!==null)))throw n;e.memoizedState=l,e.baseState=i,e.baseQueue=s,a.lastRenderedState=l}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Rf(e){var t=Be(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,l=t.memoizedState;if(r!==null){n.pending=null;var i=r=r.next;do l=e(l,i.action),i=i.next;while(i!==r);Qt(l,t.memoizedState)||(We=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,a]}function L2(e,t,n){var a=ne,r=Be(),l=ce;if(l){if(n===void 0)throw Error(K(407));n=n()}else n=t();var i=!Qt((be||r).memoizedState,n);i&&(r.memoizedState=n,We=!0),r=r.queue;var o=P2.bind(null,a,r,e);if(Us(2048,8,o,[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(a.flags|=2048,pi(9,kd(),z2.bind(null,a,r,n,t),null),Se===null)throw Error(K(349));l||tr&124||_2(a,t,n)}return n}function _2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=ig(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function z2(e,t,n,a){t.value=n,t.getSnapshot=a,K2(t)&&H2(e)}function P2(e,t,n){return n(function(){K2(t)&&H2(e)})}function K2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function H2(e){var t=Ni(e,2);t!==null&&Gt(t,e,2)}function dh(e){var t=wt();if(typeof e=="function"){var n=e;if(e=n(),Yr){Pa(!0);try{n()}finally{Pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function U2(e,t,n,a){return e.baseState=n,sg(e,be,typeof a=="function"?a:ha)}function gx(e,t,n,a,r){if(Nd(e))throw Error(K(485));if(e=t.action,e!==null){var l={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};Z.T!==null?n(!0):l.isTransition=!1,a(l),n=t.pending,n===null?(l.next=t.pending=l,B2(t,l)):(l.next=n.next,t.pending=n.next=l)}}function B2(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var l=Z.T,i={};Z.T=i;try{var o=n(r,a),s=Z.S;s!==null&&s(i,o),f1(e,t,o)}catch(u){fh(e,t,u)}finally{Z.T=l}}else try{l=n(r,a),f1(e,t,l)}catch(u){fh(e,t,u)}}function f1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){h1(e,t,a)},function(a){return fh(e,t,a)}):h1(e,t,n)}function h1(e,t,n){t.status="fulfilled",t.value=n,q2(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,B2(e,n)))}function fh(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,q2(t),t=t.next;while(t!==a)}e.action=null}function q2(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function F2(e,t){return t}function p1(e,t){if(ce){var n=Se.formState;if(n!==null){e:{var a=ne;if(ce){if(Ne){t:{for(var r=Ne,l=Pn;r.nodeType!==8;){if(!l){r=null;break t}if(r=Sn(r.nextSibling),r===null){r=null;break t}}l=r.data,r=l==="F!"||l==="F"?r:null}if(r){Ne=Sn(r.nextSibling),a=r.data==="F!";break e}}Qr(a)}a=!1}a&&(t=n[0])}}return n=wt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:F2,lastRenderedState:t},n.queue=a,n=l5.bind(null,ne,a),a.dispatch=n,a=dh(!1),l=fg.bind(null,ne,!1,a.queue),a=wt(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=gx.bind(null,ne,r,l,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function g1(e){var t=Be();return V2(t,be,e)}function V2(e,t,n){if(t=sg(e,t,F2)[0],e=Zu(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Hs(t)}catch(i){throw i===Ks?Td:i}else a=t;t=Be();var r=t.queue,l=r.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,pi(9,kd(),mx.bind(null,r,n),null)),[a,l,e]}function mx(e,t){e.action=t}function m1(e){var t=Be(),n=be;if(n!==null)return V2(t,n,e);Be(),t=t.memoizedState,n=Be();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function pi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=ig(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function kd(){return{destroy:void 0,resource:void 0}}function G2(){return Be().memoizedState}function Wu(e,t,n,a){var r=wt();a=a===void 0?null:a,ne.flags|=e,r.memoizedState=pi(1|t,kd(),n,a)}function Us(e,t,n,a){var r=Be();a=a===void 0?null:a;var l=r.memoizedState.inst;be!==null&&a!==null&&tg(a,be.memoizedState.deps)?r.memoizedState=pi(t,l,n,a):(ne.flags|=e,r.memoizedState=pi(1|t,l,n,a))}function v1(e,t){Wu(8390656,8,e,t)}function Q2(e,t){Us(2048,8,e,t)}function X2(e,t){return Us(4,2,e,t)}function Y2(e,t){return Us(4,4,e,t)}function I2(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 Z2(e,t,n){n=n!=null?n.concat([e]):null,Us(4,4,I2.bind(null,t,e),n)}function ug(){}function W2(e,t){var n=Be();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&tg(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function $2(e,t){var n=Be();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&tg(t,a[1]))return a[0];if(a=e(),Yr){Pa(!0);try{e()}finally{Pa(!1)}}return n.memoizedState=[a,t],a}function cg(e,t,n){return n===void 0||tr&1073741824?e.memoizedState=t:(e.memoizedState=n,e=q5(),ne.lanes|=e,ar|=e,n)}function J2(e,t,n,a){return Qt(n,t)?n:hi.current!==null?(e=cg(e,n,a),Qt(e,t)||(We=!0),e):tr&42?(e=q5(),ne.lanes|=e,ar|=e,t):(We=!0,e.memoizedState=n)}function e5(e,t,n,a,r){var l=fe.p;fe.p=l!==0&&8>l?l:8;var i=Z.T,o={};Z.T=o,fg(e,!1,t,n);try{var s=r(),u=Z.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=fx(s,a);Vo(e,t,f,Vt(e))}else Vo(e,t,a,Vt(e))}catch(c){Vo(e,t,{then:function(){},status:"rejected",reason:c},Vt())}finally{fe.p=l,Z.T=i}}function vx(){}function hh(e,t,n,a){if(e.tag!==5)throw Error(K(476));var r=t5(e).queue;e5(e,r,t,Kr,n===null?vx:function(){return n5(e),n(a)})}function t5(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Kr,baseState:Kr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:Kr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function n5(e){var t=t5(e).next.queue;Vo(e,t,{},Vt())}function dg(){return ot(ds)}function a5(){return Be().memoizedState}function r5(){return Be().memoizedState}function bx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Vt();e=Va(n);var a=Ga(t,e,n);a!==null&&(Gt(a,t,n),Bo(a,t,n)),t={cache:Wp()},e.payload=t;return}t=t.return}}function yx(e,t,n){var a=Vt();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Nd(e)?i5(t,n):(n=Xp(e,t,n,a),n!==null&&(Gt(n,e,a),o5(n,t,a)))}function l5(e,t,n){var a=Vt();Vo(e,t,n,a)}function Vo(e,t,n,a){var r={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nd(e))i5(t,r);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(r.hasEagerState=!0,r.eagerState=o,Qt(o,i))return Od(e,t,r,0),Se===null&&Rd(),!1}catch{}finally{}if(n=Xp(e,t,r,a),n!==null)return Gt(n,e,a),o5(n,t,a),!0}return!1}function fg(e,t,n,a){if(a={lane:2,revertLane:wg(),action:a,hasEagerState:!1,eagerState:null,next:null},Nd(e)){if(t)throw Error(K(479))}else t=Xp(e,n,a,2),t!==null&&Gt(t,e,2)}function Nd(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function i5(e,t){ei=xc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function o5(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Wy(e,n)}}var Sc={readContext:ot,use:Dd,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le},s5={readContext:ot,use:Dd,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:v1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Wu(4194308,4,I2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wu(4194308,4,e,t)},useInsertionEffect:function(e,t){Wu(4,2,e,t)},useMemo:function(e,t){var n=wt();t=t===void 0?null:t;var a=e();if(Yr){Pa(!0);try{e()}finally{Pa(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=wt();if(n!==void 0){var r=n(t);if(Yr){Pa(!0);try{n(t)}finally{Pa(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=yx.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=dh(e);var t=e.queue,n=l5.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ug,useDeferredValue:function(e,t){var n=wt();return cg(n,e,t)},useTransition:function(){var e=dh(!1);return e=e5.bind(null,ne,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ne,r=wt();if(ce){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),Se===null)throw Error(K(349));oe&124||_2(a,t,n)}r.memoizedState=n;var l={value:n,getSnapshot:t};return r.queue=l,v1(P2.bind(null,a,l,e),[e]),a.flags|=2048,pi(9,kd(),z2.bind(null,a,l,n,t),null),n},useId:function(){var e=wt(),t=Se.identifierPrefix;if(ce){var n=ia,a=la;n=(a&~(1<<32-Ft(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Cc++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=hx++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:dg,useFormState:p1,useActionState:p1,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fg.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:og,useCacheRefresh:function(){return wt().memoizedState=bx.bind(null,ne)}},u5={readContext:ot,use:Dd,useCallback:W2,useContext:ot,useEffect:Q2,useImperativeHandle:Z2,useInsertionEffect:X2,useLayoutEffect:Y2,useMemo:$2,useReducer:Zu,useRef:G2,useState:function(){return Zu(ha)},useDebugValue:ug,useDeferredValue:function(e,t){var n=Be();return J2(n,be.memoizedState,e,t)},useTransition:function(){var e=Zu(ha)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Hs(e),t]},useSyncExternalStore:L2,useId:a5,useHostTransitionStatus:dg,useFormState:g1,useActionState:g1,useOptimistic:function(e,t){var n=Be();return U2(n,be,e,t)},useMemoCache:og,useCacheRefresh:r5},wx={readContext:ot,use:Dd,useCallback:W2,useContext:ot,useEffect:Q2,useImperativeHandle:Z2,useInsertionEffect:X2,useLayoutEffect:Y2,useMemo:$2,useReducer:Rf,useRef:G2,useState:function(){return Rf(ha)},useDebugValue:ug,useDeferredValue:function(e,t){var n=Be();return be===null?cg(n,e,t):J2(n,be.memoizedState,e,t)},useTransition:function(){var e=Rf(ha)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Hs(e),t]},useSyncExternalStore:L2,useId:a5,useHostTransitionStatus:dg,useFormState:m1,useActionState:m1,useOptimistic:function(e,t){var n=Be();return be!==null?U2(n,be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:og,useCacheRefresh:r5},ni=null,os=0;function uu(e){var t=os;return os+=1,ni===null&&(ni=[]),D2(ni,e,t)}function Xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cu(e,t){throw t.$$typeof===Z6?Error(K(525)):(e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function b1(e){var t=e._init;return t(e._payload)}function c5(e){function t(v,b){if(e){var y=v.deletions;y===null?(v.deletions=[b],v.flags|=16):y.push(b)}}function n(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function a(v){for(var b=new Map;v!==null;)v.key!==null?b.set(v.key,v):b.set(v.index,v),v=v.sibling;return b}function r(v,b){return v=ua(v,b),v.index=0,v.sibling=null,v}function l(v,b,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<b?(v.flags|=67108866,b):y):(v.flags|=67108866,b)):(v.flags|=1048576,b)}function i(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function o(v,b,y,C){return b===null||b.tag!==6?(b=Sf(y,v.mode,C),b.return=v,b):(b=r(b,y),b.return=v,b)}function s(v,b,y,C){var S=y.type;return S===Ll?f(v,b,y.props.children,C,y.key):b!==null&&(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Da&&b1(S)===b.type)?(b=r(b,y.props),Xi(b,y),b.return=v,b):(b=Yu(y.type,y.key,y.props,null,v.mode,C),Xi(b,y),b.return=v,b)}function u(v,b,y,C){return b===null||b.tag!==4||b.stateNode.containerInfo!==y.containerInfo||b.stateNode.implementation!==y.implementation?(b=Ef(y,v.mode,C),b.return=v,b):(b=r(b,y.children||[]),b.return=v,b)}function f(v,b,y,C,S){return b===null||b.tag!==7?(b=Hr(y,v.mode,C,S),b.return=v,b):(b=r(b,y),b.return=v,b)}function c(v,b,y){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Sf(""+b,v.mode,y),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case nu:return y=Yu(b.type,b.key,b.props,null,v.mode,y),Xi(y,b),y.return=v,y;case Oo:return b=Ef(b,v.mode,y),b.return=v,b;case Da:var C=b._init;return b=C(b._payload),c(v,b,y)}if(To(b)||Fi(b))return b=Hr(b,v.mode,y,null),b.return=v,b;if(typeof b.then=="function")return c(v,uu(b),y);if(b.$$typeof===ra)return c(v,ou(v,b),y);cu(v,b)}return null}function d(v,b,y,C){var S=b!==null?b.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return S!==null?null:o(v,b,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case nu:return y.key===S?s(v,b,y,C):null;case Oo:return y.key===S?u(v,b,y,C):null;case Da:return S=y._init,y=S(y._payload),d(v,b,y,C)}if(To(y)||Fi(y))return S!==null?null:f(v,b,y,C,null);if(typeof y.then=="function")return d(v,b,uu(y),C);if(y.$$typeof===ra)return d(v,b,ou(v,y),C);cu(v,y)}return null}function h(v,b,y,C,S){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return v=v.get(y)||null,o(b,v,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case nu:return v=v.get(C.key===null?y:C.key)||null,s(b,v,C,S);case Oo:return v=v.get(C.key===null?y:C.key)||null,u(b,v,C,S);case Da:var M=C._init;return C=M(C._payload),h(v,b,y,C,S)}if(To(C)||Fi(C))return v=v.get(y)||null,f(b,v,C,S,null);if(typeof C.then=="function")return h(v,b,y,uu(C),S);if(C.$$typeof===ra)return h(v,b,y,ou(b,C),S);cu(b,C)}return null}function g(v,b,y,C){for(var S=null,M=null,R=b,D=b=0,j=null;R!==null&&D<y.length;D++){R.index>D?(j=R,R=null):j=R.sibling;var A=d(v,R,y[D],C);if(A===null){R===null&&(R=j);break}e&&R&&A.alternate===null&&t(v,R),b=l(A,b,D),M===null?S=A:M.sibling=A,M=A,R=j}if(D===y.length)return n(v,R),ce&&jr(v,D),S;if(R===null){for(;D<y.length;D++)R=c(v,y[D],C),R!==null&&(b=l(R,b,D),M===null?S=R:M.sibling=R,M=R);return ce&&jr(v,D),S}for(R=a(R);D<y.length;D++)j=h(R,v,D,y[D],C),j!==null&&(e&&j.alternate!==null&&R.delete(j.key===null?D:j.key),b=l(j,b,D),M===null?S=j:M.sibling=j,M=j);return e&&R.forEach(function(k){return t(v,k)}),ce&&jr(v,D),S}function m(v,b,y,C){if(y==null)throw Error(K(151));for(var S=null,M=null,R=b,D=b=0,j=null,A=y.next();R!==null&&!A.done;D++,A=y.next()){R.index>D?(j=R,R=null):j=R.sibling;var k=d(v,R,A.value,C);if(k===null){R===null&&(R=j);break}e&&R&&k.alternate===null&&t(v,R),b=l(k,b,D),M===null?S=k:M.sibling=k,M=k,R=j}if(A.done)return n(v,R),ce&&jr(v,D),S;if(R===null){for(;!A.done;D++,A=y.next())A=c(v,A.value,C),A!==null&&(b=l(A,b,D),M===null?S=A:M.sibling=A,M=A);return ce&&jr(v,D),S}for(R=a(R);!A.done;D++,A=y.next())A=h(R,v,D,A.value,C),A!==null&&(e&&A.alternate!==null&&R.delete(A.key===null?D:A.key),b=l(A,b,D),M===null?S=A:M.sibling=A,M=A);return e&&R.forEach(function(P){return t(v,P)}),ce&&jr(v,D),S}function w(v,b,y,C){if(typeof y=="object"&&y!==null&&y.type===Ll&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case nu:e:{for(var S=y.key;b!==null;){if(b.key===S){if(S=y.type,S===Ll){if(b.tag===7){n(v,b.sibling),C=r(b,y.props.children),C.return=v,v=C;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Da&&b1(S)===b.type){n(v,b.sibling),C=r(b,y.props),Xi(C,y),C.return=v,v=C;break e}n(v,b);break}else t(v,b);b=b.sibling}y.type===Ll?(C=Hr(y.props.children,v.mode,C,y.key),C.return=v,v=C):(C=Yu(y.type,y.key,y.props,null,v.mode,C),Xi(C,y),C.return=v,v=C)}return i(v);case Oo:e:{for(S=y.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(v,b.sibling),C=r(b,y.children||[]),C.return=v,v=C;break e}else{n(v,b);break}else t(v,b);b=b.sibling}C=Ef(y,v.mode,C),C.return=v,v=C}return i(v);case Da:return S=y._init,y=S(y._payload),w(v,b,y,C)}if(To(y))return g(v,b,y,C);if(Fi(y)){if(S=Fi(y),typeof S!="function")throw Error(K(150));return y=S.call(y),m(v,b,y,C)}if(typeof y.then=="function")return w(v,b,uu(y),C);if(y.$$typeof===ra)return w(v,b,ou(v,y),C);cu(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,b!==null&&b.tag===6?(n(v,b.sibling),C=r(b,y),C.return=v,v=C):(n(v,b),C=Sf(y,v.mode,C),C.return=v,v=C),i(v)):n(v,b)}return function(v,b,y,C){try{os=0;var S=w(v,b,y,C);return ni=null,S}catch(R){if(R===Ks||R===Td)throw R;var M=Pt(29,R,null,v.mode);return M.lanes=C,M.return=v,M}finally{}}}var gi=c5(!0),d5=c5(!1),sn=Fn(null),qn=null;function ja(e){var t=e.alternate;Oe(Ge,Ge.current&1),Oe(sn,e),qn===null&&(t===null||hi.current!==null||t.memoizedState!==null)&&(qn=e)}function f5(e){if(e.tag===22){if(Oe(Ge,Ge.current),Oe(sn,e),qn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(qn=e)}}else La()}function La(){Oe(Ge,Ge.current),Oe(sn,sn.current)}function sa(e){$e(sn),qn===e&&(qn=null),$e(Ge)}var Ge=Fn(0);function Ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||kh(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Of(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ph={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Vt(),r=Va(a);r.payload=t,n!=null&&(r.callback=n),t=Ga(e,r,a),t!==null&&(Gt(t,e,a),Bo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Vt(),r=Va(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Ga(e,r,a),t!==null&&(Gt(t,e,a),Bo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vt(),a=Va(n);a.tag=2,t!=null&&(a.callback=t),t=Ga(e,a,n),t!==null&&(Gt(t,e,n),Bo(t,e,n))}};function y1(e,t,n,a,r,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,l,i):t.prototype&&t.prototype.isPureReactComponent?!rs(n,a)||!rs(r,l):!0}function w1(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ph.enqueueReplaceState(t,t.state,null)}function Ir(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Ee({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var Mc=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)};function h5(e){Mc(e)}function p5(e){console.error(e)}function g5(e){Mc(e)}function Rc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function x1(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function gh(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Rc(e,t)},n}function m5(e){return e=Va(e),e.tag=3,e}function v5(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var l=a.value;e.payload=function(){return r(l)},e.callback=function(){x1(t,n,a)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){x1(t,n,a),typeof r!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function xx(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&zs(t,n,r,!0),n=sn.current,n!==null){switch(n.tag){case 13:return qn===null?Sh():n.alternate===null&&Ae===0&&(Ae=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===oh?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Kf(e,a,r)),!1;case 22:return n.flags|=65536,a===oh?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Kf(e,a,r)),!1}throw Error(K(435,n.tag))}return Kf(e,a,r),Sh(),!1}if(ce)return t=sn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==nh&&(e=Error(K(422),{cause:a}),ls(ln(e,n)))):(a!==nh&&(t=Error(K(423),{cause:a}),ls(ln(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=ln(a,n),r=gh(e.stateNode,a,r),Mf(e,r),Ae!==4&&(Ae=2)),!1;var l=Error(K(520),{cause:a});if(l=ln(l,n),Xo===null?Xo=[l]:Xo.push(l),Ae!==4&&(Ae=2),t===null)return!0;a=ln(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=gh(n.stateNode,a,e),Mf(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"&&(Qa===null||!Qa.has(l))))return n.flags|=65536,r&=-r,n.lanes|=r,r=m5(r),v5(r,e,n,a),Mf(n,r),!1}n=n.return}while(n!==null);return!1}var b5=Error(K(461)),We=!1;function et(e,t,n,a){t.child=e===null?d5(t,null,n,a):gi(t,e.child,n,a)}function C1(e,t,n,a,r){n=n.render;var l=t.ref;if("ref"in a){var i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}else i=a;return Xr(t),a=ng(e,t,n,i,l,r),o=ag(),e!==null&&!We?(rg(e,t,r),pa(e,t,r)):(ce&&o&&Ip(t),t.flags|=1,et(e,t,a,r),t.child)}function S1(e,t,n,a,r){if(e===null){var l=n.type;return typeof l=="function"&&!Yp(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,y5(e,t,l,a,r)):(e=Yu(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!hg(e,r)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:rs,n(i,a)&&e.ref===t.ref)return pa(e,t,r)}return t.flags|=1,e=ua(l,a),e.ref=t.ref,e.return=t,t.child=e}function y5(e,t,n,a,r){if(e!==null){var l=e.memoizedProps;if(rs(l,a)&&e.ref===t.ref)if(We=!1,t.pendingProps=a=l,hg(e,r))e.flags&131072&&(We=!0);else return t.lanes=e.lanes,pa(e,t,r)}return mh(e,t,n,a,r)}function w5(e,t,n){var a=t.pendingProps,r=a.children,l=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if(t.flags&128){if(a=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,l=0;r!==null;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~a}else t.childLanes=0,t.child=null;return E1(e,t,a,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Iu(t,l!==null?l.cachePool:null),l!==null?d1(t,l):ch(),f5(t);else return t.lanes=t.childLanes=536870912,E1(e,t,l!==null?l.baseLanes|n:n,n)}else l!==null?(Iu(t,l.cachePool),d1(t,l),La(),t.memoizedState=null):(e!==null&&Iu(t,null),ch(),La());return et(e,t,r,n),t.child}function E1(e,t,n,a){var r=$p();return r=r===null?null:{parent:Ve._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Iu(t,null),ch(),f5(t),e!==null&&zs(e,t,a,!0),null}function $u(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(K(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mh(e,t,n,a,r){return Xr(t),n=ng(e,t,n,a,void 0,r),a=ag(),e!==null&&!We?(rg(e,t,r),pa(e,t,r)):(ce&&a&&Ip(t),t.flags|=1,et(e,t,n,r),t.child)}function M1(e,t,n,a,r,l){return Xr(t),t.updateQueue=null,n=j2(t,a,n,r),A2(e),a=ag(),e!==null&&!We?(rg(e,t,l),pa(e,t,l)):(ce&&a&&Ip(t),t.flags|=1,et(e,t,n,l),t.child)}function R1(e,t,n,a,r){if(Xr(t),t.stateNode===null){var l=ql,i=n.contextType;typeof i=="object"&&i!==null&&(l=ot(i)),l=new n(a,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=ph,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=a,l.state=t.memoizedState,l.refs={},Jp(t),i=n.contextType,l.context=typeof i=="object"&&i!==null?ot(i):ql,l.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(Of(t,n,i,a),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&&ph.enqueueReplaceState(l,l.state,null),Fo(t,a,l,r),qo(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,s=Ir(n,o);l.props=s;var u=l.context,f=n.contextType;i=ql,typeof f=="object"&&f!==null&&(i=ot(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||u!==i)&&w1(t,l,a,i),ka=!1;var d=t.memoizedState;l.state=d,Fo(t,a,l,r),qo(),u=t.memoizedState,o||d!==u||ka?(typeof c=="function"&&(Of(t,n,c,a),u=t.memoizedState),(s=ka||y1(t,n,s,a,d,u,i))?(f||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=a,t.memoizedState=u),l.props=a,l.state=u,l.context=i,a=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,sh(e,t),i=t.memoizedProps,f=Ir(n,i),l.props=f,c=t.pendingProps,d=l.context,u=n.contextType,s=ql,typeof u=="object"&&u!==null&&(s=ot(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==c||d!==s)&&w1(t,l,a,s),ka=!1,d=t.memoizedState,l.state=d,Fo(t,a,l,r),qo();var h=t.memoizedState;i!==c||d!==h||ka||e!==null&&e.dependencies!==null&&yc(e.dependencies)?(typeof o=="function"&&(Of(t,n,o,a),h=t.memoizedState),(f=ka||y1(t,n,f,a,d,h,s)||e!==null&&e.dependencies!==null&&yc(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),l.props=a,l.state=h,l.context=s,a=f):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return l=a,$u(e,t),a=(t.flags&128)!==0,l||a?(l=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&a?(t.child=gi(t,e.child,null,r),t.child=gi(t,null,n,r)):et(e,t,n,r),t.memoizedState=l.state,e=t.child):e=pa(e,t,r),e}function O1(e,t,n,a){return _s(),t.flags|=256,et(e,t,n,a),t.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Df(e){return{baseLanes:e,cachePool:O2()}}function kf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=on),e}function x5(e,t,n){var a=t.pendingProps,r=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ce){if(r?ja(t):La(),ce){var o=Ne,s;if(s=o){e:{for(s=o,o=Pn;s.nodeType!==8;){if(!o){o=null;break e}if(s=Sn(s.nextSibling),s===null){o=null;break e}}o=s}o!==null?(t.memoizedState={dehydrated:o,treeContext:Ur!==null?{id:la,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},s=Pt(18,null,null,0),s.stateNode=o,s.return=t,t.child=s,ft=t,Ne=null,s=!0):s=!1}s||Qr(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return kh(o)?t.lanes=32:t.lanes=536870912,null;sa(t)}return o=a.children,a=a.fallback,r?(La(),r=t.mode,o=Oc({mode:"hidden",children:o},r),a=Hr(a,r,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,r=t.child,r.memoizedState=Df(n),r.childLanes=kf(e,i,n),t.memoizedState=Tf,a):(ja(t),vh(t,o))}if(s=e.memoizedState,s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(ja(t),t.flags&=-257,t=Nf(e,t,n)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),r=a.fallback,o=t.mode,a=Oc({mode:"visible",children:a.children},o),r=Hr(r,o,n,null),r.flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,gi(t,e.child,null,n),a=t.child,a.memoizedState=Df(n),a.childLanes=kf(e,i,n),t.memoizedState=Tf,t=r);else if(ja(t),kh(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,a=Error(K(419)),a.stack="",a.digest=i,ls({value:a,source:null,stack:null}),t=Nf(e,t,n)}else if(We||zs(e,t,n,!1),i=(n&e.childLanes)!==0,We||i){if(i=Se,i!==null&&(a=n&-n,a=a&42?1:Pp(a),a=a&(i.suspendedLanes|n)?0:a,a!==0&&a!==s.retryLane))throw s.retryLane=a,Ni(e,a),Gt(i,e,a),b5;o.data==="$?"||Sh(),t=Nf(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Ne=Sn(o.nextSibling),ft=t,ce=!0,Br=null,Pn=!1,e!==null&&(nn[an++]=la,nn[an++]=ia,nn[an++]=Ur,la=e.id,ia=e.overflow,Ur=t),t=vh(t,a.children),t.flags|=4096);return t}return r?(La(),r=a.fallback,o=t.mode,s=e.child,u=s.sibling,a=ua(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,u!==null?r=ua(u,r):(r=Hr(r,o,n,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,a=r,r=t.child,o=e.child.memoizedState,o===null?o=Df(n):(s=o.cachePool,s!==null?(u=Ve._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=O2(),o={baseLanes:o.baseLanes|n,cachePool:s}),r.memoizedState=o,r.childLanes=kf(e,i,n),t.memoizedState=Tf,a):(ja(t),n=e.child,e=n.sibling,n=ua(n,{mode:"visible",children:a.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 vh(e,t){return t=Oc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Oc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Nf(e,t,n){return gi(t,e.child,null,n),e=vh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function T1(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),rh(e.return,t,n)}function Af(e,t,n,a,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=a,l.tail=n,l.tailMode=r)}function C5(e,t,n){var a=t.pendingProps,r=a.revealOrder,l=a.tail;if(et(e,t,a.children,n),a=Ge.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&T1(e,n,t);else if(e.tag===19)T1(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}a&=1}switch(Oe(Ge,a),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Ec(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Af(t,!1,r,n,l);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Ec(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Af(t,!0,n,null,l);break;case"together":Af(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ar|=t.lanes,!(n&t.childLanes))if(e!==null){if(zs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hg(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&yc(e)))}function Cx(e,t,n){switch(t.tag){case 3:dc(t,t.stateNode.containerInfo),Aa(t,Ve,e.memoizedState.cache),_s();break;case 27:case 5:Q0(t);break;case 4:dc(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ja(t),t.flags|=128,null):n&t.child.childLanes?x5(e,t,n):(ja(t),e=pa(e,t,n),e!==null?e.sibling:null);ja(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(zs(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return C5(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Oe(Ge,Ge.current),a)break;return null;case 22:case 23:return t.lanes=0,w5(e,t,n);case 24:Aa(t,Ve,e.memoizedState.cache)}return pa(e,t,n)}function S5(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!hg(e,n)&&!(t.flags&128))return We=!1,Cx(e,t,n);We=!!(e.flags&131072)}else We=!1,ce&&t.flags&1048576&&M2(t,bc,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,r=a._init;if(a=r(a._payload),t.type=a,typeof a=="function")Yp(a)?(e=Ir(a,e),t.tag=1,t=R1(null,t,a,e,n)):(t.tag=0,t=mh(null,t,a,e,n));else{if(a!=null){if(r=a.$$typeof,r===Lp){t.tag=11,t=C1(null,t,a,e,n);break e}else if(r===_p){t.tag=14,t=S1(null,t,a,e,n);break e}}throw t=V0(a)||a,Error(K(306,t,""))}}return t;case 0:return mh(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=Ir(a,t.pendingProps),R1(e,t,a,r,n);case 3:e:{if(dc(t,t.stateNode.containerInfo),e===null)throw Error(K(387));a=t.pendingProps;var l=t.memoizedState;r=l.element,sh(e,t),Fo(t,a,null,n);var i=t.memoizedState;if(a=i.cache,Aa(t,Ve,a),a!==l.cache&&lh(t,[Ve],n,!0),qo(),a=i.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=O1(e,t,a,n);break e}else if(a!==r){r=ln(Error(K(424)),t),ls(r),t=O1(e,t,a,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(Ne=Sn(e.firstChild),ft=t,ce=!0,Br=null,Pn=!0,n=d5(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(_s(),a===r){t=pa(e,t,n);break e}et(e,t,a,n)}t=t.child}return t;case 26:return $u(e,t),e===null?(n=G1(t.type,null,t.pendingProps,null))?t.memoizedState=n:ce||(n=t.type,e=t.pendingProps,a=Lc(Fa.current).createElement(n),a[it]=t,a[Mt]=e,nt(a,n,e),Ze(a),t.stateNode=a):t.memoizedState=G1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q0(t),e===null&&ce&&(a=t.stateNode=u9(t.type,t.pendingProps,Fa.current),ft=t,Pn=!0,r=Ne,ur(t.type)?(Nh=r,Ne=Sn(a.firstChild)):Ne=r),et(e,t,t.pendingProps.children,n),$u(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ce&&((r=a=Ne)&&(a=Zx(a,t.type,t.pendingProps,Pn),a!==null?(t.stateNode=a,ft=t,Ne=Sn(a.firstChild),Pn=!1,r=!0):r=!1),r||Qr(t)),Q0(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,a=l.children,Th(r,l)?a=null:i!==null&&Th(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=ng(e,t,px,null,null,n),ds._currentValue=r),$u(e,t),et(e,t,a,n),t.child;case 6:return e===null&&ce&&((e=n=Ne)&&(n=Wx(n,t.pendingProps,Pn),n!==null?(t.stateNode=n,ft=t,Ne=null,e=!0):e=!1),e||Qr(t)),null;case 13:return x5(e,t,n);case 4:return dc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=gi(t,null,a,n):et(e,t,a,n),t.child;case 11:return C1(e,t,t.type,t.pendingProps,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Aa(t,t.type,a.value),et(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,Xr(t),r=ot(r),a=a(r),t.flags|=1,et(e,t,a,n),t.child;case 14:return S1(e,t,t.type,t.pendingProps,n);case 15:return y5(e,t,t.type,t.pendingProps,n);case 19:return C5(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=Oc(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=ua(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return w5(e,t,n);case 24:return Xr(t),a=ot(Ve),e===null?(r=$p(),r===null&&(r=Se,l=Wp(),r.pooledCache=l,l.refCount++,l!==null&&(r.pooledCacheLanes|=n),r=l),t.memoizedState={parent:a,cache:r},Jp(t),Aa(t,Ve,r)):(e.lanes&n&&(sh(e,t),Fo(t,null,null,n),qo()),r=e.memoizedState,l=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Aa(t,Ve,a)):(a=l.cache,Aa(t,Ve,a),a!==r.cache&&lh(t,[Ve],n,!0))),et(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(K(156,t.tag))}function In(e){e.flags|=4}function D1(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!f9(t)){if(t=sn.current,t!==null&&((oe&4194048)===oe?qn!==null:(oe&62914560)!==oe&&!(oe&536870912)||t!==qn))throw Uo=oh,T2;e.flags|=8192}}function du(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Iy():536870912,e.lanes|=t,mi|=t)}function Yi(e,t){if(!ce)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Sx(e,t,n){var a=t.pendingProps;switch(Zp(t),t.tag){case 31: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,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca(Ve),ui(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?In(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,l1())),Te(t),null;case 26:return n=t.memoizedState,e===null?(In(t),n!==null?(Te(t),D1(t,n)):(Te(t),t.flags&=-16777217)):n?n!==e.memoizedState?(In(t),Te(t),D1(t,n)):(Te(t),t.flags&=-16777217):(e.memoizedProps!==a&&In(t),Te(t),t.flags&=-16777217),null;case 27:fc(t),n=Fa.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&In(t);else{if(!a){if(t.stateNode===null)throw Error(K(166));return Te(t),null}e=Un.current,Qi(t)?a1(t):(e=u9(r,a,n),t.stateNode=e,In(t))}return Te(t),null;case 5:if(fc(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&In(t);else{if(!a){if(t.stateNode===null)throw Error(K(166));return Te(t),null}if(e=Un.current,Qi(t))a1(t);else{switch(r=Lc(Fa.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}e[it]=t,e[Mt]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(nt(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&In(t)}}return Te(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&In(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(K(166));if(e=Fa.current,Qi(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=ft,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||i9(e.nodeValue,n)),e||Qr(t)}else e=Lc(e).createTextNode(a),e[it]=t,t.stateNode=e}return Te(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Qi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(K(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(K(317));r[it]=t}else _s(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),r=!1}else r=l1(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(sa(t),t):(sa(t),null)}if(sa(t),t.flags&128)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool);var l=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==r&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),du(t,t.updateQueue),Te(t),null;case 4:return ui(),e===null&&xg(t.stateNode.containerInfo),Te(t),null;case 10:return ca(t.type),Te(t),null;case 19:if($e(Ge),r=t.memoizedState,r===null)return Te(t),null;if(a=(t.flags&128)!==0,l=r.rendering,l===null)if(a)Yi(r,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ec(e),l!==null){for(t.flags|=128,Yi(r,!1),e=l.updateQueue,t.updateQueue=e,du(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)E2(n,e),n=n.sibling;return Oe(Ge,Ge.current&1|2),t.child}e=e.sibling}r.tail!==null&&Bn()>Dc&&(t.flags|=128,a=!0,Yi(r,!1),t.lanes=4194304)}else{if(!a)if(e=Ec(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,du(t,e),Yi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!ce)return Te(t),null}else 2*Bn()-r.renderingStartTime>Dc&&n!==536870912&&(t.flags|=128,a=!0,Yi(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?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Bn(),t.sibling=null,e=Ge.current,Oe(Ge,a?e&1|2:e&1),t):(Te(t),null);case 22:case 23:return sa(t),eg(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),n=t.updateQueue,n!==null&&du(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&$e(qr),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ca(Ve),Te(t),null;case 25:return null;case 30:return null}throw Error(K(156,t.tag))}function Ex(e,t){switch(Zp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(Ve),ui(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fc(t),null;case 13:if(sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));_s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Ge),null;case 4:return ui(),null;case 10:return ca(t.type),null;case 22:case 23:return sa(t),eg(),e!==null&&$e(qr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(Ve),null;case 25:return null;default:return null}}function E5(e,t){switch(Zp(t),t.tag){case 3:ca(Ve),ui();break;case 26:case 27:case 5:fc(t);break;case 4:ui();break;case 13:sa(t);break;case 19:$e(Ge);break;case 10:ca(t.type);break;case 22:case 23:sa(t),eg(),e!==null&&$e(qr);break;case 24:ca(Ve)}}function Bs(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var l=n.create,i=n.inst;a=l(),i.destroy=a}n=n.next}while(n!==r)}}catch(o){ye(t,t.return,o)}}function nr(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var l=r.next;a=l;do{if((a.tag&e)===e){var i=a.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,r=t;var s=n,u=o;try{u()}catch(f){ye(r,s,f)}}}a=a.next}while(a!==l)}}catch(f){ye(t,t.return,f)}}function M5(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{N2(t,n)}catch(a){ye(e,e.return,a)}}}function R5(e,t,n){n.props=Ir(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ye(e,t,a)}}function Go(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){ye(e,t,r)}}function Kn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){ye(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function O5(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){ye(e,e.return,r)}}function jf(e,t,n){try{var a=e.stateNode;Gx(a,e.type,n,t),a[Mt]=t}catch(r){ye(e,e.return,r)}}function T5(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ur(e.type)||e.tag===4}function Lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T5(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&&ur(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 bh(e,t,n){var a=e.tag;if(a===5||a===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=_d));else if(a!==4&&(a===27&&ur(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(bh(e,t,n),e=e.sibling;e!==null;)bh(e,t,n),e=e.sibling}function Tc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ur(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tc(e,t,n),e=e.sibling;e!==null;)Tc(e,t,n),e=e.sibling}function D5(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);nt(t,a,n),t[it]=e,t[Mt]=n}catch(l){ye(e,e.return,l)}}var aa=!1,Ke=!1,_f=!1,k1=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Mx(e,t){if(e=e.containerInfo,Rh=Kc,e=m2(e),Gp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,o=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||r!==0&&c.nodeType!==3||(o=i+r),c!==l||a!==0&&c.nodeType!==3||(s=i+a),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===r&&(o=i),d===l&&++f===a&&(s=i),(h=c.nextSibling)!==null)break;c=d,d=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(Oh={focusedElem:e,selectionRange:n},Kc=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,l=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,r=l.memoizedProps,l=l.memoizedState,a=n.stateNode;try{var g=Ir(n.type,r,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(g,l),a.__reactInternalSnapshotBeforeUpdate=e}catch(m){ye(n,n.return,m)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Dh(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Dh(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(K(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function k5(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ca(e,n),a&4&&Bs(5,n);break;case 1:if(Ca(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){ye(n,n.return,i)}else{var r=Ir(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){ye(n,n.return,i)}}a&64&&M5(n),a&512&&Go(n,n.return);break;case 3:if(Ca(e,n),a&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{N2(e,t)}catch(i){ye(n,n.return,i)}}break;case 27:t===null&&a&4&&D5(n);case 26:case 5:Ca(e,n),t===null&&a&4&&O5(n),a&512&&Go(n,n.return);break;case 12:Ca(e,n);break;case 13:Ca(e,n),a&4&&j5(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Lx.bind(null,n),$x(e,n))));break;case 22:if(a=n.memoizedState!==null||aa,!a){t=t!==null&&t.memoizedState!==null||Ke,r=aa;var l=Ke;aa=a,(Ke=t)&&!l?Ta(e,n,(n.subtreeFlags&8772)!==0):Ca(e,n),aa=r,Ke=l}break;case 30:break;default:Ca(e,n)}}function N5(e){var t=e.alternate;t!==null&&(e.alternate=null,N5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Hp(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 Me=null,xt=!1;function Zn(e,t,n){for(n=n.child;n!==null;)A5(e,t,n),n=n.sibling}function A5(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(ks,n)}catch{}switch(n.tag){case 26:Ke||Kn(n,t),Zn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ke||Kn(n,t);var a=Me,r=xt;ur(n.type)&&(Me=n.stateNode,xt=!1),Zn(e,t,n),Io(n.stateNode),Me=a,xt=r;break;case 5:Ke||Kn(n,t);case 6:if(a=Me,r=xt,Me=null,Zn(e,t,n),Me=a,xt=r,Me!==null)if(xt)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(n.stateNode)}catch(l){ye(n,t,l)}else try{Me.removeChild(n.stateNode)}catch(l){ye(n,t,l)}break;case 18:Me!==null&&(xt?(e=Me,q1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ps(e)):q1(Me,n.stateNode));break;case 4:a=Me,r=xt,Me=n.stateNode.containerInfo,xt=!0,Zn(e,t,n),Me=a,xt=r;break;case 0:case 11:case 14:case 15:Ke||nr(2,n,t),Ke||nr(4,n,t),Zn(e,t,n);break;case 1:Ke||(Kn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&R5(n,t,a)),Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:Ke=(a=Ke)||n.memoizedState!==null,Zn(e,t,n),Ke=a;break;default:Zn(e,t,n)}}function j5(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ps(e)}catch(n){ye(t,t.return,n)}}function Rx(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new k1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new k1),t;default:throw Error(K(435,e.tag))}}function zf(e,t){var n=Rx(e);t.forEach(function(a){var r=_x.bind(null,e,a);n.has(a)||(n.add(a),a.then(r,r))})}function kt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a],l=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 27:if(ur(o.type)){Me=o.stateNode,xt=!1;break e}break;case 5:Me=o.stateNode,xt=!1;break e;case 3:case 4:Me=o.stateNode.containerInfo,xt=!0;break e}o=o.return}if(Me===null)throw Error(K(160));A5(l,i,r),Me=null,xt=!1,l=r.alternate,l!==null&&(l.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)L5(t,e),t=t.sibling}var yn=null;function L5(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Nt(e),a&4&&(nr(3,e,e.return),Bs(3,e),nr(5,e,e.return));break;case 1:kt(t,e),Nt(e),a&512&&(Ke||n===null||Kn(n,n.return)),a&64&&aa&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var r=yn;if(kt(t,e),Nt(e),a&512&&(Ke||n===null||Kn(n,n.return)),a&4){var l=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":l=r.getElementsByTagName("title")[0],(!l||l[js]||l[it]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=r.createElement(a),r.head.insertBefore(l,r.querySelector("head > title"))),nt(l,a,n),l[it]=e,Ze(l),a=l;break e;case"link":var i=X1("link","href",r).get(a+(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=r.createElement(a),nt(l,a,n),r.head.appendChild(l);break;case"meta":if(i=X1("meta","content",r).get(a+(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=r.createElement(a),nt(l,a,n),r.head.appendChild(l);break;default:throw Error(K(468,a))}l[it]=e,Ze(l),a=l}e.stateNode=a}else Y1(r,e.type,e.stateNode);else e.stateNode=Q1(r,a,e.memoizedProps);else l!==a?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,a===null?Y1(r,e.type,e.stateNode):Q1(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&jf(e,e.memoizedProps,n.memoizedProps)}break;case 27:kt(t,e),Nt(e),a&512&&(Ke||n===null||Kn(n,n.return)),n!==null&&a&4&&jf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(kt(t,e),Nt(e),a&512&&(Ke||n===null||Kn(n,n.return)),e.flags&32){r=e.stateNode;try{di(r,"")}catch(h){ye(e,e.return,h)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,jf(e,r,n!==null?n.memoizedProps:r)),a&1024&&(_f=!0);break;case 6:if(kt(t,e),Nt(e),a&4){if(e.stateNode===null)throw Error(K(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(h){ye(e,e.return,h)}}break;case 3:if(tc=null,r=yn,yn=_c(t.containerInfo),kt(t,e),yn=r,Nt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ps(t.containerInfo)}catch(h){ye(e,e.return,h)}_f&&(_f=!1,_5(e));break;case 4:a=yn,yn=_c(e.stateNode.containerInfo),kt(t,e),Nt(e),yn=a;break;case 12:kt(t,e),Nt(e);break;case 13:kt(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(bg=Bn()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zf(e,a)));break;case 22:r=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=aa,f=Ke;if(aa=u||r,Ke=f||s,kt(t,e),Ke=f,aa=u,Nt(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||s||aa||Ke||Lr(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(l=s.stateNode,r)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=s.stateNode;var c=s.memoizedProps.style,d=c!=null&&c.hasOwnProperty("display")?c.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(h){ye(s,s.return,h)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=r?"":s.memoizedProps}catch(h){ye(s,s.return,h)}}}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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,zf(e,n))));break;case 19:kt(t,e),Nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zf(e,a)));break;case 30:break;case 21:break;default:kt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(T5(a)){n=a;break}a=a.return}if(n==null)throw Error(K(160));switch(n.tag){case 27:var r=n.stateNode,l=Lf(e);Tc(e,l,r);break;case 5:var i=n.stateNode;n.flags&32&&(di(i,""),n.flags&=-33);var o=Lf(e);Tc(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Lf(e);bh(e,u,s);break;default:throw Error(K(161))}}catch(f){ye(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _5(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_5(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)k5(e,t.alternate,t),t=t.sibling}function Lr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nr(4,t,t.return),Lr(t);break;case 1:Kn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&R5(t,t.return,n),Lr(t);break;case 27:Io(t.stateNode);case 26:case 5:Kn(t,t.return),Lr(t);break;case 22:t.memoizedState===null&&Lr(t);break;case 30:Lr(t);break;default:Lr(t)}e=e.sibling}}function Ta(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:Ta(r,l,n),Bs(4,l);break;case 1:if(Ta(r,l,n),a=l,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){ye(a,a.return,u)}if(a=l,r=a.updateQueue,r!==null){var o=a.stateNode;try{var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)k2(s[r],o)}catch(u){ye(a,a.return,u)}}n&&i&64&&M5(l),Go(l,l.return);break;case 27:D5(l);case 26:case 5:Ta(r,l,n),n&&a===null&&i&4&&O5(l),Go(l,l.return);break;case 12:Ta(r,l,n);break;case 13:Ta(r,l,n),n&&i&4&&j5(r,l);break;case 22:l.memoizedState===null&&Ta(r,l,n),Go(l,l.return);break;case 30:break;default:Ta(r,l,n)}t=t.sibling}}function pg(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&&Ps(n))}function gg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ps(e))}function kn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)z5(e,t,n,a),t=t.sibling}function z5(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,n,a),r&2048&&Bs(9,t);break;case 1:kn(e,t,n,a);break;case 3:kn(e,t,n,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ps(e)));break;case 12:if(r&2048){kn(e,t,n,a),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 kn(e,t,n,a);break;case 13:kn(e,t,n,a);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?kn(e,t,n,a):Qo(e,t):l._visibility&2?kn(e,t,n,a):(l._visibility|=2,Dl(e,t,n,a,(t.subtreeFlags&10256)!==0)),r&2048&&pg(i,t);break;case 24:kn(e,t,n,a),r&2048&&gg(t.alternate,t);break;default:kn(e,t,n,a)}}function Dl(e,t,n,a,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var l=e,i=t,o=n,s=a,u=i.flags;switch(i.tag){case 0:case 11:case 15:Dl(l,i,o,s,r),Bs(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?Dl(l,i,o,s,r):Qo(l,i):(f._visibility|=2,Dl(l,i,o,s,r)),r&&u&2048&&pg(i.alternate,i);break;case 24:Dl(l,i,o,s,r),r&&u&2048&&gg(i.alternate,i);break;default:Dl(l,i,o,s,r)}t=t.sibling}}function Qo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Qo(n,a),r&2048&&pg(a.alternate,a);break;case 24:Qo(n,a),r&2048&&gg(a.alternate,a);break;default:Qo(n,a)}t=t.sibling}}var ko=8192;function pl(e){if(e.subtreeFlags&ko)for(e=e.child;e!==null;)P5(e),e=e.sibling}function P5(e){switch(e.tag){case 26:pl(e),e.flags&ko&&e.memoizedState!==null&&dC(yn,e.memoizedState,e.memoizedProps);break;case 5:pl(e);break;case 3:case 4:var t=yn;yn=_c(e.stateNode.containerInfo),pl(e),yn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ko,ko=16777216,pl(e),ko=t):pl(e));break;default:pl(e)}}function K5(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 Ii(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,U5(a,e)}K5(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)H5(e),e=e.sibling}function H5(e){switch(e.tag){case 0:case 11:case 15:Ii(e),e.flags&2048&&nr(9,e,e.return);break;case 3:Ii(e);break;case 12:Ii(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ju(e)):Ii(e);break;default:Ii(e)}}function Ju(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,U5(a,e)}K5(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nr(8,t,t.return),Ju(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ju(t));break;default:Ju(t)}e=e.sibling}}function U5(e,t){for(;Ye!==null;){var n=Ye;switch(n.tag){case 0:case 11:case 15:nr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ps(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ye=a;else e:for(n=e;Ye!==null;){a=Ye;var r=a.sibling,l=a.return;if(N5(a),a===n){Ye=null;break e}if(r!==null){r.return=l,Ye=r;break e}Ye=l}}}var Ox={getCacheForType:function(e){var t=ot(Ve),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Tx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Se=null,re=null,oe=0,pe=0,_t=null,Ha=!1,Ai=!1,mg=!1,ga=0,Ae=0,ar=0,Fr=0,vg=0,on=0,mi=0,Xo=null,Ct=null,yh=!1,bg=0,Dc=1/0,kc=null,Qa=null,tt=0,Xa=null,vi=null,ai=0,wh=0,xh=null,B5=null,Yo=0,Ch=null;function Vt(){if(ge&2&&oe!==0)return oe&-oe;if(Z.T!==null){var e=fi;return e!==0?e:wg()}return $y()}function q5(){on===0&&(on=!(oe&536870912)||ce?Yy():536870912);var e=sn.current;return e!==null&&(e.flags|=32),on}function Gt(e,t,n){(e===Se&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(bi(e,0),Ua(e,oe,on,!1)),As(e,n),(!(ge&2)||e!==Se)&&(e===Se&&(!(ge&2)&&(Fr|=n),Ae===4&&Ua(e,oe,on,!1)),Vn(e))}function F5(e,t,n){if(ge&6)throw Error(K(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ns(e,t),r=a?Nx(e,t):Pf(e,t,!0),l=a;do{if(r===0){Ai&&!a&&Ua(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!Dx(n)){r=Pf(e,t,!1),l=!1;continue}if(r===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;r=Xo;var s=o.current.memoizedState.isDehydrated;if(s&&(bi(o,i).flags|=256),i=Pf(o,i,!1),i!==2){if(mg&&!s){o.errorRecoveryDisabledLanes|=l,Fr|=l,r=4;break e}l=Ct,Ct=r,l!==null&&(Ct===null?Ct=l:Ct.push.apply(Ct,l))}r=i}if(l=!1,r!==2)continue}}if(r===1){bi(e,0),Ua(e,t,0,!0);break}e:{switch(a=e,l=r,l){case 0:case 1:throw Error(K(345));case 4:if((t&4194048)!==t)break;case 6:Ua(a,t,on,!Ha);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(K(329))}if((t&62914560)===t&&(r=bg+300-Bn(),10<r)){if(Ua(a,t,on,!Ha),Cd(a,0,!0)!==0)break e;a.timeoutHandle=s9(N1.bind(null,a,n,Ct,kc,yh,t,on,Fr,mi,Ha,l,2,-0,0),r);break e}N1(a,n,Ct,kc,yh,t,on,Fr,mi,Ha,l,0,-0,0)}}break}while(!0);Vn(e)}function N1(e,t,n,a,r,l,i,o,s,u,f,c,d,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,(c&8192||(c&16785408)===16785408)&&(cs={stylesheets:null,count:0,unsuspend:cC},P5(t),c=fC(),c!==null)){e.cancelPendingCommit=c(j1.bind(null,e,t,l,n,a,r,i,o,s,f,1,d,h)),Ua(e,l,i,!u);return}j1(e,t,l,n,a,r,i,o,s)}function Dx(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 a=0;a<n.length;a++){var r=n[a],l=r.getSnapshot;r=r.value;try{if(!Qt(l(),r))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 Ua(e,t,n,a){t&=~vg,t&=~Fr,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var l=31-Ft(r),i=1<<l;a[l]=-1,r&=~i}n!==0&&Zy(e,n,t)}function Ad(){return ge&6?!0:(qs(0),!1)}function yg(){if(re!==null){if(pe===0)var e=re.return;else e=re,oa=rl=null,lg(e),ni=null,os=0,e=re;for(;e!==null;)E5(e.alternate,e),e=e.return;re=null}}function bi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yg(),Se=e,re=n=ua(e.current,null),oe=t,pe=0,_t=null,Ha=!1,Ai=Ns(e,t),mg=!1,mi=on=vg=Fr=ar=Ae=0,Ct=Xo=null,yh=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-Ft(a),l=1<<r;t|=e[r],a&=~l}return ga=t,Rd(),n}function V5(e,t){ne=null,Z.H=Sc,t===Ks||t===Td?(t=u1(),pe=3):t===T2?(t=u1(),pe=4):pe=t===b5?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,re===null&&(Ae=1,Rc(e,ln(t,e.current)))}function G5(){var e=Z.H;return Z.H=Sc,e===null?Sc:e}function Q5(){var e=Z.A;return Z.A=Ox,e}function Sh(){Ae=4,Ha||(oe&4194048)!==oe&&sn.current!==null||(Ai=!0),!(ar&134217727)&&!(Fr&134217727)||Se===null||Ua(Se,oe,on,!1)}function Pf(e,t,n){var a=ge;ge|=2;var r=G5(),l=Q5();(Se!==e||oe!==t)&&(kc=null,bi(e,t)),t=!1;var i=Ae;e:do try{if(pe!==0&&re!==null){var o=re,s=_t;switch(pe){case 8:yg(),i=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(t=!0);var u=pe;if(pe=0,_t=null,Gl(e,o,s,u),n&&Ai){i=0;break e}break;default:u=pe,pe=0,_t=null,Gl(e,o,s,u)}}kx(),i=Ae;break}catch(f){V5(e,f)}while(!0);return t&&e.shellSuspendCounter++,oa=rl=null,ge=a,Z.H=r,Z.A=l,re===null&&(Se=null,oe=0,Rd()),i}function kx(){for(;re!==null;)X5(re)}function Nx(e,t){var n=ge;ge|=2;var a=G5(),r=Q5();Se!==e||oe!==t?(kc=null,Dc=Bn()+500,bi(e,t)):Ai=Ns(e,t);e:do try{if(pe!==0&&re!==null){t=re;var l=_t;t:switch(pe){case 1:pe=0,_t=null,Gl(e,t,l,1);break;case 2:case 9:if(s1(l)){pe=0,_t=null,A1(t);break}t=function(){pe!==2&&pe!==9||Se!==e||(pe=7),Vn(e)},l.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:s1(l)?(pe=0,_t=null,A1(t)):(pe=0,_t=null,Gl(e,t,l,7));break;case 5:var i=null;switch(re.tag){case 26:i=re.memoizedState;case 5:case 27:var o=re;if(!i||f9(i)){pe=0,_t=null;var s=o.sibling;if(s!==null)re=s;else{var u=o.return;u!==null?(re=u,jd(u)):re=null}break t}}pe=0,_t=null,Gl(e,t,l,5);break;case 6:pe=0,_t=null,Gl(e,t,l,6);break;case 8:yg(),Ae=6;break e;default:throw Error(K(462))}}Ax();break}catch(f){V5(e,f)}while(!0);return oa=rl=null,Z.H=a,Z.A=r,ge=n,re!==null?0:(Se=null,oe=0,Rd(),Ae)}function Ax(){for(;re!==null&&!ew();)X5(re)}function X5(e){var t=S5(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?jd(e):re=t}function A1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=M1(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=M1(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:lg(t);default:E5(n,t),t=re=E2(t,ga),t=S5(n,t,ga)}e.memoizedProps=e.pendingProps,t===null?jd(e):re=t}function Gl(e,t,n,a){oa=rl=null,lg(t),ni=null,os=0;var r=t.return;try{if(xx(e,r,t,n,oe)){Ae=1,Rc(e,ln(n,e.current)),re=null;return}}catch(l){if(r!==null)throw re=r,l;Ae=1,Rc(e,ln(n,e.current)),re=null;return}t.flags&32768?(ce||a===1?e=!0:Ai||oe&536870912?e=!1:(Ha=e=!0,(a===2||a===9||a===3||a===6)&&(a=sn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Y5(t,e)):jd(t)}function jd(e){var t=e;do{if(t.flags&32768){Y5(t,Ha);return}e=t.return;var n=Sx(t.alternate,t,ga);if(n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);Ae===0&&(Ae=5)}function Y5(e,t){do{var n=Ex(e.alternate,e);if(n!==null){n.flags&=32767,re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=n}while(e!==null);Ae=6,re=null}function j1(e,t,n,a,r,l,i,o,s){e.cancelPendingCommit=null;do Ld();while(tt!==0);if(ge&6)throw Error(K(327));if(t!==null){if(t===e.current)throw Error(K(177));if(l=t.lanes|t.childLanes,l|=Qp,cw(e,n,l,i,o,s),e===Se&&(re=Se=null,oe=0),vi=t,Xa=e,ai=n,wh=l,xh=r,B5=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,zx(hc,function(){return J5(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=Z.T,Z.T=null,r=fe.p,fe.p=2,i=ge,ge|=4;try{Mx(e,t,n)}finally{ge=i,fe.p=r,Z.T=a}}tt=1,I5(),Z5(),W5()}}function I5(){if(tt===1){tt=0;var e=Xa,t=vi,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=Z.T,Z.T=null;var a=fe.p;fe.p=2;var r=ge;ge|=4;try{L5(t,e);var l=Oh,i=m2(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&g2(o.ownerDocument.documentElement,o)){if(s!==null&&Gp(o)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var c=o.ownerDocument||document,d=c&&c.defaultView||window;if(d.getSelection){var h=d.getSelection(),g=o.textContent.length,m=Math.min(s.start,g),w=s.end===void 0?m:Math.min(s.end,g);!h.extend&&m>w&&(i=w,w=m,m=i);var v=e1(o,m),b=e1(o,w);if(v&&b&&(h.rangeCount!==1||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var y=c.createRange();y.setStart(v.node,v.offset),h.removeAllRanges(),m>w?(h.addRange(y),h.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),h.addRange(y))}}}}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}}Kc=!!Rh,Oh=Rh=null}finally{ge=r,fe.p=a,Z.T=n}}e.current=t,tt=2}}function Z5(){if(tt===2){tt=0;var e=Xa,t=vi,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=Z.T,Z.T=null;var a=fe.p;fe.p=2;var r=ge;ge|=4;try{k5(e,t.alternate,t)}finally{ge=r,fe.p=a,Z.T=n}}tt=3}}function W5(){if(tt===4||tt===3){tt=0,tw();var e=Xa,t=vi,n=ai,a=B5;t.subtreeFlags&10256||t.flags&10256?tt=5:(tt=0,vi=Xa=null,$5(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Qa=null),Kp(n),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(ks,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=Z.T,r=fe.p,fe.p=2,Z.T=null;try{for(var l=e.onRecoverableError,i=0;i<a.length;i++){var o=a[i];l(o.value,{componentStack:o.stack})}}finally{Z.T=t,fe.p=r}}ai&3&&Ld(),Vn(e),r=e.pendingLanes,n&4194090&&r&42?e===Ch?Yo++:(Yo=0,Ch=e):Yo=0,qs(0)}}function $5(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ps(t)))}function Ld(e){return I5(),Z5(),W5(),J5()}function J5(){if(tt!==5)return!1;var e=Xa,t=wh;wh=0;var n=Kp(ai),a=Z.T,r=fe.p;try{fe.p=32>n?32:n,Z.T=null,n=xh,xh=null;var l=Xa,i=ai;if(tt=0,vi=Xa=null,ai=0,ge&6)throw Error(K(331));var o=ge;if(ge|=4,H5(l.current),z5(l,l.current,i,n),ge=o,qs(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(ks,l)}catch{}return!0}finally{fe.p=r,Z.T=a,$5(e,t)}}function L1(e,t,n){t=ln(n,t),t=gh(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(As(e,2),Vn(e))}function ye(e,t,n){if(e.tag===3)L1(e,e,n);else for(;t!==null;){if(t.tag===3){L1(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Qa===null||!Qa.has(a))){e=ln(n,e),n=m5(2),a=Ga(t,n,2),a!==null&&(v5(n,a,t,e),As(a,2),Vn(a));break}}t=t.return}}function Kf(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Tx;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(mg=!0,r.add(n),e=jx.bind(null,e,t,n),t.then(e,e))}function jx(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Se===e&&(oe&n)===n&&(Ae===4||Ae===3&&(oe&62914560)===oe&&300>Bn()-bg?!(ge&2)&&bi(e,0):vg|=n,mi===oe&&(mi=0)),Vn(e)}function e9(e,t){t===0&&(t=Iy()),e=Ni(e,t),e!==null&&(As(e,t),Vn(e))}function Lx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e9(e,n)}function _x(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(K(314))}a!==null&&a.delete(t),e9(e,n)}function zx(e,t){return zp(e,t)}var Nc=null,kl=null,Eh=!1,Ac=!1,Hf=!1,Vr=0;function Vn(e){e!==kl&&e.next===null&&(kl===null?Nc=kl=e:kl=kl.next=e),Ac=!0,Eh||(Eh=!0,Kx())}function qs(e,t){if(!Hf&&Ac){Hf=!0;do for(var n=!1,a=Nc;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var l=0;else{var i=a.suspendedLanes,o=a.pingedLanes;l=(1<<31-Ft(42|e)+1)-1,l&=r&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,_1(a,l))}else l=oe,l=Cd(a,a===Se?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(l&3)||Ns(a,l)||(n=!0,_1(a,l));a=a.next}while(n);Hf=!1}}function Px(){t9()}function t9(){Ac=Eh=!1;var e=0;Vr!==0&&(Qx()&&(e=Vr),Vr=0);for(var t=Bn(),n=null,a=Nc;a!==null;){var r=a.next,l=n9(a,t);l===0?(a.next=null,n===null?Nc=r:n.next=r,r===null&&(kl=n)):(n=a,(e!==0||l&3)&&(Ac=!0)),a=r}qs(e)}function n9(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-Ft(l),o=1<<i,s=r[i];s===-1?(!(o&n)||o&a)&&(r[i]=uw(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Se,n=oe,n=Cd(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&df(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ns(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&df(a),Kp(n)){case 2:case 8:n=Qy;break;case 32:n=hc;break;case 268435456:n=Xy;break;default:n=hc}return a=a9.bind(null,e),n=zp(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&df(a),e.callbackPriority=2,e.callbackNode=null,2}function a9(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ld()&&e.callbackNode!==n)return null;var a=oe;return a=Cd(e,e===Se?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(F5(e,a,t),n9(e,Bn()),e.callbackNode!=null&&e.callbackNode===n?a9.bind(null,e):null)}function _1(e,t){if(Ld())return null;F5(e,t,!0)}function Kx(){Yx(function(){ge&6?zp(Gy,Px):t9()})}function wg(){return Vr===0&&(Vr=Yy()),Vr}function z1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gu(""+e)}function P1(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 Hx(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var l=z1((r[Mt]||null).action),i=a.submitter;i&&(t=(t=i[Mt]||null)?z1(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new Sd("action","action",null,a,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Vr!==0){var s=i?P1(r,i):new FormData(r);hh(n,{pending:!0,data:s,method:r.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?P1(r,i):new FormData(r),hh(n,{pending:!0,data:s,method:r.method,action:l},l,s))},currentTarget:r}]})}}for(var Uf=0;Uf<th.length;Uf++){var Bf=th[Uf],Ux=Bf.toLowerCase(),Bx=Bf[0].toUpperCase()+Bf.slice(1);On(Ux,"on"+Bx)}On(b2,"onAnimationEnd");On(y2,"onAnimationIteration");On(w2,"onAnimationStart");On("dblclick","onDoubleClick");On("focusin","onFocus");On("focusout","onBlur");On(rx,"onTransitionRun");On(lx,"onTransitionStart");On(ix,"onTransitionCancel");On(x2,"onTransitionEnd");ci("onMouseEnter",["mouseout","mouseover"]);ci("onMouseLeave",["mouseout","mouseover"]);ci("onPointerEnter",["pointerout","pointerover"]);ci("onPointerLeave",["pointerout","pointerover"]);tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tl("onBeforeInput",["compositionend","keypress","textInput","paste"]);tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ss="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(" "),qx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ss));function r9(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var l=void 0;if(t)for(var i=a.length-1;0<=i;i--){var o=a[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&r.isPropagationStopped())break e;l=o,r.currentTarget=u;try{l(r)}catch(f){Mc(f)}r.currentTarget=null,l=s}else for(i=0;i<a.length;i++){if(o=a[i],s=o.instance,u=o.currentTarget,o=o.listener,s!==l&&r.isPropagationStopped())break e;l=o,r.currentTarget=u;try{l(r)}catch(f){Mc(f)}r.currentTarget=null,l=s}}}}function ae(e,t){var n=t[Y0];n===void 0&&(n=t[Y0]=new Set);var a=e+"__bubble";n.has(a)||(l9(t,e,2,!1),n.add(a))}function qf(e,t,n){var a=0;t&&(a|=4),l9(n,e,a,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function xg(e){if(!e[fu]){e[fu]=!0,Jy.forEach(function(n){n!=="selectionchange"&&(qx.has(n)||qf(n,!1,e),qf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,qf("selectionchange",!1,t))}}function l9(e,t,n,a){switch(v9(t)){case 2:var r=gC;break;case 8:r=mC;break;default:r=Mg}n=r.bind(null,t,n,e),r=void 0,!$0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Ff(e,t,n,a,r){var l=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var o=a.stateNode.containerInfo;if(o===r)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;o!==null;){if(i=zl(o),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=l=i;continue e}o=o.parentNode}}a=a.return}o2(function(){var u=l,f=Bp(n),c=[];e:{var d=C2.get(e);if(d!==void 0){var h=Sd,g=e;switch(e){case"keypress":if(Xu(n)===0)break e;case"keydown":case"keyup":h=zw;break;case"focusin":g="focus",h=yf;break;case"focusout":g="blur",h=yf;break;case"beforeblur":case"afterblur":h=yf;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=Vm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ew;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Hw;break;case b2:case y2:case w2:h=Ow;break;case x2:h=Bw;break;case"scroll":case"scrollend":h=Cw;break;case"wheel":h=Fw;break;case"copy":case"cut":case"paste":h=Dw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Qm;break;case"toggle":case"beforetoggle":h=Gw}var m=(t&4)!==0,w=!m&&(e==="scroll"||e==="scrollend"),v=m?d!==null?d+"Capture":null:d;m=[];for(var b=u,y;b!==null;){var C=b;if(y=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||y===null||v===null||(C=ns(b,v),C!=null&&m.push(us(b,C,y))),w)break;b=b.return}0<m.length&&(d=new h(d,g,null,n,f),c.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==W0&&(g=n.relatedTarget||n.fromElement)&&(zl(g)||g[Di]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?zl(g):null,g!==null&&(w=Ds(g),m=g.tag,g!==w||m!==5&&m!==27&&m!==6)&&(g=null)):(h=null,g=u),h!==g)){if(m=Vm,C="onMouseLeave",v="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=Qm,C="onPointerLeave",v="onPointerEnter",b="pointer"),w=h==null?d:Do(h),y=g==null?d:Do(g),d=new m(C,b+"leave",h,n,f),d.target=w,d.relatedTarget=y,C=null,zl(f)===u&&(m=new m(v,b+"enter",g,n,f),m.target=y,m.relatedTarget=w,C=m),w=C,h&&g)t:{for(m=h,v=g,b=0,y=m;y;y=gl(y))b++;for(y=0,C=v;C;C=gl(C))y++;for(;0<b-y;)m=gl(m),b--;for(;0<y-b;)v=gl(v),y--;for(;b--;){if(m===v||v!==null&&m===v.alternate)break t;m=gl(m),v=gl(v)}m=null}else m=null;h!==null&&K1(c,d,h,m,!1),g!==null&&w!==null&&K1(c,w,g,m,!0)}}e:{if(d=u?Do(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var S=Zm;else if(Im(d))if(h2)S=tx;else{S=Jw;var M=$w}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Up(u.elementType)&&(S=Zm):S=ex;if(S&&(S=S(e,u))){f2(c,S,n,f);break e}M&&M(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Z0(d,"number",d.value)}switch(M=u?Do(u):window,e){case"focusin":(Im(M)||M.contentEditable==="true")&&(Hl=M,J0=u,Ko=null);break;case"focusout":Ko=J0=Hl=null;break;case"mousedown":eh=!0;break;case"contextmenu":case"mouseup":case"dragend":eh=!1,t1(c,n,f);break;case"selectionchange":if(ax)break;case"keydown":case"keyup":t1(c,n,f)}var R;if(Vp)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Kl?c2(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(u2&&n.locale!=="ko"&&(Kl||D!=="onCompositionStart"?D==="onCompositionEnd"&&Kl&&(R=s2()):(Ka=f,qp="value"in Ka?Ka.value:Ka.textContent,Kl=!0)),M=jc(u,D),0<M.length&&(D=new Gm(D,e,null,n,f),c.push({event:D,listeners:M}),R?D.data=R:(R=d2(n),R!==null&&(D.data=R)))),(R=Xw?Yw(e,n):Iw(e,n))&&(D=jc(u,"onBeforeInput"),0<D.length&&(M=new Gm("onBeforeInput","beforeinput",null,n,f),c.push({event:M,listeners:D}),M.data=R)),Hx(c,e,u,n,f)}r9(c,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jc(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,l=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||l===null||(r=ns(e,n),r!=null&&a.unshift(us(e,r,l)),r=ns(e,t),r!=null&&a.push(us(e,r,l))),e.tag===3)return a;e=e.return}return[]}function gl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function K1(e,t,n,a,r){for(var l=t._reactName,i=[];n!==null&&n!==a;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===a)break;o!==5&&o!==26&&o!==27||u===null||(s=u,r?(u=ns(n,l),u!=null&&i.unshift(us(n,u,s))):r||(u=ns(n,l),u!=null&&i.push(us(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Fx=/\r\n?/g,Vx=/\u0000|\uFFFD/g;function H1(e){return(typeof e=="string"?e:""+e).replace(Fx,`
49
- `).replace(Vx,"")}function i9(e,t){return t=H1(t),H1(e)===t}function _d(){}function ve(e,t,n,a,r,l){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||di(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&di(e,""+a);break;case"className":lu(e,"class",a);break;case"tabIndex":lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(e,n,a);break;case"style":i2(e,a,l);break;case"data":if(t!=="object"){lu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gu(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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"&&ve(e,t,"name",r.name,r,null),ve(e,t,"formEncType",r.formEncType,r,null),ve(e,t,"formMethod",r.formMethod,r,null),ve(e,t,"formTarget",r.formTarget,r,null)):(ve(e,t,"encType",r.encType,r,null),ve(e,t,"method",r.method,r,null),ve(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gu(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=_d);break;case"onScroll":a!=null&&ae("scroll",e);break;case"onScrollEnd":a!=null&&ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(K(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(K(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Gu(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ae("beforetoggle",e),ae("toggle",e),Vu(e,"popover",a);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ww.get(n)||n,Vu(e,n,a))}}function Mh(e,t,n,a,r,l){switch(n){case"style":i2(e,a,l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(K(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(K(60));e.innerHTML=n}}break;case"children":typeof a=="string"?di(e,a):(typeof a=="number"||typeof a=="bigint")&&di(e,""+a);break;case"onScroll":a!=null&&ae("scroll",e);break;case"onScrollEnd":a!=null&&ae("scrollend",e);break;case"onClick":a!=null&&(e.onclick=_d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!e2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),l=e[Mt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,r),typeof a=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Vu(e,n,a)}}}function nt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ae("error",e),ae("load",e);var a=!1,r=!1,l;for(l in n)if(n.hasOwnProperty(l)){var i=n[l];if(i!=null)switch(l){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(K(137,t));default:ve(e,t,l,i,n,null)}}r&&ve(e,t,"srcSet",n.srcSet,n,null),a&&ve(e,t,"src",n.src,n,null);return;case"input":ae("invalid",e);var o=l=i=r=null,s=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var f=n[a];if(f!=null)switch(a){case"name":r=f;break;case"type":i=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":l=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(K(137,t));break;default:ve(e,t,a,f,n,null)}}a2(e,l,o,s,u,i,r,!1),pc(e);return;case"select":ae("invalid",e),a=i=l=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":a=o;default:ve(e,t,r,o,n,null)}t=l,n=i,e.multiple=!!a,t!=null?Wl(e,!!a,t,!1):n!=null&&Wl(e,!!a,n,!0);return;case"textarea":ae("invalid",e),l=r=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":r=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(K(91));break;default:ve(e,t,i,o,n,null)}l2(e,a,r,l),pc(e);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ve(e,t,s,a,n,null)}return;case"dialog":ae("beforetoggle",e),ae("toggle",e),ae("cancel",e),ae("close",e);break;case"iframe":case"object":ae("load",e);break;case"video":case"audio":for(a=0;a<ss.length;a++)ae(ss[a],e);break;case"image":ae("error",e),ae("load",e);break;case"details":ae("toggle",e);break;case"embed":case"source":case"link":ae("error",e),ae("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)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(K(137,t));default:ve(e,t,u,a,n,null)}return;default:if(Up(t)){for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!==void 0&&Mh(e,t,f,a,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(a=n[o],a!=null&&ve(e,t,o,a,n,null))}function Gx(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,l=null,i=null,o=null,s=null,u=null,f=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:a.hasOwnProperty(h)||ve(e,t,h,null,a,c)}}for(var d in a){var h=a[d];if(c=n[d],a.hasOwnProperty(d)&&(h!=null||c!=null))switch(d){case"type":l=h;break;case"name":r=h;break;case"checked":u=h;break;case"defaultChecked":f=h;break;case"value":i=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(K(137,t));break;default:h!==c&&ve(e,t,d,h,a,c)}}I0(e,i,o,s,u,f,l,r);return;case"select":h=i=o=d=null;for(l in n)if(s=n[l],n.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":h=s;default:a.hasOwnProperty(l)||ve(e,t,l,null,a,s)}for(r in a)if(l=a[r],s=n[r],a.hasOwnProperty(r)&&(l!=null||s!=null))switch(r){case"value":d=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&ve(e,t,r,l,a,s)}t=o,n=i,a=h,d!=null?Wl(e,!!n,d,!1):!!a!=!!n&&(t!=null?Wl(e,!!n,t,!0):Wl(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(r=n[o],n.hasOwnProperty(o)&&r!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:ve(e,t,o,null,a,r)}for(i in a)if(r=a[i],l=n[i],a.hasOwnProperty(i)&&(r!=null||l!=null))switch(i){case"value":d=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(K(91));break;default:r!==l&&ve(e,t,i,r,a,l)}r2(e,d,h);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!a.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:ve(e,t,g,null,a,d)}for(s in a)if(d=a[s],h=n[s],a.hasOwnProperty(s)&&d!==h&&(d!=null||h!=null))switch(s){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ve(e,t,s,d,a,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 m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&ve(e,t,m,null,a,d);for(u in a)if(d=a[u],h=n[u],a.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(K(137,t));break;default:ve(e,t,u,d,a,h)}return;default:if(Up(t)){for(var w in n)d=n[w],n.hasOwnProperty(w)&&d!==void 0&&!a.hasOwnProperty(w)&&Mh(e,t,w,void 0,a,d);for(f in a)d=a[f],h=n[f],!a.hasOwnProperty(f)||d===h||d===void 0&&h===void 0||Mh(e,t,f,d,a,h);return}}for(var v in n)d=n[v],n.hasOwnProperty(v)&&d!=null&&!a.hasOwnProperty(v)&&ve(e,t,v,null,a,d);for(c in a)d=a[c],h=n[c],!a.hasOwnProperty(c)||d===h||d==null&&h==null||ve(e,t,c,d,a,h)}var Rh=null,Oh=null;function Lc(e){return e.nodeType===9?e:e.ownerDocument}function U1(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 o9(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 Th(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 Vf=null;function Qx(){var e=window.event;return e&&e.type==="popstate"?e===Vf?!1:(Vf=e,!0):(Vf=null,!1)}var s9=typeof setTimeout=="function"?setTimeout:void 0,Xx=typeof clearTimeout=="function"?clearTimeout:void 0,B1=typeof Promise=="function"?Promise:void 0,Yx=typeof queueMicrotask=="function"?queueMicrotask:typeof B1<"u"?function(e){return B1.resolve(null).then(e).catch(Ix)}:s9;function Ix(e){setTimeout(function(){throw e})}function ur(e){return e==="head"}function q1(e,t){var n=t,a=0,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(0<a&&8>a){n=a;var i=e.ownerDocument;if(n&1&&Io(i.documentElement),n&2&&Io(i.body),n&4)for(n=i.head,Io(n),i=n.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[js]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}if(r===0){e.removeChild(l),ps(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:a=n.charCodeAt(0)-48;else a=0;n=l}while(n);ps(t)}function Dh(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":Dh(n),Hp(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Zx(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[js])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!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Sn(e.nextSibling),e===null)break}return null}function Wx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Sn(e.nextSibling),e===null))return null;return e}function kh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function $x(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Sn(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Nh=null;function F1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function u9(e,t,n){switch(t=Lc(n),e){case"html":if(e=t.documentElement,!e)throw Error(K(452));return e;case"head":if(e=t.head,!e)throw Error(K(453));return e;case"body":if(e=t.body,!e)throw Error(K(454));return e;default:throw Error(K(451))}}function Io(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Hp(e)}var un=new Map,V1=new Set;function _c(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=fe.d;fe.d={f:Jx,r:eC,D:tC,C:nC,L:aC,m:rC,X:iC,S:lC,M:oC};function Jx(){var e=ba.f(),t=Ad();return e||t}function eC(e){var t=ki(e);t!==null&&t.tag===5&&t.type==="form"?n5(t):ba.r(e)}var ji=typeof document>"u"?null:document;function c9(e,t,n){var a=ji;if(a&&typeof t=="string"&&t){var r=rn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),V1.has(r)||(V1.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),nt(t,"link",e),Ze(t),a.head.appendChild(t)))}}function tC(e){ba.D(e),c9("dns-prefetch",e,null)}function nC(e,t){ba.C(e,t),c9("preconnect",e,t)}function aC(e,t,n){ba.L(e,t,n);var a=ji;if(a&&e&&t){var r='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+rn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+rn(n.imageSizes)+'"]')):r+='[href="'+rn(e)+'"]';var l=r;switch(t){case"style":l=yi(e);break;case"script":l=Li(e)}un.has(l)||(e=Ee({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),un.set(l,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Fs(l))||t==="script"&&a.querySelector(Vs(l))||(t=a.createElement("link"),nt(t,"link",e),Ze(t),a.head.appendChild(t)))}}function rC(e,t){ba.m(e,t);var n=ji;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+rn(a)+'"][href="'+rn(e)+'"]',l=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Li(e)}if(!un.has(l)&&(e=Ee({rel:"modulepreload",href:e},t),un.set(l,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Vs(l)))return}a=n.createElement("link"),nt(a,"link",e),Ze(a),n.head.appendChild(a)}}}function lC(e,t,n){ba.S(e,t,n);var a=ji;if(a&&e){var r=Zl(a).hoistableStyles,l=yi(e);t=t||"default";var i=r.get(l);if(!i){var o={loading:0,preload:null};if(i=a.querySelector(Fs(l)))o.loading=5;else{e=Ee({rel:"stylesheet",href:e,"data-precedence":t},n),(n=un.get(l))&&Cg(e,n);var s=i=a.createElement("link");Ze(s),nt(s,"link",e),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ec(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:o},r.set(l,i)}}}function iC(e,t){ba.X(e,t);var n=ji;if(n&&e){var a=Zl(n).hoistableScripts,r=Li(e),l=a.get(r);l||(l=n.querySelector(Vs(r)),l||(e=Ee({src:e,async:!0},t),(t=un.get(r))&&Sg(e,t),l=n.createElement("script"),Ze(l),nt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(r,l))}}function oC(e,t){ba.M(e,t);var n=ji;if(n&&e){var a=Zl(n).hoistableScripts,r=Li(e),l=a.get(r);l||(l=n.querySelector(Vs(r)),l||(e=Ee({src:e,async:!0,type:"module"},t),(t=un.get(r))&&Sg(e,t),l=n.createElement("script"),Ze(l),nt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(r,l))}}function G1(e,t,n,a){var r=(r=Fa.current)?_c(r):null;if(!r)throw Error(K(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=yi(n.href),n=Zl(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=yi(n.href);var l=Zl(r).hoistableStyles,i=l.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=r.querySelector(Fs(e)))&&!l._p&&(i.instance=l,i.state.loading=5),un.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},un.set(e,n),l||sC(r,e,n,i.state))),t&&a===null)throw Error(K(528,""));return i}if(t&&a!==null)throw Error(K(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Li(n),n=Zl(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(K(444,e))}}function yi(e){return'href="'+rn(e)+'"'}function Fs(e){return'link[rel="stylesheet"]['+e+"]"}function d9(e){return Ee({},e,{"data-precedence":e.precedence,precedence:null})}function sC(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",n),Ze(t),e.head.appendChild(t))}function Li(e){return'[src="'+rn(e)+'"]'}function Vs(e){return"script[async]"+e}function Q1(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+rn(n.href)+'"]');if(a)return t.instance=a,Ze(a),a;var r=Ee({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),nt(a,"style",r),ec(a,n.precedence,e),t.instance=a;case"stylesheet":r=yi(n.href);var l=e.querySelector(Fs(r));if(l)return t.state.loading|=4,t.instance=l,Ze(l),l;a=d9(n),(r=un.get(r))&&Cg(a,r),l=(e.ownerDocument||e).createElement("link"),Ze(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),nt(l,"link",a),t.state.loading|=4,ec(l,n.precedence,e),t.instance=l;case"script":return l=Li(n.src),(r=e.querySelector(Vs(l)))?(t.instance=r,Ze(r),r):(a=n,(r=un.get(l))&&(a=Ee({},n),Sg(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ze(r),nt(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(K(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,ec(a,n.precedence,e));return t.instance}function ec(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,l=r,i=0;i<a.length;i++){var o=a[i];if(o.dataset.precedence===t)l=o;else if(l!==r)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Cg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var tc=null;function X1(e,t,n){if(tc===null){var a=new Map,r=tc=new Map;r.set(n,a)}else r=tc,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var l=n[r];if(!(l[js]||l[it]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=a.get(i);o?o.push(l):a.set(i,[l])}}return a}function Y1(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function uC(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 f9(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var cs=null;function cC(){}function dC(e,t,n){if(cs===null)throw Error(K(475));var a=cs;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=yi(n.href),l=e.querySelector(Fs(r));if(l){e=l._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=zc.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=l,Ze(l);return}l=e.ownerDocument||e,n=d9(n),(r=un.get(r))&&Cg(n,r),l=l.createElement("link"),Ze(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),nt(l,"link",n),t.instance=l}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(a.count++,t=zc.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function fC(){if(cs===null)throw Error(K(475));var e=cs;return e.stylesheets&&e.count===0&&Ah(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Ah(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function zc(){if(this.count--,this.count===0){if(this.stylesheets)Ah(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pc=null;function Ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pc=new Map,t.forEach(hC,e),Pc=null,zc.call(e))}function hC(e,t){if(!(t.state.loading&4)){var n=Pc.get(e);if(n)var a=n.get(null);else{n=new Map,Pc.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<r.length;l++){var i=r[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),a=i)}a&&n.set(null,a)}r=t.instance,i=r.getAttribute("data-precedence"),l=n.get(i)||a,l===a&&n.set(null,r),n.set(i,r),this.count++,a=zc.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),l?l.parentNode.insertBefore(r,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var ds={$$typeof:ra,Provider:null,Consumer:null,_currentValue:Kr,_currentValue2:Kr,_threadCount:0};function pC(e,t,n,a,r,l,i,o){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=ff(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ff(0),this.hiddenUpdates=ff(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function h9(e,t,n,a,r,l,i,o,s,u,f,c){return e=new pC(e,t,n,i,o,s,u,c),t=1,l===!0&&(t|=24),l=Pt(3,null,null,t),e.current=l,l.stateNode=e,t=Wp(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:a,isDehydrated:n,cache:t},Jp(l),e}function p9(e){return e?(e=ql,e):ql}function g9(e,t,n,a,r,l){r=p9(r),a.context===null?a.context=r:a.pendingContext=r,a=Va(t),a.payload={element:n},l=l===void 0?null:l,l!==null&&(a.callback=l),n=Ga(e,a,t),n!==null&&(Gt(n,e,t),Bo(n,e,t))}function I1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Eg(e,t){I1(e,t),(e=e.alternate)&&I1(e,t)}function m9(e){if(e.tag===13){var t=Ni(e,67108864);t!==null&&Gt(t,e,67108864),Eg(e,67108864)}}var Kc=!0;function gC(e,t,n,a){var r=Z.T;Z.T=null;var l=fe.p;try{fe.p=2,Mg(e,t,n,a)}finally{fe.p=l,Z.T=r}}function mC(e,t,n,a){var r=Z.T;Z.T=null;var l=fe.p;try{fe.p=8,Mg(e,t,n,a)}finally{fe.p=l,Z.T=r}}function Mg(e,t,n,a){if(Kc){var r=jh(a);if(r===null)Ff(e,t,a,Hc,n),Z1(e,a);else if(bC(r,e,t,n,a))a.stopPropagation();else if(Z1(e,a),t&4&&-1<vC.indexOf(e)){for(;r!==null;){var l=ki(r);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=Ar(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-Ft(i);o.entanglements[1]|=s,i&=~s}Vn(l),!(ge&6)&&(Dc=Bn()+500,qs(0))}}break;case 13:o=Ni(l,2),o!==null&&Gt(o,l,2),Ad(),Eg(l,2)}if(l=jh(a),l===null&&Ff(e,t,a,Hc,n),l===r)break;r=l}r!==null&&a.stopPropagation()}else Ff(e,t,a,null,n)}}function jh(e){return e=Bp(e),Rg(e)}var Hc=null;function Rg(e){if(Hc=null,e=zl(e),e!==null){var t=Ds(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=By(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 Hc=e,null}function v9(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(nw()){case Gy:return 2;case Qy:return 8;case hc:case aw:return 32;case Xy:return 268435456;default:return 32}default:return 32}}var Lh=!1,Ya=null,Ia=null,Za=null,fs=new Map,hs=new Map,_a=[],vC="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 Z1(e,t){switch(e){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hs.delete(t.pointerId)}}function Zi(e,t,n,a,r,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:l,targetContainers:[r]},t!==null&&(t=ki(t),t!==null&&m9(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function bC(e,t,n,a,r){switch(t){case"focusin":return Ya=Zi(Ya,e,t,n,a,r),!0;case"dragenter":return Ia=Zi(Ia,e,t,n,a,r),!0;case"mouseover":return Za=Zi(Za,e,t,n,a,r),!0;case"pointerover":var l=r.pointerId;return fs.set(l,Zi(fs.get(l)||null,e,t,n,a,r)),!0;case"gotpointercapture":return l=r.pointerId,hs.set(l,Zi(hs.get(l)||null,e,t,n,a,r)),!0}return!1}function b9(e){var t=zl(e.target);if(t!==null){var n=Ds(t);if(n!==null){if(t=n.tag,t===13){if(t=By(n),t!==null){e.blockedOn=t,dw(e.priority,function(){if(n.tag===13){var a=Vt();a=Pp(a);var r=Ni(n,a);r!==null&&Gt(r,n,a),Eg(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jh(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);W0=a,n.target.dispatchEvent(a),W0=null}else return t=ki(n),t!==null&&m9(t),e.blockedOn=n,!1;t.shift()}return!0}function W1(e,t,n){nc(e)&&n.delete(t)}function yC(){Lh=!1,Ya!==null&&nc(Ya)&&(Ya=null),Ia!==null&&nc(Ia)&&(Ia=null),Za!==null&&nc(Za)&&(Za=null),fs.forEach(W1),hs.forEach(W1)}function hu(e,t){e.blockedOn===t&&(e.blockedOn=null,Lh||(Lh=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,yC)))}var pu=null;function $1(e){pu!==e&&(pu=e,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,function(){pu===e&&(pu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(Rg(a||n)===null)continue;break}var l=ki(n);l!==null&&(e.splice(t,3),t-=3,hh(l,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function ps(e){function t(s){return hu(s,e)}Ya!==null&&hu(Ya,e),Ia!==null&&hu(Ia,e),Za!==null&&hu(Za,e),fs.forEach(t),hs.forEach(t);for(var n=0;n<_a.length;n++){var a=_a[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_a.length&&(n=_a[0],n.blockedOn===null);)b9(n),n.blockedOn===null&&_a.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],l=n[a+1],i=r[Mt]||null;if(typeof l=="function")i||$1(n);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(r=l,i=l[Mt]||null)o=i.formAction;else if(Rg(r)!==null)continue}else o=i.action;typeof o=="function"?n[a+1]=o:(n.splice(a,3),a-=3),$1(n)}}}function Og(e){this._internalRoot=e}zd.prototype.render=Og.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));var n=t.current,a=Vt();g9(n,a,e,t,null,null)};zd.prototype.unmount=Og.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;g9(e.current,2,null,e,null,null),Ad(),t[Di]=null}};function zd(e){this._internalRoot=e}zd.prototype.unstable_scheduleHydration=function(e){if(e){var t=$y();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_a.length&&t!==0&&t<_a[n].priority;n++);_a.splice(n,0,e),n===0&&b9(e)}};var J1=Hy.version;if(J1!=="19.1.0")throw Error(K(527,J1,"19.1.0"));fe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=I6(t),e=e!==null?qy(e):null,e=e===null?null:e.stateNode,e};var wC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{ks=gu.inject(wC),qt=gu}catch{}}wd.createRoot=function(e,t){if(!Uy(e))throw Error(K(299));var n=!1,a="",r=h5,l=p5,i=g5,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=h9(e,1,!1,null,null,n,a,r,l,i,o,null),e[Di]=t.current,xg(e),new Og(t)};wd.hydrateRoot=function(e,t,n){if(!Uy(e))throw Error(K(299));var a=!1,r="",l=h5,i=p5,o=g5,s=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(s=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=h9(e,1,!0,t,n??null,a,r,l,i,o,s,u),t.context=p9(null),n=t.current,a=Vt(),a=Pp(a),r=Va(a),r.callback=null,Ga(n,r,a),n=a,t.current.lanes=n,As(t,n),Vn(t),e[Di]=t.current,xg(e),new zd(t)};wd.version="19.1.0";function y9(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y9)}catch(e){console.error(e)}}y9(),My.exports=wd;var xC=My.exports,w9=e=>{throw TypeError(e)},Tg=(e,t,n)=>t.has(e)||w9("Cannot "+n),O=(e,t,n)=>(Tg(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?w9("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,a)=>(Tg(e,t,"write to private field"),t.set(e,n),n),I=(e,t,n)=>(Tg(e,t,"access private method"),n),_h=(e,t,n,a)=>({set _(r){V(e,t,r)},get _(){return O(e,t,a)}});function x9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C9={exports:{}},Pd={};/**
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:"")?Ia(n):""}function ax(e,t){switch(e.tag){case 26:case 27:case 5:return Ia(e.type);case 16:return Ia("Lazy");case 13:return e.child!==t&&t!==null?Ia("Suspense Fallback"):Ia("Suspense");case 19:return Ia("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 Ia("Activity");default:return""}}function y1(e){try{var t="",n=null;do t+=ax(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
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={};/**
50
50
  * @license React
51
51
  * react-jsx-runtime.production.js
52
52
  *
@@ -54,8 +54,8 @@ Error generating stack: `+n.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 CC=Symbol.for("react.transitional.element"),SC=Symbol.for("react.fragment");function S9(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:CC,type:e,key:a,ref:t!==void 0?t:null,props:n}}Pd.Fragment=SC;Pd.jsx=S9;Pd.jsxs=S9;C9.exports=Pd;var x=C9.exports,ll=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(){}},Zr=typeof window>"u"||"Deno"in globalThis;function lt(){}function EC(e,t){return typeof e=="function"?e(t):e}function zh(e){return typeof e=="number"&&e>=0&&e!==1/0}function E9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ri(e,t){return typeof e=="function"?e(t):e}function xn(e,t){return typeof e=="function"?e(t):e}function ev(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:l,queryKey:i,stale:o}=e;if(i){if(a){if(t.queryHash!==Dg(i,t.options))return!1}else if(!gs(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||r&&r!==t.state.fetchStatus||l&&!l(t))}function tv(e,t){const{exact:n,status:a,predicate:r,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(rr(t.options.mutationKey)!==rr(l))return!1}else if(!gs(t.options.mutationKey,l))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function Dg(e,t){return((t==null?void 0:t.queryKeyHashFn)||rr)(e)}function rr(e){return JSON.stringify(e,(t,n)=>Ph(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function gs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>gs(e[n],t[n])):!1}function kg(e,t){if(e===t)return e;const n=nv(e)&&nv(t);if(n||Ph(e)&&Ph(t)){const a=n?e:Object.keys(e),r=a.length,l=n?t:Object.keys(t),i=l.length,o=n?[]:{};let s=0;for(let u=0;u<i;u++){const f=n?u:l[u];(!n&&a.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(o[f]=void 0,s++):(o[f]=kg(e[f],t[f]),o[f]===e[f]&&e[f]!==void 0&&s++)}return r===i&&s===r?e:o}return t}function Uc(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 nv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ph(e){if(!av(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!av(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function av(e){return Object.prototype.toString.call(e)==="[object Object]"}function MC(e){return new Promise(t=>{setTimeout(t,e)})}function Kh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kg(e,t):t}function RC(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function OC(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var Kt=Symbol();function M9(e,t){return!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Kt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function R9(e,t){return typeof e=="function"?e(...t):!!e}var ml,br,Wi,rv,TC=(rv=class extends ll{constructor(){super(),G(this,ml),G(this,br),G(this,Wi),V(this,Wi,e=>{if(!Zr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){O(this,br)||this.setEventListener(O(this,Wi))}onUnsubscribe(){var e;this.hasListeners()||((e=O(this,br))==null||e.call(this),V(this,br,void 0))}setEventListener(e){var t;V(this,Wi,e),(t=O(this,br))==null||t.call(this),V(this,br,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){O(this,ml)!==e&&(V(this,ml,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof O(this,ml)=="boolean"?O(this,ml):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ml=new WeakMap,br=new WeakMap,Wi=new WeakMap,rv),Ng=new TC,$i,yr,Ji,lv,DC=(lv=class extends ll{constructor(){super(),G(this,$i,!0),G(this,yr),G(this,Ji),V(this,Ji,e=>{if(!Zr&&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(){O(this,yr)||this.setEventListener(O(this,Ji))}onUnsubscribe(){var e;this.hasListeners()||((e=O(this,yr))==null||e.call(this),V(this,yr,void 0))}setEventListener(e){var t;V(this,Ji,e),(t=O(this,yr))==null||t.call(this),V(this,yr,e(this.setOnline.bind(this)))}setOnline(e){O(this,$i)!==e&&(V(this,$i,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return O(this,$i)}},$i=new WeakMap,yr=new WeakMap,Ji=new WeakMap,lv),Bc=new DC;function Hh(){let e,t;const n=new Promise((r,l)=>{e=r,t=l});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}function kC(e){return Math.min(1e3*2**e,3e4)}function O9(e){return(e??"online")==="online"?Bc.isOnline():!0}var T9=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Gf(e){return e instanceof T9}function D9(e){let t=!1,n=0,a=!1,r;const l=Hh(),i=m=>{var w;a||(d(new T9(m)),(w=e.abort)==null||w.call(e))},o=()=>{t=!0},s=()=>{t=!1},u=()=>Ng.isFocused()&&(e.networkMode==="always"||Bc.isOnline())&&e.canRun(),f=()=>O9(e.networkMode)&&e.canRun(),c=m=>{var w;a||(a=!0,(w=e.onSuccess)==null||w.call(e,m),r==null||r(),l.resolve(m))},d=m=>{var w;a||(a=!0,(w=e.onError)==null||w.call(e,m),r==null||r(),l.reject(m))},h=()=>new Promise(m=>{var w;r=v=>{(a||u())&&m(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var m;r=void 0,a||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(a)return;let m;const w=n===0?e.initialPromise:void 0;try{m=w??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(c).catch(v=>{var b;if(a)return;const y=e.retry??(Zr?0:3),C=e.retryDelay??kC,S=typeof C=="function"?C(n,v):C,M=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,v);if(t||!M){d(v);return}n++,(b=e.onFail)==null||b.call(e,n,v),MC(S).then(()=>u()?void 0:h()).then(()=>{t?d(v):g()})})};return{promise:l,cancel:i,continue:()=>(r==null||r(),l),cancelRetry:o,continueRetry:s,canStart:f,start:()=>(f()?g():h().then(g),l)}}var NC=e=>setTimeout(e,0);function AC(){let e=[],t=0,n=o=>{o()},a=o=>{o()},r=NC;const l=o=>{t?e.push(o):r(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&r(()=>{a(()=>{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=>{a=o},setScheduler:o=>{r=o}}}var je=AC(),vl,iv,k9=(iv=class{constructor(){G(this,vl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zh(this.gcTime)&&V(this,vl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zr?1/0:5*60*1e3))}clearGcTimeout(){O(this,vl)&&(clearTimeout(O(this,vl)),V(this,vl,void 0))}},vl=new WeakMap,iv),eo,to,mn,bl,ut,mu,yl,Nn,Wn,ov,jC=(ov=class extends k9{constructor(e){super(),G(this,Nn),G(this,eo),G(this,to),G(this,mn),G(this,bl),G(this,ut),G(this,mu),G(this,yl),V(this,yl,!1),V(this,mu,e.defaultOptions),this.setOptions(e.options),this.observers=[],V(this,bl,e.client),V(this,mn,O(this,bl).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,V(this,eo,LC(this.options)),this.state=e.state??O(this,eo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=O(this,ut))==null?void 0:e.promise}setOptions(e){this.options={...O(this,mu),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,mn).remove(this)}setData(e,t){const n=Kh(this.state.data,e,this.options);return I(this,Nn,Wn).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){I(this,Nn,Wn).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const a=(t=O(this,ut))==null?void 0:t.promise;return(n=O(this,ut))==null||n.cancel(e),a?a.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,eo))}isActive(){return this.observers.some(e=>xn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!E9(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=O(this,ut))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=O(this,ut))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),O(this,mn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(O(this,ut)&&(O(this,yl)?O(this,ut).cancel({revert:!0}):O(this,ut).cancelRetry()),this.scheduleGc()),O(this,mn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||I(this,Nn,Wn).call(this,{type:"invalidate"})}fetch(e,t){var n,a,r;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(O(this,ut))return O(this,ut).continueRetry(),O(this,ut).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(c=>c.options.queryFn);f&&this.setOptions(f.options)}const l=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(V(this,yl,!0),l.signal)})},o=()=>{const f=M9(this.options,t),c={client:O(this,bl),queryKey:this.queryKey,meta:this.meta};return i(c),V(this,yl,!1),this.options.persister?this.options.persister(f,c,this):f(c)},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:O(this,bl),state:this.state,fetchFn:o};i(s),(n=this.options.behavior)==null||n.onFetch(s,this),V(this,to,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=s.fetchOptions)==null?void 0:a.meta))&&I(this,Nn,Wn).call(this,{type:"fetch",meta:(r=s.fetchOptions)==null?void 0:r.meta});const u=f=>{var c,d,h,g;Gf(f)&&f.silent||I(this,Nn,Wn).call(this,{type:"error",error:f}),Gf(f)||((d=(c=O(this,mn).config).onError)==null||d.call(c,f,this),(g=(h=O(this,mn).config).onSettled)==null||g.call(h,this.state.data,f,this)),this.scheduleGc()};return V(this,ut,D9({initialPromise:t==null?void 0:t.initialPromise,fn:s.fetchFn,abort:l.abort.bind(l),onSuccess:f=>{var c,d,h,g;if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(m){u(m);return}(d=(c=O(this,mn).config).onSuccess)==null||d.call(c,f,this),(g=(h=O(this,mn).config).onSettled)==null||g.call(h,f,this.state.error,this),this.scheduleGc()},onError:u,onFail:(f,c)=>{I(this,Nn,Wn).call(this,{type:"failed",failureCount:f,error:c})},onPause:()=>{I(this,Nn,Wn).call(this,{type:"pause"})},onContinue:()=>{I(this,Nn,Wn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),O(this,ut).start()}},eo=new WeakMap,to=new WeakMap,mn=new WeakMap,bl=new WeakMap,ut=new WeakMap,mu=new WeakMap,yl=new WeakMap,Nn=new WeakSet,Wn=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,...N9(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...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}};case"error":const a=e.error;return Gf(a)&&a.revert&&O(this,to)?{...O(this,to),fetchStatus:"idle"}:{...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),je.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),O(this,mn).notify({query:this,type:"updated",action:e})})},ov);function N9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O9(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function LC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var $n,sv,_C=(sv=class extends ll{constructor(e={}){super(),G(this,$n),this.config=e,V(this,$n,new Map)}build(e,t,n){const a=t.queryKey,r=t.queryHash??Dg(a,t);let l=this.get(r);return l||(l=new jC({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){O(this,$n).has(e.queryHash)||(O(this,$n).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=O(this,$n).get(e.queryHash);t&&(e.destroy(),t===e&&O(this,$n).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){je.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return O(this,$n).get(e)}getAll(){return[...O(this,$n).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ev(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ev(e,n)):t}notify(e){je.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){je.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){je.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$n=new WeakMap,sv),Jn,mt,wl,ea,Sa,uv,zC=(uv=class extends k9{constructor(e){super(),G(this,ea),G(this,Jn),G(this,mt),G(this,wl),this.mutationId=e.mutationId,V(this,mt,e.mutationCache),V(this,Jn,[]),this.state=e.state||A9(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){O(this,Jn).includes(e)||(O(this,Jn).push(e),this.clearGcTimeout(),O(this,mt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){V(this,Jn,O(this,Jn).filter(t=>t!==e)),this.scheduleGc(),O(this,mt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){O(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():O(this,mt).remove(this))}continue(){var e;return((e=O(this,wl))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,a,r,l,i,o,s,u,f,c,d,h,g,m,w,v,b,y,C;const S=()=>{I(this,ea,Sa).call(this,{type:"continue"})};V(this,wl,D9({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(D,j)=>{I(this,ea,Sa).call(this,{type:"failed",failureCount:D,error:j})},onPause:()=>{I(this,ea,Sa).call(this,{type:"pause"})},onContinue:S,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,mt).canRun(this)}));const M=this.state.status==="pending",R=!O(this,wl).canStart();try{if(M)S();else{I(this,ea,Sa).call(this,{type:"pending",variables:e,isPaused:R}),await((n=(t=O(this,mt).config).onMutate)==null?void 0:n.call(t,e,this));const j=await((r=(a=this.options).onMutate)==null?void 0:r.call(a,e));j!==this.state.context&&I(this,ea,Sa).call(this,{type:"pending",context:j,variables:e,isPaused:R})}const D=await O(this,wl).start();return await((i=(l=O(this,mt).config).onSuccess)==null?void 0:i.call(l,D,e,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,D,e,this.state.context)),await((f=(u=O(this,mt).config).onSettled)==null?void 0:f.call(u,D,null,this.state.variables,this.state.context,this)),await((d=(c=this.options).onSettled)==null?void 0:d.call(c,D,null,e,this.state.context)),I(this,ea,Sa).call(this,{type:"success",data:D}),D}catch(D){try{throw await((g=(h=O(this,mt).config).onError)==null?void 0:g.call(h,D,e,this.state.context,this)),await((w=(m=this.options).onError)==null?void 0:w.call(m,D,e,this.state.context)),await((b=(v=O(this,mt).config).onSettled)==null?void 0:b.call(v,void 0,D,this.state.variables,this.state.context,this)),await((C=(y=this.options).onSettled)==null?void 0:C.call(y,void 0,D,e,this.state.context)),D}finally{I(this,ea,Sa).call(this,{type:"error",error:D})}}finally{O(this,mt).runNext(this)}}},Jn=new WeakMap,mt=new WeakMap,wl=new WeakMap,ea=new WeakSet,Sa=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),je.batch(()=>{O(this,Jn).forEach(n=>{n.onMutationUpdate(e)}),O(this,mt).notify({mutation:this,type:"updated",action:e})})},uv);function A9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ea,An,vu,cv,PC=(cv=class extends ll{constructor(e={}){super(),G(this,Ea),G(this,An),G(this,vu),this.config=e,V(this,Ea,new Set),V(this,An,new Map),V(this,vu,0)}build(e,t,n){const a=new zC({mutationCache:this,mutationId:++_h(this,vu)._,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){O(this,Ea).add(e);const t=bu(e);if(typeof t=="string"){const n=O(this,An).get(t);n?n.push(e):O(this,An).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(O(this,Ea).delete(e)){const t=bu(e);if(typeof t=="string"){const n=O(this,An).get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&O(this,An).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=bu(e);if(typeof t=="string"){const n=O(this,An).get(t),a=n==null?void 0:n.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){var t;const n=bu(e);if(typeof n=="string"){const a=(t=O(this,An).get(n))==null?void 0:t.find(r=>r!==e&&r.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){je.batch(()=>{O(this,Ea).forEach(e=>{this.notify({type:"removed",mutation:e})}),O(this,Ea).clear(),O(this,An).clear()})}getAll(){return Array.from(O(this,Ea))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>tv(t,n))}findAll(e={}){return this.getAll().filter(t=>tv(e,t))}notify(e){je.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return je.batch(()=>Promise.all(e.map(t=>t.continue().catch(lt))))}},Ea=new WeakMap,An=new WeakMap,vu=new WeakMap,cv);function bu(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qc(e){return{onFetch:(t,n)=>{var a,r,l,i,o;const s=t.options,u=(l=(r=(a=t.fetchOptions)==null?void 0:a.meta)==null?void 0:r.fetchMore)==null?void 0:l.direction,f=((i=t.state.data)==null?void 0:i.pages)||[],c=((o=t.state.data)==null?void 0:o.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const g=async()=>{let m=!1;const w=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=M9(t.options,t.fetchOptions),b=async(y,C,S)=>{if(m)return Promise.reject();if(C==null&&y.pages.length)return Promise.resolve(y);const M={client:t.client,queryKey:t.queryKey,pageParam:C,direction:S?"backward":"forward",meta:t.options.meta};w(M);const R=await v(M),{maxPages:D}=t.options,j=S?OC:RC;return{pages:j(y.pages,R,D),pageParams:j(y.pageParams,C,D)}};if(u&&f.length){const y=u==="backward",C=y?j9:Uh,S={pages:f,pageParams:c},M=C(s,S);d=await b(S,M,y)}else{const y=e??f.length;do{const C=h===0?c[0]??s.initialPageParam:Uh(s,d);if(h>0&&C==null)break;d=await b(d,C),h++}while(h<y)}return d};t.options.persister?t.fetchFn=()=>{var m,w;return(w=(m=t.options).persister)==null?void 0:w.call(m,g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=g}}}function Uh(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function j9(e,{pages:t,pageParams:n}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,n[0],n):void 0}function KC(e,t){return t?Uh(e,t)!=null:!1}function HC(e,t){return!t||!e.getPreviousPageParam?!1:j9(e,t)!=null}var _e,wr,xr,no,ao,Cr,ro,lo,dv,UC=(dv=class{constructor(e={}){G(this,_e),G(this,wr),G(this,xr),G(this,no),G(this,ao),G(this,Cr),G(this,ro),G(this,lo),V(this,_e,e.queryCache||new _C),V(this,wr,e.mutationCache||new PC),V(this,xr,e.defaultOptions||{}),V(this,no,new Map),V(this,ao,new Map),V(this,Cr,0)}mount(){_h(this,Cr)._++,O(this,Cr)===1&&(V(this,ro,Ng.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,_e).onFocus())})),V(this,lo,Bc.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,_e).onOnline())})))}unmount(){var e,t;_h(this,Cr)._--,O(this,Cr)===0&&((e=O(this,ro))==null||e.call(this),V(this,ro,void 0),(t=O(this,lo))==null||t.call(this),V(this,lo,void 0))}isFetching(e){return O(this,_e).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,wr).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=O(this,_e).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=O(this,_e).build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ri(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return O(this,_e).findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),r=O(this,_e).get(a.queryHash),l=r==null?void 0:r.state.data,i=EC(t,l);if(i!==void 0)return O(this,_e).build(this,a).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return je.batch(()=>O(this,_e).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=O(this,_e).get(n.queryHash))==null?void 0:t.state}removeQueries(e){const t=O(this,_e);je.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=O(this,_e);return je.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=je.batch(()=>O(this,_e).findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(lt).catch(lt)}invalidateQueries(e,t={}){return je.batch(()=>(O(this,_e).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},a=je.batch(()=>O(this,_e).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let l=r.fetch(void 0,n);return n.throwOnError||(l=l.catch(lt)),r.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(a).then(lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=O(this,_e).build(this,t);return n.isStaleByTime(ri(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(lt).catch(lt)}fetchInfiniteQuery(e){return e.behavior=qc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(lt).catch(lt)}ensureInfiniteQueryData(e){return e.behavior=qc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bc.isOnline()?O(this,wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,_e)}getMutationCache(){return O(this,wr)}getDefaultOptions(){return O(this,xr)}setDefaultOptions(e){V(this,xr,e)}setQueryDefaults(e,t){O(this,no).set(rr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...O(this,no).values()],n={};return t.forEach(a=>{gs(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){O(this,ao).set(rr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...O(this,ao).values()],n={};return t.forEach(a=>{gs(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...O(this,xr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dg(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===Kt&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,xr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,_e).clear(),O(this,wr).clear()}},_e=new WeakMap,wr=new WeakMap,xr=new WeakMap,no=new WeakMap,ao=new WeakMap,Cr=new WeakMap,ro=new WeakMap,lo=new WeakMap,dv),At,ie,yu,vt,xl,io,Sr,Er,wu,oo,so,Cl,Sl,Mr,uo,ze,co,Qf,Xf,Yf,If,Zf,Wf,$f,fv,hv,Gs=(hv=class extends ll{constructor(e,t){super(),G(this,ze),G(this,At),G(this,ie),G(this,yu),G(this,vt),G(this,xl),G(this,io),G(this,Sr),G(this,Er),G(this,wu),G(this,oo),G(this,so),G(this,Cl),G(this,Sl),G(this,Mr),G(this,uo,new Set),this.options=t,V(this,At,e),V(this,Er,null),V(this,Sr,Hh()),this.options.experimental_prefetchInRender||O(this,Sr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,ie).addObserver(this),pv(O(this,ie),this.options)?I(this,ze,co).call(this):this.updateResult(),I(this,ze,If).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bh(O(this,ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bh(O(this,ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,I(this,ze,Zf).call(this),I(this,ze,Wf).call(this),O(this,ie).removeObserver(this)}setOptions(e){const t=this.options,n=O(this,ie);if(this.options=O(this,At).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof xn(this.options.enabled,O(this,ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");I(this,ze,$f).call(this),O(this,ie).setOptions(this.options),t._defaulted&&!Uc(this.options,t)&&O(this,At).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,ie),observer:this});const a=this.hasListeners();a&&gv(O(this,ie),n,this.options,t)&&I(this,ze,co).call(this),this.updateResult(),a&&(O(this,ie)!==n||xn(this.options.enabled,O(this,ie))!==xn(t.enabled,O(this,ie))||ri(this.options.staleTime,O(this,ie))!==ri(t.staleTime,O(this,ie)))&&I(this,ze,Qf).call(this);const r=I(this,ze,Xf).call(this);a&&(O(this,ie)!==n||xn(this.options.enabled,O(this,ie))!==xn(t.enabled,O(this,ie))||r!==O(this,Mr))&&I(this,ze,Yf).call(this,r)}getOptimisticResult(e){const t=O(this,At).getQueryCache().build(O(this,At),e),n=this.createResult(t,e);return qC(this,n)&&(V(this,vt,n),V(this,io,this.options),V(this,xl,O(this,ie).state)),n}getCurrentResult(){return O(this,vt)}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t==null||t(a),Reflect.get(n,a))})}trackProp(e){O(this,uo).add(e)}getCurrentQuery(){return O(this,ie)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=O(this,At).defaultQueryOptions(e),n=O(this,At).getQueryCache().build(O(this,At),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return I(this,ze,co).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,vt)))}createResult(e,t){var n;const a=O(this,ie),r=this.options,l=O(this,vt),i=O(this,xl),o=O(this,io),s=e!==a?e.state:O(this,yu),{state:u}=e;let f={...u},c=!1,d;if(t._optimisticResults){const R=this.hasListeners(),D=!R&&pv(e,t),j=R&&gv(e,a,t,r);(D||j)&&(f={...f,...N9(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:m}=f;d=f.data;let w=!1;if(t.placeholderData!==void 0&&d===void 0&&m==="pending"){let R;l!=null&&l.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData)?(R=l.data,w=!0):R=typeof t.placeholderData=="function"?t.placeholderData((n=O(this,so))==null?void 0:n.state.data,O(this,so)):t.placeholderData,R!==void 0&&(m="success",d=Kh(l==null?void 0:l.data,R,t),c=!0)}if(t.select&&d!==void 0&&!w)if(l&&d===(i==null?void 0:i.data)&&t.select===O(this,wu))d=O(this,oo);else try{V(this,wu,t.select),d=t.select(d),d=Kh(l==null?void 0:l.data,d,t),V(this,oo,d),V(this,Er,null)}catch(R){V(this,Er,R)}O(this,Er)&&(h=O(this,Er),d=O(this,oo),g=Date.now(),m="error");const v=f.fetchStatus==="fetching",b=m==="pending",y=m==="error",C=b&&v,S=d!==void 0,M={status:m,fetchStatus:f.fetchStatus,isPending:b,isSuccess:m==="success",isError:y,isInitialLoading:C,isLoading:C,data:d,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>s.dataUpdateCount||f.errorUpdateCount>s.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:y&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:y&&S,isStale:Ag(e,t),refetch:this.refetch,promise:O(this,Sr)};if(this.options.experimental_prefetchInRender){const R=A=>{M.status==="error"?A.reject(M.error):M.data!==void 0&&A.resolve(M.data)},D=()=>{const A=V(this,Sr,M.promise=Hh());R(A)},j=O(this,Sr);switch(j.status){case"pending":e.queryHash===a.queryHash&&R(j);break;case"fulfilled":(M.status==="error"||M.data!==j.value)&&D();break;case"rejected":(M.status!=="error"||M.error!==j.reason)&&D();break}}return M}updateResult(){const e=O(this,vt),t=this.createResult(O(this,ie),this.options);if(V(this,xl,O(this,ie).state),V(this,io,this.options),O(this,xl).data!==void 0&&V(this,so,O(this,ie)),Uc(t,e))return;V(this,vt,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!O(this,uo).size)return!0;const l=new Set(r??O(this,uo));return this.options.throwOnError&&l.add("error"),Object.keys(O(this,vt)).some(i=>{const o=i;return O(this,vt)[o]!==e[o]&&l.has(o)})};I(this,ze,fv).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&I(this,ze,If).call(this)}},At=new WeakMap,ie=new WeakMap,yu=new WeakMap,vt=new WeakMap,xl=new WeakMap,io=new WeakMap,Sr=new WeakMap,Er=new WeakMap,wu=new WeakMap,oo=new WeakMap,so=new WeakMap,Cl=new WeakMap,Sl=new WeakMap,Mr=new WeakMap,uo=new WeakMap,ze=new WeakSet,co=function(e){I(this,ze,$f).call(this);let t=O(this,ie).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(lt)),t},Qf=function(){I(this,ze,Zf).call(this);const e=ri(this.options.staleTime,O(this,ie));if(Zr||O(this,vt).isStale||!zh(e))return;const t=E9(O(this,vt).dataUpdatedAt,e)+1;V(this,Cl,setTimeout(()=>{O(this,vt).isStale||this.updateResult()},t))},Xf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,ie)):this.options.refetchInterval)??!1},Yf=function(e){I(this,ze,Wf).call(this),V(this,Mr,e),!(Zr||xn(this.options.enabled,O(this,ie))===!1||!zh(O(this,Mr))||O(this,Mr)===0)&&V(this,Sl,setInterval(()=>{(this.options.refetchIntervalInBackground||Ng.isFocused())&&I(this,ze,co).call(this)},O(this,Mr)))},If=function(){I(this,ze,Qf).call(this),I(this,ze,Yf).call(this,I(this,ze,Xf).call(this))},Zf=function(){O(this,Cl)&&(clearTimeout(O(this,Cl)),V(this,Cl,void 0))},Wf=function(){O(this,Sl)&&(clearInterval(O(this,Sl)),V(this,Sl,void 0))},$f=function(){const e=O(this,At).getQueryCache().build(O(this,At),this.options);if(e===O(this,ie))return;const t=O(this,ie);V(this,ie,e),V(this,yu,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},fv=function(e){je.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(O(this,vt))}),O(this,At).getQueryCache().notify({query:O(this,ie),type:"observerResultsUpdated"})})},hv);function BC(e,t){return xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function pv(e,t){return BC(e,t)||e.state.data!==void 0&&Bh(e,t,t.refetchOnMount)}function Bh(e,t,n){if(xn(t.enabled,e)!==!1){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&Ag(e,t)}return!1}function gv(e,t,n,a){return(e!==t||xn(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ag(e,n)}function Ag(e,t){return xn(t.enabled,e)!==!1&&e.isStaleByTime(ri(t.staleTime,e))}function qC(e,t){return!Uc(e.getCurrentResult(),t)}function mv(e,t){return e.filter(n=>!t.includes(n))}function FC(e,t,n){const a=e.slice(0);return a[t]=n,a}var fo,vn,ho,po,bn,Rr,xu,Cu,Su,$t,Jf,e0,t0,n0,a0,vv,VC=(vv=class extends ll{constructor(e,t,n){super(),G(this,$t),G(this,fo),G(this,vn),G(this,ho),G(this,po),G(this,bn),G(this,Rr),G(this,xu),G(this,Cu),G(this,Su,[]),V(this,fo,e),V(this,po,n),V(this,ho,[]),V(this,bn,[]),V(this,vn,[]),this.setQueries(t)}onSubscribe(){this.listeners.size===1&&O(this,bn).forEach(e=>{e.subscribe(t=>{I(this,$t,n0).call(this,e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,O(this,bn).forEach(e=>{e.destroy()})}setQueries(e,t){V(this,ho,e),V(this,po,t),je.batch(()=>{const n=O(this,bn),a=I(this,$t,t0).call(this,O(this,ho));V(this,Su,a),a.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const r=a.map(o=>o.observer),l=r.map(o=>o.getCurrentResult()),i=r.some((o,s)=>o!==n[s]);n.length===r.length&&!i||(V(this,bn,r),V(this,vn,l),this.hasListeners()&&(mv(n,r).forEach(o=>{o.destroy()}),mv(r,n).forEach(o=>{o.subscribe(s=>{I(this,$t,n0).call(this,o,s)})}),I(this,$t,a0).call(this)))})}getCurrentResult(){return O(this,vn)}getQueries(){return O(this,bn).map(e=>e.getCurrentQuery())}getObservers(){return O(this,bn)}getOptimisticResult(e,t){const n=I(this,$t,t0).call(this,e),a=n.map(r=>r.observer.getOptimisticResult(r.defaultedQueryOptions));return[a,r=>I(this,$t,e0).call(this,r??a,t),()=>I(this,$t,Jf).call(this,a,n)]}},fo=new WeakMap,vn=new WeakMap,ho=new WeakMap,po=new WeakMap,bn=new WeakMap,Rr=new WeakMap,xu=new WeakMap,Cu=new WeakMap,Su=new WeakMap,$t=new WeakSet,Jf=function(e,t){return t.map((n,a)=>{const r=e[a];return n.defaultedQueryOptions.notifyOnChangeProps?r:n.observer.trackResult(r,l=>{t.forEach(i=>{i.observer.trackProp(l)})})})},e0=function(e,t){return t?((!O(this,Rr)||O(this,vn)!==O(this,Cu)||t!==O(this,xu))&&(V(this,xu,t),V(this,Cu,O(this,vn)),V(this,Rr,kg(O(this,Rr),t(e)))),O(this,Rr)):e},t0=function(e){const t=new Map(O(this,bn).map(a=>[a.options.queryHash,a])),n=[];return e.forEach(a=>{const r=O(this,fo).defaultQueryOptions(a),l=t.get(r.queryHash);l?n.push({defaultedQueryOptions:r,observer:l}):n.push({defaultedQueryOptions:r,observer:new Gs(O(this,fo),r)})}),n},n0=function(e,t){const n=O(this,bn).indexOf(e);n!==-1&&(V(this,vn,FC(O(this,vn),n,t)),I(this,$t,a0).call(this))},a0=function(){var e;if(this.hasListeners()){const t=O(this,Rr),n=I(this,$t,Jf).call(this,O(this,vn),O(this,Su)),a=I(this,$t,e0).call(this,n,(e=O(this,po))==null?void 0:e.combine);t!==a&&je.batch(()=>{this.listeners.forEach(r=>{r(O(this,vn))})})}},vv),L9=class extends Gs{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:qc()})}getOptimisticResult(e){return e.behavior=qc(),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,a;const{state:r}=e,l=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:u}=l,f=(a=(n=r.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:a.direction,c=s&&f==="forward",d=i&&f==="forward",h=s&&f==="backward",g=i&&f==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:KC(t,r.data),hasPreviousPage:HC(t,r.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:g,isRefetchError:u&&!c&&!h,isRefetching:o&&!d&&!g}}},Or,Tr,jt,Ma,Dr,Eu,r0,bv,GC=(bv=class extends ll{constructor(e,t){super(),G(this,Dr),G(this,Or),G(this,Tr),G(this,jt),G(this,Ma),V(this,Or,e),this.setOptions(t),this.bindMethods(),I(this,Dr,Eu).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=O(this,Or).defaultMutationOptions(e),Uc(this.options,n)||O(this,Or).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,jt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&rr(n.mutationKey)!==rr(this.options.mutationKey)?this.reset():((t=O(this,jt))==null?void 0:t.state.status)==="pending"&&O(this,jt).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=O(this,jt))==null||e.removeObserver(this)}onMutationUpdate(e){I(this,Dr,Eu).call(this),I(this,Dr,r0).call(this,e)}getCurrentResult(){return O(this,Tr)}reset(){var e;(e=O(this,jt))==null||e.removeObserver(this),V(this,jt,void 0),I(this,Dr,Eu).call(this),I(this,Dr,r0).call(this)}mutate(e,t){var n;return V(this,Ma,t),(n=O(this,jt))==null||n.removeObserver(this),V(this,jt,O(this,Or).getMutationCache().build(O(this,Or),this.options)),O(this,jt).addObserver(this),O(this,jt).execute(e)}},Or=new WeakMap,Tr=new WeakMap,jt=new WeakMap,Ma=new WeakMap,Dr=new WeakSet,Eu=function(){var e;const t=((e=O(this,jt))==null?void 0:e.state)??A9();V(this,Tr,{...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){je.batch(()=>{var t,n,a,r,l,i,o,s;if(O(this,Ma)&&this.hasListeners()){const u=O(this,Tr).variables,f=O(this,Tr).context;(e==null?void 0:e.type)==="success"?((n=(t=O(this,Ma)).onSuccess)==null||n.call(t,e.data,u,f),(r=(a=O(this,Ma)).onSettled)==null||r.call(a,e.data,null,u,f)):(e==null?void 0:e.type)==="error"&&((i=(l=O(this,Ma)).onError)==null||i.call(l,e.error,u,f),(s=(o=O(this,Ma)).onSettled)==null||s.call(o,void 0,e.error,u,f))}this.listeners.forEach(u=>{u(O(this,Tr))})})},bv),_9=p.createContext(void 0),Qs=e=>{const t=p.useContext(_9);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QC=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(_9.Provider,{value:e,children:t})),z9=p.createContext(!1),P9=()=>p.useContext(z9);z9.Provider;function XC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var YC=p.createContext(XC()),K9=()=>p.useContext(YC),H9=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},U9=e=>{p.useEffect(()=>{e.clearReset()},[e])},B9=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||R9(n,[e.error,a])),jg=(e,t)=>t.state.data===void 0,q9=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},F9=(e,t)=>e.isLoading&&e.isFetching&&!t,qh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Fc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function V9({queries:e,...t},n){const a=Qs(n),r=P9(),l=K9(),i=p.useMemo(()=>e.map(g=>{const m=a.defaultQueryOptions(g);return m._optimisticResults=r?"isRestoring":"optimistic",m}),[e,a,r]);i.forEach(g=>{q9(g),H9(g,l)}),U9(l);const[o]=p.useState(()=>new VC(a,i,t)),[s,u,f]=o.getOptimisticResult(i,t.combine),c=!r&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(g=>c?o.subscribe(je.batchCalls(g)):lt,[o,c]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);const d=s.some((g,m)=>qh(i[m],g))?s.flatMap((g,m)=>{const w=i[m];if(w){const v=new Gs(a,w);if(qh(w,g))return Fc(w,v,l);F9(g,r)&&Fc(w,v,l)}return[]}):[];if(d.length>0)throw Promise.all(d);const h=s.find((g,m)=>{const w=i[m];return w&&B9({result:g,errorResetBoundary:l,throwOnError:w.throwOnError,query:a.getQueryCache().get(w.queryHash),suspense:w.suspense})});if(h!=null&&h.error)throw h.error;return u(f())}function Kd(e,t,n){var a,r,l,i,o;const s=Qs(n),u=P9(),f=K9(),c=s.defaultQueryOptions(e);(r=(a=s.getDefaultOptions().queries)==null?void 0:a._experimental_beforeQuery)==null||r.call(a,c),c._optimisticResults=u?"isRestoring":"optimistic",q9(c),H9(c,f),U9(f);const d=!s.getQueryCache().get(c.queryHash),[h]=p.useState(()=>new t(s,c)),g=h.getOptimisticResult(c),m=!u&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(w=>{const v=m?h.subscribe(je.batchCalls(w)):lt;return h.updateResult(),v},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(c)},[c,h]),qh(c,g))throw Fc(c,h,f);if(B9({result:g,errorResetBoundary:f,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw g.error;if((i=(l=s.getDefaultOptions().queries)==null?void 0:l._experimental_afterQuery)==null||i.call(l,c,g),c.experimental_prefetchInRender&&!Zr&&F9(g,u)){const w=d?Fc(c,h,f):(o=s.getQueryCache().get(c.queryHash))==null?void 0:o.promise;w==null||w.catch(lt).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?g:h.trackResult(g)}function IC(e,t){return Kd(e,Gs,t)}function ZC(e,t){return Kd({...e,enabled:!0,suspense:!0,throwOnError:jg,placeholderData:void 0},Gs,t)}function WC(e,t){return Kd({...e,enabled:!0,suspense:!0,throwOnError:jg},L9,t)}function $C(e,t){return V9({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:jg,enabled:!0,placeholderData:void 0}))},t)}function JC(e,t){const n=Qs(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function eS(e,t){const n=Qs(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function tS(e,t){const n=Qs(t),[a]=p.useState(()=>new GC(n,e));p.useEffect(()=>{a.setOptions(e)},[a,e]);const r=p.useSyncExternalStore(p.useCallback(i=>a.subscribe(je.batchCalls(i)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),l=p.useCallback((i,o)=>{a.mutate(i,o).catch(lt)},[a]);if(r.error&&R9(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:l,mutateAsync:r.mutate}}function nS(e,t){return Kd(e,L9,t)}function Hd(e){const t={subscribe(n){let a=null,r=!1,l=!1,i=!1;function o(){if(a===null){i=!0;return}l||(l=!0,typeof a=="function"?a():a&&a.unsubscribe())}return a=e({next(s){var u;r||(u=n.next)==null||u.call(n,s)},error(s){var u;r||(r=!0,(u=n.error)==null||u.call(n,s),o())},complete(){var s;r||(r=!0,(s=n.complete)==null||s.call(n),o())}}),i&&o(),{unsubscribe:o}},pipe(...n){return n.reduce(aS,t)}};return t}function aS(e,t){return t(e)}function rS(e){const t=new AbortController;return new Promise((n,a)=>{let r=!1;function l(){r||(r=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const i=e.subscribe({next(o){r=!0,n(o),l()},error(o){a(o)},complete(){t.abort(),l()}})})}function lS(e){return t=>{let n=0,a=null;const r=[];function l(){a||(a=t.subscribe({next(o){var s;for(const u of r)(s=u.next)==null||s.call(u,o)},error(o){var s;for(const u of r)(s=u.error)==null||s.call(u,o)},complete(){var o;for(const s of r)(o=s.complete)==null||o.call(s)}}))}function i(){if(n===0&&a){const o=a;a=null,o.unsubscribe()}}return Hd(o=>(n++,r.push(o),l(),{unsubscribe(){n--,i();const s=r.findIndex(u=>u===o);s>-1&&r.splice(s,1)}}))}}function iS(e){let t=e;const n=[],a=i=>{t!==void 0&&i.next(t),n.push(i)},r=i=>{n.splice(n.indexOf(i),1)},l=Hd(i=>(a(i),()=>{r(i)}));return l.next=i=>{if(t!==i){t=i;for(const o of n)o.next(i)}},l.get=()=>t,l}function oS(e){return Hd(t=>{function n(a=0,r=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:r,next(i){return n(a+1,i)}})}return n().subscribe(t)})}const G9=()=>{},yv=e=>{Object.freeze&&Object.freeze(e)};function Q9(e,t,n){var a,r;const l=t.join(".");return(a=n)[r=l]??(a[r]=new Proxy(G9,{get(i,o){if(!(typeof o!="string"||o==="then"))return Q9(e,[...t,o],n)},apply(i,o,s){const u=t[t.length-1];let f={args:s,path:t};return u==="call"?f={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:u==="apply"&&(f={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),yv(f.args),yv(f.path),e(f)}})),n[l]}const Ud=e=>Q9(e,[],Object.create(null)),Lg=e=>new Proxy(G9,{get(t,n){if(n!=="then")return e(n)}});function Wr(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const sS=typeof Symbol=="function"&&!!Symbol.asyncIterator;function X9(e){return sS&&Wr(e)&&Symbol.asyncIterator in e}function uS(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:{...e,error:n}}}return{ok:!0,result:{...e.result,...(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)}}}}class l0 extends Error{constructor(){super("Unable to transform response from server")}}function cS(e,t){let n;try{n=uS(e,t)}catch{throw new l0}if(!n.ok&&(!Wr(n.error.error)||typeof n.error.error.code!="number"))throw new l0;if(n.ok&&!Wr(n.result))throw new l0;return n}var wv,xv;(wv=Symbol).dispose??(wv.dispose=Symbol());(xv=Symbol).asyncDispose??(xv.asyncDispose=Symbol());var Cv,Sv,Ev,Mv,Rv,Ov;typeof window>"u"||"Deno"in window||((Sv=(Cv=globalThis.process)==null?void 0:Cv.env)==null?void 0:Sv.NODE_ENV)==="test"||(Mv=(Ev=globalThis.process)==null?void 0:Ev.env)!=null&&Mv.JEST_WORKER_ID||(Ov=(Rv=globalThis.process)==null?void 0:Rv.env)!=null&&Ov.VITEST_WORKER_ID;function Mu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dS(e){return e instanceof Wa||e instanceof Error&&e.name==="TRPCClientError"}function fS(e){return Wr(e)&&Wr(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function hS(e,t){return typeof e=="string"?e:Wr(e)&&typeof e.message=="string"?e.message:t}class Wa extends Error{static from(t,n={}){const a=t;return dS(a)?(n.meta&&(a.meta={...a.meta,...n.meta}),a):fS(a)?new Wa(a.error.message,{...n,result:a}):new Wa(hS(a,"Unknown error"),{...n,cause:a})}constructor(t,n){var a,r;const l=n==null?void 0:n.cause;super(t,{cause:l}),Mu(this,"cause",void 0),Mu(this,"shape",void 0),Mu(this,"data",void 0),Mu(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=l,this.shape=(a=n==null?void 0:n.result)==null?void 0:a.error,this.data=(r=n==null?void 0:n.result)==null?void 0:r.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Wa.prototype)}}function i0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Bd{$request(t){return oS({links:this.links,op:{...t,context:t.context??{},id:++this.requestId}}).pipe(lS())}async requestAsPromise(t){try{const n=this.$request(t);return(await rS(n)).result.data}catch(n){throw Wa.from(n)}}query(t,n,a){return this.requestAsPromise({type:"query",path:t,input:n,context:a==null?void 0:a.context,signal:a==null?void 0:a.signal})}mutation(t,n,a){return this.requestAsPromise({type:"mutation",path:t,input:n,context:a==null?void 0:a.context,signal:a==null?void 0:a.signal})}subscription(t,n,a){return this.$request({type:"subscription",path:t,input:n,context:a.context,signal:a.signal}).subscribe({next(r){var l,i,o,s;switch(r.result.type){case"state":{(l=a.onConnectionStateChange)==null||l.call(a,r.result);break}case"started":{(i=a.onStarted)==null||i.call(a,{context:r.context});break}case"stopped":{(o=a.onStopped)==null||o.call(a);break}case"data":case void 0:{(s=a.onData)==null||s.call(a,r.result.data);break}}},error(r){var l;(l=a.onError)==null||l.call(a,r)},complete(){var r;(r=a.onComplete)==null||r.call(a)}})}constructor(t){i0(this,"links",void 0),i0(this,"runtime",void 0),i0(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=t.links.map(n=>n(this.runtime))}}const Y9=Symbol.for("trpc_untypedClient"),pS={query:"query",mutate:"mutation",subscribe:"subscription"},gS=e=>pS[e];function I9(e){const t=Ud(({path:n,args:a})=>{const r=[...n],l=gS(r.pop()),i=r.join(".");return e[l](i,...a)});return Lg(n=>n===Y9?e:t[n])}function mS(e){const t=new Bd(e);return I9(t)}function _g(e){return e[Y9]}const Tv=e=>typeof e=="function";function vS(e){if(e)return e;if(typeof window<"u"&&Tv(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Tv(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}const Dv=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function kv(e){let t=null,n=null;const a=()=>{clearTimeout(n),n=null,t=null};function r(o){var s,u;const f=[[]];let c=0;for(;;){const d=o[c];if(!d)break;const h=f[f.length-1];if(d.aborted){(s=d.reject)==null||s.call(d,new Error("Aborted")),c++;continue}if(e.validate(h.concat(d).map(g=>g.key))){h.push(d),c++;continue}if(h.length===0){(u=d.reject)==null||u.call(d,new Error("Input is too big for a single dispatch")),c++;continue}f.push([])}return f}function l(){const o=r(t);a();for(const s of o){if(!s.length)continue;const u={items:s};for(const f of s)f.batch=u;e.fetch(u.items.map(f=>f.key)).then(async f=>{var c;await Promise.all(f.map(async(d,h)=>{var g,m;const w=u.items[h];try{const v=await Promise.resolve(d);(g=w.resolve)==null||g.call(w,v)}catch(v){(m=w.reject)==null||m.call(w,v)}w.batch=null,w.reject=null,w.resolve=null}));for(const d of u.items)(c=d.reject)==null||c.call(d,new Error("Missing result")),d.batch=null}).catch(f=>{var c;for(const d of u.items)(c=d.reject)==null||c.call(d,f),d.batch=null})}}function i(o){const s={aborted:!1,key:o,batch:null,resolve:Dv,reject:Dv},u=new Promise((f,c)=>{s.reject=c,s.resolve=f,t||(t=[]),t.push(s)});return n||(n=setTimeout(l)),u}return{load:i}}function bS(...e){const t=new AbortController,n=e.length;let a=0;const r=()=>{++a===n&&t.abort()};for(const l of e)l!=null&&l.aborted?r():l==null||l.addEventListener("abort",r,{once:!0});return t.signal}function yS(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}}}function wS(e){return{url:e.url.toString(),fetch:e.fetch,transformer:yS(e.transformer),methodOverride:e.methodOverride}}function xS(e){const t={};for(let n=0;n<e.length;n++){const a=e[n];t[n]=a}return t}const CS={query:"GET",mutation:"POST",subscription:"PATCH"};function Z9(e){return"input"in e?e.transformer.input.serialize(e.input):xS(e.inputs.map(t=>e.transformer.input.serialize(t)))}const W9=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const r=Z9(e);r!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(r))}`)}return a.length&&(n+="?"+a.join("&")),n},SS=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Z9(e);return t!==void 0?JSON.stringify(t):void 0},ES=e=>TS({...e,contentTypeHeader:"application/json",getUrl:W9,getBody:SS});class MS extends Error{constructor(){const t="AbortError";super(t),this.name=t,this.message=t}}const RS=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)==null||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new MS};async function OS(e){RS(e.signal);const t=e.getUrl(e),n=e.getBody(e),{type:a}=e,r=await(async()=>{const i=await e.headers();return Symbol.iterator in i?Object.fromEntries(i):i})(),l={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0,...r};return vS(e.fetch)(t,{method:e.methodOverride??CS[a],signal:e.signal,body:n,headers:l})}async function TS(e){const t={},n=await OS(e);t.response=n;const a=await n.json();return t.responseJSON=a,{json:a,meta:t}}function DS(e){const t=wS(e),n=e.maxURLLength??1/0,a=e.maxItems??1/0;return()=>{const r=s=>({validate(u){if(n===1/0&&a===1/0)return!0;if(u.length>a)return!1;const f=u.map(d=>d.path).join(","),c=u.map(d=>d.input);return W9({...t,type:s,path:f,inputs:c,signal:null}).length<=n},async fetch(u){const f=u.map(g=>g.path).join(","),c=u.map(g=>g.input),d=bS(...u.map(g=>g.signal)),h=await ES({...t,path:f,inputs:c,type:s,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:u}):e.headers:{}},signal:d});return(Array.isArray(h.json)?h.json:u.map(()=>h.json)).map(g=>({meta:h.meta,json:g}))}}),l=kv(r("query")),i=kv(r("mutation")),o={query:l,mutation:i};return({op:s})=>Hd(u=>{/* istanbul ignore if -- @preserve */if(s.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=o[s.type].load(s);let c;return f.then(d=>{c=d;const h=cS(d.json,t.transformer.output);if(!h.ok){u.error(Wa.from(h.error,{meta:d.meta}));return}u.next({context:d.meta,result:h.result}),u.complete()}).catch(d=>{u.error(Wa.from(d,{meta:c==null?void 0:c.meta}))}),()=>{}})}}const $9=(e,...t)=>typeof e=="function"?e(...t):e;function kS(){let e,t;return{promise:new Promise((n,a)=>{e=n,t=a}),resolve:e,reject:t}}async function NS(e){const t=await $9(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function AS(e){const t={method:"connectionParams",data:await $9(e)};return JSON.stringify(t)}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jS(e){const{promise:t,resolve:n,reject:a}=kS();return e.addEventListener("open",()=>{e.removeEventListener("error",a),n()}),e.addEventListener("error",a),t}function LS(e,{intervalMs:t,pongTimeoutMs:n}){let a,r;function l(){a=setTimeout(()=>{e.send("PING"),r=setTimeout(()=>{e.close()},n)},t)}function i(){clearTimeout(a),l()}function o(){clearTimeout(r),i()}e.addEventListener("open",l),e.addEventListener("message",({data:s})=>{clearTimeout(a),l(),s==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(a),clearTimeout(r)})}class Vc{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(){if(this.openPromise)return this.openPromise;this.id=++Vc.connectCount;const t=NS(this.urlOptions).then(n=>new this.WebSocketPonyfill(n));this.openPromise=t.then(async n=>{this.ws=n,n.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),this.keepAliveOpts.enabled&&LS(n,this.keepAliveOpts),n.addEventListener("close",()=>{this.ws===n&&(this.ws=null)}),await jS(n),this.urlOptions.connectionParams&&n.send(await AS(this.urlOptions.connectionParams))});try{await this.openPromise}finally{this.openPromise=null}}async close(){var t;try{await this.openPromise}finally{(t=this.ws)==null||t.close()}}constructor(t){if(_r(this,"id",++Vc.connectCount),_r(this,"WebSocketPonyfill",void 0),_r(this,"urlOptions",void 0),_r(this,"keepAliveOpts",void 0),_r(this,"wsObservable",iS(null)),_r(this,"openPromise",null),this.WebSocketPonyfill=t.WebSocketPonyfill??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}}_r(Vc,"connectCount",0);var ms=function(){return ms=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ms.apply(this,arguments)};function _S(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}function zS(e,t,n,a){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function o(f){try{u(a.next(f))}catch(c){i(c)}}function s(f){try{u(a.throw(f))}catch(c){i(c)}}function u(f){f.done?l(f.value):r(f.value).then(o,s)}u((a=a.apply(e,[])).next())})}function PS(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,r,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(f){return s([u,f])}}function s(u){if(a)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(a=1,r&&(l=u[0]&2?r.return:u[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,u[1])).done)return l;switch(r=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++,r=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(f){u=[6,f],r=0}finally{a=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Gr(e,t,n){if(n||arguments.length===2)for(var a=0,r=t.length,l;a<r;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}function _n(e,t,n){const a=e.flatMap(r=>r.split("."));if(!t&&(!n||n==="any"))return a.length?[a]:[];if(n==="infinite"&&Wr(t)&&("direction"in t||"cursor"in t)){const{cursor:r,direction:l,...i}=t;return[a,{input:i,type:"infinite"}]}return[a,{...typeof t<"u"&&t!==Kt&&{input:t},...n&&n!=="any"&&{type:n}}]}function ac(e){return _n(e,void 0,"any")}function KS(e){return Ud(({path:t,args:n})=>{const a=[...t],r=a.pop();if(r==="useMutation")return e[r](a,...n);if(r==="_def")return{path:a};const[l,...i]=n,o=i[0]||{};return e[r](a,l,o)})}const HS=["client","ssrContext","ssrState","abortOnUnmount"];var Nv;const US=(Nv=p.createContext)==null?void 0:Nv.call(_y,null),BS=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 qS(e){return Ud(t=>{const n=[...t.path],a=n.pop(),r=[...t.args],l=r.shift(),i=BS(a),o=_n(n,l,i);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,o,r[0]),queryOptions:()=>e.queryOptions(n,o,...r),fetch:()=>e.fetchQuery(o,...r),fetchInfinite:()=>e.fetchInfiniteQuery(o,r[0]),prefetch:()=>e.prefetchQuery(o,...r),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,r[0]),ensureData:()=>e.ensureQueryData(o,...r),invalidate:()=>e.invalidateQueries(o,...r),reset:()=>e.resetQueries(o,...r),refetch:()=>e.refetchQueries(o,...r),cancel:()=>e.cancelQuery(o,...r),setData:()=>{e.setQueryData(o,r[0],r[1])},setQueriesData:()=>e.setQueriesData(o,r[0],r[1],r[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,r[0],r[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)})}[a]()})}function FS(e){const t=I9(e.client),n=qS(e);return Lg(a=>{const r=a;return r==="client"?t:HS.includes(r)?e[r]:n[a]})}function ct(e,t,n){var a;const r=e[0];let l=(a=e[1])==null?void 0:a.input;return n&&(l={...l??{},...n.pageParam?{cursor:n.pageParam}:{},direction:n.direction}),[r.join("."),l,t==null?void 0:t.trpc]}function Fh(e){return{path:e.path.join(".")}}function go(e){const t=Fh(e);return p.useMemo(()=>t,[t])}async function J9(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const r=[];for await(const l of e)r.push(l),a.setState({data:[...r]});return r}function VS(e){const{client:t,queryClient:n}=e,a=t instanceof Bd?t:_g(t);return{infiniteQueryOptions:(r,l,i)=>{var o;const s=((o=l[1])==null?void 0:o.input)===Kt,u=async f=>{var c;const d={...i,trpc:{...i==null?void 0:i.trpc,...(c=i==null?void 0:i.trpc)!=null&&c.abortOnUnmount?{signal:f.signal}:{signal:null}}};return await a.query(...ct(l,d,{direction:f.direction,pageParam:f.pageParam}))};return Object.assign({...i,initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:s?Kt:u,initialPageParam:(i==null?void 0:i.initialCursor)??null},{trpc:Fh({path:r})})},queryOptions:(r,l,i)=>{var o;const s=((o=l[1])==null?void 0:o.input)===Kt,u=async f=>{var c;const d={...i,trpc:{...i==null?void 0:i.trpc,...(c=i==null?void 0:i.trpc)!=null&&c.abortOnUnmount?{signal:f.signal}:{signal:null}}},h=await a.query(...ct(l,d));return X9(h)?J9(h,n,l):h};return Object.assign({...i,initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:s?Kt:u},{trpc:Fh({path:r})})},fetchQuery:(r,l)=>n.fetchQuery({...l,queryKey:r,queryFn:()=>a.query(...ct(r,l))}),fetchInfiniteQuery:(r,l)=>n.fetchInfiniteQuery({...l,queryKey:r,queryFn:({pageParam:i,direction:o})=>a.query(...ct(r,l,{pageParam:i,direction:o})),initialPageParam:(l==null?void 0:l.initialCursor)??null}),prefetchQuery:(r,l)=>n.prefetchQuery({...l,queryKey:r,queryFn:()=>a.query(...ct(r,l))}),prefetchInfiniteQuery:(r,l)=>n.prefetchInfiniteQuery({...l,queryKey:r,queryFn:({pageParam:i,direction:o})=>a.query(...ct(r,l,{pageParam:i,direction:o})),initialPageParam:(l==null?void 0:l.initialCursor)??null}),ensureQueryData:(r,l)=>n.ensureQueryData({...l,queryKey:r,queryFn:()=>a.query(...ct(r,l))}),invalidateQueries:(r,l,i)=>n.invalidateQueries({...l,queryKey:r},i),resetQueries:(r,l,i)=>n.resetQueries({...l,queryKey:r},i),refetchQueries:(r,l,i)=>n.refetchQueries({...l,queryKey:r},i),cancelQuery:(r,l)=>n.cancelQueries({queryKey:r},l),setQueryData:(r,l,i)=>n.setQueryData(r,l,i),setQueriesData:(r,l,i,o)=>n.setQueriesData({...l,queryKey:r},i,o),getQueryData:r=>n.getQueryData(r),setInfiniteQueryData:(r,l,i)=>n.setQueryData(r,l,i),getInfiniteQueryData:r=>n.getQueryData(r),setMutationDefaults:(r,l)=>{const i=r[0],o=s=>a.mutation(...ct([i,{input:s}],e));return n.setMutationDefaults(r,typeof l=="function"?l({canonicalMutationFn:o}):l)},getMutationDefaults:r=>n.getMutationDefaults(r),isMutating:r=>n.isMutating({...r,exact:!0})}}function Av(e){const t=e instanceof Bd?e:_g(e);return Ud(n=>{const a=n.path,r=a.join("."),[l,i]=n.args;return{queryKey:_n(a,l,"query"),queryFn:()=>t.query(r,l,i==null?void 0:i.trpc),...i}})}const jv=(e,t)=>new Proxy(e,{get(n,a){return t(a),n[a]}});function GS(e){var t,n;const a=((n=(t=e==null?void 0:e.overrides)==null?void 0:t.useMutation)==null?void 0:n.onSuccess)??(y=>y.originalFn()),r=(e==null?void 0:e.context)??US,l=mS,i=y=>{const{abortOnUnmount:C=!1,queryClient:S,ssrContext:M}=y,[R,D]=p.useState(y.ssrState??!1),j=y.client instanceof Bd?y.client:_g(y.client),A=p.useMemo(()=>VS({client:j,queryClient:S}),[j,S]),k=p.useMemo(()=>({abortOnUnmount:C,queryClient:S,client:j,ssrContext:M??null,ssrState:R,...A}),[C,j,A,S,M,R]);return p.useEffect(()=>{D(P=>P?"mounted":!1)},[]),p.createElement(r.Provider,{value:k},y.children)};function o(){const y=p.useContext(r);if(!y)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return y}function s(y,C){var S;const{queryClient:M,ssrState:R}=o();return R&&R!=="mounted"&&((S=M.getQueryCache().find({queryKey:y}))==null?void 0:S.state.status)==="error"?{retryOnMount:!1,...C}:C}function u(y,C,S){var M,R;const D=o(),{abortOnUnmount:j,client:A,ssrState:k,queryClient:P,prefetchQuery:B}=D,z=_n(y,C,"query"),L=P.getQueryDefaults(z),T=C===Kt;typeof window>"u"&&k==="prepass"&&((M=S==null?void 0:S.trpc)==null?void 0:M.ssr)!==!1&&((S==null?void 0:S.enabled)??(L==null?void 0:L.enabled))!==!1&&!T&&!P.getQueryCache().find({queryKey:z})&&B(z,S);const N=s(z,{...L,...S}),_=((R=S==null?void 0:S.trpc)==null?void 0:R.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??j,q=IC({...N,queryKey:z,queryFn:T?C:async U=>{const H={...N,trpc:{...N==null?void 0:N.trpc,..._?{signal:U.signal}:{signal:null}}},F=await A.query(...ct(z,H));return X9(F)?J9(F,P,z):F}},P);return q.trpc=go({path:y}),q}function f(y,C,S){var M;const R=o(),D=_n(y,C,"query"),j=C===Kt,A=((M=S==null?void 0:S.trpc)==null?void 0:M.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??R.abortOnUnmount;JC({...S,queryKey:D,queryFn:j?C:k=>{const P={trpc:{...S==null?void 0:S.trpc,...A?{signal:k.signal}:{}}};return R.client.query(...ct(D,P))}})}function c(y,C,S){var M;const R=o(),D=_n(y,C,"query"),j=((M=S==null?void 0:S.trpc)==null?void 0:M.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??R.abortOnUnmount,A=ZC({...S,queryKey:D,queryFn:k=>{const P={...S,trpc:{...S==null?void 0:S.trpc,...j?{signal:k.signal}:{signal:null}}};return R.client.query(...ct(D,P))}},R.queryClient);return A.trpc=go({path:y}),[A.data,A]}function d(y,C){const{client:S,queryClient:M}=o(),R=ac(y),D=M.defaultMutationOptions(M.getMutationDefaults(R)),j=tS({...C,mutationKey:R,mutationFn:A=>S.mutation(...ct([y,{input:A}],C)),onSuccess(...A){return a({originalFn:()=>{var k,P;return((k=C==null?void 0:C.onSuccess)==null?void 0:k.call(C,...A))??((P=D==null?void 0:D.onSuccess)==null?void 0:P.call(D,...A))},queryClient:M,meta:(C==null?void 0:C.meta)??(D==null?void 0:D.meta)??{}})}},M);return j.trpc=go({path:y}),j}const h={data:void 0,error:null,status:"idle"},g={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function m(y,C,S){const M=(S==null?void 0:S.enabled)??C!==Kt,R=rr(_n(y,C,"any")),{client:D}=o(),j=p.useRef(S);p.useEffect(()=>{j.current=S});const[A]=p.useState(new Set([])),k=p.useCallback(_=>{A.add(_)},[A]),P=p.useRef(null),B=p.useCallback(_=>{const q=L.current,U=L.current=_(q);let H=!1;for(const F of A)if(q[F]!==U[F]){H=!0;break}H&&N(jv(U,k))},[k,A]),z=p.useCallback(()=>{var _;if((_=P.current)==null||_.unsubscribe(),!M){B(()=>({...h,reset:z}));return}B(()=>({...g,reset:z}));const q=D.subscription(y.join("."),C??void 0,{onStarted:()=>{var U,H;(H=(U=j.current).onStarted)==null||H.call(U),B(F=>({...F,status:"pending",error:null}))},onData:U=>{var H,F;(F=(H=j.current).onData)==null||F.call(H,U),B(Y=>({...Y,status:"pending",data:U,error:null}))},onError:U=>{var H,F;(F=(H=j.current).onError)==null||F.call(H,U),B(Y=>({...Y,status:"error",error:U}))},onConnectionStateChange:U=>{B(H=>{switch(U.state){case"idle":return{...H,status:U.state,error:null,data:void 0};case"connecting":return{...H,error:U.error,status:U.state};case"pending":return H}})},onComplete:()=>{var U,H;(H=(U=j.current).onComplete)==null||H.call(U),B(F=>({...F,status:"idle",error:null,data:void 0}))}});P.current=q},[D,R,M,B]);p.useEffect(()=>(z(),()=>{var _;(_=P.current)==null||_.unsubscribe()}),[z]);const L=p.useRef(M?{...g,reset:z}:{...h,reset:z}),[T,N]=p.useState(jv(L.current,k));return T}function w(y,C,S){var M,R;const{client:D,ssrState:j,prefetchInfiniteQuery:A,queryClient:k,abortOnUnmount:P}=o(),B=_n(y,C,"infinite"),z=k.getQueryDefaults(B),L=C===Kt;typeof window>"u"&&j==="prepass"&&((M=S==null?void 0:S.trpc)==null?void 0:M.ssr)!==!1&&((S==null?void 0:S.enabled)??(z==null?void 0:z.enabled))!==!1&&!L&&!k.getQueryCache().find({queryKey:B})&&A(B,{...z,...S});const T=s(B,{...z,...S}),N=((R=S==null?void 0:S.trpc)==null?void 0:R.abortOnUnmount)??P,_=nS({...T,initialPageParam:S.initialCursor??null,persister:S.persister,queryKey:B,queryFn:L?C:q=>{const U={...T,trpc:{...T==null?void 0:T.trpc,...N?{signal:q.signal}:{signal:null}}};return D.query(...ct(B,U,{pageParam:q.pageParam??S.initialCursor,direction:q.direction}))}},k);return _.trpc=go({path:y}),_}function v(y,C,S){var M;const R=o(),D=_n(y,C,"infinite"),j=R.queryClient.getQueryDefaults(D),A=C===Kt,k=s(D,{...j,...S}),P=((M=S==null?void 0:S.trpc)==null?void 0:M.abortOnUnmount)??R.abortOnUnmount;eS({...S,initialPageParam:S.initialCursor??null,queryKey:D,queryFn:A?C:B=>{const z={...k,trpc:{...k==null?void 0:k.trpc,...P?{signal:B.signal}:{}}};return R.client.query(...ct(D,z,{pageParam:B.pageParam??S.initialCursor,direction:B.direction}))}})}function b(y,C,S){var M;const R=o(),D=_n(y,C,"infinite"),j=R.queryClient.getQueryDefaults(D),A=s(D,{...j,...S}),k=((M=S==null?void 0:S.trpc)==null?void 0:M.abortOnUnmount)??R.abortOnUnmount,P=WC({...S,initialPageParam:S.initialCursor??null,queryKey:D,queryFn:B=>{const z={...A,trpc:{...A==null?void 0:A.trpc,...k?{signal:B.signal}:{}}};return R.client.query(...ct(D,z,{pageParam:B.pageParam??S.initialCursor,direction:B.direction}))}},R.queryClient);return P.trpc=go({path:y}),[P.data,P]}return{Provider:i,createClient:l,useContext:o,useUtils:o,useQuery:u,usePrefetchQuery:f,useSuspenseQuery:c,useQueries:(y,C)=>{var S;const{ssrState:M,queryClient:R,prefetchQuery:D,client:j}=o(),A=Av(j),k=y(A);if(typeof window>"u"&&M==="prepass")for(const P of k){const B=P;((S=B.trpc)==null?void 0:S.ssr)!==!1&&!R.getQueryCache().find({queryKey:B.queryKey})&&D(B.queryKey,B)}return V9({queries:k.map(P=>({...P,queryKey:P.queryKey})),combine:C==null?void 0:C.combine},R)},useSuspenseQueries:y=>{const{queryClient:C,client:S}=o(),M=Av(S),R=y(M),D=$C({queries:R.map(j=>({...j,queryFn:j.queryFn,queryKey:j.queryKey}))},C);return[D.map(j=>j.data),D]},useMutation:d,useSubscription:m,useInfiniteQuery:w,usePrefetchInfiniteQuery:v,useSuspenseInfiniteQuery:b}}function QS(e){const t=KS(e);return Lg(n=>n==="useContext"||n==="useUtils"?()=>{const a=e.useUtils();return p.useMemo(()=>FS(a),[a])}:e.hasOwnProperty(n)?e[n]:t[n])}function XS(e){const t=GS(e);return QS(t)}var we=XS({overrides:{useMutation:{onSuccess:function(e){return zS(this,void 0,void 0,function(){return PS(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]}})})}}}}),zg={};Object.defineProperty(zg,"__esModule",{value:!0});zg.parse=eE;zg.serialize=tE;const YS=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,IS=/^[\u0021-\u003A\u003C-\u007E]*$/,ZS=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,WS=/^[\u0020-\u003A\u003D-\u007E]*$/,$S=Object.prototype.toString,JS=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function eE(e,t){const n=new JS,a=e.length;if(a<2)return n;const r=(t==null?void 0:t.decode)||nE;let l=0;do{const i=e.indexOf("=",l);if(i===-1)break;const o=e.indexOf(";",l),s=o===-1?a:o;if(i>s){l=e.lastIndexOf(";",i-1)+1;continue}const u=Lv(e,l,i),f=_v(e,i,u),c=e.slice(u,f);if(n[c]===void 0){let d=Lv(e,i+1,s),h=_v(e,s,d);const g=r(e.slice(d,h));n[c]=g}l=s+1}while(l<a);return n}function Lv(e,t,n){do{const a=e.charCodeAt(t);if(a!==32&&a!==9)return t}while(++t<n);return n}function _v(e,t,n){for(;t>n;){const a=e.charCodeAt(--t);if(a!==32&&a!==9)return t+1}return n}function tE(e,t,n){const a=(n==null?void 0:n.encode)||encodeURIComponent;if(!YS.test(e))throw new TypeError(`argument name is invalid: ${e}`);const r=a(t);if(!IS.test(r))throw new TypeError(`argument val is invalid: ${t}`);let l=e+"="+r;if(!n)return l;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);l+="; Max-Age="+n.maxAge}if(n.domain){if(!ZS.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);l+="; Domain="+n.domain}if(n.path){if(!WS.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);l+="; Path="+n.path}if(n.expires){if(!aE(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);l+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.partitioned&&(l+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return l}function nE(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function aE(e){return $S.call(e)==="[object Date]"}/**
58
- * react-router v7.6.1
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.4
59
59
  *
60
60
  * Copyright (c) Remix Software Inc.
61
61
  *
@@ -63,15 +63,20 @@ Error generating stack: `+n.message+`
63
63
  * LICENSE.md file in the root directory of this source tree.
64
64
  *
65
65
  * @license MIT
66
- */var zv="popstate";function rE(e={}){function t(a,r){let{pathname:l,search:i,hash:o}=a.location;return Vh("",{pathname:l,search:i,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(a,r){return typeof r=="string"?r:vs(r)}return iE(t,n,null,e)}function De(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lE(){return Math.random().toString(36).substring(2,10)}function Pv(e,t){return{usr:e.state,key:e.key,idx:t}}function Vh(e,t,n=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?_i(t):t,state:n,key:t&&t.key||a||lE()}}function vs({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 _i(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function iE(e,t,n,a={}){let{window:r=document.defaultView,v5Compat:l=!1}=a,i=r.history,o="POP",s=null,u=f();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function f(){return(i.state||{idx:null}).idx}function c(){o="POP";let w=f(),v=w==null?null:w-u;u=w,s&&s({action:o,location:m.location,delta:v})}function d(w,v){o="PUSH";let b=Vh(m.location,w,v);u=f()+1;let y=Pv(b,u),C=m.createHref(b);try{i.pushState(y,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;r.location.assign(C)}l&&s&&s({action:o,location:m.location,delta:1})}function h(w,v){o="REPLACE";let b=Vh(m.location,w,v);u=f();let y=Pv(b,u),C=m.createHref(b);i.replaceState(y,"",C),l&&s&&s({action:o,location:m.location,delta:0})}function g(w){return oE(w)}let m={get action(){return o},get location(){return e(r,i)},listen(w){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(zv,c),s=w,()=>{r.removeEventListener(zv,c),s=null}},createHref(w){return t(r,w)},createURL:g,encodeLocation(w){let v=g(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(w){return i.go(w)}};return m}function oE(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),De(n,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:vs(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}function e8(e,t,n="/"){return sE(e,t,n,!1)}function sE(e,t,n,a){let r=typeof t=="string"?_i(t):t,l=ma(r.pathname||"/",n);if(l==null)return null;let i=t8(e);uE(i);let o=null;for(let s=0;o==null&&s<i.length;++s){let u=wE(l);o=bE(i[s],u,a)}return o}function t8(e,t=[],n=[],a=""){let r=(l,i,o)=>{let s={relativePath:o===void 0?l.path||"":o,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(De(s.relativePath.startsWith(a),`Absolute route path "${s.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(a.length));let u=da([a,s.relativePath]),f=n.concat(s);l.children&&l.children.length>0&&(De(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),t8(l.children,t,f,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:mE(u,l.index),routesMeta:f})};return e.forEach((l,i)=>{var o;if(l.path===""||!((o=l.path)!=null&&o.includes("?")))r(l,i);else for(let s of n8(l.path))r(l,i,s)}),t}function n8(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),l=n.replace(/\?$/,"");if(a.length===0)return r?[l,""]:[l];let i=n8(a.join("/")),o=[];return o.push(...i.map(s=>s===""?l:[l,s].join("/"))),r&&o.push(...i),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function uE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vE(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var cE=/^:[\w-]+$/,dE=3,fE=2,hE=1,pE=10,gE=-2,Kv=e=>e==="*";function mE(e,t){let n=e.split("/"),a=n.length;return n.some(Kv)&&(a+=gE),t&&(a+=fE),n.filter(r=>!Kv(r)).reduce((r,l)=>r+(cE.test(l)?dE:l===""?hE:pE),a)}function vE(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function bE(e,t,n=!1){let{routesMeta:a}=e,r={},l="/",i=[];for(let o=0;o<a.length;++o){let s=a[o],u=o===a.length-1,f=l==="/"?t:t.slice(l.length)||"/",c=Gc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),d=s.route;if(!c&&u&&n&&!a[a.length-1].route.index&&(c=Gc({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!c)return null;Object.assign(r,c.params),i.push({params:r,pathname:da([l,c.pathname]),pathnameBase:EE(da([l,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(l=da([l,c.pathnameBase]))}return i}function Gc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=yE(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let l=r[0],i=l.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:a.reduce((s,{paramName:u,isOptional:f},c)=>{if(u==="*"){let h=o[c]||"";i=l.slice(0,l.length-h.length).replace(/(.)\/+$/,"$1")}const d=o[c];return f&&!d?s[u]=void 0:s[u]=(d||"").replace(/%2F/g,"/"),s},{}),pathname:l,pathnameBase:i,pattern:e}}function yE(e,t=!1,n=!0){Mn(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 a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,o)=>(a.push({paramName:i,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function wE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mn(!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 ma(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function xE(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?_i(e):e;return{pathname:n?n.startsWith("/")?n:CE(n,t):t,search:ME(a),hash:RE(r)}}function CE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function o0(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. 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 SE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function a8(e){let t=SE(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function r8(e,t,n,a=!1){let r;typeof e=="string"?r=_i(e):(r={...e},De(!r.pathname||!r.pathname.includes("?"),o0("?","pathname","search",r)),De(!r.pathname||!r.pathname.includes("#"),o0("#","pathname","hash",r)),De(!r.search||!r.search.includes("#"),o0("#","search","hash",r)));let l=e===""||r.pathname==="",i=l?"/":r.pathname,o;if(i==null)o=n;else{let c=t.length-1;if(!a&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),c-=1;r.pathname=d.join("/")}o=c>=0?t[c]:"/"}let s=xE(r,o),u=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}var da=e=>e.join("/").replace(/\/\/+/g,"/"),EE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ME=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var l8=["POST","PUT","PATCH","DELETE"];new Set(l8);var TE=["GET",...l8];new Set(TE);var zi=p.createContext(null);zi.displayName="DataRouter";var qd=p.createContext(null);qd.displayName="DataRouterState";var i8=p.createContext({isTransitioning:!1});i8.displayName="ViewTransition";var DE=p.createContext(new Map);DE.displayName="Fetchers";var kE=p.createContext(null);kE.displayName="Await";var Gn=p.createContext(null);Gn.displayName="Navigation";var Xs=p.createContext(null);Xs.displayName="Location";var Qn=p.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var Pg=p.createContext(null);Pg.displayName="RouteError";function NE(e,{relative:t}={}){De(Ys(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=p.useContext(Gn),{hash:r,pathname:l,search:i}=Is(e,{relative:t}),o=l;return n!=="/"&&(o=l==="/"?n:da([n,l])),a.createHref({pathname:o,search:i,hash:r})}function Ys(){return p.useContext(Xs)!=null}function cr(){return De(Ys(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Xs).location}var o8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s8(e){p.useContext(Gn).static||p.useLayoutEffect(e)}function u8(){let{isDataRoute:e}=p.useContext(Qn);return e?GE():AE()}function AE(){De(Ys(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(zi),{basename:t,navigator:n}=p.useContext(Gn),{matches:a}=p.useContext(Qn),{pathname:r}=cr(),l=JSON.stringify(a8(a)),i=p.useRef(!1);return s8(()=>{i.current=!0}),p.useCallback((o,s={})=>{if(Mn(i.current,o8),!i.current)return;if(typeof o=="number"){n.go(o);return}let u=r8(o,JSON.parse(l),r,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:da([t,u.pathname])),(s.replace?n.replace:n.push)(u,s.state,s)},[t,n,l,r,e])}p.createContext(null);function jE(){let{matches:e}=p.useContext(Qn),t=e[e.length-1];return t?t.params:{}}function Is(e,{relative:t}={}){let{matches:n}=p.useContext(Qn),{pathname:a}=cr(),r=JSON.stringify(a8(n));return p.useMemo(()=>r8(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function LE(e,t){return c8(e,t)}function c8(e,t,n,a){var r;De(Ys(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=p.useContext(Gn),{matches:i}=p.useContext(Qn),o=i[i.length-1],s=o?o.params:{},u=o?o.pathname:"/",f=o?o.pathnameBase:"/",c=o&&o.route;{let b=c&&c.path||"";d8(u,!c||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${b}">) 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 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.
67
67
 
68
- Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let d=cr(),h;if(t){let b=typeof t=="string"?_i(t):t;De(f==="/"||((r=b.pathname)==null?void 0:r.startsWith(f)),`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 "${f}" but pathname "${b.pathname}" was given in the \`location\` prop.`),h=b}else h=d;let g=h.pathname||"/",m=g;if(f!=="/"){let b=f.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=e8(e,{pathname:m});Mn(c||w!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Mn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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=HE(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:da([f,l.encodeLocation?l.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?f:da([f,l.encodeLocation?l.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,a);return t&&v?p.createElement(Xs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},v):v}function _E(){let e=VE(),t=OE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},l={padding:"2px 4px",backgroundColor:a},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:r},n):null,i)}var zE=p.createElement(_E,null),PE=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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?p.createElement(Qn.Provider,{value:this.props.routeContext},p.createElement(Pg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function KE({routeContext:e,match:t,children:n}){let a=p.useContext(zi);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Qn.Provider,{value:e},n)}function HE(e,t=[],n=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 r=e,l=n==null?void 0:n.errors;if(l!=null){let s=r.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id])!==void 0);De(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),r=r.slice(0,Math.min(r.length,s+1))}let i=!1,o=-1;if(n)for(let s=0;s<r.length;s++){let u=r[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=s),u.route.id){let{loaderData:f,errors:c}=n,d=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!c||c[u.route.id]===void 0);if(u.route.lazy||d){i=!0,o>=0?r=r.slice(0,o+1):r=[r[0]];break}}}return r.reduceRight((s,u,f)=>{let c,d=!1,h=null,g=null;n&&(c=l&&u.route.id?l[u.route.id]:void 0,h=u.route.errorElement||zE,i&&(o<0&&f===0?(d8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,g=null):o===f&&(d=!0,g=u.route.hydrateFallbackElement||null)));let m=t.concat(r.slice(0,f+1)),w=()=>{let v;return c?v=h:d?v=g:u.route.Component?v=p.createElement(u.route.Component,null):u.route.element?v=u.route.element:v=s,p.createElement(KE,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:v})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?p.createElement(PE,{location:n.location,revalidation:n.revalidation,component:h,error:c,children:w(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):w()},null)}function Kg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UE(e){let t=p.useContext(zi);return De(t,Kg(e)),t}function BE(e){let t=p.useContext(qd);return De(t,Kg(e)),t}function qE(e){let t=p.useContext(Qn);return De(t,Kg(e)),t}function Hg(e){let t=qE(e),n=t.matches[t.matches.length-1];return De(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function FE(){return Hg("useRouteId")}function VE(){var e;let t=p.useContext(Pg),n=BE("useRouteError"),a=Hg("useRouteError");return t!==void 0?t:(e=n.errors)==null?void 0:e[a]}function GE(){let{router:e}=UE("useNavigate"),t=Hg("useNavigate"),n=p.useRef(!1);return s8(()=>{n.current=!0}),p.useCallback(async(a,r={})=>{Mn(n.current,o8),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...r}))},[e,t])}var Hv={};function d8(e,t,n){!t&&!Hv[e]&&(Hv[e]=!0,Mn(!1,n))}p.memo(QE);function QE({routes:e,future:t,state:n}){return c8(e,void 0,n,t)}function Gh(e){De(!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 XE({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:r,static:l=!1}){De(!Ys(),"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:r,static:l,future:{}}),[i,r,l]);typeof n=="string"&&(n=_i(n));let{pathname:s="/",search:u="",hash:f="",state:c=null,key:d="default"}=n,h=p.useMemo(()=>{let g=ma(s,i);return g==null?null:{location:{pathname:g,search:u,hash:f,state:c,key:d},navigationType:a}},[i,s,u,f,c,d,a]);return Mn(h!=null,`<Router basename="${i}"> is not able to match the URL "${s}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:p.createElement(Gn.Provider,{value:o},p.createElement(Xs.Provider,{children:t,value:h}))}function YE({children:e,location:t}){return LE(Qh(e),t)}function Qh(e,t=[]){let n=[];return p.Children.forEach(e,(a,r)=>{if(!p.isValidElement(a))return;let l=[...t,r];if(a.type===p.Fragment){n.push.apply(n,Qh(a.props.children,l));return}De(a.type===Gh,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),De(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||l.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=Qh(a.props.children,l)),n.push(i)}),n}var rc="get",lc="application/x-www-form-urlencoded";function Fd(e){return e!=null&&typeof e.tagName=="string"}function IE(e){return Fd(e)&&e.tagName.toLowerCase()==="button"}function ZE(e){return Fd(e)&&e.tagName.toLowerCase()==="form"}function WE(e){return Fd(e)&&e.tagName.toLowerCase()==="input"}function $E(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JE(e,t){return e.button===0&&(!t||t==="_self")&&!$E(e)}function Xh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(r=>[n,r]):[[n,a]])},[]))}function eM(e,t){let n=Xh(e);return t&&t.forEach((a,r)=>{n.has(r)||t.getAll(r).forEach(l=>{n.append(r,l)})}),n}var Ru=null;function tM(){if(Ru===null)try{new FormData(document.createElement("form"),0),Ru=!1}catch{Ru=!0}return Ru}var nM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function s0(e){return e!=null&&!nM.has(e)?(Mn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lc}"`),null):e}function aM(e,t){let n,a,r,l,i;if(ZE(e)){let o=e.getAttribute("action");a=o?ma(o,t):null,n=e.getAttribute("method")||rc,r=s0(e.getAttribute("enctype"))||lc,l=new FormData(e)}else if(IE(e)||WE(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(a=s?ma(s,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||rc,r=s0(e.getAttribute("formenctype"))||s0(o.getAttribute("enctype"))||lc,l=new FormData(o,e),!tM()){let{name:u,type:f,value:c}=e;if(f==="image"){let d=u?`${u}.`:"";l.append(`${d}x`,"0"),l.append(`${d}y`,"0")}else u&&l.append(u,c)}}else{if(Fd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=rc,a=null,r=lc,i=e}return l&&r==="text/plain"&&(i=l,l=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:l,body:i}}function Ug(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function rM(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 lM(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 iM(e,t,n){let a=await Promise.all(e.map(async r=>{let l=t.routes[r.route.id];if(l){let i=await rM(l,n);return i.links?i.links():[]}return[]}));return cM(a.flat(1).filter(lM).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Uv(e,t,n,a,r,l){let i=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,o=(s,u)=>{var f;return n[u].pathname!==s.pathname||((f=n[u].route.path)==null?void 0:f.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 f;let c=a.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(i(s,u)||o(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function oM(e,t,{includeHydrateFallback:n}={}){return sM(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let l=[r.module];return r.clientActionModule&&(l=l.concat(r.clientActionModule)),r.clientLoaderModule&&(l=l.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(l=l.concat(r.hydrateFallbackModule)),r.imports&&(l=l.concat(r.imports)),l}).flat(1))}function sM(e){return[...new Set(e)]}function uM(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function cM(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let l=JSON.stringify(uM(r));return n.has(l)||(n.add(l),a.push({key:l,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dM=new Set([100,101,204,205]);function fM(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&ma(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function f8(){let e=p.useContext(zi);return Ug(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hM(){let e=p.useContext(qd);return Ug(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bg=p.createContext(void 0);Bg.displayName="FrameworkContext";function h8(){let e=p.useContext(Bg);return Ug(e,"You must render this element inside a <HydratedRouter> element"),e}function pM(e,t){let n=p.useContext(Bg),[a,r]=p.useState(!1),[l,i]=p.useState(!1),{onFocus:o,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,d=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let m=v=>{v.forEach(b=>{i(b.isIntersecting)})},w=new IntersectionObserver(m,{threshold:.5});return d.current&&w.observe(d.current),()=>{w.disconnect()}}},[e]),p.useEffect(()=>{if(a){let m=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(m)}}},[a]);let h=()=>{r(!0)},g=()=>{r(!1),i(!1)};return n?e!=="intent"?[l,d,{}]:[l,d,{onFocus:mo(o,h),onBlur:mo(s,g),onMouseEnter:mo(u,h),onMouseLeave:mo(f,g),onTouchStart:mo(c,h)}]:[!1,d,{}]}function mo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function gM({page:e,...t}){let{router:n}=f8(),a=p.useMemo(()=>e8(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?p.createElement(vM,{page:e,matches:a,...t}):null}function mM(e){let{manifest:t,routeModules:n}=h8(),[a,r]=p.useState([]);return p.useEffect(()=>{let l=!1;return iM(e,t,n).then(i=>{l||r(i)}),()=>{l=!0}},[e,t,n]),a}function vM({page:e,matches:t,...n}){let a=cr(),{manifest:r,routeModules:l}=h8(),{basename:i}=f8(),{loaderData:o,matches:s}=hM(),u=p.useMemo(()=>Uv(e,t,s,r,a,"data"),[e,t,s,r,a]),f=p.useMemo(()=>Uv(e,t,s,r,a,"assets"),[e,t,s,r,a]),c=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let g=new Set,m=!1;if(t.forEach(v=>{var b;let y=r.routes[v.route.id];!y||!y.hasLoader||(!u.some(C=>C.route.id===v.route.id)&&v.route.id in o&&(b=l[v.route.id])!=null&&b.shouldRevalidate||y.hasClientLoader?m=!0:g.add(v.route.id))}),g.size===0)return[];let w=fM(e,i);return m&&g.size>0&&w.searchParams.set("_routes",t.filter(v=>g.has(v.route.id)).map(v=>v.route.id).join(",")),[w.pathname+w.search]},[i,o,a,r,u,t,e,l]),d=p.useMemo(()=>oM(f,r),[f,r]),h=mM(f);return p.createElement(p.Fragment,null,c.map(g=>p.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),d.map(g=>p.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),h.map(({key:g,link:m})=>p.createElement("link",{key:g,...m})))}function bM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var p8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{p8&&(window.__reactRouterVersion="7.6.1")}catch{}function yM({basename:e,children:t,window:n}){let a=p.useRef();a.current==null&&(a.current=rE({window:n,v5Compat:!0}));let r=a.current,[l,i]=p.useState({action:r.action,location:r.location}),o=p.useCallback(s=>{p.startTransition(()=>i(s))},[i]);return p.useLayoutEffect(()=>r.listen(o),[r,o]),p.createElement(XE,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:r})}var g8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vd=p.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:a,reloadDocument:r,replace:l,state:i,target:o,to:s,preventScrollReset:u,viewTransition:f,...c},d){let{basename:h}=p.useContext(Gn),g=typeof s=="string"&&g8.test(s),m,w=!1;if(typeof s=="string"&&g&&(m=s,p8))try{let D=new URL(window.location.href),j=s.startsWith("//")?new URL(D.protocol+s):new URL(s),A=ma(j.pathname,h);j.origin===D.origin&&A!=null?s=A+j.search+j.hash:w=!0}catch{Mn(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=NE(s,{relative:a}),[b,y,C]=pM(n,c),S=CM(s,{replace:l,state:i,target:o,preventScrollReset:u,relative:a,viewTransition:f});function M(D){e&&e(D),D.defaultPrevented||S(D)}let R=p.createElement("a",{...c,...C,href:m||v,onClick:w||r?e:M,ref:bM(d,y),target:o,"data-discover":!g&&t==="render"?"true":void 0});return b&&!g?p.createElement(p.Fragment,null,R,p.createElement(gM,{page:v})):R});Vd.displayName="Link";var m8=p.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:a=!1,style:r,to:l,viewTransition:i,children:o,...s},u){let f=Is(l,{relative:s.relative}),c=cr(),d=p.useContext(qd),{navigator:h,basename:g}=p.useContext(Gn),m=d!=null&&TM(f)&&i===!0,w=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,v=c.pathname,b=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,w=w.toLowerCase()),b&&g&&(b=ma(b,g)||b);const y=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let C=v===w||!a&&v.startsWith(w)&&v.charAt(y)==="/",S=b!=null&&(b===w||!a&&b.startsWith(w)&&b.charAt(w.length)==="/"),M={isActive:C,isPending:S,isTransitioning:m},R=C?e:void 0,D;typeof n=="function"?D=n(M):D=[n,C?"active":null,S?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let j=typeof r=="function"?r(M):r;return p.createElement(Vd,{...s,"aria-current":R,className:D,ref:u,style:j,to:l,viewTransition:i},typeof o=="function"?o(M):o)});m8.displayName="NavLink";var wM=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:l,method:i=rc,action:o,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:c,...d},h)=>{let g=RM(),m=OM(o,{relative:u}),w=i.toLowerCase()==="get"?"get":"post",v=typeof o=="string"&&g8.test(o),b=y=>{if(s&&s(y),y.defaultPrevented)return;y.preventDefault();let C=y.nativeEvent.submitter,S=(C==null?void 0:C.getAttribute("formmethod"))||i;g(C||y.currentTarget,{fetcherKey:t,method:S,navigate:n,replace:r,state:l,relative:u,preventScrollReset:f,viewTransition:c})};return p.createElement("form",{ref:h,method:w,action:m,onSubmit:a?s:b,...d,"data-discover":!v&&e==="render"?"true":void 0})});wM.displayName="Form";function xM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v8(e){let t=p.useContext(zi);return De(t,xM(e)),t}function CM(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:l,viewTransition:i}={}){let o=u8(),s=cr(),u=Is(e,{relative:l});return p.useCallback(f=>{if(JE(f,t)){f.preventDefault();let c=n!==void 0?n:vs(s)===vs(u);o(e,{replace:c,state:a,preventScrollReset:r,relative:l,viewTransition:i})}},[s,o,u,n,a,t,e,r,l,i])}function SM(e){Mn(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(Xh(e)),n=p.useRef(!1),a=cr(),r=p.useMemo(()=>eM(a.search,n.current?null:t.current),[a.search]),l=u8(),i=p.useCallback((o,s)=>{const u=Xh(typeof o=="function"?o(r):o);n.current=!0,l("?"+u,s)},[l,r]);return[r,i]}var EM=0,MM=()=>`__${String(++EM)}__`;function RM(){let{router:e}=v8("useSubmit"),{basename:t}=p.useContext(Gn),n=FE();return p.useCallback(async(a,r={})=>{let{action:l,method:i,encType:o,formData:s,body:u}=aM(a,t);if(r.navigate===!1){let f=r.fetcherKey||MM();await e.fetch(f,n,r.action||l,{preventScrollReset:r.preventScrollReset,formData:s,body:u,formMethod:r.method||i,formEncType:r.encType||o,flushSync:r.flushSync})}else await e.navigate(r.action||l,{preventScrollReset:r.preventScrollReset,formData:s,body:u,formMethod:r.method||i,formEncType:r.encType||o,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function OM(e,{relative:t}={}){let{basename:n}=p.useContext(Gn),a=p.useContext(Qn);De(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),l={...Is(e||".",{relative:t})},i=cr();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(f=>f).forEach(f=>o.append("index",f));let u=o.toString();l.search=u?`?${u}`:""}}return(!e||e===".")&&r.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:da([n,l.pathname])),vs(l)}function TM(e,t={}){let n=p.useContext(i8);De(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=v8("useViewTransitionState"),r=Is(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=ma(n.currentLocation.pathname,a)||n.currentLocation.pathname,i=ma(n.nextLocation.pathname,a)||n.nextLocation.pathname;return Gc(r.pathname,i)!=null||Gc(r.pathname,l)!=null}[...dM];var Qc=function(e){var t=e.className;return x.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function xe(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,l;for(l=0;l<a.length;l++)r=a[l],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var DM=["color"],kM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,DM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),NM=["color"],b8=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,NM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),AM=["color"],jM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,AM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),LM=["color"],wi=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,LM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),_M=["color"],qg=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,_M);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),zM=["color"],y8=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,zM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),PM=["color"],KM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,PM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),HM=["color"],UM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,HM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),BM=["color"],qM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,BM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),FM=["color"],Yh=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,FM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),VM=["color"],GM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,VM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),QM=["color"],XM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,QM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),YM=["color"],IM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,YM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),ZM=["color"],WM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,ZM);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),$M=["color"],JM=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(e,$M);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),eR=["color"],tR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),nR=["color"],aR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),rR=["color"],lR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),iR=["color"],w8=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),oR=["color"],x8=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),sR=["color"],uR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),cR=["color"],C8=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),dR=["color"],fR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,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:a,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:a,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:a,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:a,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:a,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:a,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:a,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:a,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:a,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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),hR=["color"],Fg=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{ref:t}),p.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),pR=["color"],gR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),mR=["color"],vR=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))}),bR=["color"],Pi=p.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,r=xe(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"},r,{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:a,fillRule:"evenodd",clipRule:"evenodd"}))});p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);const S8=p.createContext({}),se=typeof document<"u"?E.useLayoutEffect:()=>{};function dt(e){const t=p.useRef(null);return se(()=>{t.current=e},[e]),p.useCallback((...n)=>{const a=t.current;return a==null?void 0:a(...n)},[])}function yR(e){let[t,n]=p.useState(e),a=p.useRef(null),r=dt(()=>{if(!a.current)return;let i=a.current.next();if(i.done){a.current=null;return}t===i.value?r():n(i.value)});se(()=>{a.current&&r()});let l=dt(i=>{a.current=i(t),r()});return[t,l]}const E8={prefix:String(Math.round(Math.random()*1e10)),current:0},M8=E.createContext(E8),wR=E.createContext(!1);let u0=new WeakMap;function xR(e=!1){let t=p.useContext(M8),n=p.useRef(null);if(n.current===null&&!e){var a,r;let l=(r=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(a=r.ReactCurrentOwner)===null||a===void 0?void 0:a.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 CR(e){let t=p.useContext(M8),n=xR(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`}function SR(e){let t=E.useId(),[n]=p.useState(dr()),a=n?"react-aria":`react-aria${E8.prefix}`;return e||`${a}-${t}`}const ER=typeof E.useId=="function"?SR:CR;function MR(){return!1}function RR(){return!0}function OR(e){return()=>{}}function dr(){return typeof E.useSyncExternalStore=="function"?E.useSyncExternalStore(OR,MR,RR):p.useContext(wR)}let TR=!!(typeof window<"u"&&window.document&&window.document.createElement),li=new Map,No;typeof FinalizationRegistry<"u"&&(No=new FinalizationRegistry(e=>{li.delete(e)}));function Xt(e){let[t,n]=p.useState(e),a=p.useRef(null),r=ER(t),l=p.useRef(null);if(No&&No.register(l,r),TR){const i=li.get(r);i&&!i.includes(a)?i.push(a):li.set(r,[a])}return se(()=>{let i=r;return()=>{No&&No.unregister(l),li.delete(i)}},[r]),p.useEffect(()=>{let i=a.current;return i&&n(i),()=>{i&&(a.current=null)}}),r}function DR(e,t){if(e===t)return e;let n=li.get(e);if(n)return n.forEach(r=>r.current=t),t;let a=li.get(t);return a?(a.forEach(r=>r.current=e),e):t}function ic(e=[]){let t=Xt(),[n,a]=yR(t),r=p.useCallback(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return se(r,[t,r,...e]),n}function xi(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const de=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Cn=e=>e&&"window"in e&&e.window===e?e:de(e).defaultView||window;function Jt(e,t){return t&&e?e.contains(t):!1}const at=(e=document)=>e.activeElement;function Pe(e){return e.target}function kR(e,t,n,a){return e.createTreeWalker(t,n,a)}function R8(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=R8(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Ci(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=R8(e))&&(a&&(a+=" "),a+=t);return a}function me(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let r in a){let l=t[r],i=a[r];typeof l=="function"&&typeof i=="function"&&r[0]==="o"&&r[1]==="n"&&r.charCodeAt(2)>=65&&r.charCodeAt(2)<=90?t[r]=xi(l,i):(r==="className"||r==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[r]=Ci(l,i):r==="id"&&l&&i?t.id=DR(l,i):t[r]=i!==void 0?i:l}}return t}function Vg(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const a=e.map(r=>{const l=Bv(r,t);return n||(n=typeof l=="function"),l});if(n)return()=>{a.forEach((r,l)=>{typeof r=="function"?r():Bv(e[l],null)})}}}function Bv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const NR=new Set(["id"]),AR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),jR=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),LR=/^(data-.*)$/;function Ot(e,t={}){let{labelable:n,isLink:a,propNames:r}=t,l={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(NR.has(i)||n&&AR.has(i)||a&&jR.has(i)||r!=null&&r.has(i)||LR.test(i))&&(l[i]=e[i]);return l}function Rn(e){if(_R())e.focus({preventScroll:!0});else{let t=zR(e);e.focus(),PR(t)}}let Ou=null;function _R(){if(Ou==null){Ou=!1;try{document.createElement("div").focus({get preventScroll(){return Ou=!0,!0}})}catch{}}return Ou}function zR(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),n}function PR(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}function Gd(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Gg(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 ya(e){let t=null;return()=>(t==null&&(t=e()),t)}const $r=ya(function(){return Gg(/^Mac/i)}),KR=ya(function(){return Gg(/^iPhone/i)}),O8=ya(function(){return Gg(/^iPad/i)||$r()&&navigator.maxTouchPoints>1}),Qd=ya(function(){return KR()||O8()}),HR=ya(function(){return $r()||Qd()}),T8=ya(function(){return Gd(/AppleWebKit/i)&&!D8()}),D8=ya(function(){return Gd(/Chrome/i)}),Qg=ya(function(){return Gd(/Android/i)}),UR=ya(function(){return Gd(/Firefox/i)}),BR=p.createContext({isNative:!0,open:FR,useHref:e=>e});function Xd(){return p.useContext(BR)}function Jr(e,t,n=!0){var a,r;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;UR()&&!((r=window.event)===null||r===void 0||(a=r.type)===null||a===void 0)&&a.startsWith("key")&&e.target==="_blank"&&($r()?l=!0:i=!0);let u=T8()&&$r()&&!O8()?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});Jr.isOpening=n,Rn(e),e.dispatchEvent(u),Jr.isOpening=!1}Jr.isOpening=!1;function qR(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 FR(e,t){qR(e,n=>Jr(n,t))}function VR(e){let t=Xd();var n;const a=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?a: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}}let za=new Map,Ih=new Set;function qv(){if(typeof window>"u")return;function e(a){return"propertyName"in a}let t=a=>{if(!e(a)||!a.target)return;let r=za.get(a.target);r||(r=new Set,za.set(a.target,r),a.target.addEventListener("transitioncancel",n,{once:!0})),r.add(a.propertyName)},n=a=>{if(!e(a)||!a.target)return;let r=za.get(a.target);if(r&&(r.delete(a.propertyName),r.size===0&&(a.target.removeEventListener("transitioncancel",n),za.delete(a.target)),za.size===0)){for(let l of Ih)l();Ih.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?qv():document.addEventListener("DOMContentLoaded",qv));function GR(){for(const[e]of za)"isConnected"in e&&!e.isConnected&&za.delete(e)}function k8(e){requestAnimationFrame(()=>{GR(),za.size===0?e():Ih.add(e)})}function Yd(){let e=p.useRef(new Map),t=p.useCallback((r,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:r,fn:s,options:o}),r.addEventListener(l,s,o)},[]),n=p.useCallback((r,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;r.removeEventListener(l,u,o),e.current.delete(i)},[]),a=p.useCallback(()=>{e.current.forEach((r,l)=>{n(r.eventTarget,r.type,l,r.options)})},[n]);return p.useEffect(()=>a,[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}function N8(e,t){let{id:n,"aria-label":a,"aria-labelledby":r}=e;return n=Xt(n),r&&a?r=[...new Set([n,...r.trim().split(/\s+/)])].join(" "):r&&(r=r.trim().split(/\s+/).join(" ")),!a&&!r&&t&&(a=t),{id:n,"aria-label":a,"aria-labelledby":r}}function il(e){const t=p.useRef(null),n=p.useRef(void 0),a=p.useCallback(r=>{if(typeof e=="function"){const l=e,i=l(r);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=r,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,n.current&&(n.current(),n.current=void 0),r!=null&&(n.current=a(r))}}),[a])}function Fv(e,t){const n=p.useRef(!0),a=p.useRef(null);se(()=>(n.current=!0,()=>{n.current=!1}),[]),se(()=>{n.current?n.current=!1:(!a.current||t.some((r,l)=>!Object.is(r,a[l])))&&e(),a.current=t},t)}function QR(){return typeof window.ResizeObserver<"u"}function Xc(e){const{ref:t,box:n,onResize:a}=e;p.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(QR()){const l=new window.ResizeObserver(i=>{i.length&&a()});return l.observe(r,{box:n}),()=>{r&&l.unobserve(r)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[a,t,n])}function Xg(e,t){se(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function bs(e,t){if(!e)return!1;let n=window.getComputedStyle(e),a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function A8(e,t){let n=e;for(bs(n,t)&&(n=n.parentElement);n&&!bs(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function XR(e,t){const n=[];for(;e&&e!==document.documentElement;)bs(e,t)&&n.push(e),e=e.parentElement;return n}let zn=typeof document<"u"&&window.visualViewport;function YR(){let e=dr(),[t,n]=p.useState(()=>e?{width:0,height:0}:Vv());return p.useEffect(()=>{let a=()=>{n(r=>{let l=Vv();return l.width===r.width&&l.height===r.height?r:l})};return zn?zn.addEventListener("resize",a):window.addEventListener("resize",a),()=>{zn?zn.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),t}function Vv(){return{width:zn&&(zn==null?void 0:zn.width)||window.innerWidth,height:zn&&(zn==null?void 0:zn.height)||window.innerHeight}}let IR=0;const c0=new Map;function ZR(e){let[t,n]=p.useState();return se(()=>{if(!e)return;let a=c0.get(e);if(a)n(a.element.id);else{let r=`react-aria-description-${IR++}`;n(r);let l=document.createElement("div");l.id=r,l.style.display="none",l.textContent=e,document.body.appendChild(l),a={refCount:0,element:l},c0.set(e,a)}return a.refCount++,()=>{a&&--a.refCount===0&&(a.element.remove(),c0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Tu(e,t,n,a){let r=dt(n),l=n==null;p.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,r,a),()=>{i.removeEventListener(t,r,a)}},[e,t,a,l,r])}function j8(e,t){let n=Gv(e,t,"left"),a=Gv(e,t,"top"),r=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:f,scrollPaddingRight:c,scrollPaddingBottom:d,scrollPaddingLeft:h}=getComputedStyle(e),g=i+parseInt(u,10),m=o+parseInt(s,10),w=g+e.clientWidth,v=m+e.clientHeight,b=parseInt(f,10)||0,y=parseInt(d,10)||0,C=parseInt(c,10)||0,S=parseInt(h,10)||0;n<=i+S?i=n-parseInt(u,10)-S:n+r>w-C&&(i+=n+r-w+C),a<=m+b?o=a-parseInt(s,10)-b:a+l>v-y&&(o+=a+l-v+y),e.scrollLeft=i,e.scrollTop=o}function Gv(e,t,n){const a=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[a],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[a];break}t=t.offsetParent}return r}function Qv(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let o=XR(e);for(let s of o)j8(s,e)}else{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:f}=e.getBoundingClientRect();if(Math.abs(o-u)>1||Math.abs(s-f)>1){var a,r,l;t==null||(r=t.containingElement)===null||r===void 0||(a=r.scrollIntoView)===null||a===void 0||a.call(r,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function L8(e){return e.mozInputSource===0&&e.isTrusted?!0:Qg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function WR(e){return!Qg()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const $R="react-aria-clear-focus",JR="react-aria-focus";function Nl(e){return $r()?e.metaKey:e.ctrlKey}function Id(e,t=!0){let[n,a]=p.useState(!0),r=n&&t;return se(()=>{if(r&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,r]),_8(e,r,p.useCallback(()=>a(!1),[])),r}function Yc(e,t){let[n,a]=p.useState(t?"open":"closed");switch(n){case"open":t||a("exiting");break;case"closed":case"exiting":t&&a("open");break}let r=n==="exiting";return _8(e,r,p.useCallback(()=>{a(l=>l==="exiting"?"closed":l)},[])),r}function _8(e,t,n){se(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let a=e.current.getAnimations();if(a.length===0){n();return}let r=!1;return Promise.all(a.map(l=>l.finished)).then(()=>{r||Ts.flushSync(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}const Yg=["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"])'],eO=Yg.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yg.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const tO=Yg.join(':not([hidden]):not([tabindex="-1"]),');function z8(e){return e.matches(eO)}function nO(e){return e.matches(tO)}function Zs(e,t,n){let[a,r]=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:a,s=p.useCallback((u,...f)=>{let c=(d,...h)=>{n&&(Object.is(o,d)||n(d,...h)),i||(o=d)};typeof u=="function"?r((d,...h)=>{let g=u(i?o:d,...h);return c(g,...f),i?d:g}):(i||r(u),c(u,...f))},[i,o,n]);return[o,s]}function ys(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Ic=Symbol("default");function fr({values:e,children:t}){for(let[n,a]of e)t=E.createElement(n.Provider,{value:a},t);return t}function dn(e){let{className:t,style:n,children:a,defaultClassName:r,defaultChildren:l,defaultStyle:i,values:o}=e;return p.useMemo(()=>{let s,u,f;return typeof t=="function"?s=t({...o,defaultClassName:r}):s=t,typeof n=="function"?u=n({...o,defaultStyle:i||{}}):u=n,typeof a=="function"?f=a({...o,defaultChildren:l}):a==null?f=l:f=a,{className:s??r,style:u||i?{...i,...u}:void 0,children:f??l,"data-rac":""}},[t,n,a,r,l,i,o])}function P8(e,t){let n=p.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let a=t||Ic;if(!n.slots[a]){let r=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 ${r}.`)}return n.slots[a]}return n}function Tn(e,t,n){let a=P8(n,e.slot)||{},{ref:r,...l}=a,i=il(p.useMemo(()=>Vg(t,r),[t,r])),o=me(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,f={...s.defaultStyle,...u},c=typeof e.style=="function"?e.style({...s,defaultStyle:f}):e.style;return{...f,...c}}:o.style={...l.style,...e.style}),[o,i]}function K8(e=!0){let[t,n]=p.useState(e),a=p.useRef(!1),r=p.useCallback(l=>{a.current=!0,n(!!l)},[]);return se(()=>{a.current||n(!1)},[]),[r,t]}class Ig{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Ig(this.type,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}constructor(t,n){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=t,this.key=n}}class Zg{get size(){return this.keyMap.size}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 a=n.get(t),r=(a==null?void 0:a.firstChildKey)!=null?n.get(a.firstChildKey):null;for(;r;)yield r,r=r.nextKey!=null?n.get(r.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 a;return(a=n==null?void 0:n.key)!==null&&a!==void 0?a: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}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,a=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!a}UNSTABLE_filter(t){let n=new Zg,a=null;for(let r of this)if(r.type==="section"&&r.hasChildNodes){let l=r.clone(),i=null;for(let o of this.getChildren(r.key))if(Xv(o,t,this,n)){let s=o.clone();i==null&&(l.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=l.key),i&&i.parentKey===s.parentKey?(i.nextKey=s.key,s.prevKey=i.key):s.prevKey=null,s.nextKey=null,n.addNode(s),i=s}i&&(i.type!=="header"?(l.lastChildKey=i.key,a==null?l.prevKey=null:(a.type==="section"||a.type==="separator")&&(a.nextKey=l.key,l.prevKey=a.key),l.nextKey=null,a=l,n.addNode(l)):(n.firstKey===l.key&&(n.firstKey=null),n.removeNode(i.key)))}else if(r.type==="separator"){let l=r.clone();l.nextKey=null,(a==null?void 0:a.type)==="section"&&(a.nextKey=l.key,l.prevKey=a.key,a=l,n.addNode(l))}else{let l=r.clone();Xv(l,t,this,n)&&(n.firstKey==null&&(n.firstKey=l.key),a!=null&&a.type!=="section"&&a.type!=="separator"&&a.parentKey===l.parentKey?(a.nextKey=l.key,l.prevKey=a.key):l.prevKey=null,l.nextKey=null,n.addNode(l),a=l)}if((a==null?void 0:a.type)==="separator"&&a.nextKey===null){let r;a.prevKey!=null&&(r=n.getItem(a.prevKey),r.nextKey=null),n.removeNode(a.key),a=r}return n.lastKey=(a==null?void 0:a.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Xv(e,t,n,a){if(e.type==="subdialogtrigger"||e.type==="submenutrigger"){let r=[...n.getChildren(e.key)][0];if(r&&t(r.textValue)){let l=r.clone();return a.addNode(l),!0}else return!1}else return e.type==="header"?!0:t(e.textValue)}class H8{*[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.ownerDocument.isMounted||(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 ii extends H8{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof ii?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,n,a;let r=this.nextVisibleSibling,l=this.getMutableNode();l.index=this.index,l.level=this.level,l.parentKey=this.parentNode instanceof ii?this.parentNode.node.key:null;var i;l.prevKey=(i=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&i!==void 0?i:null;var o;l.nextKey=(o=r==null?void 0:r.node.key)!==null&&o!==void 0?o:null,l.hasChildNodes=!!this.firstChild;var s;l.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var u;if(l.lastChildKey=(u=(a=this.lastVisibleChild)===null||a===void 0?void 0:a.node.key)!==null&&u!==void 0?u:null,(l.colSpan!=null||l.colIndex!=null)&&r){var f,c;let d=((f=l.colIndex)!==null&&f!==void 0?f:l.index)+((c=l.colSpan)!==null&&c!==void 0?c:1);if(d!==r.node.colIndex){let h=r.getMutableNode();h.colIndex=d}}}setProps(t,n,a,r){let l=this.getMutableNode(),{value:i,textValue:o,id:s,...u}=t;if(u.ref=n,l.props=u,l.rendered=a,l.render=r,l.value=i,l.textValue=o||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",s!=null&&s!==l.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");l.key=s}u.colSpan!=null&&(l.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let a=n==="none";if(t.isHidden!==a){var r,l;(((r=t.parentNode)===null||r===void 0?void 0:r.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=a,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new Ig(t,`react-aria-${++n.nodeId}`)}}class aO extends H8{get isConnected(){return this.isMounted}createElement(t){return new ii(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let a of t)this.addNode(a);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let l of this.dirtyNodes)l instanceof ii&&(!l.isConnected||l.isHidden)?this.removeNode(l):l.updateChildIndices();for(let l of this.dirtyNodes)l instanceof ii&&(l.isConnected&&!l.isHidden&&(l.updateNode(),this.addNode(l)),l.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,n,a,r;this.nextCollection.commit((a=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null,(r=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&r!==void 0?r: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.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function U8(e){let{children:t,items:n,idScope:a,addIdAndValue:r,dependencies:l=[]}=e,i=p.useMemo(()=>new WeakMap,l);return p.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let f of n){let c=i.get(f);if(!c){c=t(f);var o,s;let d=(s=(o=c.props.id)!==null&&o!==void 0?o:f.key)!==null&&s!==void 0?s:f.id;if(d==null)throw new Error("Could not determine key for item");a&&(d=a+":"+d),c=p.cloneElement(c,r?{key:d,id:d,value:f}:{key:d}),i.set(f,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,i,a,r])}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 Zc=p.createContext(!1);function rO(e){if(p.useContext(Zc))return E.createElement(E.Fragment,null,e.children);let t=E.createElement(Zc.Provider,{value:!0},e.children);return E.createElement("template",{"data-react-aria-hidden":!0},t)}function lO(e){let t=(n,a)=>p.useContext(Zc)?null:e(n,a);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function iO(){return p.useContext(Zc)}function Wg(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function B8(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function q8(e){let t=p.useRef({isFocused:!1,observer:null});se(()=>{const a=t.current;return()=>{a.observer&&(a.observer.disconnect(),a.observer=null)}},[]);let n=dt(a=>{e==null||e(a)});return p.useCallback(a=>{if(a.target instanceof HTMLButtonElement||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=a.target,l=i=>{if(t.current.isFocused=!1,r.disabled){let o=Wg(i);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Wc=!1;function oO(e){for(;e&&!z8(e);)e=e.parentElement;let t=Cn(e),n=t.document.activeElement;if(!n||n===e)return;Wc=!0;let a=!1,r=f=>{(f.target===n||a)&&f.stopImmediatePropagation()},l=f=>{(f.target===n||a)&&(f.stopImmediatePropagation(),!e&&!a&&(a=!0,Rn(n),s()))},i=f=>{(f.target===e||a)&&f.stopImmediatePropagation()},o=f=>{(f.target===e||a)&&(f.stopImmediatePropagation(),a||(a=!0,Rn(n),s()))};t.addEventListener("blur",r,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",r,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),Wc=!1,a=!1},u=requestAnimationFrame(s);return s}let Ql="default",Zh="",oc=new WeakMap;function sO(e){if(Qd()){if(Ql==="default"){const t=de(e);Zh=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ql="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";oc.set(e,e.style[t]),e.style[t]="none"}}function Yv(e){if(Qd()){if(Ql!=="disabled")return;Ql="restoring",setTimeout(()=>{k8(()=>{if(Ql==="restoring"){const t=de(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Zh||""),Zh="",Ql="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&oc.has(e)){let t=oc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),oc.delete(e)}}const ws=E.createContext({register:()=>{}});ws.displayName="PressResponderContext";function uO(e,t){return t.get?t.get.call(e):t.value}function F8(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cO(e,t){var n=F8(e,t,"get");return uO(e,n)}function dO(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fO(e,t,n){dO(e,t),t.set(e,n)}function hO(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 Iv(e,t,n){var a=F8(e,t,"set");return hO(e,a,n),n}function pO(e){let t=p.useContext(ws);if(t){let{register:n,...a}=t;e=me(a,e),n()}return Xg(t,e.ref),e}var Du=new WeakMap;class ku{continuePropagation(){Iv(this,Du,!1)}get shouldStopPropagation(){return cO(this,Du)}constructor(t,n,a,r){fO(this,Du,{writable:!0,value:void 0}),Iv(this,Du,!0);var l;let i=(l=r==null?void 0:r.target)!==null&&l!==void 0?l:a.currentTarget;const o=i==null?void 0:i.getBoundingClientRect();let s,u=0,f,c=null;a.clientX!=null&&a.clientY!=null&&(f=a.clientX,c=a.clientY),o&&(f!=null&&c!=null?(s=f-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=t,this.pointerType=n,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.x=s,this.y=u}}const Zv=Symbol("linkClicked"),Wv="react-aria-pressable-style",$v="data-react-aria-pressable";function Zd(e){let{onPress:t,onPressChange:n,onPressStart:a,onPressEnd:r,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:c,ref:d,...h}=pO(e),[g,m]=p.useState(!1),w=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:b}=Yd(),y=dt((k,P)=>{let B=w.current;if(o||B.didFirePressStart)return!1;let z=!0;if(B.isTriggeringEvent=!0,a){let L=new ku("pressstart",P,k);a(L),z=L.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,m(!0),z}),C=dt((k,P,B=!0)=>{let z=w.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let L=!0;if(r){let T=new ku("pressend",P,k);r(T),L=T.shouldStopPropagation}if(n&&n(!1),m(!1),t&&B&&!o){let T=new ku("press",P,k);t(T),L&&(L=T.shouldStopPropagation)}return z.isTriggeringEvent=!1,L}),S=dt((k,P)=>{let B=w.current;if(o)return!1;if(l){B.isTriggeringEvent=!0;let z=new ku("pressup",P,k);return l(z),B.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),M=dt(k=>{let P=w.current;if(P.isPressed&&P.target){P.didFirePressStart&&P.pointerType!=null&&C(El(P.target,k),P.pointerType,!1),P.isPressed=!1,P.isOverTarget=!1,P.activePointerId=null,P.pointerType=null,b(),c||Yv(P.target);for(let B of P.disposables)B();P.disposables=[]}}),R=dt(k=>{f&&M(k)}),D=dt(k=>{i==null||i(k)}),j=dt((k,P)=>{if(i){let B=new MouseEvent("click",k);B8(B,P),i(Wg(B))}}),A=p.useMemo(()=>{let k=w.current,P={onKeyDown(z){if(d0(z.nativeEvent,z.currentTarget)&&Jt(z.currentTarget,Pe(z.nativeEvent))){var L;Jv(Pe(z.nativeEvent),z.key)&&z.preventDefault();let T=!0;if(!k.isPressed&&!z.repeat){k.target=z.currentTarget,k.isPressed=!0,k.pointerType="keyboard",T=y(z,"keyboard");let N=z.currentTarget,_=q=>{d0(q,N)&&!q.repeat&&Jt(N,Pe(q))&&k.target&&S(El(k.target,q),"keyboard")};v(de(z.currentTarget),"keyup",xi(_,B),!0)}T&&z.stopPropagation(),z.metaKey&&$r()&&((L=k.metaKeyEvents)===null||L===void 0||L.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(k.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Jt(z.currentTarget,Pe(z.nativeEvent)))&&z&&z.button===0&&!k.isTriggeringEvent&&!Jr.isOpening){let L=!0;if(o&&z.preventDefault(),!k.ignoreEmulatedMouseEvents&&!k.isPressed&&(k.pointerType==="virtual"||L8(z.nativeEvent))){let T=y(z,"virtual"),N=S(z,"virtual"),_=C(z,"virtual");D(z),L=T&&N&&_}else if(k.isPressed&&k.pointerType!=="keyboard"){let T=k.pointerType||z.nativeEvent.pointerType||"virtual";L=C(El(z.currentTarget,z),T,!0),k.isOverTarget=!1,D(z),M(z)}k.ignoreEmulatedMouseEvents=!1,L&&z.stopPropagation()}}},B=z=>{var L;if(k.isPressed&&k.target&&d0(z,k.target)){var T;Jv(Pe(z),z.key)&&z.preventDefault();let _=Pe(z),q=Jt(k.target,Pe(z));C(El(k.target,z),"keyboard",q),q&&j(z,k.target),b(),z.key!=="Enter"&&$g(k.target)&&Jt(k.target,_)&&!z[Zv]&&(z[Zv]=!0,Jr(k.target,z,!1)),k.isPressed=!1,(T=k.metaKeyEvents)===null||T===void 0||T.delete(z.key)}else if(z.key==="Meta"&&!((L=k.metaKeyEvents)===null||L===void 0)&&L.size){var N;let _=k.metaKeyEvents;k.metaKeyEvents=void 0;for(let q of _.values())(N=k.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",q))}};if(typeof PointerEvent<"u"){P.onPointerDown=T=>{if(T.button!==0||!Jt(T.currentTarget,Pe(T.nativeEvent)))return;if(WR(T.nativeEvent)){k.pointerType="virtual";return}k.pointerType=T.pointerType;let N=!0;if(!k.isPressed){k.isPressed=!0,k.isOverTarget=!0,k.activePointerId=T.pointerId,k.target=T.currentTarget,c||sO(k.target),N=y(T,k.pointerType);let _=Pe(T.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(T.pointerId),v(de(T.currentTarget),"pointerup",z,!1),v(de(T.currentTarget),"pointercancel",L,!1)}N&&T.stopPropagation()},P.onMouseDown=T=>{if(Jt(T.currentTarget,Pe(T.nativeEvent))&&T.button===0){if(u){let N=oO(T.target);N&&k.disposables.push(N)}T.stopPropagation()}},P.onPointerUp=T=>{!Jt(T.currentTarget,Pe(T.nativeEvent))||k.pointerType==="virtual"||T.button===0&&S(T,k.pointerType||T.pointerType)},P.onPointerEnter=T=>{T.pointerId===k.activePointerId&&k.target&&!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,y(El(k.target,T),k.pointerType))},P.onPointerLeave=T=>{T.pointerId===k.activePointerId&&k.target&&k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,C(El(k.target,T),k.pointerType,!1),R(T))};let z=T=>{if(T.pointerId===k.activePointerId&&k.isPressed&&T.button===0&&k.target){if(Jt(k.target,Pe(T))&&k.pointerType!=null){let N=!1,_=setTimeout(()=>{k.isPressed&&k.target instanceof HTMLElement&&(N?M(T):(Rn(k.target),k.target.click()))},80);v(T.currentTarget,"click",()=>N=!0,!0),k.disposables.push(()=>clearTimeout(_))}else M(T);k.isOverTarget=!1}},L=T=>{M(T)};P.onDragStart=T=>{Jt(T.currentTarget,Pe(T.nativeEvent))&&M(T)}}return P},[v,o,u,b,c,M,R,C,y,S,D,j]);return p.useEffect(()=>{if(!d)return;const k=de(d.current);if(!k||!k.head||k.getElementById(Wv))return;const P=k.createElement("style");P.id=Wv,P.textContent=`
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=`
69
69
  @layer {
70
- [${$v}] {
70
+ [${Fy}] {
71
71
  touch-action: pan-x pan-y pinch-zoom;
72
72
  }
73
73
  }
74
- `.trim(),k.head.prepend(P)},[d]),p.useEffect(()=>{let k=w.current;return()=>{var P;c||Yv((P=k.target)!==null&&P!==void 0?P:void 0);for(let B of k.disposables)B();k.disposables=[]}},[c]),{isPressed:s||g,pressProps:me(h,A,{[$v]:!0})}}function $g(e){return e.tagName==="A"&&e.hasAttribute("href")}function d0(e,t){const{key:n,code:a}=e,r=t,l=r.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||a==="Space")&&!(r instanceof Cn(r).HTMLInputElement&&!V8(r,n)||r instanceof Cn(r).HTMLTextAreaElement||r.isContentEditable)&&!((l==="link"||!l&&$g(r))&&n!=="Enter")}function El(e,t){let n=t.clientX,a=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:a}}function gO(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!$g(e)}function Jv(e,t){return e instanceof HTMLInputElement?!V8(e,t):gO(e)}const mO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V8(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":mO.has(e.type)}let Ki=null,Wh=new Set,Zo=new Map,el=!1,$h=!1;const vO={Tab:!0,Escape:!0};function Jg(e,t){for(let n of Wh)n(e,t)}function bO(e){return!(e.metaKey||!$r()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function $c(e){el=!0,bO(e)&&(Ki="keyboard",Jg("keyboard",e))}function oi(e){Ki="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(el=!0,Jg("pointer",e))}function G8(e){L8(e)&&(el=!0,Ki="virtual")}function Q8(e){e.target===window||e.target===document||Wc||!e.isTrusted||(!el&&!$h&&(Ki="virtual",Jg("virtual",e)),el=!1,$h=!1)}function X8(){Wc||(el=!1,$h=!0)}function Jh(e){if(typeof window>"u"||typeof document>"u"||Zo.get(Cn(e)))return;const t=Cn(e),n=de(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){el=!0,a.apply(this,arguments)},n.addEventListener("keydown",$c,!0),n.addEventListener("keyup",$c,!0),n.addEventListener("click",G8,!0),t.addEventListener("focus",Q8,!0),t.addEventListener("blur",X8,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",oi,!0),n.addEventListener("pointermove",oi,!0),n.addEventListener("pointerup",oi,!0)),t.addEventListener("beforeunload",()=>{Y8(e)},{once:!0}),Zo.set(t,{focus:a})}const Y8=(e,t)=>{const n=Cn(e),a=de(e);t&&a.removeEventListener("DOMContentLoaded",t),Zo.has(n)&&(n.HTMLElement.prototype.focus=Zo.get(n).focus,a.removeEventListener("keydown",$c,!0),a.removeEventListener("keyup",$c,!0),a.removeEventListener("click",G8,!0),n.removeEventListener("focus",Q8,!0),n.removeEventListener("blur",X8,!1),typeof PointerEvent<"u"&&(a.removeEventListener("pointerdown",oi,!0),a.removeEventListener("pointermove",oi,!0),a.removeEventListener("pointerup",oi,!0)),Zo.delete(n))};function yO(e){const t=de(e);let n;return t.readyState!=="loading"?Jh(e):(n=()=>{Jh(e)},t.addEventListener("DOMContentLoaded",n)),()=>Y8(e,n)}typeof document<"u"&&yO();function xs(){return Ki!=="pointer"}function Cs(){return Ki}const wO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xO(e,t,n){let a=de(n==null?void 0:n.target);const r=typeof window<"u"?Cn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?Cn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Cn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?Cn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||a.activeElement instanceof r&&!wO.has(a.activeElement.type)||a.activeElement instanceof l||a.activeElement instanceof i&&a.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof o&&!vO[n.key])}function CO(e,t,n){Jh(),p.useEffect(()=>{let a=(r,l)=>{xO(!!(n!=null&&n.isTextInput),r,l)&&e(xs())};return Wh.add(a),()=>{Wh.delete(a)}},t)}function lr(e){const t=de(e),n=at(t);if(Cs()==="virtual"){let a=n;k8(()=>{at(t)===a&&e.isConnected&&Rn(e)})}else Rn(e)}function em(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:r}=e;const l=p.useCallback(s=>{if(s.target===s.currentTarget)return a&&a(s),r&&r(!1),!0},[a,r]),i=q8(l),o=p.useCallback(s=>{const u=de(s.target),f=u?at(u):at();s.target===s.currentTarget&&f===Pe(s.nativeEvent)&&(n&&n(s),r&&r(!0),i(s))},[r,n,i]);return{focusProps:{onFocus:!t&&(n||r||a)?o:void 0,onBlur:!t&&(a||r)?l:void 0}}}function eb(e){if(!e)return;let t=!0;return n=>{let a={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(a),t&&n.stopPropagation()}}function I8(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:eb(e.onKeyDown),onKeyUp:eb(e.onKeyUp)}}}let Jc=E.createContext(null);function SO(e){let t=p.useContext(Jc)||{};Xg(t,e);let{ref:n,...a}=t;return a}const EO=E.forwardRef(function(e,t){let{children:n,...a}=e,r=il(t),l={...a,ref:r};return E.createElement(Jc.Provider,{value:l},n)});function Z8(e,t){let{focusProps:n}=em(e),{keyboardProps:a}=I8(e),r=me(n,a),l=SO(t),i=e.isDisabled?{}:l,o=p.useRef(e.autoFocus);p.useEffect(()=>{o.current&&t.current&&lr(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:me({...r,tabIndex:s},i)}}const W8=E.forwardRef(({children:e,...t},n)=>{let a=p.useRef(!1),r=p.useContext(ws);n=il(n||(r==null?void 0:r.ref));let l=me(r||{},{...t,ref:n,register(){a.current=!0,r&&r.register()}});return Xg(r,n),p.useEffect(()=>{a.current||(a.current=!0)},[]),E.createElement(ws.Provider,{value:l},e)});function MO({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return E.createElement(ws.Provider,{value:t},e)}function tm(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:a,onFocusWithinChange:r}=e,l=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=Yd(),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),r&&r(!1))},[n,r,l,o]),u=q8(s),f=p.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const d=de(c.target),h=at(d);if(!l.current.isFocusWithin&&h===Pe(c.nativeEvent)){a&&a(c),r&&r(!0),l.current.isFocusWithin=!0,u(c);let g=c.currentTarget;i(d,"focus",m=>{if(l.current.isFocusWithin&&!Jt(g,m.target)){let w=new d.defaultView.FocusEvent("blur",{relatedTarget:m.target});B8(w,g);let v=Wg(w);s(v)}},{capture:!0})}},[a,r,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:s}}}let ep=!1,f0=0;function RO(){ep=!0,setTimeout(()=>{ep=!1},50)}function tb(e){e.pointerType==="touch"&&RO()}function OO(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",tb),f0++,()=>{f0--,!(f0>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",tb)}}function Hi(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,isDisabled:r}=e,[l,i]=p.useState(!1),o=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(OO,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Yd(),{hoverProps:f,triggerHoverEnd:c}=p.useMemo(()=>{let d=(m,w)=>{if(o.pointerType=w,r||w==="touch"||o.isHovered||!m.currentTarget.contains(m.target))return;o.isHovered=!0;let v=m.currentTarget;o.target=v,s(de(m.target),"pointerover",b=>{o.isHovered&&o.target&&!Jt(o.target,b.target)&&h(b,b.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:w}),n&&n(!0),i(!0)},h=(m,w)=>{let v=o.target;o.pointerType="",o.target=null,!(w==="touch"||!o.isHovered||!v)&&(o.isHovered=!1,u(),a&&a({type:"hoverend",target:v,pointerType:w}),n&&n(!1),i(!1))},g={};return typeof PointerEvent<"u"&&(g.onPointerEnter=m=>{ep&&m.pointerType==="mouse"||d(m,m.pointerType)},g.onPointerLeave=m=>{!r&&m.currentTarget.contains(m.target)&&h(m,m.pointerType)}),{hoverProps:g,triggerHoverEnd:h}},[t,n,a,r,o,s,u]);return p.useEffect(()=>{r&&c({currentTarget:o.target},o.pointerType)},[r]),{hoverProps:f,isHovered:l}}function TO(e){let{ref:t,onInteractOutside:n,isDisabled:a,onInteractOutsideStart:r}=e,l=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=dt(s=>{n&&nb(s,t)&&(r&&r(s),l.current.isPointerDown=!0)}),o=dt(s=>{n&&n(s)});p.useEffect(()=>{let s=l.current;if(a)return;const u=t.current,f=de(u);if(typeof PointerEvent<"u"){let c=d=>{s.isPointerDown&&nb(d,t)&&o(d),s.isPointerDown=!1};return f.addEventListener("pointerdown",i,!0),f.addEventListener("pointerup",c,!0),()=>{f.removeEventListener("pointerdown",i,!0),f.removeEventListener("pointerup",c,!0)}}},[t,a,i,o])}function nb(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 DO=500;function $8(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:a,onLongPress:r,threshold:l=DO,accessibilityDescription:i}=e;const o=p.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Yd(),{pressProps:f}=Zd({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),o.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),de(d.target).activeElement!==d.target&&Rn(d.target),r&&r({...d,type:"longpress"}),o.current=void 0},l),d.pointerType==="touch")){let h=g=>{g.preventDefault()};s(d.target,"contextmenu",h,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){o.current&&clearTimeout(o.current),a&&(d.pointerType==="mouse"||d.pointerType==="touch")&&a({...d,type:"longpressend"})}}),c=ZR(r&&!t?i:void 0);return{longPressProps:me(f,c)}}var J8={exports:{}},e3={};/**
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=`
75
+ @layer {
76
+ * {
77
+ overscroll-behavior: contain;
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={};/**
75
80
  * @license React
76
81
  * use-sync-external-store-shim.production.js
77
82
  *
@@ -79,7 +84,7 @@ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}
79
84
  *
80
85
  * This source code is licensed under the MIT license found in the
81
86
  * LICENSE file in the root directory of this source tree.
82
- */var Si=E;function kO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var NO=typeof Object.is=="function"?Object.is:kO,AO=Si.useState,jO=Si.useEffect,LO=Si.useLayoutEffect,_O=Si.useDebugValue;function zO(e,t){var n=t(),a=AO({inst:{value:n,getSnapshot:t}}),r=a[0].inst,l=a[1];return LO(function(){r.value=n,r.getSnapshot=t,h0(r)&&l({inst:r})},[e,n,t]),jO(function(){return h0(r)&&l({inst:r}),e(function(){h0(r)&&l({inst:r})})},[e]),_O(n),n}function h0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!NO(e,n)}catch{return!0}}function PO(e,t){return t()}var KO=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PO:zO;e3.useSyncExternalStore=Si.useSyncExternalStore!==void 0?Si.useSyncExternalStore:KO;J8.exports=e3;var HO=J8.exports;const t3=p.createContext(!1),Ss=p.createContext(null);function UO(e){if(p.useContext(Ss))return e.content;let{collection:t,document:n}=VO(e.createCollection);return E.createElement(E.Fragment,null,E.createElement(rO,null,E.createElement(Ss.Provider,{value:n},e.content)),E.createElement(BO,{render:e.children,collection:t}))}function BO({collection:e,render:t}){return t(e)}function qO(e,t,n){let a=dr(),r=p.useRef(a);r.current=a;let l=p.useCallback(()=>r.current?n():t(),[t,n]);return HO.useSyncExternalStore(e,l)}const FO=typeof E.useSyncExternalStore=="function"?E.useSyncExternalStore:qO;function VO(e){let[t]=p.useState(()=>new aO((e==null?void 0:e())||new Zg)),n=p.useCallback(i=>t.subscribe(i),[t]),a=p.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),r=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),l=FO(n,a,r);return se(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}const tp=p.createContext(null);function GO(e,t,n,a,r,l){let i=p.useCallback(s=>{s==null||s.setProps(t,n,a,l)},[t,n,a,l]),o=p.useContext(tp);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e),s.setProps(t,n,a,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),r?E.createElement(tp.Provider,{value:s},r):null}return E.createElement(e,{ref:i},r)}function QO(e,t){let n=({node:r})=>t(r.props,r.props.ref,r),a=p.forwardRef((r,l)=>{let i=p.useContext(Jc);if(!p.useContext(t3)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(r,l)}return GO(e,r,l,"children"in r?r.children:null,null,o=>E.createElement(Jc.Provider,{value:i},E.createElement(n,{node:o})))});return a.displayName=t.name,a}function XO(e){return U8({...e,addIdAndValue:!0})}const ab=p.createContext(null);function YO(e){let t=p.useContext(ab),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),a=e.idScope||(t==null?void 0:t.idScope),r=XO({...e,idScope:a,dependencies:n});return p.useContext(Ss)&&(r=E.createElement(IO,null,r)),t=p.useMemo(()=>({dependencies:n,idScope:a}),[a,...n]),E.createElement(ab.Provider,{value:t},r)}function IO({children:e}){let t=p.useContext(Ss),n=p.useMemo(()=>E.createElement(Ss.Provider,{value:null},E.createElement(t3.Provider,{value:!0},e)),[e]);return dr()?E.createElement(tp.Provider,{value:t},n):Ts.createPortal(n,t)}const ZO=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),WO=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $O(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),a=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(a)return a.direction==="rtl";if(n.script)return ZO.has(n.script)}let t=e.split("-")[0];return WO.has(t)}const JO=Symbol.for("react-aria.i18n.locale");function n3(){let e=typeof window<"u"&&window[JO]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:$O(e)?"rtl":"ltr"}}let np=n3(),Ao=new Set;function rb(){np=n3();for(let e of Ao)e(np)}function eT(){let e=dr(),[t,n]=p.useState(np);return p.useEffect(()=>(Ao.size===0&&window.addEventListener("languagechange",rb),Ao.add(n),()=>{Ao.delete(n),Ao.size===0&&window.removeEventListener("languagechange",rb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const tT=E.createContext(null);function ol(){let e=eT();return p.useContext(tT)||e}const nT=Symbol.for("react-aria.i18n.locale"),aT=Symbol.for("react-aria.i18n.strings");let vo;class Wd{getStringForLocale(t,n){let a=this.getStringsForLocale(n)[t];if(!a)throw new Error(`Could not find intl message ${t} in ${n} locale`);return a}getStringsForLocale(t){let n=this.strings[t];return n||(n=rT(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[nT];if(vo===void 0){let r=window[aT];if(!r)return null;vo={};for(let l in r)vo[l]=new Wd({[n]:r[l]},n)}let a=vo==null?void 0:vo[t];if(!a)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return a}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,a])=>a)),this.defaultLocale=n}}function rT(e,t,n="en-US"){if(t[e])return t[e];let a=lT(e);if(t[a])return t[a];for(let r in t)if(r.startsWith(a+"-"))return t[r];return t[n]}function lT(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const lb=new Map,ib=new Map;class iT{format(t,n){let a=this.strings.getStringForLocale(t,this.locale);return typeof a=="function"?a(n,this):a}plural(t,n,a="cardinal"){let r=n["="+t];if(r)return typeof r=="function"?r():r;let l=this.locale+":"+a,i=lb.get(l);i||(i=new Intl.PluralRules(this.locale,{type:a}),lb.set(l,i));let o=i.select(t);return r=n[o]||n.other,typeof r=="function"?r():r}number(t){let n=ib.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ib.set(this.locale,n)),n.format(t)}select(t,n){let a=t[n]||t.other;return typeof a=="function"?a():a}constructor(t,n){this.locale=t,this.strings=n}}const ob=new WeakMap;function oT(e){let t=ob.get(e);return t||(t=new Wd(e),ob.set(e,t)),t}function sT(e,t){return t&&Wd.getGlobalDictionaryForPackage(t)||oT(e)}function a3(e,t){let{locale:n}=ol(),a=sT(e,t);return p.useMemo(()=>new iT(n,a),[n,a])}let p0=new Map,ap=!1;try{ap=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ed=!1;try{ed=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const r3={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class uT{format(t){let n="";if(!ap&&this.options.signDisplay!=null?n=dT(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ed){var a;let{unit:r,unitDisplay:l="short",locale:i}=this.resolvedOptions();if(!r)return n;let o=(a=r3[r])===null||a===void 0?void 0:a[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 a=this.numberFormatter.formatToParts(t),r=this.numberFormatter.formatToParts(n);return[...a.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ap&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ed&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=cT(t,n),this.options=n}}function cT(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ed){var a;let{unit:i,unitDisplay:o="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((a=r3[i])===null||a===void 0)&&a[o]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(p0.has(r))return p0.get(r);let l=new Intl.NumberFormat(e,t);return p0.set(r,l),l}function dT(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let a=!1;if(t==="always"?a=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):a=n>0),a){let r=e.format(-n),l=e.format(n),i=r.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),r.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return e.format(n)}}function fT(e={}){let{locale:t}=ol();return p.useMemo(()=>new uT(t,e),[t,e])}let g0=new Map;function hT(e){let{locale:t}=ol(),n=t+(e?Object.entries(e).sort((r,l)=>r[0]<l[0]?-1:1).join():"");if(g0.has(n))return g0.get(n);let a=new Intl.Collator(t,e);return g0.set(n,a),a}function l3(e,t){let{elementType:n="button",isDisabled:a,onPress:r,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:f,onClick:c,href:d,target:h,rel:g,type:m="button"}=e,w;n==="button"?w={type:m,disabled:a}:w={role:"button",href:n==="a"&&!a?d:void 0,target:n==="a"?h:void 0,type:n==="input"?m:void 0,disabled:n==="input"?a:void 0,"aria-disabled":!a||n==="input"?void 0:a,rel:n==="a"?g:void 0};let{pressProps:v,isPressed:b}=Zd({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:r,onPressUp:o,onClick:c,isDisabled:a,preventFocusOnPress:u,ref:t}),{focusableProps:y}=Z8(e,t);f&&(y.tabIndex=a?-1:y.tabIndex);let C=me(y,v,Ot(e,{labelable:!0}));return{isPressed:b,buttonProps:me(w,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"]})}}function i3(e,t,n){const{isSelected:a}=t,{isPressed:r,buttonProps:l}=l3({...e,onPress:xi(t.toggle,e.onPress)},n);return{isPressed:r,isSelected:a,isDisabled:e.isDisabled||!1,buttonProps:me(l,{"aria-pressed":a})}}function pT(e){const t=Cn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:a}=e.style,r=n!=="none"&&a!=="hidden"&&a!=="collapse";if(r){const{getComputedStyle:l}=e.ownerDocument.defaultView;let{display:i,visibility:o}=l(e);r=i!=="none"&&o!=="hidden"&&o!=="collapse"}return r}function gT(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 o3(e,t){return e.nodeName!=="#comment"&&pT(e)&&gT(e,t)&&(!e.parentElement||o3(e.parentElement,e))}const sb=E.createContext(null),rp="react-aria-focus-scope-restore";let Ce=null;function s3(e){let{children:t,contain:n,restoreFocus:a,autoFocus:r}=e,l=p.useRef(null),i=p.useRef(null),o=p.useRef([]),{parentNode:s}=p.useContext(sb)||{},u=p.useMemo(()=>new ip({scopeRef:o}),[o]);se(()=>{let d=s||He.root;if(He.getTreeNode(d.scopeRef)&&Ce&&!td(Ce,d.scopeRef)){let h=He.getTreeNode(Ce);h&&(d=h)}d.addChild(u),He.addNode(u)},[u,s]),se(()=>{let d=He.getTreeNode(o);d&&(d.contain=!!n)},[n]),se(()=>{var d;let h=(d=l.current)===null||d===void 0?void 0:d.nextSibling,g=[],m=w=>w.stopPropagation();for(;h&&h!==i.current;)g.push(h),h.addEventListener(rp,m),h=h.nextSibling;return o.current=g,()=>{for(let w of g)w.removeEventListener(rp,m)}},[t]),wT(o,a,n),vT(o,n),xT(o,a,n),yT(o,r),p.useEffect(()=>{const d=at(de(o.current?o.current[0]:void 0));let h=null;if(cn(d,o.current)){for(let g of He.traverse())g.scopeRef&&cn(d,g.scopeRef.current)&&(h=g);h===He.getTreeNode(o)&&(Ce=h.scopeRef)}},[o]),se(()=>()=>{var d,h,g;let m=(g=(h=He.getTreeNode(o))===null||h===void 0||(d=h.parent)===null||d===void 0?void 0:d.scopeRef)!==null&&g!==void 0?g:null;(o===Ce||td(o,Ce))&&(!m||He.getTreeNode(m))&&(Ce=m),He.removeTreeNode(o)},[o]);let f=p.useMemo(()=>mT(o),[]),c=p.useMemo(()=>({focusManager:f,parentNode:u}),[u,f]);return E.createElement(sb.Provider,{value:c},E.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,E.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function mT(e){return{focusNext(t={}){let n=e.current,{from:a,tabbable:r,wrap:l,accept:i}=t;var o;let s=a||at(de((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[0].previousElementSibling,f=Pr(n),c=Ut(f,{tabbable:r,accept:i},n);c.currentNode=cn(s,n)?s:u;let d=c.nextNode();return!d&&l&&(c.currentNode=u,d=c.nextNode()),d&&Et(d,!0),d},focusPrevious(t={}){let n=e.current,{from:a,tabbable:r,wrap:l,accept:i}=t;var o;let s=a||at(de((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[n.length-1].nextElementSibling,f=Pr(n),c=Ut(f,{tabbable:r,accept:i},n);c.currentNode=cn(s,n)?s:u;let d=c.previousNode();return!d&&l&&(c.currentNode=u,d=c.previousNode()),d&&Et(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:a,accept:r}=t,l=Pr(n),i=Ut(l,{tabbable:a,accept:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Et(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:a,accept:r}=t,l=Pr(n),i=Ut(l,{tabbable:a,accept:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Et(o,!0),o}}}function Pr(e){return e[0].parentElement}function jo(e){let t=He.getTreeNode(Ce);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function vT(e,t){let n=p.useRef(void 0),a=p.useRef(void 0);se(()=>{let r=e.current;if(!t){a.current&&(cancelAnimationFrame(a.current),a.current=void 0);return}const l=de(r?r[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!jo(e)||u.isComposing)return;let f=at(l),c=e.current;if(!c||!cn(f,c))return;let d=Pr(c),h=Ut(d,{tabbable:!0},c);if(!f)return;h.currentNode=f;let g=u.shiftKey?h.previousNode():h.nextNode();g||(h.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,g=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),g&&Et(g,!0)},o=u=>{(!Ce||td(Ce,e))&&cn(Pe(u),e.current)?(Ce=e,n.current=Pe(u)):jo(e)&&!Ba(Pe(u),e)?n.current?n.current.focus():Ce&&Ce.current&&lp(Ce.current):jo(e)&&(n.current=Pe(u))},s=u=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{let f=Cs(),c=(f==="virtual"||f===null)&&Qg()&&D8(),d=at(l);if(!c&&d&&jo(e)&&!Ba(d,e)){Ce=e;let g=Pe(u);if(g&&g.isConnected){var h;n.current=g,(h=n.current)===null||h===void 0||h.focus()}else Ce.current&&lp(Ce.current)}})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",o,!1),r==null||r.forEach(u=>u.addEventListener("focusin",o,!1)),r==null||r.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",o,!1),r==null||r.forEach(u=>u.removeEventListener("focusin",o,!1)),r==null||r.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),se(()=>()=>{a.current&&cancelAnimationFrame(a.current)},[a])}function u3(e){return Ba(e)}function cn(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ba(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of He.traverse(He.getTreeNode(t)))if(n&&cn(e,n.current))return!0;return!1}function bT(e){return Ba(e,Ce)}function td(e,t){var n;let a=(n=He.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;a;){if(a.scopeRef===e)return!0;a=a.parent}return!1}function Et(e,t=!1){if(e!=null&&!t)try{lr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function c3(e,t=!0){let n=e[0].previousElementSibling,a=Pr(e),r=Ut(a,{tabbable:t},e);r.currentNode=n;let l=r.nextNode();return t&&!l&&(a=Pr(e),r=Ut(a,{tabbable:!1},e),r.currentNode=n,l=r.nextNode()),l}function lp(e,t=!0){Et(c3(e,t))}function yT(e,t){const n=E.useRef(t);p.useEffect(()=>{if(n.current){Ce=e;const a=de(e.current?e.current[0]:void 0);!cn(at(a),Ce.current)&&e.current&&lp(e.current)}n.current=!1},[e])}function wT(e,t,n){se(()=>{if(t||n)return;let a=e.current;const r=de(a?a[0]:void 0);let l=i=>{let o=Pe(i);cn(o,e.current)?Ce=e:u3(o)||(Ce=null)};return r.addEventListener("focusin",l,!1),a==null||a.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{r.removeEventListener("focusin",l,!1),a==null||a.forEach(i=>i.removeEventListener("focusin",l,!1))}},[e,t,n])}function ub(e){let t=He.getTreeNode(Ce);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function xT(e,t,n){const a=p.useRef(typeof document<"u"?at(de(e.current?e.current[0]:void 0)):null);se(()=>{let r=e.current;const l=de(r?r[0]:void 0);if(!t||n)return;let i=()=>{(!Ce||td(Ce,e))&&cn(at(l),e.current)&&(Ce=e)};return l.addEventListener("focusin",i,!1),r==null||r.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,n]),se(()=>{const r=de(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=r.activeElement;if(!Ba(o,e)||!ub(e))return;let s=He.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,f=Ut(r.body,{tabbable:!0});f.currentNode=o;let c=i.shiftKey?f.previousNode():f.nextNode();if((!u||!u.isConnected||u===r.body)&&(u=void 0,s.nodeToRestore=void 0),(!c||!Ba(c,e))&&u){f.currentNode=u;do c=i.shiftKey?f.previousNode():f.nextNode();while(Ba(c,e));i.preventDefault(),i.stopPropagation(),c?Et(c,!0):u3(u)?Et(u,!0):o.blur()}};return n||r.addEventListener("keydown",l,!0),()=>{n||r.removeEventListener("keydown",l,!0)}},[e,t,n]),se(()=>{const r=de(e.current?e.current[0]:void 0);if(!t)return;let l=He.getTreeNode(e);if(l){var i;return l.nodeToRestore=(i=a.current)!==null&&i!==void 0?i:void 0,()=>{let o=He.getTreeNode(e);if(!o)return;let s=o.nodeToRestore,u=at(r);if(t&&s&&(u&&Ba(u,e)||u===r.body&&ub(e))){let f=He.clone();requestAnimationFrame(()=>{if(r.activeElement===r.body){let c=f.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){cb(c.nodeToRestore);return}c=c.parent}for(c=f.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&He.getTreeNode(c.scopeRef)){let d=c3(c.scopeRef.current,!0);cb(d);return}c=c.parent}}})}}}},[e,t])}function cb(e){e.dispatchEvent(new CustomEvent(rp,{bubbles:!0,cancelable:!0}))&&Et(e)}function Ut(e,t,n){let a=t!=null&&t.tabbable?nO:z8,r=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=de(r),i=kR(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:a(o)&&o3(o)&&(!n||cn(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 CT(e,t={}){return{focusNext(n={}){let a=e.current;if(!a)return null;let{from:r,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=r||at(de(a)),u=Ut(a,{tabbable:l,accept:o});a.contains(s)&&(u.currentNode=s);let f=u.nextNode();return!f&&i&&(u.currentNode=a,f=u.nextNode()),f&&Et(f,!0),f},focusPrevious(n=t){let a=e.current;if(!a)return null;let{from:r,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=r||at(de(a)),u=Ut(a,{tabbable:l,accept:o});if(a.contains(s))u.currentNode=s;else{let c=m0(u);return c&&Et(c,!0),c??null}let f=u.previousNode();if(!f&&i){u.currentNode=a;let c=m0(u);if(!c)return null;f=c}return f&&Et(f,!0),f??null},focusFirst(n=t){let a=e.current;if(!a)return null;let{tabbable:r=t.tabbable,accept:l=t.accept}=n,i=Ut(a,{tabbable:r,accept:l}).nextNode();return i&&Et(i,!0),i},focusLast(n=t){let a=e.current;if(!a)return null;let{tabbable:r=t.tabbable,accept:l=t.accept}=n,i=Ut(a,{tabbable:r,accept:l}),o=m0(i);return o&&Et(o,!0),o??null}}}function m0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class nm{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,a){let r=this.fastMap.get(n??null);if(!r)return;let l=new ip({scopeRef:t});r.addChild(l),l.parent=r,this.fastMap.set(t,l),a&&(l.nodeToRestore=a)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let a=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&cn(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let r=n.children;a&&(a.removeChild(n),r.size>0&&r.forEach(l=>a&&a.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 nm;var a;for(let r of this.traverse())n.addTreeNode(r.scopeRef,(a=(t=r.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&a!==void 0?a:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new ip({scopeRef:null}),this.fastMap.set(null,this.root)}}class ip{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 He=new nm;function d3(e={}){let{autoFocus:t=!1,isTextInput:n,within:a}=e,r=p.useRef({isFocused:!1,isFocusVisible:t||xs()}),[l,i]=p.useState(!1),[o,s]=p.useState(()=>r.current.isFocused&&r.current.isFocusVisible),u=p.useCallback(()=>s(r.current.isFocused&&r.current.isFocusVisible),[]),f=p.useCallback(h=>{r.current.isFocused=h,i(h),u()},[u]);CO(h=>{r.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=em({isDisabled:a,onFocusChange:f}),{focusWithinProps:d}=tm({isDisabled:!a,onFocusWithinChange:f});return{isFocused:l,isFocusVisible:o,focusProps:a?d:c}}function f3(e){let t=MT(de(e));t!==e&&(t&&ST(t,e),e&&ET(e,t))}function ST(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ET(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function MT(e){let t=at(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function RT(e,t){const{"aria-label":n,"aria-labelledby":a,orientation:r="horizontal"}=e;let[l,i]=p.useState(!1);se(()=>{var g;i(!!(t.current&&!((g=t.current.parentElement)===null||g===void 0)&&g.closest('[role="toolbar"]')))});const{direction:o}=ol(),s=o==="rtl"&&r==="horizontal";let u=CT(t);const f=g=>{if(g.currentTarget.contains(g.target)){if(r==="horizontal"&&g.key==="ArrowRight"||r==="vertical"&&g.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(r==="horizontal"&&g.key==="ArrowLeft"||r==="vertical"&&g.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(g.key==="Tab"){g.stopPropagation(),c.current=document.activeElement,g.shiftKey?u.focusFirst():u.focusLast();return}else return;g.stopPropagation(),g.preventDefault()}},c=p.useRef(null),d=g=>{!g.currentTarget.contains(g.relatedTarget)&&!c.current&&(c.current=g.target)},h=g=>{var m;if(c.current&&!g.currentTarget.contains(g.relatedTarget)&&!((m=t.current)===null||m===void 0)&&m.contains(g.target)){var w;(w=c.current)===null||w===void 0||w.focus(),c.current=null}};return{toolbarProps:{...Ot(e,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":r,"aria-label":n,"aria-labelledby":n==null?a:void 0,onKeyDownCapture:l?void 0:f,onFocusCapture:l?void 0:h,onBlurCapture:l?void 0:d}}}function OT(e,t,n){let{isDisabled:a}=e,{toolbarProps:r}=RT(e,n);return{groupProps:{...r,role:t.selectionMode==="single"?"radiogroup":r.role,"aria-disabled":a}}}function TT(e,t,n){let a={isSelected:t.selectedKeys.has(e.id),toggle(){t.toggleKey(e.id)}},{isPressed:r,isSelected:l,isDisabled:i,buttonProps:o}=i3({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},a,n);return t.selectionMode==="single"&&(o.role="radio",o["aria-checked"]=a.isSelected,delete o["aria-pressed"]),{isPressed:r,isSelected:l,isDisabled:i,buttonProps:o}}const h3=7e3;let Ra=null;function DT(e,t="assertive",n=h3){Ra?Ra.announce(e,t,n):(Ra=new kT,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ra.announce(e,t,n):setTimeout(()=>{Ra!=null&&Ra.isAttached()&&(Ra==null||Ra.announce(e,t,n))},100))}class kT{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",a=h3){var r,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"?(r=this.assertiveLog)===null||r===void 0||r.appendChild(i):(l=this.politeLog)===null||l===void 0||l.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},a)}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))}}function NT(e){let{id:t,label:n,"aria-labelledby":a,"aria-label":r,labelElementType:l="label"}=e;t=Xt(t);let i=Xt(),o={};n&&(a=a?`${i} ${a}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=N8({id:t,"aria-label":r,"aria-labelledby":a});return{labelProps:o,fieldProps:s}}function AT(e={}){let{isReadOnly:t}=e,[n,a]=Zs(e.isSelected,e.defaultSelected||!1,e.onChange);function r(i){t||a(i)}function l(){t||a(!n)}return{isSelected:n,setSelected:r,toggle:l}}function jT(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:a=!1}=e,[r,l]=Zs(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:a,selectedKeys:r,setSelectedKeys:l,toggleKey(i){let o;t==="multiple"?(o=new Set(r),o.has(i)&&(!n||o.size>1)?o.delete(i):o.add(i)):o=new Set(r.has(i)&&!n?[]:[i]),l(o)},setSelected(i,o){o!==r.has(i)&&this.toggleKey(i)}}}const db={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 LT(e={}){let{style:t,isFocusable:n}=e,[a,r]=p.useState(!1),{focusWithinProps:l}=tm({isDisabled:!n,onFocusWithinChange:o=>r(o)}),i=p.useMemo(()=>a?t:t?{...db,...t}:db,[a]);return{visuallyHiddenProps:{...l,style:i}}}function _T(e){let{children:t,elementType:n="div",isFocusable:a,style:r,...l}=e,{visuallyHiddenProps:i}=LT(e);return E.createElement(n,me(l,i),t)}const Hn={top:"top",bottom:"top",left:"left",right:"left"},nd={top:"bottom",bottom:"top",left:"right",right:"left"},zT={top:"left",left:"top"},op={top:"height",left:"width"},p3={width:"totalWidth",height:"totalHeight"},Nu={};let Lt=typeof document<"u"?window.visualViewport:null;function fb(e){let t=0,n=0,a=0,r=0,l=0,i=0,o={};var s;let u=((s=Lt==null?void 0:Lt.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;a=g.clientWidth,r=g.clientHeight;var f;t=(f=Lt==null?void 0:Lt.width)!==null&&f!==void 0?f:a;var c;n=(c=Lt==null?void 0:Lt.height)!==null&&c!==void 0?c:r,o.top=g.scrollTop||e.scrollTop,o.left=g.scrollLeft||e.scrollLeft,Lt&&(l=Lt.offsetTop,i=Lt.offsetLeft)}else({width:t,height:n,top:l,left:i}=si(e)),o.top=e.scrollTop,o.left=e.scrollLeft,a=t,r=n;if(T8()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){o.top=0,o.left=0;var d;l=(d=Lt==null?void 0:Lt.pageTop)!==null&&d!==void 0?d:0;var h;i=(h=Lt==null?void 0:Lt.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:n,totalWidth:a,totalHeight:r,scroll:o,top:l,left:i}}function PT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function hb(e,t,n,a,r,l,i){var o;let s=(o=r.scroll[e])!==null&&o!==void 0?o:0,u=a[op[e]],f=a.scroll[Hn[e]]+l,c=u+a.scroll[Hn[e]]-l,d=t-s+i[e]-a[Hn[e]],h=t-s+n+i[e]-a[Hn[e]];return d<f?f-d:h>c?Math.max(c-h,f-d):0}function KT(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 pb(e){if(Nu[e])return Nu[e];let[t,n]=e.split(" "),a=Hn[t]||"right",r=zT[a];Hn[n]||(n="center");let l=op[a],i=op[r];return Nu[e]={placement:t,crossPlacement:n,axis:a,crossAxis:r,size:l,crossSize:i},Nu[e]}function v0(e,t,n,a,r,l,i,o,s,u){let{placement:f,crossPlacement:c,axis:d,crossAxis:h,size:g,crossSize:m}=a,w={};var v;w[h]=(v=e[h])!==null&&v!==void 0?v:0;var b,y,C,S;c==="center"?w[h]+=(((b=e[m])!==null&&b!==void 0?b:0)-((y=n[m])!==null&&y!==void 0?y:0))/2:c!==h&&(w[h]+=((C=e[m])!==null&&C!==void 0?C:0)-((S=n[m])!==null&&S!==void 0?S:0)),w[h]+=l;const M=e[h]-n[m]+s+u,R=e[h]+e[m]-s-u;if(w[h]=ys(w[h],M,R),f===d){const D=o?i[g]:t[p3[g]];w[nd[d]]=Math.floor(D-e[d]+r)}else w[d]=Math.floor(e[d]+e[g]+r);return w}function HT(e,t,n,a,r,l,i,o){const s=a?n.height:t[p3.height];var u;let f=e.top!=null?n.top+e.top:n.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var c,d,h,g,m,w;let v=o!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-f-(((d=r.top)!==null&&d!==void 0?d:0)+((h=r.bottom)!==null&&h!==void 0?h:0)+l)):Math.max(0,f+i-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=r.top)!==null&&m!==void 0?m:0)+((w=r.bottom)!==null&&w!==void 0?w:0)+l));return Math.min(t.height-l*2,v)}function gb(e,t,n,a,r,l){let{placement:i,axis:o,size:s}=l;var u,f;if(i===o)return Math.max(0,n[o]-e[o]-((u=e.scroll[o])!==null&&u!==void 0?u:0)+t[o]-((f=a[o])!==null&&f!==void 0?f:0)-a[nd[o]]-r);var c;return Math.max(0,e[s]+e[o]+e.scroll[o]-t[o]-n[o]-n[s]-((c=a[o])!==null&&c!==void 0?c:0)-a[nd[o]]-r)}function UT(e,t,n,a,r,l,i,o,s,u,f,c,d,h,g,m){let w=pb(e),{size:v,crossAxis:b,crossSize:y,placement:C,crossPlacement:S}=w,M=v0(t,o,n,w,f,c,u,d,g,m),R=f,D=gb(o,u,t,r,l+f,w);if(i&&a[v]>D){let le=pb(`${nd[C]} ${S}`),J=v0(t,o,n,le,f,c,u,d,g,m);gb(o,u,t,r,l+f,le)>D&&(w=le,M=J,R=f)}let j="bottom";w.axis==="top"?w.placement==="top"?j="top":w.placement==="bottom"&&(j="bottom"):w.crossAxis==="top"&&(w.crossPlacement==="top"?j="bottom":w.crossPlacement==="bottom"&&(j="top"));let A=hb(b,M[b],n[y],o,s,l,u);M[b]+=A;let k=HT(M,o,u,d,r,l,n.height,j);h&&h<k&&(k=h),n.height=Math.min(n.height,k),M=v0(t,o,n,w,R,c,u,d,g,m),A=hb(b,M[b],n[y],o,s,l,u),M[b]+=A;let P={},B=t[b]+.5*t[y]-M[b]-r[Hn[b]];const z=g/2+m;var L,T,N,_;const q=Hn[b]==="left"?((L=r.left)!==null&&L!==void 0?L:0)+((T=r.right)!==null&&T!==void 0?T:0):((N=r.top)!==null&&N!==void 0?N:0)+((_=r.bottom)!==null&&_!==void 0?_:0),U=n[y]-q-g/2-m,H=t[b]+g/2-(M[b]+r[Hn[b]]),F=t[b]+t[y]-g/2-(M[b]+r[Hn[b]]),Y=ys(B,H,F);return P[b]=ys(Y,z,U),{position:M,maxHeight:k,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:w.placement}}function BT(e){let{placement:t,targetNode:n,overlayNode:a,scrollNode:r,padding:l,shouldFlip:i,boundaryElement:o,offset:s,crossOffset:u,maxHeight:f,arrowSize:c=0,arrowBoundaryOffset:d=0}=e,h=a instanceof HTMLElement?qT(a):document.documentElement,g=h===document.documentElement;const m=window.getComputedStyle(h).position;let w=!!m&&m!=="static",v=g?si(n):mb(n,h);if(!g){let{marginTop:P,marginLeft:B}=window.getComputedStyle(n);v.top+=parseInt(P,10)||0,v.left+=parseInt(B,10)||0}let b=si(a),y=KT(a);var C,S;b.width+=((C=y.left)!==null&&C!==void 0?C:0)+((S=y.right)!==null&&S!==void 0?S:0);var M,R;b.height+=((M=y.top)!==null&&M!==void 0?M:0)+((R=y.bottom)!==null&&R!==void 0?R:0);let D=PT(r),j=fb(o),A=fb(h),k=o.tagName==="BODY"?si(h):mb(h,o);return h.tagName==="HTML"&&o.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),UT(t,v,b,D,y,l,i,j,A,k,s,u,w,f,c,d)}function si(e){let{top:t,left:n,width:a,height:r}=e.getBoundingClientRect(),{scrollTop:l,scrollLeft:i,clientTop:o,clientLeft:s}=document.documentElement;return{top:t+l-o,left:n+i-s,width:a,height:r}}function mb(e,t){let n=window.getComputedStyle(e),a;if(n.position==="fixed"){let{top:r,left:l,width:i,height:o}=e.getBoundingClientRect();a={top:r,left:l,width:i,height:o}}else{a=si(e);let r=si(t),l=window.getComputedStyle(t);r.top+=(parseInt(l.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(l.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=r.top,a.left-=r.left}return a.top-=parseInt(n.marginTop,10)||0,a.left-=parseInt(n.marginLeft,10)||0,a}function qT(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!vb(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!vb(t);)t=t.parentElement;return t||document.documentElement}function vb(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 g3=new WeakMap;function FT(e){let{triggerRef:t,isOpen:n,onClose:a}=e;p.useEffect(()=>{if(!n||a===null)return;let r=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=a||g3.get(t.current);o&&o()};return window.addEventListener("scroll",r,!0),()=>{window.removeEventListener("scroll",r,!0)}},[n,a,t])}let bt=typeof document<"u"?window.visualViewport:null;function m3(e){let{direction:t}=ol(),{arrowSize:n=0,targetRef:a,overlayRef:r,scrollRef:l=r,placement:i="bottom",containerPadding:o=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:f=0,crossOffset:c=0,shouldUpdatePosition:d=!0,isOpen:h=!0,onClose:g,maxHeight:m,arrowBoundaryOffset:w=0}=e,[v,b]=p.useState(null),y=[d,i,r.current,a.current,l.current,o,s,u,f,c,h,t,m,w,n],C=p.useRef(bt==null?void 0:bt.scale);p.useEffect(()=>{h&&(C.current=bt==null?void 0:bt.scale)},[h]);let S=p.useCallback(()=>{if(d===!1||!h||!r.current||!a.current||!u||(bt==null?void 0:bt.scale)!==C.current)return;let A=null;if(l.current&&l.current.contains(document.activeElement)){var k;let _=(k=document.activeElement)===null||k===void 0?void 0:k.getBoundingClientRect(),q=l.current.getBoundingClientRect();var P;if(A={type:"top",offset:((P=_==null?void 0:_.top)!==null&&P!==void 0?P:0)-q.top},A.offset>q.height/2){A.type="bottom";var B;A.offset=((B=_==null?void 0:_.bottom)!==null&&B!==void 0?B:0)-q.bottom}}let z=r.current;if(!m&&r.current){var L;z.style.top="0px",z.style.bottom="";var T;z.style.maxHeight=((T=(L=window.visualViewport)===null||L===void 0?void 0:L.height)!==null&&T!==void 0?T:window.innerHeight)+"px"}let N=BT({placement:GT(i,t),overlayNode:r.current,targetNode:a.current,scrollNode:l.current||r.current,padding:o,shouldFlip:s,boundaryElement:u,offset:f,crossOffset:c,maxHeight:m,arrowSize:n,arrowBoundaryOffset:w});if(N.position){if(z.style.top="",z.style.bottom="",z.style.left="",z.style.right="",Object.keys(N.position).forEach(_=>z.style[_]=N.position[_]+"px"),z.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",A&&document.activeElement&&l.current){let _=document.activeElement.getBoundingClientRect(),q=l.current.getBoundingClientRect(),U=_[A.type]-q[A.type];l.current.scrollTop+=U-A.offset}b(N)}},y);se(S,y),VT(S),Xc({ref:r,onResize:S}),Xc({ref:a,onResize:S});let M=p.useRef(!1);se(()=>{let A,k=()=>{M.current=!0,clearTimeout(A),A=setTimeout(()=>{M.current=!1},500),S()},P=()=>{M.current&&k()};return bt==null||bt.addEventListener("resize",k),bt==null||bt.addEventListener("scroll",P),()=>{bt==null||bt.removeEventListener("resize",k),bt==null||bt.removeEventListener("scroll",P)}},[S]);let R=p.useCallback(()=>{M.current||g==null||g()},[g,M]);FT({triggerRef:a,isOpen:h,onClose:g&&R});var D,j;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v==null?void 0:v.position,maxHeight:(D=v==null?void 0:v.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(j=v==null?void 0:v.placement)!==null&&j!==void 0?j: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 VT(e){se(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function GT(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const jn=[];function v3(e,t){let{onClose:n,shouldCloseOnBlur:a,isOpen:r,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e;p.useEffect(()=>{if(r&&!jn.includes(t))return jn.push(t),()=>{let g=jn.indexOf(t);g>=0&&jn.splice(g,1)}},[r,t]);let s=()=>{jn[jn.length-1]===t&&n&&n()},u=g=>{(!o||o(g.target))&&jn[jn.length-1]===t&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!o||o(g.target))&&(jn[jn.length-1]===t&&(g.stopPropagation(),g.preventDefault()),s())},c=g=>{g.key==="Escape"&&!i&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),s())};TO({ref:t,onInteractOutside:l&&r?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:d}=tm({isDisabled:!a,onBlurWithin:g=>{!g.relatedTarget||bT(g.relatedTarget)||(!o||o(g.relatedTarget))&&(n==null||n())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:c,...d},underlayProps:{onPointerDown:h}}}function b3(e,t,n){let{type:a}=e,{isOpen:r}=t;p.useEffect(()=>{n&&n.current&&g3.set(n.current,t.close)});let l;a==="menu"?l=!0:a==="listbox"&&(l="listbox");let i=Xt();return{triggerProps:{"aria-haspopup":l,"aria-expanded":r,"aria-controls":r?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}const b0=typeof document<"u"&&window.visualViewport,QT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Au=0,y0;function y3(e={}){let{isDisabled:t}=e;se(()=>{if(!t)return Au++,Au===1&&(Qd()?y0=YT():y0=XT()),()=>{Au--,Au===0&&y0()}},[t])}function XT(){return xi(Xl(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Xl(document.documentElement,"overflow","hidden"))}function YT(){let e,t,n=u=>{e=A8(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Xl(e,"overscrollBehavior","contain"))},a=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},r=()=>{t&&t()},l=u=>{let f=u.target;IT(f)&&(o(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",b0&&(b0.height<window.innerHeight?requestAnimationFrame(()=>{bb(f)}):b0.addEventListener("resize",()=>bb(f),{once:!0}))}))},i=null,o=()=>{if(i)return;let u=()=>{window.scrollTo(0,0)},f=window.pageXOffset,c=window.pageYOffset;i=xi(bo(window,"scroll",u),Xl(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Xl(document.documentElement,"overflow","hidden"),Xl(document.body,"marginTop",`-${c}px`),()=>{window.scrollTo(f,c)}),window.scrollTo(0,0)},s=xi(bo(document,"touchstart",n,{passive:!1,capture:!0}),bo(document,"touchmove",a,{passive:!1,capture:!0}),bo(document,"touchend",r,{passive:!1,capture:!0}),bo(document,"focus",l,!0));return()=>{t==null||t(),i==null||i(),s()}}function Xl(e,t,n){let a=e.style[t];return e.style[t]=n,()=>{e.style[t]=a}}function bo(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function bb(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let a=A8(n);if(a!==document.documentElement&&a!==document.body&&a!==n){let r=a.getBoundingClientRect().top,l=n.getBoundingClientRect().top;l>r+n.clientHeight&&(a.scrollTop+=l-r)}n=a.parentElement}}function IT(e){return e instanceof HTMLInputElement&&!QT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const ZT=p.createContext({});function w3(){var e;return(e=p.useContext(ZT))!==null&&e!==void 0?e:{}}const sp=E.createContext(null);function WT(e){let{children:t}=e,n=p.useContext(sp),[a,r]=p.useState(0),l=p.useMemo(()=>({parent:n,modalCount:a,addModal(){r(i=>i+1),n&&n.addModal()},removeModal(){r(i=>i-1),n&&n.removeModal()}}),[n,a]);return E.createElement(sp.Provider,{value:l},t)}function $T(){let e=p.useContext(sp);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function JT(e){let{modalProviderProps:t}=$T();return E.createElement("div",{"data-overlay-container":!0,...e,...t})}function eD(e){return E.createElement(WT,null,E.createElement(JT,e))}function tD(e){let t=dr(),{portalContainer:n=t?null:document.body,...a}=e,{getContainer:r}=w3();if(!e.portalContainer&&r&&(n=r()),E.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=E.createElement(eD,a);return jp.createPortal(l,n)}var x3={};x3={dismiss:"تجاهل"};var C3={};C3={dismiss:"Отхвърляне"};var S3={};S3={dismiss:"Odstranit"};var E3={};E3={dismiss:"Luk"};var M3={};M3={dismiss:"Schließen"};var R3={};R3={dismiss:"Απόρριψη"};var O3={};O3={dismiss:"Dismiss"};var T3={};T3={dismiss:"Descartar"};var D3={};D3={dismiss:"Lõpeta"};var k3={};k3={dismiss:"Hylkää"};var N3={};N3={dismiss:"Rejeter"};var A3={};A3={dismiss:"התעלם"};var j3={};j3={dismiss:"Odbaci"};var L3={};L3={dismiss:"Elutasítás"};var _3={};_3={dismiss:"Ignora"};var z3={};z3={dismiss:"閉じる"};var P3={};P3={dismiss:"무시"};var K3={};K3={dismiss:"Atmesti"};var H3={};H3={dismiss:"Nerādīt"};var U3={};U3={dismiss:"Lukk"};var B3={};B3={dismiss:"Negeren"};var q3={};q3={dismiss:"Zignoruj"};var F3={};F3={dismiss:"Descartar"};var V3={};V3={dismiss:"Dispensar"};var G3={};G3={dismiss:"Revocare"};var Q3={};Q3={dismiss:"Пропустить"};var X3={};X3={dismiss:"Zrušiť"};var Y3={};Y3={dismiss:"Opusti"};var I3={};I3={dismiss:"Odbaci"};var Z3={};Z3={dismiss:"Avvisa"};var W3={};W3={dismiss:"Kapat"};var $3={};$3={dismiss:"Скасувати"};var J3={};J3={dismiss:"取消"};var e4={};e4={dismiss:"關閉"};var t4={};t4={"ar-AE":x3,"bg-BG":C3,"cs-CZ":S3,"da-DK":E3,"de-DE":M3,"el-GR":R3,"en-US":O3,"es-ES":T3,"et-EE":D3,"fi-FI":k3,"fr-FR":N3,"he-IL":A3,"hr-HR":j3,"hu-HU":L3,"it-IT":_3,"ja-JP":z3,"ko-KR":P3,"lt-LT":K3,"lv-LV":H3,"nb-NO":U3,"nl-NL":B3,"pl-PL":q3,"pt-BR":F3,"pt-PT":V3,"ro-RO":G3,"ru-RU":Q3,"sk-SK":X3,"sl-SI":Y3,"sr-SP":I3,"sv-SE":Z3,"tr-TR":W3,"uk-UA":$3,"zh-CN":J3,"zh-TW":e4};function nD(e){return e&&e.__esModule?e.default:e}function up(e){let{onDismiss:t,...n}=e,a=a3(nD(t4),"@react-aria/overlays"),r=N8(n,a.format("dismiss")),l=()=>{t&&t()};return E.createElement(_T,null,E.createElement("button",{...r,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}let yo=new WeakMap,yt=[];function n4(e,t=document.body){let n=new Set(e),a=new Set,r=s=>{for(let d of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(d);let u=d=>{if(n.has(d)||d.parentElement&&a.has(d.parentElement)&&d.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(d.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(s);if(c===NodeFilter.FILTER_ACCEPT&&l(s),c!==NodeFilter.FILTER_REJECT){let d=f.nextNode();for(;d!=null;)l(d),d=f.nextNode()}},l=s=>{var u;let f=(u=yo.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&s.setAttribute("aria-hidden","true"),a.add(s),yo.set(s,f+1))};yt.length&&yt[yt.length-1].disconnect(),r(t);let i=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...a].some(f=>f.contains(u.target))){for(let f of u.removedNodes)f instanceof Element&&(n.delete(f),a.delete(f));for(let f of u.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&r(f)}});i.observe(t,{childList:!0,subtree:!0});let o={visibleNodes:n,hiddenNodes:a,observe(){i.observe(t,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return yt.push(o),()=>{i.disconnect();for(let s of a){let u=yo.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),yo.delete(s)):yo.set(s,u-1))}o===yt[yt.length-1]?(yt.pop(),yt.length&&yt[yt.length-1].observe()):yt.splice(yt.indexOf(o),1)}}function aD(e){let t=yt[yt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function rD(e,t){let{triggerRef:n,popoverRef:a,groupRef:r,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:c}=v3({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},r??a),{overlayProps:d,arrowProps:h,placement:g}=m3({...s,targetRef:n,overlayRef:a,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return y3({isDisabled:l||!t.isOpen}),se(()=>{if(t.isOpen&&a.current){var m,w;return l?aD((m=r==null?void 0:r.current)!==null&&m!==void 0?m:a.current):n4([(w=r==null?void 0:r.current)!==null&&w!==void 0?w:a.current])}},[l,t.isOpen,a,r]),{popoverProps:me(f,d),arrowProps:h,underlayProps:c,placement:g}}const a4=E.createContext(null);function cp(e){let t=dr(),{portalContainer:n=t?null:document.body,isExiting:a}=e,[r,l]=p.useState(!1),i=p.useMemo(()=>({contain:r,setContain:l}),[r,l]),{getContainer:o}=w3();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=E.createElement(s3,{restoreFocus:!0,contain:(e.shouldContainFocus||r)&&!a},s)),s=E.createElement(a4.Provider,{value:i},E.createElement(MO,null,s)),jp.createPortal(s,n)}function r4(){let e=p.useContext(a4),t=e==null?void 0:e.setContain;se(()=>{t==null||t(!0)},[t])}function lD(e,t,n){let{overlayProps:a,underlayProps:r}=v3({...e,isOpen:t.isOpen,onClose:t.close},n);return y3({isDisabled:!t.isOpen}),r4(),p.useEffect(()=>{if(t.isOpen&&n.current)return n4([n.current])},[t.isOpen,n]),{modalProps:me(a),underlayProps:r}}function dp(e){return HR()?e.altKey:e.ctrlKey}function sc(e,t){var n,a;let r=`[data-key="${CSS.escape(String(t))}"]`,l=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return l&&(r=`[data-collection="${CSS.escape(l)}"]${r}`),(a=e.current)===null||a===void 0?void 0:a.querySelector(r)}const l4=new WeakMap;function iD(e){let t=Xt();return l4.set(e,t),t}function oD(e){return l4.get(e)}const sD=1e3;function uD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:a}=e,r=p.useRef({search:"",timeout:void 0}).current,l=i=>{let o=cD(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))){if(o===" "&&r.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),r.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(r.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(r.search)),s!=null&&(n.setFocusedKey(s),a&&a(s))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},sD)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function cD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function dD(e){let{selectionManager:t,keyboardDelegate:n,ref:a,autoFocus:r=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:h,scrollRef:g=a,linkBehavior:m="action"}=e,{direction:w}=ol(),v=Xd(),b=N=>{var _;if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!(!((_=a.current)===null||_===void 0)&&_.contains(N.target)))return;const q=(X,Wt)=>{if(X!=null){if(t.isLink(X)&&m==="selection"&&u&&!dp(N)){Ts.flushSync(()=>{t.setFocusedKey(X,Wt)});let Tt=sc(a,X),ue=t.getItemProps(X);Tt&&v.open(Tt,N,ue.href,ue.routerOptions);return}if(t.setFocusedKey(X,Wt),t.isLink(X)&&m==="override")return;N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(X):u&&!dp(N)&&t.replaceSelection(X)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var U,H,F;let X=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);X==null&&l&&(X=(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n,t.focusedKey)),X!=null&&(N.preventDefault(),q(X))}break;case"ArrowUp":if(n.getKeyAbove){var Y,le,J;let X=t.focusedKey!=null?(Y=n.getKeyAbove)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):(le=n.getLastKey)===null||le===void 0?void 0:le.call(n);X==null&&l&&(X=(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),X!=null&&(N.preventDefault(),q(X))}break;case"ArrowLeft":if(n.getKeyLeftOf){var gt,fn,It;let X=t.focusedKey!=null?(gt=n.getKeyLeftOf)===null||gt===void 0?void 0:gt.call(n,t.focusedKey):null;X==null&&l&&(X=w==="rtl"?(fn=n.getFirstKey)===null||fn===void 0?void 0:fn.call(n,t.focusedKey):(It=n.getLastKey)===null||It===void 0?void 0:It.call(n,t.focusedKey)),X!=null&&(N.preventDefault(),q(X,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Zt,hr,pr;let X=t.focusedKey!=null?(Zt=n.getKeyRightOf)===null||Zt===void 0?void 0:Zt.call(n,t.focusedKey):null;X==null&&l&&(X=w==="rtl"?(hr=n.getLastKey)===null||hr===void 0?void 0:hr.call(n,t.focusedKey):(pr=n.getFirstKey)===null||pr===void 0?void 0:pr.call(n,t.focusedKey)),X!=null&&(N.preventDefault(),q(X,w==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&N.shiftKey)return;N.preventDefault();let X=n.getFirstKey(t.focusedKey,Nl(N));t.setFocusedKey(X),X!=null&&(Nl(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(X):u&&t.replaceSelection(X))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&N.shiftKey)return;N.preventDefault();let X=n.getLastKey(t.focusedKey,Nl(N));t.setFocusedKey(X),X!=null&&(Nl(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(X):u&&t.replaceSelection(X))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let X=n.getKeyPageBelow(t.focusedKey);X!=null&&(N.preventDefault(),q(X))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let X=n.getKeyPageAbove(t.focusedKey);X!=null&&(N.preventDefault(),q(X))}break;case"a":Nl(N)&&t.selectionMode==="multiple"&&o!==!0&&(N.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),t.clearSelection());break;case"Tab":if(!d){if(N.shiftKey)a.current.focus();else{let X=Ut(a.current,{tabbable:!0}),Wt,Tt;do Tt=X.lastChild(),Tt&&(Wt=Tt);while(Tt);Wt&&!Wt.contains(document.activeElement)&&Rn(Wt)}break}}},y=p.useRef({top:0,left:0});Tu(g,"scroll",h?void 0:()=>{var N,_,q,U;y.current={top:(q=(N=g.current)===null||N===void 0?void 0:N.scrollTop)!==null&&q!==void 0?q:0,left:(U=(_=g.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&U!==void 0?U:0}});let C=N=>{if(t.isFocused){N.currentTarget.contains(N.target)||t.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(t.setFocused(!0),t.focusedKey==null){var _,q;let F=le=>{le!=null&&(t.setFocusedKey(le),u&&!t.isSelected(le)&&t.replaceSelection(le))},Y=N.relatedTarget;var U,H;Y&&N.currentTarget.compareDocumentPosition(Y)&Node.DOCUMENT_POSITION_FOLLOWING?F((U=t.lastSelectedKey)!==null&&U!==void 0?U:(_=n.getLastKey)===null||_===void 0?void 0:_.call(n)):F((H=t.firstSelectedKey)!==null&&H!==void 0?H:(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))}else!h&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let F=sc(a,t.focusedKey);F instanceof HTMLElement&&(!F.contains(document.activeElement)&&!c&&Rn(F),Cs()==="keyboard"&&Qv(F,{containingElement:a.current}))}}},S=N=>{N.currentTarget.contains(N.relatedTarget)||t.setFocused(!1)},M=p.useRef(!1);Tu(a,JR,c?N=>{let{detail:_}=N;N.stopPropagation(),t.setFocused(!0),(_==null?void 0:_.focusStrategy)==="first"&&(M.current=!0)}:void 0);let R=dt(()=>{var N,_;let q=(_=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&_!==void 0?_:null;q==null?(f3(a.current),t.collection.size>0&&(M.current=!1)):(t.setFocusedKey(q),M.current=!1)});Fv(()=>{M.current&&R()},[t.collection,R]);let D=dt(()=>{t.collection.size>0&&(M.current=!1)});Fv(()=>{D()},[t.focusedKey,D]),Tu(a,$R,c?N=>{var _;N.stopPropagation(),t.setFocused(!1),!((_=N.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const j=p.useRef(r),A=p.useRef(!1);p.useEffect(()=>{if(j.current){var N,_;let H=null;var q;r==="first"&&(H=(q=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&q!==void 0?q:null);var U;r==="last"&&(H=(U=(_=n.getLastKey)===null||_===void 0?void 0:_.call(n))!==null&&U!==void 0?U:null);let F=t.selectedKeys;if(F.size){for(let Y of F)if(t.canSelectItem(Y)){H=Y;break}}t.setFocused(!0),t.setFocusedKey(H),H==null&&!c&&a.current&&lr(a.current),t.collection.size>0&&(j.current=!1,A.current=!0)}});let k=p.useRef(t.focusedKey),P=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==k.current||A.current)&&g.current&&a.current){let N=Cs(),_=sc(a,t.focusedKey);if(!(_ instanceof HTMLElement))return;(N==="keyboard"||A.current)&&(P.current&&cancelAnimationFrame(P.current),P.current=requestAnimationFrame(()=>{g.current&&j8(g.current,_)}),N!=="virtual"&&Qv(_,{containingElement:a.current}))}!c&&t.isFocused&&t.focusedKey==null&&k.current!=null&&a.current&&lr(a.current),k.current=t.focusedKey,A.current=!1}),p.useEffect(()=>()=>{P.current&&cancelAnimationFrame(P.current)},[]),Tu(a,"react-aria-focus-scope-restore",N=>{N.preventDefault(),t.setFocused(!0)});let B={onKeyDown:b,onFocus:C,onBlur:S,onMouseDown(N){g.current===N.target&&N.preventDefault()}},{typeSelectProps:z}=uD({keyboardDelegate:n,selectionManager:t});f||(B=me(z,B));let L;c||(L=t.focusedKey==null?0:-1);let T=iD(t.collection);return{collectionProps:me(B,{tabIndex:L,"data-collection":T})}}function fD(e){let{id:t,selectionManager:n,key:a,ref:r,shouldUseVirtualFocus:l,focus:i,isDisabled:o,onAction:s,linkBehavior:u="action"}=e,f=Xd();t=Xt(t);let c=L=>{if(L.pointerType==="keyboard"&&dp(L))n.toggleSelection(a);else{if(n.selectionMode==="none")return;if(n.isLink(a)){if(u==="selection"&&r.current){let T=n.getItemProps(a);f.open(r.current,L,T.href,T.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(u==="override"||u==="none")return}n.selectionMode==="single"?n.isSelected(a)&&!n.disallowEmptySelection?n.toggleSelection(a):n.replaceSelection(a):L&&L.shiftKey?n.extendSelection(a):n.selectionBehavior==="toggle"||L&&(Nl(L)||L.pointerType==="touch"||L.pointerType==="virtual")?n.toggleSelection(a):n.replaceSelection(a)}};p.useEffect(()=>{a===n.focusedKey&&n.isFocused&&(l?f3(r.current):i?i():document.activeElement!==r.current&&r.current&&lr(r.current))},[r,a,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),o=o||n.isDisabled(a);let d={};!l&&!o?d={tabIndex:a===n.focusedKey?0:-1,onFocus(L){L.target===r.current&&n.setFocusedKey(a)}}:o&&(d.onMouseDown=L=>{L.preventDefault()});let h=n.isLink(a)&&u==="override",g=n.isLink(a)&&u!=="selection"&&u!=="none",m=!o&&n.canSelectItem(a)&&!h,w=(s||g)&&!o,v=w&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),b=w&&m&&n.selectionBehavior==="replace",y=v||b,C=p.useRef(null),S=y&&m,M=p.useRef(!1);p.useRef(!1);let R=L=>{if(s&&s(),g&&r.current){let T=n.getItemProps(a);f.open(r.current,L,T.href,T.routerOptions)}},D={ref:r};D.onPressStart=L=>{C.current=L.pointerType,M.current=S,L.pointerType==="keyboard"&&(!y||hD())&&c(L)},D.onPressUp=v?void 0:L=>{L.pointerType==="mouse"&&m&&c(L)},D.onPress=v?R:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&m&&c(L)},d["data-collection"]=oD(n.collection),d["data-key"]=a,D.preventFocusOnPress=l,l&&(D=me(D,{onPressStart(L){L.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(a))},onPress(L){L.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(a))}}));let{pressProps:j,isPressed:A}=Zd(D),k=b?L=>{C.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),R(L))}:void 0,{longPressProps:P}=$8({isDisabled:!S,onLongPress(L){L.pointerType==="touch"&&(c(L),n.setSelectionBehavior("toggle"))}}),B=L=>{C.current==="touch"&&M.current&&L.preventDefault()},z=n.isLink(a)?L=>{Jr.isOpening||L.preventDefault()}:void 0;return{itemProps:me(d,m||v||l&&!o?j:{},S?P:{},{onDoubleClick:k,onDragStartCapture:B,onClick:z,id:t},l?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:A,isSelected:n.isSelected(a),isFocused:n.isFocused&&n.focusedKey===a,isDisabled:o,allowsSelection:m,hasAction:y}}function hD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class yb{getItemRect(t){let n=this.ref.current;if(!n)return null;let a=t!=null?sc(this.ref,t):null;if(!a)return null;let r=n.getBoundingClientRect(),l=a.getBoundingClientRect();return{x:l.left-r.left+n.scrollLeft,y:l.top-r.top+n.scrollTop,width:l.width,height:l.height}}getContentSize(){let t=this.ref.current;var n,a;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(a=t==null?void 0:t.scrollHeight)!==null&&a!==void 0?a:0}}getVisibleRect(){let t=this.ref.current;var n,a,r,l;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(a=t==null?void 0:t.scrollTop)!==null&&a!==void 0?a:0,width:(r=t==null?void 0:t.offsetWidth)!==null&&r!==void 0?r:0,height:(l=t==null?void 0:t.offsetHeight)!==null&&l!==void 0?l:0}}constructor(t){this.ref=t}}class pD{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 a=t;for(;a!=null;){let r=this.collection.getItem(a);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return a;a=n(a)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,a=>this.collection.getKeyAfter(a))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,a=>this.collection.getKeyBefore(a))}findKey(t,n,a){let r=t,l=this.layoutDelegate.getItemRect(r);if(!l||r==null)return null;let i=l;do{if(r=n(r),r==null)break;l=this.layoutDelegate.getItemRect(r)}while(l&&a(i,l)&&r!=null);return r}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,a=>this.layoutDelegate[n](a))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,a=>this.getNextColumn(a,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,a=>this.layoutDelegate[n](a))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,a=>this.getNextColumn(a,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,a=this.layoutDelegate.getItemRect(t);if(!a)return null;if(n&&!bs(n))return this.getFirstKey();let r=t;if(this.orientation==="horizontal"){let l=Math.max(0,a.x+a.width-this.layoutDelegate.getVisibleRect().width);for(;a&&a.x>l&&r!=null;)r=this.getKeyAbove(r),a=r==null?null:this.layoutDelegate.getItemRect(r)}else{let l=Math.max(0,a.y+a.height-this.layoutDelegate.getVisibleRect().height);for(;a&&a.y>l&&r!=null;)r=this.getKeyAbove(r),a=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,a=this.layoutDelegate.getItemRect(t);if(!a)return null;if(n&&!bs(n))return this.getLastKey();let r=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,a.y-a.width+this.layoutDelegate.getVisibleRect().width);for(;a&&a.x<l&&r!=null;)r=this.getKeyBelow(r),a=r==null?null:this.layoutDelegate.getItemRect(r)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,a.y-a.height+this.layoutDelegate.getVisibleRect().height);for(;a&&a.y<l&&r!=null;)r=this.getKeyBelow(r),a=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let a=this.collection,r=n||this.getFirstKey();for(;r!=null;){let l=a.getItem(r);if(!l)return null;let i=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(i,t)===0)return r;r=this.getNextKey(r)}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 yb(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 yb(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function gD(e){let{selectionManager:t,collection:n,disabledKeys:a,ref:r,keyboardDelegate:l,layoutDelegate:i}=e,o=hT({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>l||new pD({collection:n,disabledKeys:a,disabledBehavior:s,ref:r,collator:o,layoutDelegate:i}),[l,i,n,a,r,o,s]),{collectionProps:f}=dD({...e,ref:r,selectionManager:t,keyboardDelegate:u});return{listProps:f}}class mD{build(t,n){return this.context=n,wb(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:a}=t;if(E.isValidElement(n)&&n.type===E.Fragment)yield*this.iterateCollection({children:n.props.children,items:a});else if(typeof n=="function"){if(!a)throw new Error("props.children was a function but props.items is missing");let r=0;for(let l of a)yield*this.getFullNode({value:l,index:r},{renderer:n}),r++}else{let r=[];E.Children.forEach(n,i=>{i&&r.push(i)});let l=0;for(let i of r){let o=this.getFullNode({element:i,index:l},{});for(let s of o)l++,yield s}}}getKey(t,n,a,r){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${r}${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 r?`${r}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,a,r){if(E.isValidElement(t.element)&&t.element.type===E.Fragment){let w=[];E.Children.forEach(t.element.props.children,b=>{w.push(b)});var l;let v=(l=t.index)!==null&&l!==void 0?l:0;for(const b of w)yield*this.getFullNode({element:b,index:v++},n,a,r);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let w=this.cache.get(t.value);if(w&&(!w.shouldInvalidate||!w.shouldInvalidate(this.context))){w.index=t.index,w.parentKey=r?r.key:null,yield w;return}i=n.renderer(t.value)}if(E.isValidElement(i)){let w=i.type;if(typeof w!="function"&&typeof w.getCollectionNode!="function"){let C=i.type;throw new Error(`Unknown element <${C}> in collection.`)}let v=w.getCollectionNode(i.props,this.context);var o;let b=(o=t.index)!==null&&o!==void 0?o:0,y=v.next();for(;!y.done&&y.value;){let C=y.value;t.index=b;var s;let S=(s=C.key)!==null&&s!==void 0?s:null;S==null&&(S=C.element?null:this.getKey(i,t,n,a));let M=[...this.getFullNode({...C,key:S,index:b,wrapper:vD(t.wrapper,C.wrapper)},this.getChildState(n,C),a?`${a}${i.key}`:i.key,r)];for(let R of M){var u,f;R.value=(f=(u=C.value)!==null&&u!==void 0?u:t.value)!==null&&f!==void 0?f:null,R.value&&this.cache.set(R.value,R);var c;if(t.type&&R.type!==t.type)throw new Error(`Unsupported type <${w0(R.type)}> in <${w0((c=r==null?void 0:r.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${w0(t.type)}> is supported.`);b++,yield R}y=v.next(M)}return}if(t.key==null||t.type==null)return;let d=this;var h,g;let m={type:t.type,props:t.props,key:t.key,parentKey:r?r.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:r?r.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:wb(function*(){if(!t.hasChildNodes||!t.childNodes)return;let w=0;for(let v of t.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let b=d.getFullNode({...v,index:w},d.getChildState(n,v),m.key,m);for(let y of b)w++,yield y}})};yield m}constructor(){this.cache=new WeakMap}}function wb(e){let t=[],n=null;return{*[Symbol.iterator](){for(let a of t)yield a;n||(n=e());for(let a of n)t.push(a),yield a}}}function vD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function w0(e){return e[0].toUpperCase()+e.slice(1)}function bD(e,t,n){let a=p.useMemo(()=>new mD,[]),{children:r,items:l,collection:i}=e;return p.useMemo(()=>{if(i)return i;let o=a.build({children:r,items:l},n);return t(o)},[a,r,l,i,n,t])}function i4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function yD(e){return wD(e)}function wD(e,t){for(let n of e)return n}function x0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let a=[...xb(e,t),t],r=[...xb(e,n),n],l=a.slice(0,r.length).findIndex((i,o)=>i!==r[o]);return l!==-1?(t=a[l],n=r[l],t.index-n.index):a.findIndex(i=>i===n)>=0?1:(r.findIndex(i=>i===t)>=0,-1)}function xb(e,t){let n=[],a=t;for(;(a==null?void 0:a.parentKey)!=null;)a=e.getItem(a.parentKey),a&&n.unshift(a);return n}const Cb=new WeakMap;function xD(e){let t=Cb.get(e);if(t!=null)return t;let n=0,a=r=>{for(let l of r)l.type==="section"?a(i4(l,e)):l.type==="item"&&n++};return a(e),Cb.set(e,n),n}var o4={};o4={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var s4={};s4={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var u4={};u4={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var c4={};c4={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var d4={};d4={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var f4={};f4={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var h4={};h4={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var p4={};p4={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var g4={};g4={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var m4={};m4={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var v4={};v4={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var b4={};b4={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var y4={};y4={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var w4={};w4={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var x4={};x4={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var C4={};C4={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var S4={};S4={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var E4={};E4={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var M4={};M4={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var R4={};R4={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var O4={};O4={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var T4={};T4={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var D4={};D4={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var k4={};k4={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var N4={};N4={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var A4={};A4={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var j4={};j4={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var L4={};L4={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var _4={};_4={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var z4={};z4={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var P4={};P4={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var K4={};K4={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var H4={};H4={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var U4={};U4={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var B4={};B4={"ar-AE":o4,"bg-BG":s4,"cs-CZ":u4,"da-DK":c4,"de-DE":d4,"el-GR":f4,"en-US":h4,"es-ES":p4,"et-EE":g4,"fi-FI":m4,"fr-FR":v4,"he-IL":b4,"hr-HR":y4,"hu-HU":w4,"it-IT":x4,"ja-JP":C4,"ko-KR":S4,"lt-LT":E4,"lv-LV":M4,"nb-NO":R4,"nl-NL":O4,"pl-PL":T4,"pt-BR":D4,"pt-PT":k4,"ro-RO":N4,"ru-RU":A4,"sk-SK":j4,"sl-SI":L4,"sr-SP":_4,"sv-SE":z4,"tr-TR":P4,"uk-UA":K4,"zh-CN":H4,"zh-TW":U4};function CD(e){return e&&e.__esModule?e.default:e}function SD(e,t,n){let{type:a="menu",isDisabled:r,trigger:l="press"}=e,i=Xt(),{triggerProps:o,overlayProps:s}=b3({type:a},t,n),u=h=>{if(!r&&!(l==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(l==="longPress")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()}},f=a3(CD(B4),"@react-aria/menu"),{longPressProps:c}=$8({isDisabled:r||l!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),d={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!r&&(Rn(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!r&&(Rn(h.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...l==="press"?d:c,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const q4=new WeakMap;function ED(e,t,n){let{shouldFocusWrap:a=!0,onKeyDown:r,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Ot(e,{labelable:!0}),{listProps:s}=gD({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:a,linkBehavior:"override"});return q4.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:me(o,{onKeyDown:r,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var f;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((f=s.onKeyDown)===null||f===void 0||f.call(s,u))}})}}function MD(e,t,n){let{id:a,key:r,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:f,onPressChange:c,onPressEnd:d,onHoverStart:h,onHoverChange:g,onHoverEnd:m,onKeyDown:w,onKeyUp:v,onFocus:b,onFocusChange:y,onBlur:C,selectionManager:S=t.selectionManager}=e,M=!!o,R=M&&e["aria-expanded"]==="true";var D;let j=(D=e.isDisabled)!==null&&D!==void 0?D:S.isDisabled(r);var A;let k=(A=e.isSelected)!==null&&A!==void 0?A:S.isSelected(r),P=q4.get(t),B=t.collection.getItem(r),z=e.onClose||P.onClose,L=Xd(),T=ue=>{var cl;if(!M){if(!(B==null||(cl=B.props)===null||cl===void 0)&&cl.onAction?B.props.onAction():e.onAction&&e.onAction(r),P.onAction){let gr=P.onAction;gr(r)}ue.target instanceof HTMLAnchorElement&&B&&L.open(ue.target,ue,B.props.href,B.props.routerOptions)}},N="menuitem";M||(S.selectionMode==="single"?N="menuitemradio":S.selectionMode==="multiple"&&(N="menuitemcheckbox"));let _=ic(),q=ic(),U=ic(),H={id:a,"aria-disabled":j||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":_,"aria-describedby":[q,U].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};S.selectionMode!=="none"&&!M&&(H["aria-checked"]=k),i&&(H["aria-posinset"]=B==null?void 0:B.index,H["aria-setsize"]=xD(t.collection));let F=ue=>{ue.pointerType==="keyboard"&&T(ue),s==null||s(ue)},Y=()=>{!M&&z&&(l??(S.selectionMode!=="multiple"||S.isLink(r)))&&z()},le=ue=>{ue.pointerType==="mouse"&&(T(ue),Y()),u==null||u(ue)},J=ue=>{ue.pointerType!=="keyboard"&&ue.pointerType!=="mouse"&&(T(ue),Y()),f==null||f(ue)},{itemProps:gt,isFocused:fn}=fD({id:a,selectionManager:S,key:r,ref:n,linkBehavior:"none",shouldUseVirtualFocus:P.shouldUseVirtualFocus}),{pressProps:It,isPressed:Zt}=Zd({onPressStart:F,onPress:J,onPressUp:le,onPressChange:c,onPressEnd:d,isDisabled:j}),{hoverProps:hr}=Hi({isDisabled:j,onHoverStart(ue){!xs()&&!(R&&o)&&(S.setFocused(!0),S.setFocusedKey(r)),h==null||h(ue)},onHoverChange:g,onHoverEnd:m}),{keyboardProps:pr}=I8({onKeyDown:ue=>{if(ue.repeat){ue.continuePropagation();return}switch(ue.key){case" ":!j&&S.selectionMode==="none"&&!M&&l!==!1&&z&&z();break;case"Enter":!j&&l!==!1&&!M&&z&&z();break;default:M||ue.continuePropagation(),w==null||w(ue);break}},onKeyUp:v}),{focusProps:X}=em({onBlur:C,onFocus:b,onFocusChange:y}),Wt=Ot(B==null?void 0:B.props);delete Wt.id;let Tt=VR(B==null?void 0:B.props);return{menuItemProps:{...H,...me(Wt,Tt,M?{onFocus:gt.onFocus,"data-collection":gt["data-collection"],"data-key":gt["data-key"]}:gt,It,hr,pr,X,P.shouldUseVirtualFocus||M?{onMouseDown:ue=>ue.preventDefault()}:void 0),tabIndex:gt.tabIndex!=null&&R&&!P.shouldUseVirtualFocus?-1:gt.tabIndex},labelProps:{id:_},descriptionProps:{id:q},keyboardShortcutProps:{id:U},isFocused:fn,isFocusVisible:fn&&S.isFocused&&xs()&&!R,isSelected:k,isPressed:Zt,isDisabled:j}}function RD(e){let{heading:t,"aria-label":n}=e,a=Xt();return{itemProps:{role:"presentation"},headingProps:t?{id:a,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?a:void 0}}}function OD(e,t){let{role:n="dialog"}=e,a=ic();a=e["aria-label"]?void 0:a;let r=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){lr(t.current);let l=setTimeout(()=>{document.activeElement===t.current&&(r.current=!0,t.current&&(t.current.blur(),lr(t.current)),r.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),r4(),{dialogProps:{...Ot(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||a,onBlur:l=>{r.current&&l.stopPropagation()}},titleProps:{id:a}}}function TD(e){let{value:t=0,minValue:n=0,maxValue:a=100,valueLabel:r,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Ot(e,{labelable:!0}),{labelProps:s,fieldProps:u}=NT({...e,labelElementType:"span"});t=ys(t,n,a);let f=(t-n)/(a-n),c=fT(i);if(!l&&!r){let d=i.style==="percent"?f:t;r=c.format(d)}return{progressBarProps:me(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":a,"aria-valuetext":l?void 0:r,role:"progressbar"}),labelProps:s}}function DD(e){let{progressBarProps:t,labelProps:n}=TD(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function kD(e,t){let n=Ot(e,{labelable:!0}),{hoverProps:a}=Hi({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:me(n,a,{role:"tooltip"})}}function ND(e,t,n){let{isDisabled:a,trigger:r}=e,l=Xt(),i=p.useRef(!1),o=p.useRef(!1),s=()=>{(i.current||o.current)&&t.open(o.current)},u=v=>{!i.current&&!o.current&&t.close(v)};p.useEffect(()=>{let v=b=>{n&&n.current&&b.key==="Escape"&&(b.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[n,t]);let f=()=>{r!=="focus"&&(Cs()==="pointer"?i.current=!0:i.current=!1,s())},c=()=>{r!=="focus"&&(o.current=!1,i.current=!1,u())},d=()=>{o.current=!1,i.current=!1,u(!0)},h=()=>{xs()&&(o.current=!0,s())},g=()=>{o.current=!1,i.current=!1,u(!0)},{hoverProps:m}=Hi({isDisabled:a,onHoverStart:f,onHoverEnd:c}),{focusableProps:w}=Z8({isDisabled:a,onFocus:h,onBlur:g},n);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...me(w,m,{onPointerDown:d,onKeyDown:d,tabIndex:void 0})},tooltipProps:{id:l}}}const AD=p.createContext({}),jD=p.createContext(null),LD=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),F4=p.createContext({}),am=lO(function(e,t){[e,t]=Tn(e,t,F4),e=_D(e);let n=e,{isPending:a}=n,{buttonProps:r,isPressed:l}=l3(e,t),{focusProps:i,isFocused:o,isFocusVisible:s}=d3(e),{hoverProps:u,isHovered:f}=Hi({...e,isDisabled:e.isDisabled||a}),c={isHovered:f,isPressed:(n.isPressed||l)&&!a,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:a??!1},d=dn({...e,values:c,defaultClassName:"react-aria-Button"}),h=Xt(r.id),g=Xt(),m=r["aria-labelledby"];a&&(m?m=`${m} ${g}`:r["aria-label"]&&(m=`${h} ${g}`));let w=p.useRef(a);return p.useEffect(()=>{let v={"aria-labelledby":m||h};(!w.current&&o&&a||w.current&&o&&!a)&&DT(v,"assertive"),w.current=a},[a,o,m,h]),E.createElement("button",{...Ot(e,{propNames:LD}),...me(r,i,u),...d,type:r.type==="submit"&&a?"button":r.type,id:h,ref:t,"aria-labelledby":m,slot:e.slot||void 0,"aria-disabled":a?"true":r["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":f||void 0,"data-focused":o||void 0,"data-pending":a||void 0,"data-focus-visible":s||void 0},E.createElement(jD.Provider,{value:{id:g}},d.children))});function _D(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const zD=p.createContext({});class wn extends Set{constructor(t,n,a){super(t),t instanceof wn?(this.anchorKey=n??t.anchorKey,this.currentKey=a??t.currentKey):(this.anchorKey=n??null,this.currentKey=a??null)}}function PD(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function V4(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:a,selectionBehavior:r="toggle",disabledBehavior:l="all"}=e,i=p.useRef(!1),[,o]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,f]=p.useState(null),c=p.useMemo(()=>Sb(e.selectedKeys),[e.selectedKeys]),d=p.useMemo(()=>Sb(e.defaultSelectedKeys,new wn),[e.defaultSelectedKeys]),[h,g]=Zs(c,d,e.onSelectionChange),m=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,v]=p.useState(r);r==="replace"&&w==="toggle"&&typeof h=="object"&&h.size===0&&v("replace");let b=p.useRef(r);return p.useEffect(()=>{r!==b.current&&(v(r),b.current=r)},[r]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:v,get isFocused(){return i.current},setFocused(y){i.current=y,o(y)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(y,C="first"){s.current=y,u.current=C,f(y)},selectedKeys:h,setSelectedKeys(y){(a||!PD(y,h))&&g(y)},disabledKeys:m,disabledBehavior:l}}function Sb(e,t){return e?e==="all"?"all":new wn(e):t}class $d{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(a=>n.has(a)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let a of this.state.selectedKeys){let r=this.collection.getItem(a);(!t||r&&x0(this.collection,r,t)<0)&&(t=r)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let a of this.state.selectedKeys){let r=this.collection.getItem(a);(!t||r&&x0(this.collection,r,t)>0)&&(t=r)}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 a;if(this.state.selectedKeys==="all")a=new wn([n],n,n);else{let i=this.state.selectedKeys;var r;let o=(r=i.anchorKey)!==null&&r!==void 0?r:n;a=new wn(i,o,n);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:n))a.delete(s);for(let s of this.getKeyRange(n,o))this.canSelectItem(s)&&a.add(s)}this.state.setSelectedKeys(a)}getKeyRange(t,n){let a=this.collection.getItem(t),r=this.collection.getItem(n);return a&&r?x0(this.collection,a,r)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var a;if(!((a=this.layoutDelegate)===null||a===void 0)&&a.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(l),l===n)return r;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 a=new wn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);a.has(n)?a.delete(n):this.canSelectItem(n)&&(a.add(n),a.anchorKey=n,a.currentKey=n),!(this.disallowEmptySelection&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let a=this.canSelectItem(n)?new wn([n],n,n):new wn;this.state.setSelectedKeys(a)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new wn;for(let a of t){let r=this.getKey(a);if(r!=null&&(n.add(r),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=a=>{for(;a!=null;){if(this.canSelectItem(a)){var r;let i=this.collection.getItem(a);(i==null?void 0:i.type)==="item"&&t.push(a);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((l=(r=yD(i4(i,this.collection)))===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null)}a=this.collection.getKeyAfter(a)}};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 wn)}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 a of t)if(!n.has(a))return!1;for(let a of n)if(!t.has(a))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let a=this.collection.getItem(t);return!(!a||!(a==null||(n=a.props)===null||n===void 0)&&n.isDisabled||a.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,a;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((a=this.collection.getItem(t))===null||a===void 0||(n=a.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,a;return!!(!((a=this.collection.getItem(t))===null||a===void 0||(n=a.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 $d(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,a){this.collection=t,this.state=n;var r;this.allowsCellSelection=(r=a==null?void 0:a.allowsCellSelection)!==null&&r!==void 0?r:!1,this._isSelectAll=null,this.layoutDelegate=(a==null?void 0:a.layoutDelegate)||null}}function Jd(e){let[t,n]=Zs(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const a=p.useCallback(()=>{n(!0)},[n]),r=p.useCallback(()=>{n(!1)},[n]),l=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:r,toggle:l}}function rm(e){let t=Jd(e),[n,a]=p.useState(null),[r,l]=p.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:n,...t,open(o=null){a(o),t.open()},toggle(o=null){a(o),t.toggle()},close(){i()},expandedKeysStack:r,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 KD=1500,Eb=500;let kr={},HD=0,wo=!1,ta=null,Nr=null;function G4(e={}){let{delay:t=KD,closeDelay:n=Eb}=e,{isOpen:a,open:r,close:l}=Jd(e),i=p.useMemo(()=>`${++HD}`,[]),o=p.useRef(null),s=p.useRef(l),u=()=>{kr[i]=d},f=()=>{for(let g in kr)g!==i&&(kr[g](!0),delete kr[g])},c=()=>{o.current&&clearTimeout(o.current),o.current=null,f(),u(),wo=!0,r(),ta&&(clearTimeout(ta),ta=null),Nr&&(clearTimeout(Nr),Nr=null)},d=g=>{g||n<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},n)),ta&&(clearTimeout(ta),ta=null),wo&&(Nr&&clearTimeout(Nr),Nr=setTimeout(()=>{delete kr[i],Nr=null,wo=!1},Math.max(Eb,n)))},h=()=>{f(),u(),!a&&!ta&&!wo?ta=setTimeout(()=>{ta=null,wo=!0,c()},t):a||c()};return p.useEffect(()=>{s.current=l},[l]),p.useEffect(()=>()=>{o.current&&clearTimeout(o.current),kr[i]&&delete kr[i]},[i]),{isOpen:a,open:g=>{!g&&t>0&&!o.current?h():c()},close:d}}class UD{*[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 a;return n&&(a=n.prevKey)!==null&&a!==void 0?a:null}getKeyAfter(t){let n=this.keyMap.get(t);var a;return n&&(a=n.nextKey)!==null&&a!==void 0?a: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 a=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let s of o.childNodes)a(s)};for(let o of t)a(o);let r=null,l=0;for(let[o,s]of this.keyMap)r?(r.nextKey=o,s.prevKey=r.key):(this.firstKey=o,s.prevKey=void 0),s.type==="item"&&(s.index=l++),r=s,r.nextKey=void 0;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}}function BD(e){let{onExpandedChange:t}=e,[n,a]=Zs(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),r=V4(e),l=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=bD(e,p.useCallback(o=>new UD(o,{expandedKeys:n}),[n]),null);return p.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:n,disabledKeys:l,toggleKey:o=>{a(qD(n,o))},setExpandedKeys:a,selectionManager:new $d(i,r)}}function qD(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const Mb=p.createContext(null),FD=p.createContext(null),VD={CollectionRoot({collection:e,renderDropIndicator:t}){return Rb(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Rb(e,t,n)}};function Rb(e,t,n){return U8({items:t?e.getChildren(t.key):e,dependencies:[n],children(a){var r;let l=a.render(a);if(!n||a.type!=="item")return l;let i=a.key,o=e.getKeyAfter(i);return E.createElement(E.Fragment,null,n({type:"item",key:i,dropPosition:"before"}),l,(o==null||((r=e.getItem(o))===null||r===void 0?void 0:r.type)!=="item")&&n({type:"item",key:i,dropPosition:"after"}))}})}const Q4=p.createContext(VD);function GD(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}const QD=p.createContext({}),XD=p.createContext({}),X4=p.createContext({placement:"bottom"}),lm=p.createContext(null),Ob=p.createContext(null),YD=p.forwardRef(function(e,t){[e,t]=Tn(e,t,lm);let n=p.useContext(sl),a=Jd(e),r=e.isOpen!=null||e.defaultOpen!=null||!n?a:n,l=Yc(t,r.isOpen)||e.isExiting||!1,i=iO(),{direction:o}=ol();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),E.createElement(E.Fragment,null,s)}return r&&!r.isOpen&&!l?null:E.createElement(ID,{...e,triggerRef:e.triggerRef,state:r,popoverRef:t,isExiting:l,dir:o})});function ID({state:e,isExiting:t,UNSTABLE_portalContainer:n,...a}){let r=p.useRef(null),[l,i]=p.useState(0),o=p.useRef(null),s=p.useContext(Ob),u=s&&a.trigger==="SubmenuTrigger";se(()=>{r.current&&e.isOpen&&i(r.current.getBoundingClientRect().width)},[e.isOpen,r]);var f;let{popoverProps:c,underlayProps:d,arrowProps:h,placement:g}=rD({...a,offset:(f=a.offset)!==null&&f!==void 0?f:8,arrowSize:l,groupRef:u?s:o},e),m=a.popoverRef,w=Id(m,!!g)||a.isEntering||!1,v=dn({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:g,isEntering:w,isExiting:t}}),b=!a.isNonModal||a.trigger==="SubmenuTrigger",[y,C]=p.useState(!1);se(()=>{m.current&&C(b&&!m.current.querySelector("[role=dialog]"))},[m,b]),p.useEffect(()=>{y&&m.current&&!m.current.contains(document.activeElement)&&lr(m.current)},[y,m]);let S={...c.style,...v.style},M=E.createElement("div",{...me(Ot(a),c),...v,role:y?"dialog":void 0,tabIndex:y?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:m,slot:a.slot||void 0,style:S,dir:a.dir,"data-trigger":a.trigger,"data-placement":g,"data-entering":w||void 0,"data-exiting":t||void 0},!a.isNonModal&&E.createElement(up,{onDismiss:e.close}),E.createElement(X4.Provider,{value:{...h,placement:g,ref:r}},v.children),E.createElement(up,{onDismiss:e.close}));if(!u)return E.createElement(cp,{...a,shouldContainFocus:y,isExiting:t,portalContainer:n},!a.isNonModal&&e.isOpen&&E.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),E.createElement("div",{ref:o,style:{display:"contents"}},E.createElement(Ob.Provider,{value:o},M)));var R;return E.createElement(cp,{...a,shouldContainFocus:y,isExiting:t,portalContainer:(R=n??(s==null?void 0:s.current))!==null&&R!==void 0?R:void 0},M)}const ZD=p.createContext({}),Y4=p.createContext(null),im=p.createContext(null),ad=p.createContext(null),rd=p.createContext(null);function WD(e){let t=rm(e),n=p.useRef(null),{menuTriggerProps:a,menuProps:r}=SD({...e,type:"menu"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);Xc({ref:n,onResize:o});let s=p.useRef(null);return E.createElement(fr,{values:[[Y4,{...r,ref:s}],[sl,t],[ad,t],[lm,{trigger:"MenuTrigger",triggerRef:n,scrollRef:s,placement:"bottom start",style:{"--trigger-width":l},"aria-labelledby":r["aria-labelledby"]}]]},E.createElement(W8,{...a,ref:n,isPressed:t.isOpen},e.children))}const $D=p.createContext(null),JD=p.forwardRef(function(e,t){return[e,t]=Tn(e,t,Y4),E.createElement(UO,{content:E.createElement(YO,e)},n=>E.createElement(ek,{props:e,collection:n,menuRef:t}))});function ek({props:e,collection:t,menuRef:n}){let{filter:a,collectionProps:r,collectionRef:l}=p.useContext(Mb)||{};n=il(p.useMemo(()=>Vg(n,l!==void 0?l:null),[l,n]));let i=p.useMemo(()=>a?t.UNSTABLE_filter(a):t,[t,a]),o=BD({...e,collection:i,children:void 0}),s=p.useContext(ad),{isVirtualized:u,CollectionRoot:f}=p.useContext(Q4),{menuProps:c}=ED({...e,...r,isVirtualized:u,onClose:e.onClose||(s==null?void 0:s.close)},o,n),d=dn({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),h=null;return o.collection.size===0&&e.renderEmptyState&&(h=E.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState())),E.createElement(s3,null,E.createElement("div",{...Ot(e),...c,...d,ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},E.createElement(fr,{values:[[im,o],[XD,{elementType:"div"}],[FD,{name:"MenuSection",render:nk}],[$D,{parentMenuRef:n,shouldUseVirtualFocus:r==null?void 0:r.shouldUseVirtualFocus}],[fp,null],[Mb,null],[rd,o.selectionManager],[ad,s??rm({})]]},E.createElement(f,{collection:o.collection,persistedKeys:GD(o.selectionManager.focusedKey),scrollRef:n})),h))}class tk extends $d{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 nk(e,t,n,a="react-aria-MenuSection"){var r,l;let i=p.useContext(im),{CollectionBranch:o}=p.useContext(Q4),[s,u]=K8();var f;let{headingProps:c,groupProps:d}=RD({heading:u,"aria-label":(f=n.props["aria-label"])!==null&&f!==void 0?f:void 0}),h=dn({defaultClassName:a,className:(r=n.props)===null||r===void 0?void 0:r.className,style:(l=n.props)===null||l===void 0?void 0:l.style,values:{}}),g=p.useContext(rd),m=V4(e),w=e.selectionMode!=null?new tk(g,m):g;return E.createElement("section",{...Ot(e),...d,...h,ref:t},E.createElement(fr,{values:[[QD,{...c,ref:s}],[rd,w]]},E.createElement(o,{collection:i.collection,parent:n})))}const fp=p.createContext(null),ak=QO("item",function(e,t,n){var a;[e,t]=Tn(e,t,fp);let r=(a=P8(fp))===null||a===void 0?void 0:a.id,l=p.useContext(im),i=il(t),o=p.useContext(rd),{menuItemProps:s,labelProps:u,descriptionProps:f,keyboardShortcutProps:c,...d}=MD({...e,id:r,key:n.key,selectionManager:o},l,i),{hoverProps:h,isHovered:g}=Hi({isDisabled:d.isDisabled}),m=dn({...e,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...d,isHovered:g,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),w=e.href?"a":"div";return E.createElement(w,{...me(s,h),...m,ref:i,"data-disabled":d.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.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},E.createElement(fr,{values:[[zD,{slots:{[Ic]:u,label:u,description:f}}],[ZD,c]]},m.children))}),I4=p.createContext(null),sl=p.createContext(null);function Z4(e){let t=rm(e),n=p.useRef(null),{triggerProps:a,overlayProps:r}=b3({type:"dialog"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);return Xc({ref:n,onResize:o}),a.id=Xt(),r["aria-labelledby"]=a.id,E.createElement(fr,{values:[[sl,t],[ad,t],[I4,r],[lm,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":r["aria-labelledby"],style:{"--trigger-width":l}}]]},E.createElement(W8,{...a,ref:n,isPressed:t.isOpen},e.children))}const ef=p.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=Tn(e,t,I4);let{dialogProps:a,titleProps:r}=OD({...e,"aria-labelledby":n},t),l=p.useContext(sl);!a["aria-label"]&&!a["aria-labelledby"]&&e["aria-labelledby"]&&(a["aria-labelledby"]=e["aria-labelledby"]);let i=dn({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return E.createElement("section",{...Ot(e),...a,...i,ref:t,slot:e.slot||void 0},E.createElement(fr,{values:[[S8,{slots:{[Ic]:{},title:{...r,level:2}}}],[F4,{slots:{[Ic]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))}),tf=p.forwardRef(function(e,t){[e,t]=Tn(e,t,S8);let{children:n,level:a=3,className:r,...l}=e,i=`h${a}`;return E.createElement(i,{...l,ref:t,className:r??"react-aria-Heading"},n)}),rk=p.createContext(null),lk=p.forwardRef(function(e,t){[e,t]=Tn(e,t,rk);let{value:n=0,minValue:a=0,maxValue:r=100}=e;n=ys(n,a,r);let[l,i]=K8(!e["aria-label"]&&!e["aria-labelledby"]),{meterProps:o,labelProps:s}=DD({...e,label:i}),u=(n-a)/(r-a)*100,f=dn({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:o["aria-valuetext"]}});return E.createElement("div",{...o,...f,ref:t,slot:e.slot||void 0},E.createElement(AD.Provider,{value:{...s,ref:l,elementType:"span"}},f.children))}),ik=p.createContext(null),om=p.createContext(null),nf=p.forwardRef(function(e,t){if(p.useContext(om))return E.createElement(Tb,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:a,isOpen:r,defaultOpen:l,onOpenChange:i,children:o,isEntering:s,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:c,...d}=e;return E.createElement(sk,{isDismissable:n,isKeyboardDismissDisabled:a,isOpen:r,defaultOpen:l,onOpenChange:i,isEntering:s,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:c},E.createElement(Tb,{...d,modalRef:t},o))});function ok(e,t){[e,t]=Tn(e,t,ik);let n=p.useContext(sl),a=Jd(e),r=e.isOpen!=null||e.defaultOpen!=null||!n?a:n,l=il(t),i=p.useRef(null),o=Yc(l,r.isOpen),s=Yc(i,r.isOpen),u=o||s||e.isExiting||!1,f=dr();return!r.isOpen&&!u||f?null:E.createElement(uk,{...e,state:r,isExiting:u,overlayRef:l,modalRef:i})}const sk=p.forwardRef(ok);function uk({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:a}=t,{modalProps:r,underlayProps:l}=lD(t,a,n),i=Id(t.overlayRef)||t.isEntering||!1,o=dn({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:a}}),s=YR(),u={...o.style,"--visual-viewport-height":s.height+"px"};return E.createElement(cp,{isExiting:t.isExiting,portalContainer:e},E.createElement("div",{...me(Ot(t),l),...o,style:u,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},E.createElement(fr,{values:[[om,{modalProps:r,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[sl,a]]},o.children)))}function Tb(e){let{modalProps:t,modalRef:n,isExiting:a,isDismissable:r}=p.useContext(om),l=p.useContext(sl),i=p.useMemo(()=>Vg(e.modalRef,n),[e.modalRef,n]),o=il(i),s=Id(o),u=dn({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:a,state:l}});return E.createElement("div",{...me(Ot(e),t),...u,ref:o,"data-entering":s||void 0,"data-exiting":a||void 0},r&&E.createElement(up,{onDismiss:l.close}),u.children)}const ck=p.createContext({}),W4=p.createContext(null),dk=p.forwardRef(function(e,t){[e,t]=Tn(e,t,ck);let n=jT(e),{groupProps:a}=OT(e,n,t),r=dn({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return E.createElement("div",{...a,...r,ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},E.createElement(W4.Provider,{value:n},r.children))}),fk=p.createContext({}),hk=p.forwardRef(function(e,t){[e,t]=Tn(e,t,fk);let n=p.useContext(W4),a=AT(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(g){n.setSelected(e.id,g)}}:e),{buttonProps:r,isPressed:l,isSelected:i,isDisabled:o}=n&&e.id!=null?TT({...e,id:e.id},n,t):i3({...e,id:e.id!=null?String(e.id):void 0},a,t),{focusProps:s,isFocused:u,isFocusVisible:f}=d3(e),{hoverProps:c,isHovered:d}=Hi(e),h=dn({...e,values:{isHovered:d,isPressed:l,isFocused:u,isSelected:a.isSelected,isFocusVisible:f,isDisabled:o,state:a},defaultClassName:"react-aria-ToggleButton"});return E.createElement("button",{...me(r,s,c),...h,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":d||void 0,"data-focus-visible":f||void 0})}),sm=p.createContext(null),$4=p.createContext(null);function pk(e){let t=G4(e),n=p.useRef(null),{triggerProps:a,tooltipProps:r}=ND(e,t,n);return E.createElement(fr,{values:[[sm,t],[$4,{...r,triggerRef:n}]]},E.createElement(EO,{...a,ref:n},e.children))}const gk=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Tn(t,n,$4);let a=p.useContext(sm),r=G4(t),l=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=Yc(n,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!i?null:E.createElement(tD,{portalContainer:e},E.createElement(mk,{...t,tooltipRef:n,isExiting:i}))});function mk(e){let t=p.useContext(sm),n=p.useRef(null),[a,r]=p.useState(0);se(()=>{n.current&&t.isOpen&&r(n.current.getBoundingClientRect().width)},[t.isOpen,n]);let{overlayProps:l,arrowProps:i,placement:o}=m3({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:a,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),s=Id(e.tooltipRef,!!o)||e.isEntering||!1,u=dn({...e,defaultClassName:"react-aria-Tooltip",values:{placement:o,isEntering:s,isExiting:e.isExiting,state:t}});e=me(e,l);let{tooltipProps:f}=kD(e,t);return E.createElement("div",{...f,ref:e.tooltipRef,...u,style:{...l.style,...u.style},"data-placement":o??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},E.createElement(X4.Provider,{value:{...i,placement:o,ref:n}},u.children))}function vk(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 f=u[s][0];if(typeof o[f]>"u")throw new Error("Missing key in local storage")}return o}catch(c){return console.log(c),t}}),a=n[0],r=n[1],l=function(i){try{var o=i instanceof Function?i(a):i;r(o),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(o))}catch(s){console.log(s)}};return[a,l]}var bk=function(){var e=vk("user-preferences",{theme:"system"}),t=e[0],n=e[1];return x.jsx(dk,{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(a){a.has("system")?n({theme:"system"}):a.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):a.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return x.jsx(UM,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return x.jsx(gR,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return x.jsx(lR,{})},ariaLabel:"Dark theme"}].map(function(a){return x.jsx(hk,{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:a.value,"aria-label":a.ariaLabel,children:a.icon()},a.value)})})},hp=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})})})},Db=function(e){var t=e.to,n=e.label,a=e.icon;return x.jsxs(m8,{to:t,className:function(r){var l=r.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:[a,x.jsx("span",{className:"block truncate",children:n})]})},J4=function(e){var t=e.children,n=we.queue.list.useQuery(),a=n.data,r=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(fR,{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(Db,{label:"Overview",icon:x.jsx(KM,{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:r?Gr([],new Array(10),!0).map(function(i,o){return x.jsx(Qc,{className:"h-8 w-full"},o)}):l?x.jsx(hp,{message:"Could not fetch queues"}):a==null?void 0:a.map(function(i){return x.jsx(Db,{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(IM,{})}),x.jsx(bk,{})]})]})}),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 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})})]})};/**
83
88
  * table-core
84
89
  *
85
90
  * Copyright (c) TanStack
@@ -88,10 +93,10 @@ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}
88
93
  * LICENSE.md file in the root directory of this source tree.
89
94
  *
90
95
  * @license MIT
91
- */function e7(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function qa(e,t){return typeof e=="function"?e(t):e}function Yt(e,t){return n=>{t.setState(a=>({...a,[e]:qa(n,a[e])}))}}function af(e){return e instanceof Function}function yk(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function wk(e,t){const n=[],a=r=>{r.forEach(l=>{n.push(l);const i=t(l);i!=null&&i.length&&a(i)})};return a(e),n}function W(e,t,n){let a=[],r;return l=>{let i;n.key&&n.debug&&(i=Date.now());const o=e(l);if(!(o.length!==a.length||o.some((u,f)=>a[f]!==u)))return r;a=o;let s;if(n.key&&n.debug&&(s=Date.now()),r=t(...o),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,f=Math.round((Date.now()-s)*100)/100,c=f/16,d=(h,g)=>{for(h=String(h);h.length<g;)h=" "+h;return h};console.info(`%c⏱ ${d(f,5)} /${d(u,5)} ms`,`
96
+ */function l6(){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 ln(e,t){return n=>{t.setState(r=>({...r,[e]:aa(n,r[e])}))}}function Af(e){return e instanceof Function}function uN(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function cN(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`,`
92
97
  font-size: .6rem;
93
98
  font-weight: bold;
94
- color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,n==null?void 0:n.key)}return r}}function $(e,t,n,a){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:!1,onChange:a}}function xk(e,t,n,a){const r=()=>{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(a),renderValue:r,getContext:W(()=>[e,n,t,l],(i,o,s,u)=>({table:i,column:o,row:s,cell:u,getValue:u.getValue,renderValue:u.renderValue}),$(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,n,t,e)},{}),l}function Ck(e,t,n,a){var r,l;const i={...e._getDefaultColumnDef(),...t},o=i.accessorKey;let s=(r=(l=i.id)!=null?l:o?typeof String.prototype.replaceAll=="function"?o.replaceAll(".","_"):o.replace(/\./g,"_"):void 0)!=null?r:typeof i.header=="string"?i.header:void 0,u;if(i.accessorFn?u=i.accessorFn:o&&(o.includes(".")?u=c=>{let d=c;for(const g of o.split(".")){var h;d=(h=d)==null?void 0:h[g]}return d}:u=c=>c[i.accessorKey]),!s)throw new Error;let f={id:`${String(s)}`,accessorFn:u,parent:a,depth:n,columnDef:i,columns:[],getFlatColumns:W(()=>[!0],()=>{var c;return[f,...(c=f.columns)==null?void 0:c.flatMap(d=>d.getFlatColumns())]},$(e.options,"debugColumns")),getLeafColumns:W(()=>[e._getOrderColumnsFn()],c=>{var d;if((d=f.columns)!=null&&d.length){let h=f.columns.flatMap(g=>g.getLeafColumns());return c(h)}return[f]},$(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(f,e);return f}const rt="debugHeaders";function kb(e,t,n){var a;let r={id:(a=n.id)!=null?a: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(r),l},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(r,e)}),r}const Sk={createTable:e=>{e.getHeaderGroups=W(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>{var l,i;const o=(l=a==null?void 0:a.map(f=>n.find(c=>c.id===f)).filter(Boolean))!=null?l:[],s=(i=r==null?void 0:r.map(f=>n.find(c=>c.id===f)).filter(Boolean))!=null?i:[],u=n.filter(f=>!(a!=null&&a.includes(f.id))&&!(r!=null&&r.includes(f.id)));return ju(t,[...o,...u,...s],e)},$(e.options,rt)),e.getCenterHeaderGroups=W(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>(n=n.filter(l=>!(a!=null&&a.includes(l.id))&&!(r!=null&&r.includes(l.id))),ju(t,n,e,"center")),$(e.options,rt)),e.getLeftHeaderGroups=W(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,a)=>{var r;const l=(r=a==null?void 0:a.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?r:[];return ju(t,l,e,"left")},$(e.options,rt)),e.getRightHeaderGroups=W(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,a)=>{var r;const l=(r=a==null?void 0:a.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?r:[];return ju(t,l,e,"right")},$(e.options,rt)),e.getFooterGroups=W(()=>[e.getHeaderGroups()],t=>[...t].reverse(),$(e.options,rt)),e.getLeftFooterGroups=W(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),$(e.options,rt)),e.getCenterFooterGroups=W(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),$(e.options,rt)),e.getRightFooterGroups=W(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),$(e.options,rt)),e.getFlatHeaders=W(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,rt)),e.getLeftFlatHeaders=W(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,rt)),e.getCenterFlatHeaders=W(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,rt)),e.getRightFlatHeaders=W(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,rt)),e.getCenterLeafHeaders=W(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var a;return!((a=n.subHeaders)!=null&&a.length)}),$(e.options,rt)),e.getLeftLeafHeaders=W(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var a;return!((a=n.subHeaders)!=null&&a.length)}),$(e.options,rt)),e.getRightLeafHeaders=W(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var a;return!((a=n.subHeaders)!=null&&a.length)}),$(e.options,rt)),e.getLeafHeaders=W(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,a)=>{var r,l,i,o,s,u;return[...(r=(l=t[0])==null?void 0:l.headers)!=null?r:[],...(i=(o=n[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=a[0])==null?void 0:u.headers)!=null?s:[]].map(f=>f.getLeafHeaders()).flat()},$(e.options,rt))}};function ju(e,t,n,a){var r,l;let i=0;const o=function(d,h){h===void 0&&(h=1),i=Math.max(i,h),d.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&o(g.columns,h+1)},0)};o(e);let s=[];const u=(d,h)=>{const g={depth:h,id:[a,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(w=>{const v=[...m].reverse()[0],b=w.column.depth===g.depth;let y,C=!1;if(b&&w.column.parent?y=w.column.parent:(y=w.column,C=!0),v&&(v==null?void 0:v.column)===y)v.subHeaders.push(w);else{const S=kb(n,y,{id:[a,h,y.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${m.filter(M=>M.column===y).length}`:void 0,depth:h,index:m.length});S.subHeaders.push(w),m.push(S)}g.headers.push(w),w.headerGroup=g}),s.push(g),h>0&&u(m,h-1)},f=t.map((d,h)=>kb(n,d,{depth:i,index:h}));u(f,i-1),s.reverse();const c=d=>d.filter(h=>h.column.getIsVisible()).map(h=>{let g=0,m=0,w=[0];h.subHeaders&&h.subHeaders.length?(w=[],c(h.subHeaders).forEach(b=>{let{colSpan:y,rowSpan:C}=b;g+=y,w.push(C)})):g=1;const v=Math.min(...w);return m=m+v,h.colSpan=g,h.rowSpan=m,{colSpan:g,rowSpan:m}});return c((r=(l=s[0])==null?void 0:l.headers)!=null?r:[]),s}const Ek=(e,t,n,a,r,l,i)=>{let o={id:t,index:a,original:n,depth:r,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,a),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,a),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:()=>wk(o.subRows,s=>s.subRows),getParentRow:()=>o.parentId?e.getRow(o.parentId,!0):void 0,getParentRows:()=>{let s=[],u=o;for(;;){const f=u.getParentRow();if(!f)break;s.push(f),u=f}return s.reverse()},getAllCells:W(()=>[e.getAllLeafColumns()],s=>s.map(u=>xk(e,o,u,u.id)),$(e.options,"debugRows")),_getAllCellsByColumnId:W(()=>[o.getAllCells()],s=>s.reduce((u,f)=>(u[f.column.id]=f,u),{}),$(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},Mk={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()}}},t7=(e,t,n)=>{var a,r;const l=n==null||(a=n.toString())==null?void 0:a.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(l))};t7.autoRemove=e=>En(e);const n7=(e,t,n)=>{var a;return!!(!((a=e.getValue(t))==null||(a=a.toString())==null)&&a.includes(n))};n7.autoRemove=e=>En(e);const a7=(e,t,n)=>{var a;return((a=e.getValue(t))==null||(a=a.toString())==null?void 0:a.toLowerCase())===(n==null?void 0:n.toLowerCase())};a7.autoRemove=e=>En(e);const r7=(e,t,n)=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(n)};r7.autoRemove=e=>En(e);const l7=(e,t,n)=>!n.some(a=>{var r;return!((r=e.getValue(t))!=null&&r.includes(a))});l7.autoRemove=e=>En(e)||!(e!=null&&e.length);const i7=(e,t,n)=>n.some(a=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(a)});i7.autoRemove=e=>En(e)||!(e!=null&&e.length);const o7=(e,t,n)=>e.getValue(t)===n;o7.autoRemove=e=>En(e);const s7=(e,t,n)=>e.getValue(t)==n;s7.autoRemove=e=>En(e);const um=(e,t,n)=>{let[a,r]=n;const l=e.getValue(t);return l>=a&&l<=r};um.resolveFilterValue=e=>{let[t,n]=e,a=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,l=t===null||Number.isNaN(a)?-1/0:a,i=n===null||Number.isNaN(r)?1/0:r;if(l>i){const o=l;l=i,i=o}return[l,i]};um.autoRemove=e=>En(e)||En(e[0])&&En(e[1]);const Na={includesString:t7,includesStringSensitive:n7,equalsString:a7,arrIncludes:r7,arrIncludesAll:l7,arrIncludesSome:i7,equals:o7,weakEquals:s7,inNumberRange:um};function En(e){return e==null||e===""}const Rk={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Yt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=n==null?void 0:n.getValue(e.id);return typeof a=="string"?Na.includesString:typeof a=="number"?Na.inNumberRange:typeof a=="boolean"||a!==null&&typeof a=="object"?Na.equals:Array.isArray(a)?Na.arrIncludes:Na.weakEquals},e.getFilterFn=()=>{var n,a;return af(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(a=t.options.filterFns)==null?void 0:a[e.columnDef.filterFn])!=null?n:Na[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,a,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((a=t.options.enableColumnFilters)!=null?a:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(a=>a.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,a;return(n=(a=t.getState().columnFilters)==null?void 0:a.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(a=>{const r=e.getFilterFn(),l=a==null?void 0:a.find(f=>f.id===e.id),i=qa(n,l?l.value:void 0);if(Nb(r,i,e)){var o;return(o=a==null?void 0:a.filter(f=>f.id!==e.id))!=null?o:[]}const s={id:e.id,value:i};if(l){var u;return(u=a==null?void 0:a.map(f=>f.id===e.id?s:f))!=null?u:[]}return a!=null&&a.length?[...a,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),a=r=>{var l;return(l=qa(t,r))==null?void 0:l.filter(i=>{const o=n.find(s=>s.id===i.id);if(o){const s=o.getFilterFn();if(Nb(s,i.value,o))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(a)},e.resetColumnFilters=t=>{var n,a;e.setColumnFilters(t?[]:(n=(a=e.initialState)==null?void 0:a.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 Nb(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ok=(e,t,n)=>n.reduce((a,r)=>{const l=r.getValue(e);return a+(typeof l=="number"?l:0)},0),Tk=(e,t,n)=>{let a;return n.forEach(r=>{const l=r.getValue(e);l!=null&&(a>l||a===void 0&&l>=l)&&(a=l)}),a},Dk=(e,t,n)=>{let a;return n.forEach(r=>{const l=r.getValue(e);l!=null&&(a<l||a===void 0&&l>=l)&&(a=l)}),a},kk=(e,t,n)=>{let a,r;return n.forEach(l=>{const i=l.getValue(e);i!=null&&(a===void 0?i>=i&&(a=r=i):(a>i&&(a=i),r<i&&(r=i)))}),[a,r]},Nk=(e,t)=>{let n=0,a=0;if(t.forEach(r=>{let l=r.getValue(e);l!=null&&(l=+l)>=l&&(++n,a+=l)}),n)return a/n},Ak=(e,t)=>{if(!t.length)return;const n=t.map(l=>l.getValue(e));if(!yk(n))return;if(n.length===1)return n[0];const a=Math.floor(n.length/2),r=n.sort((l,i)=>l-i);return n.length%2!==0?r[a]:(r[a-1]+r[a])/2},jk=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Lk=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,_k=(e,t)=>t.length,C0={sum:Ok,min:Tk,max:Dk,extent:kk,mean:Nk,median:Ak,unique:jk,uniqueCount:Lk,count:_k},zk={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:Yt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(a=>a!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,a;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((a=t.options.enableGrouping)!=null?a:!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],a=n==null?void 0:n.getValue(e.id);if(typeof a=="number")return C0.sum;if(Object.prototype.toString.call(a)==="[object Date]")return C0.extent},e.getAggregationFn=()=>{var n,a;if(!e)throw new Error;return af(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(a=t.options.aggregationFns)==null?void 0:a[e.columnDef.aggregationFn])!=null?n:C0[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,a;e.setGrouping(t?[]:(n=(a=e.initialState)==null?void 0:a.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 a=t.getColumn(n);return a!=null&&a.columnDef.getGroupingValue?(e._groupingValuesCache[n]=a.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,a)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function Pk(e,t,n){if(!(t!=null&&t.length)||!n)return e;const a=e.filter(r=>!t.includes(r.id));return n==="remove"?a:[...t.map(r=>e.find(l=>l.id===r)).filter(Boolean),...a]}const Kk={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Yt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=W(n=>[Wo(t,n)],n=>n.findIndex(a=>a.id===e.id),$(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var a;return((a=Wo(t,n)[0])==null?void 0:a.id)===e.id},e.getIsLastColumn=n=>{var a;const r=Wo(t,n);return((a=r[r.length-1])==null?void 0:a.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=W(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,a)=>r=>{let l=[];if(!(t!=null&&t.length))l=r;else{const i=[...t],o=[...r];for(;o.length&&i.length;){const s=i.shift(),u=o.findIndex(f=>f.id===s);u>-1&&l.push(o.splice(u,1)[0])}l=[...l,...o]}return Pk(l,n,a)},$(e.options,"debugTable"))}},S0=()=>({left:[],right:[]}),Hk={getInitialState:e=>({columnPinning:S0(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Yt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const a=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var l,i;if(n==="right"){var o,s;return{left:((o=r==null?void 0:r.left)!=null?o:[]).filter(c=>!(a!=null&&a.includes(c))),right:[...((s=r==null?void 0:r.right)!=null?s:[]).filter(c=>!(a!=null&&a.includes(c))),...a]}}if(n==="left"){var u,f;return{left:[...((u=r==null?void 0:r.left)!=null?u:[]).filter(c=>!(a!=null&&a.includes(c))),...a],right:((f=r==null?void 0:r.right)!=null?f:[]).filter(c=>!(a!=null&&a.includes(c)))}}return{left:((l=r==null?void 0:r.left)!=null?l:[]).filter(c=>!(a!=null&&a.includes(c))),right:((i=r==null?void 0:r.right)!=null?i:[]).filter(c=>!(a!=null&&a.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var a,r,l;return((a=n.columnDef.enablePinning)!=null?a:!0)&&((r=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?r:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(o=>o.id),{left:a,right:r}=t.getState().columnPinning,l=n.some(o=>a==null?void 0:a.includes(o)),i=n.some(o=>r==null?void 0:r.includes(o));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();return r?(n=(a=t.getState().columnPinning)==null||(a=a[r])==null?void 0:a.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=W(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,a,r)=>{const l=[...a??[],...r??[]];return n.filter(i=>!l.includes(i.column.id))},$(t.options,"debugRows")),e.getLeftVisibleCells=W(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,a)=>(a??[]).map(r=>n.find(l=>l.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),$(t.options,"debugRows")),e.getRightVisibleCells=W(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,a)=>(a??[]).map(r=>n.find(l=>l.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),$(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,a;return e.setColumnPinning(t?S0():(n=(a=e.initialState)==null?void 0:a.columnPinning)!=null?n:S0())},e.getIsSomeColumnsPinned=t=>{var n;const a=e.getState().columnPinning;if(!t){var r,l;return!!((r=a.left)!=null&&r.length||(l=a.right)!=null&&l.length)}return!!((n=a[t])!=null&&n.length)},e.getLeftLeafColumns=W(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(a=>t.find(r=>r.id===a)).filter(Boolean),$(e.options,"debugColumns")),e.getRightLeafColumns=W(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(a=>t.find(r=>r.id===a)).filter(Boolean),$(e.options,"debugColumns")),e.getCenterLeafColumns=W(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a)=>{const r=[...n??[],...a??[]];return t.filter(l=>!r.includes(l.id))},$(e.options,"debugColumns"))}};function Uk(e){return e||(typeof document<"u"?document:null)}const Lu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},E0=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Bk={getDefaultColumnDef:()=>Lu,getInitialState:e=>({columnSizing:{},columnSizingInfo:E0(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Yt("columnSizing",e),onColumnSizingInfoChange:Yt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,a,r;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Lu.minSize,(a=l??e.columnDef.size)!=null?a:Lu.size),(r=e.columnDef.maxSize)!=null?r:Lu.maxSize)},e.getStart=W(n=>[n,Wo(t,n),t.getState().columnSizing],(n,a)=>a.slice(0,e.getIndex(n)).reduce((r,l)=>r+l.getSize(),0),$(t.options,"debugColumns")),e.getAfter=W(n=>[n,Wo(t,n),t.getState().columnSizing],(n,a)=>a.slice(e.getIndex(n)+1).reduce((r,l)=>r+l.getSize(),0),$(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:a,...r}=n;return r})},e.getCanResize=()=>{var n,a;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((a=t.options.enableColumnResizing)!=null?a:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const a=r=>{if(r.subHeaders.length)r.subHeaders.forEach(a);else{var l;n+=(l=r.column.getSize())!=null?l:0}};return a(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 a=t.getColumn(e.column.id),r=a==null?void 0:a.getCanResize();return l=>{if(!a||!r||(l.persist==null||l.persist(),M0(l)&&l.touches&&l.touches.length>1))return;const i=e.getSize(),o=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[a.id,a.getSize()]],s=M0(l)?Math.round(l.touches[0].clientX):l.clientX,u={},f=(v,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(y=>{var C,S;const M=t.options.columnResizeDirection==="rtl"?-1:1,R=(b-((C=y==null?void 0:y.startOffset)!=null?C:0))*M,D=Math.max(R/((S=y==null?void 0:y.startSize)!=null?S:0),-.999999);return y.columnSizingStart.forEach(j=>{let[A,k]=j;u[A]=Math.round(Math.max(k+k*D,0)*100)/100}),{...y,deltaOffset:R,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(y=>({...y,...u})))},c=v=>f("move",v),d=v=>{f("end",v),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=Uk(n),g={moveHandler:v=>c(v.clientX),upHandler:v=>{h==null||h.removeEventListener("mousemove",g.moveHandler),h==null||h.removeEventListener("mouseup",g.upHandler),d(v.clientX)}},m={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),c(v.touches[0].clientX),!1),upHandler:v=>{var b;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),d((b=v.touches[0])==null?void 0:b.clientX)}},w=qk()?{passive:!1}:!1;M0(l)?(h==null||h.addEventListener("touchmove",m.moveHandler,w),h==null||h.addEventListener("touchend",m.upHandler,w)):(h==null||h.addEventListener("mousemove",g.moveHandler,w),h==null||h.addEventListener("mouseup",g.upHandler,w)),t.setColumnSizingInfo(v=>({...v,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:a.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?E0():(n=e.initialState.columnSizingInfo)!=null?n:E0())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0}}};let _u=null;function qk(){if(typeof _u=="boolean")return _u;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 _u=e,_u}function M0(e){return e.type==="touchstart"}const Fk={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Yt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(a=>({...a,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,a;const r=e.columns;return(n=r.length?r.some(l=>l.getIsVisible()):(a=t.getState().columnVisibility)==null?void 0:a[e.id])!=null?n:!0},e.getCanHide=()=>{var n,a;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((a=t.options.enableHiding)!=null?a:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=W(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(a=>a.column.getIsVisible()),$(t.options,"debugRows")),e.getVisibleCells=W(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,a,r)=>[...n,...a,...r],$(t.options,"debugRows"))},createTable:e=>{const t=(n,a)=>W(()=>[a(),a().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),$(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 a;e.setColumnVisibility(n?{}:(a=e.initialState.columnVisibility)!=null?a:{})},e.toggleAllColumnsVisible=n=>{var a;n=(a=n)!=null?a:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,l)=>({...r,[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 a;e.toggleAllColumnsVisible((a=n.target)==null?void 0:a.checked)}}};function Wo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Vk={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()}}},Gk={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Yt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const a=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof a=="string"||typeof a=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,a,r,l;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((a=t.options.enableGlobalFilter)!=null?a:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Na.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:a}=e.options;return af(a)?a:a==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[a])!=null?t:Na[a]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Qk={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Yt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var a,r;if(!t){e._queue(()=>{t=!0});return}if((a=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?a:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=a=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(a),e.toggleAllRowsExpanded=a=>{a??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=a=>{var r,l;e.setExpanded(a?{}:(r=(l=e.initialState)==null?void 0:l.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(a=>a.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>a=>{a.persist==null||a.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const a=e.getState().expanded;return a===!0||Object.values(a).some(Boolean)},e.getIsAllRowsExpanded=()=>{const a=e.getState().expanded;return typeof a=="boolean"?a===!0:!(!Object.keys(a).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let a=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(r=>{const l=r.split(".");a=Math.max(a,l.length)}),a},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(a=>{var r;const l=a===!0?!0:!!(a!=null&&a[e.id]);let i={};if(a===!0?Object.keys(t.getRowModel().rowsById).forEach(o=>{i[o]=!0}):i=a,n=(r=n)!=null?r:!l,!l&&n)return{...i,[e.id]:!0};if(l&&!n){const{[e.id]:o,...s}=i;return s}return a})},e.getIsExpanded=()=>{var n;const a=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:a===!0||a!=null&&a[e.id])},e.getCanExpand=()=>{var n,a,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((a=t.options.enableExpanding)!=null?a:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,a=e;for(;n&&a.parentId;)a=t.getRow(a.parentId,!0),n=a.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},pp=0,gp=10,R0=()=>({pageIndex:pp,pageSize:gp}),Xk={getInitialState:e=>({...e,pagination:{...R0(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Yt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var a,r;if(!t){e._queue(()=>{t=!0});return}if((a=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?a:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=a=>{const r=l=>qa(a,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=a=>{var r;e.setPagination(a?R0():(r=e.initialState.pagination)!=null?r:R0())},e.setPageIndex=a=>{e.setPagination(r=>{let l=qa(a,r.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)),{...r,pageIndex:l}})},e.resetPageIndex=a=>{var r,l;e.setPageIndex(a?pp:(r=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?r:pp)},e.resetPageSize=a=>{var r,l;e.setPageSize(a?gp:(r=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?r:gp)},e.setPageSize=a=>{e.setPagination(r=>{const l=Math.max(1,qa(a,r.pageSize)),i=r.pageSize*r.pageIndex,o=Math.floor(i/l);return{...r,pageIndex:o,pageSize:l}})},e.setPageCount=a=>e.setPagination(r=>{var l;let i=qa(a,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...r,pageCount:i}}),e.getPageOptions=W(()=>[e.getPageCount()],a=>{let r=[];return a&&a>0&&(r=[...new Array(a)].fill(null).map((l,i)=>i)),r},$(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:a}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:a<r-1},e.previousPage=()=>e.setPageIndex(a=>a-1),e.nextPage=()=>e.setPageIndex(a=>a+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 a;return(a=e.options.pageCount)!=null?a:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var a;return(a=e.options.rowCount)!=null?a:e.getPrePaginationRowModel().rows.length}}},O0=()=>({top:[],bottom:[]}),Yk={getInitialState:e=>({rowPinning:O0(),...e}),getDefaultOptions:e=>({onRowPinningChange:Yt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,a,r)=>{const l=a?e.getLeafRows().map(s=>{let{id:u}=s;return u}):[],i=r?e.getParentRows().map(s=>{let{id:u}=s;return u}):[],o=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var u,f;if(n==="bottom"){var c,d;return{top:((c=s==null?void 0:s.top)!=null?c:[]).filter(m=>!(o!=null&&o.has(m))),bottom:[...((d=s==null?void 0:s.bottom)!=null?d:[]).filter(m=>!(o!=null&&o.has(m))),...Array.from(o)]}}if(n==="top"){var h,g;return{top:[...((h=s==null?void 0:s.top)!=null?h:[]).filter(m=>!(o!=null&&o.has(m))),...Array.from(o)],bottom:((g=s==null?void 0:s.bottom)!=null?g:[]).filter(m=>!(o!=null&&o.has(m)))}}return{top:((u=s==null?void 0:s.top)!=null?u:[]).filter(m=>!(o!=null&&o.has(m))),bottom:((f=s==null?void 0:s.bottom)!=null?f:[]).filter(m=>!(o!=null&&o.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:a,enablePinning:r}=t.options;return typeof a=="function"?a(e):(n=a??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:a,bottom:r}=t.getState().rowPinning,l=n.some(o=>a==null?void 0:a.includes(o)),i=n.some(o=>r==null?void 0:r.includes(o));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();if(!r)return-1;const l=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:o}=i;return o});return(a=l==null?void 0:l.indexOf(e.id))!=null?a:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,a;return e.setRowPinning(t?O0():(n=(a=e.initialState)==null?void 0:a.rowPinning)!=null?n:O0())},e.getIsSomeRowsPinned=t=>{var n;const a=e.getState().rowPinning;if(!t){var r,l;return!!((r=a.top)!=null&&r.length||(l=a.bottom)!=null&&l.length)}return!!((n=a[t])!=null&&n.length)},e._getPinnedRows=(t,n,a)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(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:a}))},e.getTopRows=W(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),$(e.options,"debugRows")),e.getBottomRows=W(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),$(e.options,"debugRows")),e.getCenterRows=W(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,a)=>{const r=new Set([...n??[],...a??[]]);return t.filter(l=>!r.has(l.id))},$(e.options,"debugRows"))}},Ik={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Yt("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 a={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(l=>{l.getCanSelect()&&(a[l.id]=!0)}):r.forEach(l=>{delete a[l.id]}),a})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const a=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(l=>{mp(r,l.id,a,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=W(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?T0(e,n):{rows:[],flatRows:[],rowsById:{}},$(e.options,"debugTable")),e.getFilteredSelectedRowModel=W(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?T0(e,n):{rows:[],flatRows:[],rowsById:{}},$(e.options,"debugTable")),e.getGroupedSelectedRowModel=W(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?T0(e,n):{rows:[],flatRows:[],rowsById:{}},$(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let a=!!(t.length&&Object.keys(n).length);return a&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(a=!1),a},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let a=!!t.length;return a&&t.some(r=>!n[r.id])&&(a=!1),a},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,a)=>{const r=e.getIsSelected();t.setRowSelection(l=>{var i;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return l;const o={...l};return mp(o,e.id,n,(i=a==null?void 0:a.selectChildren)!=null?i:!0,t),o})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return cm(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return vp(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return vp(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 a=>{var r;n&&e.toggleSelected((r=a.target)==null?void 0:r.checked)}}}},mp=(e,t,n,a,r)=>{var l;const i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(o=>delete e[o]),i.getCanSelect()&&(e[t]=!0)):delete e[t],a&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(o=>mp(e,o.id,n,a,r))};function T0(e,t){const n=e.getState().rowSelection,a=[],r={},l=function(i,o){return i.map(s=>{var u;const f=cm(s,n);if(f&&(a.push(s),r[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:l(s.subRows)}),f)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:a,rowsById:r}}function cm(e,t){var n;return(n=t[e.id])!=null?n:!1}function vp(e,t,n){var a;if(!((a=e.subRows)!=null&&a.length))return!1;let r=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!r)&&(i.getCanSelect()&&(cm(i,t)?l=!0:r=!1),i.subRows&&i.subRows.length)){const o=vp(i,t);o==="all"?l=!0:(o==="some"&&(l=!0),r=!1)}}),r?"all":l?"some":!1}const bp=/([0-9]+)/gm,Zk=(e,t,n)=>u7(ir(e.getValue(n)).toLowerCase(),ir(t.getValue(n)).toLowerCase()),Wk=(e,t,n)=>u7(ir(e.getValue(n)),ir(t.getValue(n))),$k=(e,t,n)=>dm(ir(e.getValue(n)).toLowerCase(),ir(t.getValue(n)).toLowerCase()),Jk=(e,t,n)=>dm(ir(e.getValue(n)),ir(t.getValue(n))),eN=(e,t,n)=>{const a=e.getValue(n),r=t.getValue(n);return a>r?1:a<r?-1:0},tN=(e,t,n)=>dm(e.getValue(n),t.getValue(n));function dm(e,t){return e===t?0:e>t?1:-1}function ir(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function u7(e,t){const n=e.split(bp).filter(Boolean),a=t.split(bp).filter(Boolean);for(;n.length&&a.length;){const r=n.shift(),l=a.shift(),i=parseInt(r,10),o=parseInt(l,10),s=[i,o].sort();if(isNaN(s[0])){if(r>l)return 1;if(l>r)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-a.length}const xo={alphanumeric:Zk,alphanumericCaseSensitive:Wk,text:$k,textCaseSensitive:Jk,datetime:eN,basic:tN},nN={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Yt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let a=!1;for(const r of n){const l=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return xo.datetime;if(typeof l=="string"&&(a=!0,l.split(bp).length>1))return xo.alphanumeric}return a?xo.text:xo.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,a;if(!e)throw new Error;return af(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(a=t.options.sortingFns)==null?void 0:a[e.columnDef.sortingFn])!=null?n:xo[e.columnDef.sortingFn]},e.toggleSorting=(n,a)=>{const r=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=[],f,c=l?n:r==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&a?o?f="toggle":f="add":i!=null&&i.length&&s!==i.length-1?f="replace":o?f="toggle":f="replace",f==="toggle"&&(l||r||(f="remove")),f==="add"){var d;u=[...i,{id:e.id,desc:c}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else f==="toggle"?u=i.map(h=>h.id===e.id?{...h,desc:c}:h):f==="remove"?u=i.filter(h=>h.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,a;return((n=(a=e.columnDef.sortDescFirst)!=null?a:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var a,r;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((a=t.options.enableSortingRemoval)==null||a)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var n,a;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((a=t.options.enableSorting)!=null?a:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,a;return(n=(a=e.columnDef.enableMultiSort)!=null?a:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const a=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return a?a.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,a;return(n=(a=t.getState().sorting)==null?void 0:a.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(a=>a.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return a=>{n&&(a.persist==null||a.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(a):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,a;e.setSorting(t?[]:(n=(a=e.initialState)==null?void 0:a.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())}},aN=[Sk,Fk,Kk,Hk,Mk,Rk,Vk,Gk,nN,zk,Qk,Xk,Yk,Ik,Bk];function rN(e){var t,n;const a=[...aN,...(t=e._features)!=null?t:[]];let r={_features:a};const l=r._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(r)),{}),i=c=>r.options.mergeOptions?r.options.mergeOptions(l,c):{...l,...c};let o={...(n=e.initialState)!=null?n:{}};r._features.forEach(c=>{var d;o=(d=c.getInitialState==null?void 0:c.getInitialState(o))!=null?d:o});const s=[];let u=!1;const f={_features:a,options:{...l,...e},initialState:o,_queue:c=>{s.push(c),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const d=qa(c,r.options);r.options=i(d)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,d,h)=>{var g;return(g=r.options.getRowId==null?void 0:r.options.getRowId(c,d,h))!=null?g:`${h?[h.id,d].join("."):d}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(c,d)=>{let h=(d?r.getPrePaginationRowModel():r.getRowModel()).rowsById[c];if(!h&&(h=r.getCoreRowModel().rowsById[c],!h))throw new Error;return h},_getDefaultColumnDef:W(()=>[r.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:h=>{const g=h.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:h=>{var g,m;return(g=(m=h.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...r._features.reduce((h,g)=>Object.assign(h,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...c}},$(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:W(()=>[r._getColumnDefs()],c=>{const d=function(h,g,m){return m===void 0&&(m=0),h.map(w=>{const v=Ck(r,w,m,g),b=w;return v.columns=b.columns?d(b.columns,v,m+1):[],v})};return d(c)},$(e,"debugColumns")),getAllFlatColumns:W(()=>[r.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),$(e,"debugColumns")),_getAllFlatColumnsById:W(()=>[r.getAllFlatColumns()],c=>c.reduce((d,h)=>(d[h.id]=h,d),{}),$(e,"debugColumns")),getAllLeafColumns:W(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,d)=>{let h=c.flatMap(g=>g.getLeafColumns());return d(h)},$(e,"debugColumns")),getColumn:c=>r._getAllFlatColumnsById()[c]};Object.assign(r,f);for(let c=0;c<r._features.length;c++){const d=r._features[c];d==null||d.createTable==null||d.createTable(r)}return r}function c7(){return e=>W(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},a=function(r,l,i){l===void 0&&(l=0);const o=[];for(let u=0;u<r.length;u++){const f=Ek(e,e._getRowId(r[u],u,i),r[u],u,l,void 0,i==null?void 0:i.id);if(n.flatRows.push(f),n.rowsById[f.id]=f,o.push(f),e.options.getSubRows){var s;f.originalSubRows=e.options.getSubRows(r[u],u),(s=f.originalSubRows)!=null&&s.length&&(f.subRows=a(f.originalSubRows,l+1,f))}}return o};return n.rows=a(t),n},$(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 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()))}/**
95
100
  * react-table
96
101
  *
97
102
  * Copyright (c) TanStack
@@ -100,10 +105,10 @@ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}
100
105
  * LICENSE.md file in the root directory of this source tree.
101
106
  *
102
107
  * @license MIT
103
- */function ld(e,t){return e?lN(e)?p.createElement(e,t):e:null}function lN(e){return iN(e)||typeof e=="function"||oN(e)}function iN(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function oN(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function d7(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=p.useState(()=>({current:rN(t)})),[a,r]=p.useState(()=>n.current.initialState);return n.current.setOptions(l=>({...l,...e,state:{...a,...e.state},onStateChange:i=>{r(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const f7=6048e5,sN=864e5,Ab=6e4,jb=525600,Yl=43200,id=1440,Lb=Symbol.for("constructDateFrom");function va(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Lb in e?e[Lb](t):e instanceof Date?new e.constructor(t):new Date(t)}function Je(e,t){return va(t||e,e)}let uN={};function Ui(){return uN}function Es(e,t){var n,a,r,l;const i=Ui(),o=(t==null?void 0:t.weekStartsOn)??((a=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:a.weekStartsOn)??i.weekStartsOn??((l=(r=i.locale)==null?void 0:r.options)==null?void 0:l.weekStartsOn)??0,s=Je(e,t==null?void 0:t.in),u=s.getDay(),f=(u<o?7:0)+u-o;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function od(e,t){return Es(e,{...t,weekStartsOn:1})}function h7(e,t){const n=Je(e,void 0),a=n.getFullYear(),r=va(n,0);r.setFullYear(a+1,0,4),r.setHours(0,0,0,0);const l=od(r),i=va(n,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);const o=od(i);return n.getTime()>=l.getTime()?a+1:n.getTime()>=o.getTime()?a:a-1}function Ei(e){const t=Je(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 Ws(e,...t){const n=va.bind(null,e||t.find(a=>typeof a=="object"));return t.map(n)}function _b(e,t){const n=Je(e,void 0);return n.setHours(0,0,0,0),n}function cN(e,t,n){const[a,r]=Ws(void 0,e,t),l=_b(a),i=_b(r),o=+l-Ei(l),s=+i-Ei(i);return Math.round((o-s)/sN)}function dN(e,t){const n=h7(e),a=va(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),od(a)}function $o(e,t){const n=+Je(e)-+Je(t);return n<0?-1:n>0?1:n}function fN(e){return va(e,Date.now())}function hN(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pN(e){return!(!hN(e)&&typeof e!="number"||isNaN(+Je(e)))}function gN(e,t,n){const[a,r]=Ws(void 0,e,t),l=a.getFullYear()-r.getFullYear(),i=a.getMonth()-r.getMonth();return l*12+i}function p7(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function mN(e,t){return+Je(e)-+Je(t)}function vN(e,t){const n=Je(e,void 0);return n.setHours(23,59,59,999),n}function bN(e,t){const n=Je(e,void 0),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(23,59,59,999),n}function yN(e,t){const n=Je(e,void 0);return+vN(n)==+bN(n)}function wN(e,t,n){const[a,r,l]=Ws(void 0,e,e,t),i=$o(r,l),o=Math.abs(gN(r,l));if(o<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);let s=$o(r,l)===-i;yN(a)&&o===1&&$o(a,l)===1&&(s=!1);const u=i*(o-+s);return u===0?0:u}function xN(e,t,n){const a=mN(e,t)/1e3;return p7(void 0)(a)}function CN(e,t){const n=Je(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const SN={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"}},EN=(e,t,n)=>{let a;const r=SN[e];return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function D0(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const MN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ON={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TN={date:D0({formats:MN,defaultWidth:"full"}),time:D0({formats:RN,defaultWidth:"full"}),dateTime:D0({formats:ON,defaultWidth:"full"})},DN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},kN=(e,t,n,a)=>DN[e];function Co(e){return(t,n)=>{const a=n!=null&&n.context?String(n.context):"standalone";let r;if(a==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return r[l]}}const NN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},AN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jN={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"]},LN={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"]},_N={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"}},zN={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"}},PN=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},KN={ordinalNumber:PN,era:Co({values:NN,defaultWidth:"wide"}),quarter:Co({values:AN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Co({values:jN,defaultWidth:"wide"}),day:Co({values:LN,defaultWidth:"wide"}),dayPeriod:Co({values:_N,defaultWidth:"wide",formattingValues:zN,defaultFormattingWidth:"wide"})};function So(e){return(t,n={})=>{const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=t.match(r);if(!l)return null;const i=l[0],o=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(o)?UN(o,c=>c.test(i)):HN(o,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function HN(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function UN(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function BN(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const r=a[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(r.length);return{value:i,rest:o}}}const qN=/^(\d+)(th|st|nd|rd)?/i,FN=/\d+/i,VN={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},GN={any:[/^b/i,/^(a|c)/i]},QN={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XN={any:[/1/i,/2/i,/3/i,/4/i]},YN={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},IN={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]},ZN={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},WN={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]},$N={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},JN={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}},eA={ordinalNumber:BN({matchPattern:qN,parsePattern:FN,valueCallback:e=>parseInt(e,10)}),era:So({matchPatterns:VN,defaultMatchWidth:"wide",parsePatterns:GN,defaultParseWidth:"any"}),quarter:So({matchPatterns:QN,defaultMatchWidth:"wide",parsePatterns:XN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:So({matchPatterns:YN,defaultMatchWidth:"wide",parsePatterns:IN,defaultParseWidth:"any"}),day:So({matchPatterns:ZN,defaultMatchWidth:"wide",parsePatterns:WN,defaultParseWidth:"any"}),dayPeriod:So({matchPatterns:$N,defaultMatchWidth:"any",parsePatterns:JN,defaultParseWidth:"any"})},fm={code:"en-US",formatDistance:EN,formatLong:TN,formatRelative:kN,localize:KN,match:eA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tA(e,t){const n=Je(e,void 0);return cN(n,CN(n))+1}function nA(e,t){const n=Je(e,void 0),a=+od(n)-+dN(n);return Math.round(a/f7)+1}function g7(e,t){var n,a,r,l;const i=Je(e,t==null?void 0:t.in),o=i.getFullYear(),s=Ui(),u=(t==null?void 0:t.firstWeekContainsDate)??((a=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:a.firstWeekContainsDate)??s.firstWeekContainsDate??((l=(r=s.locale)==null?void 0:r.options)==null?void 0:l.firstWeekContainsDate)??1,f=va((t==null?void 0:t.in)||e,0);f.setFullYear(o+1,0,u),f.setHours(0,0,0,0);const c=Es(f,t),d=va((t==null?void 0:t.in)||e,0);d.setFullYear(o,0,u),d.setHours(0,0,0,0);const h=Es(d,t);return+i>=+c?o+1:+i>=+h?o:o-1}function aA(e,t){var n,a,r,l;const i=Ui(),o=(t==null?void 0:t.firstWeekContainsDate)??((a=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:a.firstWeekContainsDate)??i.firstWeekContainsDate??((l=(r=i.locale)==null?void 0:r.options)==null?void 0:l.firstWeekContainsDate)??1,s=g7(e,t),u=va((t==null?void 0:t.in)||e,0);return u.setFullYear(s,0,o),u.setHours(0,0,0,0),Es(u,t)}function rA(e,t){const n=Je(e,t==null?void 0:t.in),a=+Es(n,t)-+aA(n,t);return Math.round(a/f7)+1}function he(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const Oa={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return he(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):he(n+1,2)},d(e,t){return he(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 he(e.getHours()%12||12,t.length)},H(e,t){return he(e.getHours(),t.length)},m(e,t){return he(e.getMinutes(),t.length)},s(e,t){return he(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),r=Math.trunc(a*Math.pow(10,n-3));return he(r,t.length)}},Ml={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zb={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return Oa.y(e,t)},Y:function(e,t,n,a){const r=g7(e,a),l=r>0?r:1-r;if(t==="YY"){const i=l%100;return he(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):he(l,t.length)},R:function(e,t){const n=h7(e);return he(n,t.length)},u:function(e,t){const n=e.getFullYear();return he(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return he(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return he(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return Oa.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return he(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=rA(e,a);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):he(r,t.length)},I:function(e,t,n){const a=nA(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):he(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Oa.d(e,t)},D:function(e,t,n){const a=tA(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):he(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":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"})}},e:function(e,t,n,a){const r=e.getDay(),l=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return he(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});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"})}},c:function(e,t,n,a){const r=e.getDay(),l=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return he(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=a===0?7:a;switch(t){case"i":return String(r);case"ii":return he(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(a===12?r=Ml.noon:a===0?r=Ml.midnight:r=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(a>=17?r=Ml.evening:a>=12?r=Ml.afternoon:a>=4?r=Ml.morning:r=Ml.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Oa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Oa.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):he(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):he(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Oa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Oa.s(e,t)},S:function(e,t){return Oa.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return Kb(a);case"XXXX":case"XX":return zr(a);case"XXXXX":case"XXX":default:return zr(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return Kb(a);case"xxxx":case"xx":return zr(a);case"xxxxx":case"xxx":default:return zr(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Pb(a,":");case"OOOO":default:return"GMT"+zr(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Pb(a,":");case"zzzz":default:return"GMT"+zr(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return he(a,t.length)},T:function(e,t,n){return he(+e,t.length)}};function Pb(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),l=a%60;return l===0?n+String(r):n+String(r)+t+he(l,2)}function Kb(e,t){return e%60===0?(e>0?"-":"+")+he(Math.abs(e)/60,2):zr(e,t)}function zr(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=he(Math.trunc(a/60),2),l=he(a%60,2);return n+r+t+l}const Hb=(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"})}},m7=(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"})}},lA=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return Hb(e,t);let l;switch(a){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}}",Hb(a,t)).replace("{{time}}",m7(r,t))},iA={p:m7,P:lA},oA=/^D+$/,sA=/^Y+$/,uA=["D","DD","YY","YYYY"];function cA(e){return oA.test(e)}function dA(e){return sA.test(e)}function fA(e,t,n){const a=hA(e,t,n);if(console.warn(a),uA.includes(e))throw new RangeError(a)}function hA(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const pA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gA=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mA=/^'([^]*?)'?$/,vA=/''/g,bA=/[a-zA-Z]/;function v7(e,t,n){var a,r,l,i;const o=Ui(),s=o.locale??fm,u=o.firstWeekContainsDate??((r=(a=o.locale)==null?void 0:a.options)==null?void 0:r.firstWeekContainsDate)??1,f=o.weekStartsOn??((i=(l=o.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??0,c=Je(e,void 0);if(!pN(c))throw new RangeError("Invalid time value");let d=t.match(gA).map(g=>{const m=g[0];if(m==="p"||m==="P"){const w=iA[m];return w(g,s.formatLong)}return g}).join("").match(pA).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:yA(g)};if(zb[m])return{isToken:!0,value:g};if(m.match(bA))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const h={firstWeekContainsDate:u,weekStartsOn:f,locale:s};return d.map(g=>{if(!g.isToken)return g.value;const m=g.value;(dA(m)||cA(m))&&fA(m,t,String(e));const w=zb[m[0]];return w(c,m,s.localize,h)}).join("")}function yA(e){const t=e.match(mA);return t?t[1].replace(vA,"'"):e}function wA(e,t,n){const a=Ui(),r=a.locale??fm,l=2520,i=$o(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:void 0,comparison:i}),[s,u]=Ws(void 0,...i>0?[t,e]:[e,t]),f=xN(u,s),c=(Ei(u)-Ei(s))/1e3,d=Math.round((f-c)/60);let h;if(d<2)return d===0?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",d,o);if(d<45)return r.formatDistance("xMinutes",d,o);if(d<90)return r.formatDistance("aboutXHours",1,o);if(d<id){const g=Math.round(d/60);return r.formatDistance("aboutXHours",g,o)}else{if(d<l)return r.formatDistance("xDays",1,o);if(d<Yl){const g=Math.round(d/id);return r.formatDistance("xDays",g,o)}else if(d<Yl*2)return h=Math.round(d/Yl),r.formatDistance("aboutXMonths",h,o)}if(h=wN(u,s),h<12){const g=Math.round(d/Yl);return r.formatDistance("xMonths",g,o)}else{const g=h%12,m=Math.trunc(h/12);return g<3?r.formatDistance("aboutXYears",m,o):g<9?r.formatDistance("overXYears",m,o):r.formatDistance("almostXYears",m+1,o)}}function xA(e,t,n){const a=Ui(),r=(n==null?void 0:n.locale)??a.locale??fm,l=$o(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]=Ws(n==null?void 0:n.in,...l>0?[t,e]:[e,t]),u=p7((n==null?void 0:n.roundingMethod)??"round"),f=s.getTime()-o.getTime(),c=f/Ab,d=Ei(s)-Ei(o),h=(f-d)/Ab,g=n==null?void 0:n.unit;let m;if(g?m=g:c<1?m="second":c<60?m="minute":c<id?m="hour":h<Yl?m="day":h<jb?m="month":m="year",m==="second"){const w=u(f/1e3);return r.formatDistance("xSeconds",w,i)}else if(m==="minute"){const w=u(c);return r.formatDistance("xMinutes",w,i)}else if(m==="hour"){const w=u(c/60);return r.formatDistance("xHours",w,i)}else if(m==="day"){const w=u(h/id);return r.formatDistance("xDays",w,i)}else if(m==="month"){const w=u(h/Yl);return w===12&&g!=="month"?r.formatDistance("xYears",1,i):r.formatDistance("xMonths",w,i)}else{const w=u(h/jb);return r.formatDistance("xYears",w,i)}}function b7(e,t){return wA(e,fN(e),t)}var yp=new Map,k0=new WeakMap,Ub=0,CA=void 0;function SA(e){return e?(k0.has(e)||(Ub+=1,k0.set(e,Ub.toString())),k0.get(e)):"0"}function EA(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?SA(e.root):e[t]}`).toString()}function MA(e){const t=EA(e);let n=yp.get(t);if(!n){const a=new Map;let r;const l=new IntersectionObserver(i=>{i.forEach(o=>{var s;const u=o.isIntersecting&&r.some(f=>o.intersectionRatio>=f);e.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=u),(s=a.get(o.target))==null||s.forEach(f=>{f(u,o)})})},e);r=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:a},yp.set(t,n)}return n}function RA(e,t,n={},a=CA){if(typeof window.IntersectionObserver>"u"&&a!==void 0){const s=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:r,observer:l,elements:i}=MA(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(),yp.delete(r))}}function OA({threshold:e,delay:t,trackVisibility:n,rootMargin:a,root:r,triggerOnce:l,skip:i,initialInView:o,fallbackInView:s,onChange:u}={}){var f;const[c,d]=p.useState(null),h=p.useRef(u),[g,m]=p.useState({inView:!!o,entry:void 0});h.current=u,p.useEffect(()=>{if(i||!c)return;let y;return y=RA(c,(C,S)=>{m({inView:C,entry:S}),h.current&&h.current(C,S),S.isIntersecting&&l&&y&&(y(),y=void 0)},{root:r,rootMargin:a,threshold:e,trackVisibility:n,delay:t},s),()=>{y&&y()}},[Array.isArray(e)?e.toString():e,c,r,a,l,i,n,s,t]);const w=(f=g.entry)==null?void 0:f.target,v=p.useRef(void 0);!c&&w&&!l&&!i&&v.current!==w&&(v.current=w,m({inView:!!o,entry:void 0}));const b=[d,g.inView,g.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}var y7=function(e){var t=e.isLastRow,n=e.children,a=e.isSelected,r=e.onClick,l=e.layoutVariant;return x.jsx("div",{onClick:r,"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(a?"bg-slate-200/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},wp=30,xp=2e3,Cp=2,w7=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"})}),Gr([],new Array(wp),!0).map(function(e,t){return x.jsx("div",{className:Ci("p-2",wp!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:x.jsx(Qc,{className:"h-6 w-full"})},t)})]})};function Bb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function x7(...e){return t=>{let n=!1;const a=e.map(r=>{const l=Bb(r,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let r=0;r<a.length;r++){const l=a[r];typeof l=="function"?l():Bb(e[r],null)}}}}function hm(...e){return p.useCallback(x7(...e),e)}function TA(e,t=[]){let n=[];function a(l,i){const o=p.createContext(i),s=n.length;n=[...n,i];const u=c=>{var d;const{scope:h,children:g,...m}=c,w=((d=h==null?void 0:h[e])==null?void 0:d[s])||o,v=p.useMemo(()=>m,Object.values(m));return x.jsx(w.Provider,{value:v,children:g})};u.displayName=l+"Provider";function f(c,d){var h;const g=((h=d==null?void 0:d[e])==null?void 0:h[s])||o,m=p.useContext(g);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[u,f]}const r=()=>{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 r.scopeName=e,[a,DA(r,...t)]}function DA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(r){const l=a.reduce((i,{useScope:o,scopeName:s})=>{const u=o(r)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function qb(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}var sd=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},kA=_y[" useInsertionEffect ".trim().toString()]||sd;function NA({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[r,l,i]=AA({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r;{const f=p.useRef(e!==void 0);p.useEffect(()=>{const c=f.current;c!==o&&console.warn(`${a} 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.`),f.current=o},[o,a])}const u=p.useCallback(f=>{var c;if(o){const d=jA(f)?f(e):f;d!==e&&((c=i.current)==null||c.call(i,d))}else l(f)},[o,e,l,i]);return[s,u]}function AA({defaultProp:e,onChange:t}){const[n,a]=p.useState(e),r=p.useRef(n),l=p.useRef(t);return kA(()=>{l.current=t},[t]),p.useEffect(()=>{var i;r.current!==n&&((i=l.current)==null||i.call(l,n),r.current=n)},[n,r]),[n,a,l]}function jA(e){return typeof e=="function"}function LA(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 _A(e){const[t,n]=p.useState(void 0);return sd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const l=r[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 a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}function zA(e,t){return p.useReducer((n,a)=>t[n][a]??n,e)}var C7=e=>{const{present:t,children:n}=e,a=PA(t),r=typeof n=="function"?n({present:a.isPresent}):p.Children.only(n),l=hm(a.ref,KA(r));return typeof n=="function"||a.isPresent?p.cloneElement(r,{ref:l}):null};C7.displayName="Presence";function PA(e){const[t,n]=p.useState(),a=p.useRef(null),r=p.useRef(e),l=p.useRef("none"),i=e?"mounted":"unmounted",[o,s]=zA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=zu(a.current);l.current=o==="mounted"?u:"none"},[o]),sd(()=>{const u=a.current,f=r.current;if(f!==e){const c=l.current,d=zu(u);e?s("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&c!==d?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,s]),sd(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=h=>{const g=zu(a.current).includes(h.animationName);if(h.target===t&&g&&(s("ANIMATION_END"),!r.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},d=h=>{h.target===t&&(l.current=zu(a.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:p.useCallback(u=>{a.current=u?getComputedStyle(u):null,n(u)},[])}}function zu(e){return(e==null?void 0:e.animationName)||"none"}function KA(e){var t,n;let a=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?e.ref:(a=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function HA(e){const t=UA(e),n=p.forwardRef((a,r)=>{const{children:l,...i}=a,o=p.Children.toArray(l),s=o.find(qA);if(s){const u=s.props.children,f=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:r,children:p.isValidElement(u)?p.cloneElement(u,void 0,f):null})}return x.jsx(t,{...i,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}function UA(e){const t=p.forwardRef((n,a)=>{const{children:r,...l}=n;if(p.isValidElement(r)){const i=VA(r),o=FA(l,r.props);return r.type!==p.Fragment&&(o.ref=a?x7(a,i):i),p.cloneElement(r,o)}return p.Children.count(r)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BA=Symbol("radix.slottable");function qA(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BA}function FA(e,t){const n={...t};for(const a in t){const r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?n[a]=(...i)=>{const o=l(...i);return r(...i),o}:r&&(n[a]=r):a==="style"?n[a]={...r,...l}:a==="className"&&(n[a]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function VA(e){var t,n;let a=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?e.ref:(a=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var GA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pm=GA.reduce((e,t)=>{const n=HA(`Primitive.${t}`),a=p.forwardRef((r,l)=>{const{asChild:i,...o}=r,s=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(s,{...o,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),rf="Checkbox",[QA,jK]=TA(rf),[XA,gm]=QA(rf);function YA(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:r,disabled:l,form:i,name:o,onCheckedChange:s,required:u,value:f="on",internal_do_not_use_render:c}=e,[d,h]=NA({prop:n,defaultProp:r??!1,onChange:s,caller:rf}),[g,m]=p.useState(null),[w,v]=p.useState(null),b=p.useRef(!1),y=g?!!i||!!g.closest("form"):!0,C={checked:d,disabled:l,setChecked:h,control:g,setControl:m,name:o,form:i,value:f,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:$a(r)?!1:r,isFormControl:y,bubbleInput:w,setBubbleInput:v};return x.jsx(XA,{scope:t,...C,children:IA(c)?c(C):a})}var S7="CheckboxTrigger",E7=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},r)=>{const{control:l,value:i,disabled:o,checked:s,required:u,setControl:f,setChecked:c,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:g}=gm(S7,e),m=hm(r,f),w=p.useRef(s);return p.useEffect(()=>{const v=l==null?void 0:l.form;if(v){const b=()=>c(w.current);return v.addEventListener("reset",b),()=>v.removeEventListener("reset",b)}},[l,c]),x.jsx(pm.button,{type:"button",role:"checkbox","aria-checked":$a(s)?"mixed":s,"aria-required":u,"data-state":k7(s),"data-disabled":o?"":void 0,disabled:o,value:i,...a,ref:m,onKeyDown:qb(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:qb(n,v=>{c(b=>$a(b)?!0:!b),g&&h&&(d.current=v.isPropagationStopped(),d.current||v.stopPropagation())})})});E7.displayName=S7;var M7=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:r,defaultChecked:l,required:i,disabled:o,value:s,onCheckedChange:u,form:f,...c}=e;return x.jsx(YA,{__scopeCheckbox:n,checked:r,defaultChecked:l,disabled:o,required:i,onCheckedChange:u,name:a,form:f,value:s,internal_do_not_use_render:({isFormControl:d})=>x.jsxs(x.Fragment,{children:[x.jsx(E7,{...c,ref:t,__scopeCheckbox:n}),d&&x.jsx(D7,{__scopeCheckbox:n})]})})});M7.displayName=rf;var R7="CheckboxIndicator",O7=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...r}=e,l=gm(R7,n);return x.jsx(C7,{present:a||$a(l.checked)||l.checked===!0,children:x.jsx(pm.span,{"data-state":k7(l.checked),"data-disabled":l.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});O7.displayName=R7;var T7="CheckboxBubbleInput",D7=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:a,hasConsumerStoppedPropagationRef:r,checked:l,defaultChecked:i,required:o,disabled:s,name:u,value:f,form:c,bubbleInput:d,setBubbleInput:h}=gm(T7,e),g=hm(n,h),m=LA(l),w=_A(a);p.useEffect(()=>{const b=d;if(!b)return;const y=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(y,"checked").set,S=!r.current;if(m!==l&&C){const M=new Event("click",{bubbles:S});b.indeterminate=$a(l),C.call(b,$a(l)?!1:l),b.dispatchEvent(M)}},[d,m,l,r]);const v=p.useRef($a(l)?!1:l);return x.jsx(pm.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:o,disabled:s,name:u,value:f,form:c,...t,tabIndex:-1,ref:g,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});D7.displayName=T7;function IA(e){return typeof e=="function"}function $a(e){return e==="indeterminate"}function k7(e){return $a(e)?"indeterminate":e?"checked":"unchecked"}var ud=function(e){var t=e.className,n=_S(e,["className"]);return x.jsx(M7,{className:Ci("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(a){return a.stopPropagation()},...n,children:x.jsxs(O7,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&x.jsx(qM,{height:12,width:12}),n.checked===!0&&x.jsx(kM,{height:12,width:12})]})})},Eo=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})]})},mm=function(e){var t=e.children,n=e.message;return x.jsxs(pk,{children:[x.jsx(am,{children:t}),x.jsx(gk,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md",children:n})]})},N7={exports:{}},A7={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]},j7={exports:{}},ZA=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")},WA=ZA,$A=Array.prototype.concat,JA=Array.prototype.slice,Fb=j7.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var r=e[n];WA(r)?t=$A.call(t,JA.call(r)):t.push(r)}return t};Fb.wrap=function(e){return function(){return e(Fb(arguments))}};var ej=j7.exports,Jo=A7,$s=ej,L7=Object.hasOwnProperty,_7=Object.create(null);for(var N0 in Jo)L7.call(Jo,N0)&&(_7[Jo[N0]]=N0);var Bt=N7.exports={to:{},get:{}};Bt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,a;switch(t){case"hsl":n=Bt.get.hsl(e),a="hsl";break;case"hwb":n=Bt.get.hwb(e),a="hwb";break;default:n=Bt.get.rgb(e),a="rgb";break}return n?{model:a,value:n}:null};Bt.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,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,r=/^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 f=s*2;i[s]=parseInt(o.slice(f,f+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(a)){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(r)){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]:L7.call(Jo,o[1])?(i=Jo[o[1]],i[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=Ja(i[s],0,255);return i[3]=Ja(i[3],0,1),i};Bt.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 a=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,l=Ja(parseFloat(n[2]),0,100),i=Ja(parseFloat(n[3]),0,100),o=Ja(isNaN(a)?1:a,0,1);return[r,l,i,o]}return null};Bt.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 a=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,l=Ja(parseFloat(n[2]),0,100),i=Ja(parseFloat(n[3]),0,100),o=Ja(isNaN(a)?1:a,0,1);return[r,l,i,o]}return null};Bt.to.hex=function(){var e=$s(arguments);return"#"+Pu(e[0])+Pu(e[1])+Pu(e[2])+(e[3]<1?Pu(Math.round(e[3]*255)):"")};Bt.to.rgb=function(){var e=$s(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]+")"};Bt.to.rgb.percent=function(){var e=$s(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"};Bt.to.hsl=function(){var e=$s(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Bt.to.hwb=function(){var e=$s(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Bt.to.keyword=function(e){return _7[e.slice(0,3)]};function Ja(e,t,n){return Math.min(Math.max(t,e),n)}function Pu(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var tj=N7.exports;const Ms=A7,z7={};for(const e of Object.keys(Ms))z7[Ms[e]]=e;const Q={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 P7=Q;for(const e of Object.keys(Q)){if(!("channels"in Q[e]))throw new Error("missing channels property: "+e);if(!("labels"in Q[e]))throw new Error("missing channel labels property: "+e);if(Q[e].labels.length!==Q[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Q[e];delete Q[e].channels,delete Q[e].labels,Object.defineProperty(Q[e],"channels",{value:t}),Object.defineProperty(Q[e],"labels",{value:n})}Q.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),l=Math.max(t,n,a),i=l-r;let o,s;l===r?o=0:t===l?o=(n-a)/i:n===l?o=2+(a-t)/i:a===l&&(o=4+(t-n)/i),o=Math.min(o*60,360),o<0&&(o+=360);const u=(r+l)/2;return l===r?s=0:u<=.5?s=i/(l+r):s=i/(2-l-r),[o,s*100,u*100]};Q.rgb.hsv=function(e){let t,n,a,r,l;const i=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(i,o,s),f=u-Math.min(i,o,s),c=function(d){return(u-d)/6/f+1/2};return f===0?(r=0,l=0):(l=f/u,t=c(i),n=c(o),a=c(s),i===u?r=a-n:o===u?r=1/3+t-a:s===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[r*360,l*100,u*100]};Q.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=Q.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,l*100,a*100]};Q.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a),l=(1-t-r)/(1-r)||0,i=(1-n-r)/(1-r)||0,o=(1-a-r)/(1-r)||0;return[l*100,i*100,o*100,r*100]};function nj(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Q.rgb.keyword=function(e){const t=z7[e];if(t)return t;let n=1/0,a;for(const r of Object.keys(Ms)){const l=Ms[r],i=nj(e,l);i<n&&(n=i,a=r)}return a};Q.keyword.rgb=function(e){return Ms[e]};Q.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,a=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,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;const r=t*.4124+n*.3576+a*.1805,l=t*.2126+n*.7152+a*.0722,i=t*.0193+n*.1192+a*.9505;return[r*100,l*100,i*100]};Q.rgb.lab=function(e){const t=Q.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const l=116*a-16,i=500*(n-a),o=200*(a-r);return[l,i,o]};Q.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,l,i;if(n===0)return i=a*255,[i,i,i];a<.5?r=a*(1+n):r=a+n-a*n;const o=2*a-r,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+(r-o)*6*l:2*l<1?i=r:3*l<2?i=o+(r-o)*(2/3-l)*6:i=o,s[u]=i*255;return s};Q.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const l=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=l<=1?l:2-l;const i=(a+n)/2,o=a===0?2*r/(l+r):2*n/(a+n);return[t,o*100,i*100]};Q.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,l=t-Math.floor(t),i=255*a*(1-n),o=255*a*(1-n*l),s=255*a*(1-n*(1-l));switch(a*=255,r){case 0:return[a,s,i];case 1:return[o,a,i];case 2:return[i,a,s];case 3:return[i,o,a];case 4:return[s,i,a];case 5:return[a,i,o]}};Q.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let l,i;i=(2-n)*a;const o=(2-n)*r;return l=n*r,l/=o<=1?o:2-o,l=l||0,i/=2,[t,l*100,i*100]};Q.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let l;r>1&&(n/=r,a/=r);const i=Math.floor(6*t),o=1-a;l=6*t-i,i&1&&(l=1-l);const s=n+l*(o-n);let u,f,c;switch(i){default:case 6:case 0:u=o,f=s,c=n;break;case 1:u=s,f=o,c=n;break;case 2:u=n,f=o,c=s;break;case 3:u=n,f=s,c=o;break;case 4:u=s,f=n,c=o;break;case 5:u=o,f=n,c=s;break}return[u*255,f*255,c*255]};Q.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100,l=1-Math.min(1,t*(1-r)+r),i=1-Math.min(1,n*(1-r)+r),o=1-Math.min(1,a*(1-r)+r);return[l*255,i*255,o*255]};Q.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,l,i;return r=t*3.2406+n*-1.5372+a*-.4986,l=t*-.9689+n*1.8758+a*.0415,i=t*.0557+n*-.204+a*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*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,r=Math.min(Math.max(0,r),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[r*255,l*255,i*255]};Q.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const r=116*n-16,l=500*(t-n),i=200*(n-a);return[r,l,i]};Q.lab.xyz=function(e){const t=e[0],n=e[1],a=e[2];let r,l,i;l=(t+16)/116,r=n/500+l,i=l-a/200;const o=l**3,s=r**3,u=i**3;return l=o>.008856?o:(l-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,r*=95.047,l*=100,i*=108.883,[r,l,i]};Q.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=Math.atan2(a,n)*360/2/Math.PI,r<0&&(r+=360);const l=Math.sqrt(n*n+a*a);return[t,l,r]};Q.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI,r=n*Math.cos(a),l=n*Math.sin(a);return[t,r,l]};Q.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let l=t===null?Q.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),l===0)return 30;let i=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return l===2&&(i+=60),i};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];return t===n&&n===a?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(a/255*5)};Q.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,a=(t&1)*n*255,r=(t>>1&1)*n*255,l=(t>>2&1)*n*255;return[a,r,l]};Q.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,a=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[n,a,r]};Q.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};Q.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 a=parseInt(n,16),r=a>>16&255,l=a>>8&255,i=a&255;return[r,l,i]};Q.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),l=Math.min(Math.min(t,n),a),i=r-l;let o,s;return i<1?o=l/(1-i):o=0,i<=0?s=0:r===t?s=(n-a)/i%6:r===n?s=2+(a-t)/i:s=4+(t-n)/i,s/=6,s%=1,[s*360,i*100,o*100]};Q.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],a*100,r*100]};Q.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],a*100,r*100]};Q.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(n===0)return[a*255,a*255,a*255];const r=[0,0,0],l=t%1*6,i=l%1,o=1-i;let s=0;switch(Math.floor(l)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return s=(1-n)*a,[(n*r[0]+s)*255,(n*r[1]+s)*255,(n*r[2]+s)*255]};Q.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);let r=0;return a>0&&(r=t/a),[e[0],r*100,a*100]};Q.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};Q.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);return[e[0],(a-t)*100,(1-a)*100]};Q.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],a*100,r*100]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=function(e){return[0,0,e[0]]};Q.gray.hsv=Q.gray.hsl;Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.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};Q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const cd=P7;function aj(){const e={},t=Object.keys(cd);for(let n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}function rj(e){const t=aj(),n=[e];for(t[e].distance=0;n.length;){const a=n.pop(),r=Object.keys(cd[a]);for(let l=r.length,i=0;i<l;i++){const o=r[i],s=t[o];s.distance===-1&&(s.distance=t[a].distance+1,s.parent=a,n.unshift(o))}}return t}function lj(e,t){return function(n){return t(e(n))}}function ij(e,t){const n=[t[e].parent,e];let a=cd[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),a=lj(cd[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}var oj=function(e){const t=rj(e),n={},a=Object.keys(t);for(let r=a.length,l=0;l<r;l++){const i=a[l];t[i].parent!==null&&(n[i]=ij(i,t))}return n};const Sp=P7,sj=oj,Al={},uj=Object.keys(Sp);function cj(e){const t=function(...n){const a=n[0];return a==null?a:(a.length>1&&(n=a),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function dj(e){const t=function(...n){const a=n[0];if(a==null)return a;a.length>1&&(n=a);const r=e(n);if(typeof r=="object")for(let l=r.length,i=0;i<l;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}uj.forEach(e=>{Al[e]={},Object.defineProperty(Al[e],"channels",{value:Sp[e].channels}),Object.defineProperty(Al[e],"labels",{value:Sp[e].labels});const t=sj(e);Object.keys(t).forEach(n=>{const a=t[n];Al[e][n]=dj(a),Al[e][n].raw=cj(a)})});var fj=Al;const jl=tj,Ht=fj,K7=["keyword","gray","hex"],Ep={};for(const e of Object.keys(Ht))Ep[[...Ht[e].labels].sort().join("")]=e;const dd={};function Ie(e,t){if(!(this instanceof Ie))return new Ie(e,t);if(t&&t in K7&&(t=null),t&&!(t in Ht))throw new Error("Unknown model: "+t);let n,a;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ie)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const r=jl.get(e);if(r===null)throw new Error("Unable to parse color from string: "+e);this.model=r.model,a=Ht[this.model].channels,this.color=r.value.slice(0,a),this.valpha=typeof r.value[a]=="number"?r.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=Ht[this.model].channels;const r=Array.prototype.slice.call(e,0,a);this.color=Mp(r,a),this.valpha=typeof e[a]=="number"?e[a]: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 r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const l=r.sort().join("");if(!(l in Ep))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Ep[l];const{labels:i}=Ht[this.model],o=[];for(n=0;n<i.length;n++)o.push(e[i[n]]);this.color=Mp(o)}if(dd[this.model])for(a=Ht[this.model].channels,n=0;n<a;n++){const r=dd[this.model][n];r&&(this.color[n]=r(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ie.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in jl.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return jl.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 jl.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Ht[this.model],{labels:n}=Ht[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];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 Ie([...this.color.map(pj(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new Ie([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:ke("rgb",0,Fe(255)),green:ke("rgb",1,Fe(255)),blue:ke("rgb",2,Fe(255)),hue:ke(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:ke("hsl",1,Fe(100)),lightness:ke("hsl",2,Fe(100)),saturationv:ke("hsv",1,Fe(100)),value:ke("hsv",2,Fe(100)),chroma:ke("hcg",1,Fe(100)),gray:ke("hcg",2,Fe(100)),white:ke("hwb",1,Fe(100)),wblack:ke("hwb",2,Fe(100)),cyan:ke("cmyk",0,Fe(100)),magenta:ke("cmyk",1,Fe(100)),yellow:ke("cmyk",2,Fe(100)),black:ke("cmyk",3,Fe(100)),x:ke("xyz",0,Fe(95.047)),y:ke("xyz",1,Fe(100)),z:ke("xyz",2,Fe(108.833)),l:ke("lab",0,Fe(100)),a:ke("lab",1),b:ke("lab",2),keyword(e){return e!==void 0?new Ie(e):Ht[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ie(e):jl.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ie(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),jl.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,a]of e.entries()){const r=a/255;t[n]=r<=.04045?r/12.92:((r+.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 Ie.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(),a=this.rgb(),r=t===void 0?.5:t,l=2*r-1,i=n.alpha()-a.alpha(),o=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-o;return Ie.rgb(o*n.red()+s*a.red(),o*n.green()+s*a.green(),o*n.blue()+s*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(Ht)){if(K7.includes(e))continue;const{channels:t}=Ht[e];Ie.prototype[e]=function(...n){return this.model===e?new Ie(this):n.length>0?new Ie(n,e):new Ie([...gj(Ht[this.model][e].raw(this.color)),this.valpha],e)},Ie[e]=function(...n){let a=n[0];return typeof a=="number"&&(a=Mp(n,t)),new Ie(a,e)}}function hj(e,t){return Number(e.toFixed(t))}function pj(e){return function(t){return hj(t,e)}}function ke(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(dd[a]||(dd[a]=[]))[t]=n;return e=e[0],function(a){let r;return a!==void 0?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function Fe(e){return function(t){return Math.max(0,Math.min(e,t))}}function gj(e){return Array.isArray(e)?e:[e]}function Mp(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var mj=Ie;const Vb=x9(mj);var vj=typeof global=="object"&&global&&global.Object===Object&&global,bj=typeof self=="object"&&self&&self.Object===Object&&self,ul=vj||bj||Function("return this")(),fd=ul.Symbol,H7=Object.prototype,yj=H7.hasOwnProperty,wj=H7.toString,Mo=fd?fd.toStringTag:void 0;function xj(e){var t=yj.call(e,Mo),n=e[Mo];try{e[Mo]=void 0;var a=!0}catch{}var r=wj.call(e);return a&&(t?e[Mo]=n:delete e[Mo]),r}var Cj=Object.prototype,Sj=Cj.toString;function Ej(e){return Sj.call(e)}var Mj="[object Null]",Rj="[object Undefined]",Gb=fd?fd.toStringTag:void 0;function U7(e){return e==null?e===void 0?Rj:Mj:Gb&&Gb in Object(e)?xj(e):Ej(e)}function B7(e){return e!=null&&typeof e=="object"}var Oj="[object Symbol]";function Tj(e){return typeof e=="symbol"||B7(e)&&U7(e)==Oj}var Dj=Array.isArray,kj=/\s/;function Nj(e){for(var t=e.length;t--&&kj.test(e.charAt(t)););return t}var Aj=/^\s+/;function jj(e){return e&&e.slice(0,Nj(e)+1).replace(Aj,"")}function Mi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qb=NaN,Lj=/^[-+]0x[0-9a-f]+$/i,_j=/^0b[01]+$/i,zj=/^0o[0-7]+$/i,Pj=parseInt;function Kj(e){if(typeof e=="number")return e;if(Tj(e))return Qb;if(Mi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Mi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jj(e);var n=_j.test(e);return n||zj.test(e)?Pj(e.slice(2),n?2:8):Lj.test(e)?Qb:+e}var Hj=1/0,Uj=17976931348623157e292;function Bj(e){if(!e)return e===0?e:0;if(e=Kj(e),e===Hj||e===-1/0){var t=e<0?-1:1;return t*Uj}return e===e?e:0}function Xb(e){var t=Bj(e),n=t%1;return t===t?n?t-n:t:0}function q7(e){return e}var qj="[object AsyncFunction]",Fj="[object Function]",Vj="[object GeneratorFunction]",Gj="[object Proxy]";function Qj(e){if(!Mi(e))return!1;var t=U7(e);return t==Fj||t==Vj||t==qj||t==Gj}var A0=ul["__core-js_shared__"],Yb=function(){var e=/[^.]+$/.exec(A0&&A0.keys&&A0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xj(e){return!!Yb&&Yb in e}var Yj=Function.prototype,Ij=Yj.toString;function Zj(e){if(e!=null){try{return Ij.call(e)}catch{}try{return e+""}catch{}}return""}var Wj=/[\\^$.*+?()[\]{}|]/g,$j=/^\[object .+?Constructor\]$/,Jj=Function.prototype,eL=Object.prototype,tL=Jj.toString,nL=eL.hasOwnProperty,aL=RegExp("^"+tL.call(nL).replace(Wj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rL(e){if(!Mi(e)||Xj(e))return!1;var t=Qj(e)?aL:$j;return t.test(Zj(e))}function lL(e,t){return e==null?void 0:e[t]}function F7(e,t){var n=lL(e,t);return rL(n)?n:void 0}var Ib=F7(ul,"WeakMap"),hd=Ib&&new Ib,V7=hd?function(e,t){return hd.set(e,t),e}:q7,Zb=Object.create,vm=function(){function e(){}return function(t){if(!Mi(t))return{};if(Zb)return Zb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Rs(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=vm(e.prototype),a=e.apply(n,t);return Mi(a)?a:n}}var iL=1;function oL(e,t,n){var a=t&iL,r=Rs(e);function l(){var i=this&&this!==ul&&this instanceof l?r:e;return i.apply(a?n:this,arguments)}return l}function G7(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 sL=Math.max;function Q7(e,t,n,a){for(var r=-1,l=e.length,i=n.length,o=-1,s=t.length,u=sL(l-i,0),f=Array(s+u),c=!a;++o<s;)f[o]=t[o];for(;++r<i;)(c||r<l)&&(f[n[r]]=e[r]);for(;u--;)f[o++]=e[r++];return f}var uL=Math.max;function X7(e,t,n,a){for(var r=-1,l=e.length,i=-1,o=n.length,s=-1,u=t.length,f=uL(l-o,0),c=Array(f+u),d=!a;++r<f;)c[r]=e[r];for(var h=r;++s<u;)c[h+s]=t[s];for(;++i<o;)(d||r<l)&&(c[h+n[i]]=e[r++]);return c}function cL(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&++a;return a}function bm(){}var dL=4294967295;function Ri(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dL,this.__views__=[]}Ri.prototype=vm(bm.prototype);Ri.prototype.constructor=Ri;function fL(){}var Y7=hd?function(e){return hd.get(e)}:fL,Wb={},hL=Object.prototype,pL=hL.hasOwnProperty;function gL(e){for(var t=e.name+"",n=Wb[t],a=pL.call(Wb,t)?n.length:0;a--;){var r=n[a],l=r.func;if(l==null||l==e)return r.name}return t}function Oi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Oi.prototype=vm(bm.prototype);Oi.prototype.constructor=Oi;function I7(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}function mL(e){if(e instanceof Ri)return e.clone();var t=new Oi(e.__wrapped__,e.__chain__);return t.__actions__=I7(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var vL=Object.prototype,bL=vL.hasOwnProperty;function pd(e){if(B7(e)&&!Dj(e)&&!(e instanceof Ri)){if(e instanceof Oi)return e;if(bL.call(e,"__wrapped__"))return mL(e)}return new Oi(e)}pd.prototype=bm.prototype;pd.prototype.constructor=pd;function yL(e){var t=gL(e),n=pd[t];if(typeof n!="function"||!(t in Ri.prototype))return!1;if(e===n)return!0;var a=Y7(n);return!!a&&e===a[0]}var wL=800,xL=16,CL=Date.now;function Z7(e){var t=0,n=0;return function(){var a=CL(),r=xL-(a-n);if(n=a,r>0){if(++t>=wL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var W7=Z7(V7),SL=/\{\n\/\* \[wrapped with (.+)\] \*/,EL=/,? & /;function ML(e){var t=e.match(SL);return t?t[1].split(EL):[]}var RL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function OL(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(RL,`{
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,`{
104
109
  /* [wrapped with `+t+`] */
105
- `)}function TL(e){return function(){return e}}var $b=function(){try{var e=F7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),DL=$b?function(e,t){return $b(e,"toString",{configurable:!0,enumerable:!1,value:TL(t),writable:!0})}:q7,kL=Z7(DL);function NL(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}function AL(e,t,n,a){for(var r=e.length,l=n+-1;++l<r;)if(t(e[l],l,e))return l;return-1}function jL(e){return e!==e}function LL(e,t,n){for(var a=n-1,r=e.length;++a<r;)if(e[a]===t)return a;return-1}function _L(e,t,n){return t===t?LL(e,t,n):AL(e,jL,n)}function zL(e,t){var n=e==null?0:e.length;return!!n&&_L(e,t,0)>-1}var PL=1,KL=2,HL=8,UL=16,BL=32,qL=64,FL=128,VL=256,GL=512,QL=[["ary",FL],["bind",PL],["bindKey",KL],["curry",HL],["curryRight",UL],["flip",GL],["partial",BL],["partialRight",qL],["rearg",VL]];function XL(e,t){return NL(QL,function(n){var a="_."+n[0];t&n[1]&&!zL(e,a)&&e.push(a)}),e.sort()}function $7(e,t,n){var a=t+"";return kL(e,OL(a,XL(ML(a),n)))}var YL=4,IL=8,Jb=32,ey=64;function J7(e,t,n,a,r,l,i,o,s,u){var f=t&IL,c=f?i:void 0,d=f?void 0:i,h=f?l:void 0,g=f?void 0:l;t|=f?Jb:ey,t&=~(f?ey:Jb),t&YL||(t&=-4);var m=[e,t,r,h,c,g,d,o,s,u],w=n.apply(void 0,m);return yL(e)&&W7(w,m),w.placeholder=a,$7(w,e,t)}function e6(e){var t=e;return t.placeholder}var ZL=9007199254740991,WL=/^(?:0|[1-9]\d*)$/;function $L(e,t){var n=typeof e;return t=t??ZL,!!t&&(n=="number"||n!="symbol"&&WL.test(e))&&e>-1&&e%1==0&&e<t}var JL=Math.min;function e_(e,t){for(var n=e.length,a=JL(t.length,n),r=I7(e);a--;){var l=t[a];e[a]=$L(l,n)?r[l]:void 0}return e}var ty="__lodash_placeholder__";function gd(e,t){for(var n=-1,a=e.length,r=0,l=[];++n<a;){var i=e[n];(i===t||i===ty)&&(e[n]=ty,l[r++]=n)}return l}var t_=1,n_=2,a_=8,r_=16,l_=128,i_=512;function ym(e,t,n,a,r,l,i,o,s,u){var f=t&l_,c=t&t_,d=t&n_,h=t&(a_|r_),g=t&i_,m=d?void 0:Rs(e);function w(){for(var v=arguments.length,b=Array(v),y=v;y--;)b[y]=arguments[y];if(h)var C=e6(w),S=cL(b,C);if(a&&(b=Q7(b,a,r,h)),l&&(b=X7(b,l,i,h)),v-=S,h&&v<u){var M=gd(b,C);return J7(e,t,ym,w.placeholder,n,b,M,o,s,u-v)}var R=c?n:this,D=d?R[e]:e;return v=b.length,o?b=e_(b,o):g&&v>1&&b.reverse(),f&&s<v&&(b.length=s),this&&this!==ul&&this instanceof w&&(D=m||Rs(D)),D.apply(R,b)}return w}function o_(e,t,n){var a=Rs(e);function r(){for(var l=arguments.length,i=Array(l),o=l,s=e6(r);o--;)i[o]=arguments[o];var u=l<3&&i[0]!==s&&i[l-1]!==s?[]:gd(i,s);if(l-=u.length,l<n)return J7(e,t,ym,r.placeholder,void 0,i,u,void 0,void 0,n-l);var f=this&&this!==ul&&this instanceof r?a:e;return G7(f,this,i)}return r}var s_=1;function u_(e,t,n,a){var r=t&s_,l=Rs(e);function i(){for(var o=-1,s=arguments.length,u=-1,f=a.length,c=Array(f+s),d=this&&this!==ul&&this instanceof i?l:e;++u<f;)c[u]=a[u];for(;s--;)c[u++]=arguments[++o];return G7(d,r?n:this,c)}return i}var ny="__lodash_placeholder__",j0=1,c_=2,d_=4,ay=8,Ro=128,ry=256,f_=Math.min;function h_(e,t){var n=e[1],a=t[1],r=n|a,l=r<(j0|c_|Ro),i=a==Ro&&n==ay||a==Ro&&n==ry&&e[7].length<=t[8]||a==(Ro|ry)&&t[7].length<=t[8]&&n==ay;if(!(l||i))return e;a&j0&&(e[2]=t[2],r|=n&j0?0:d_);var o=t[3];if(o){var s=e[3];e[3]=s?Q7(s,o,t[4]):o,e[4]=s?gd(e[3],ny):t[4]}return o=t[5],o&&(s=e[5],e[5]=s?X7(s,o,t[6]):o,e[6]=s?gd(e[5],ny):t[6]),o=t[7],o&&(e[7]=o),a&Ro&&(e[8]=e[8]==null?t[8]:f_(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e}var p_="Expected a function",ly=1,g_=2,iy=8,oy=16,sy=32,m_=64,uy=Math.max;function v_(e,t,n,a,r,l,i,o){var s=t&g_;if(!s&&typeof e!="function")throw new TypeError(p_);var u=a?a.length:0;if(u||(t&=-97,a=r=void 0),i=i===void 0?i:uy(Xb(i),0),o=o===void 0?o:Xb(o),u-=r?r.length:0,t&m_){var f=a,c=r;a=r=void 0}var d=s?void 0:Y7(e),h=[e,t,n,a,r,f,c,l,i,o];if(d&&h_(h,d),e=h[0],t=h[1],n=h[2],a=h[3],r=h[4],o=h[9]=h[9]===void 0?s?0:e.length:uy(h[9]-u,0),!o&&t&(iy|oy)&&(t&=-25),!t||t==ly)var g=oL(e,t,n);else t==iy||t==oy?g=o_(e,t,o):(t==sy||t==(ly|sy))&&!r.length?g=u_(e,t,n,a):g=ym.apply(void 0,h);var m=d?V7:W7;return $7(m(g,h),e,t)}var b_=8;function md(e,t,n){t=n?void 0:t;var a=v_(e,b_,void 0,void 0,void 0,void 0,void 0,t);return a.placeholder=md.placeholder,a}md.placeholder={};function y_(e){const t=e[0],n=e[1],a=e[2];let r,l,i;return r=t*1+n*0+a*1.13983,l=t*1+n*-.39465+a*-.5806,i=t*1+n*2.02311+a*0,r=Math.min(Math.max(0,r),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[r*255,l*255,i*255]}function w_(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=t*.299+n*.587+a*.114,l=t*-.14713+n*-.28886+a*.436,i=t*.615+n*-.51499+a*-.10001;return[r,l,i]}const x_={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"},C_={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"},S_={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"},E_={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"},M_={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"},R_={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"},O_={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"},T_={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"},D_={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"},k_={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"},N_={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"},A_={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"},j_={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"},L_={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"},__={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"},z_={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"},P_={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"},K_={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"},H_={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"},U_={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"},B_={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"},q_={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"},F_={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"},V_={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"},G_={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"},Q_={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"},X_={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"},Y_={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"},I_={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"},Z_={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"},W_={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"},$_={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"},J_={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"},ez={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"},tz={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"},nz={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"},az={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"},rz={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"},t6={threezerotwofour:x_,apathy:C_,ashes:S_,atelierDune:E_,atelierForest:M_,atelierHeath:R_,atelierLakeside:O_,atelierSeaside:T_,bespin:D_,brewer:k_,bright:N_,chalk:A_,codeschool:j_,colors:L_,default:__,eighties:z_,embers:P_,flat:K_,google:H_,grayscale:U_,greenscreen:B_,harmonic:q_,hopscotch:F_,isotope:V_,marrakesh:G_,mocha:Q_,monokai:X_,nicinabox:Y_,ocean:I_,paraiso:Z_,pop:W_,railscasts:$_,shapeshifter:J_,solarized:ez,summerfruit:tz,tomorrow:nz,tube:az,twilight:rz},n6=t6.default,cy=Object.keys(n6),lz=e=>e<.25?1:e<.5?.9-e:1.1-e,iz=e=>{const t=Vb(e),[n,a,r]=w_(t.array()),l=[lz(n),a,r],i=y_(l);return Vb.rgb(i).hex()},Rl=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),oz=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,a=typeof t;switch(n){case"string":switch(a){case"string":return[t,e].filter(Boolean).join(" ");case"object":return Rl({className:e,style:t});case"function":return(r,...l)=>Rl({className:e})(t(r,...l))}break;case"object":switch(a){case"string":return Rl({className:t,style:e});case"object":return{...t,...e};case"function":return(r,...l)=>Rl({style:e})(t(r,...l))}break;case"function":switch(a){case"string":return(r,...l)=>e(Rl(r)({className:t}),...l);case"object":return(r,...l)=>e(Rl(r)({style:t}),...l);case"function":return(r,...l)=>e(t(r,...l),...l)}}},sz=(e,t)=>{const n=Object.keys(t);for(const a in e)n.indexOf(a)===-1&&n.push(a);return n.reduce((a,r)=>(a[r]=oz(e[r],t[r]),a),{})},uz=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const a=t.map(r=>e[r]).filter(Boolean).reduce((r,l)=>(typeof l=="string"?r.className=[r.className,l].filter(Boolean).join(" "):typeof l=="object"?r.style={...r.style,...l}:typeof l=="function"&&(r={...r,...l(r,...n)}),r),{className:"",style:{}});return a.className||delete a.className,Object.keys(a.style).length===0&&delete a.style,a},Rp=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?iz(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),cz=md((e,t={},n={},...a)=>{const{defaultBase16:r=n6,base16Themes:l=null}=t,i=dz(n,l);i&&(n={...i,...n});const o=cy.reduce((c,d)=>(c[d]=n[d]||r[d],c),{}),s=Object.keys(n).reduce((c,d)=>(cy.indexOf(d)===-1&&(c[d]=n[d]),c),{}),u=e(o),f=sz(s,u);return md(uz,2)(f,...a)},3),a6=e=>!!e.extend,dz=(e,t)=>{if(e&&a6(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,a]=e.split(":");t?e=t[n]:e=t6[n],a==="inverted"&&(e=Rp(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},fz=e=>typeof e=="string"?`${e}:inverted`:e&&a6(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Rp(e.extend)}:e&&Rp(e);function hz(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 r6({styling:e,arrowStyle:t="single",expanded:n,nodeType:a,onClick:r}){return E.createElement("div",{...e("arrowContainer",t),onClick:r},E.createElement("div",{...e(["arrow","arrowSign"],a,n,t)},"▶",t==="double"&&E.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function pz(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function gz(e){return typeof e.set=="function"}function mz(e,t,n,a=0,r=1/0){let l;if(e==="Object"){let i=Object.getOwnPropertyNames(t);n&&i.sort(n===!0?void 0:n),i=i.slice(a,r+1),l={entries:i.map(o=>({key:o,value:t[o]}))}}else if(e==="Array")l={entries:t.slice(a,r+1).map((i,o)=>({key:o+a,value:i}))};else{let i=0;const o=[];let s=!0;const u=gz(t);for(const f of t){if(i>r){s=!1;break}a<=i&&(u&&Array.isArray(f)?typeof f[0]=="string"||typeof f[0]=="number"?o.push({key:f[0],value:f[1]}):o.push({key:`[entry ${i}]`,value:{"[key]":f[0],"[value]":f[1]}}):o.push({key:i,value:f})),i++}l={hasMore:!s,entries:o}}return l}function L0(e,t,n){const a=[];for(;t-e>n*n;)n=n*n;for(let r=e;r<=t;r+=n)a.push({from:r,to:Math.min(t,r+n-1)});return a}function vz(e,t,n,a,r=0,l=1/0){const i=mz.bind(null,e,t,n);if(!a)return i().entries;const o=l<1/0,s=Math.min(l-r,pz(e,t));if(e!=="Iterable"){if(s<=a||a<7)return i(r,l).entries}else if(s<=a&&!o)return i(r,l).entries;let u;if(e==="Iterable"){const{hasMore:f,entries:c}=i(r,r+a-1);u=f?[...c,...L0(r+a,r+2*a-1,a)]:c}else u=o?L0(r,l,a):[...i(0,a-5).entries,...L0(a-4,s-5,a),...i(s-4,s-1).entries];return u}function bz(e){const{styling:t,from:n,to:a,renderChildNodes:r,nodeType:l}=e,[i,o]=p.useState(!1),s=p.useCallback(()=>{o(!i)},[i]);return i?E.createElement("div",{...t("itemRange",i)},r(e,n,a)):E.createElement("div",{...t("itemRange",i),onClick:s},E.createElement(r6,{nodeType:l,styling:t,expanded:!1,onClick:s,arrowStyle:"double"}),`${n} ... ${a}`)}function yz(e){return e.to!==void 0}function l6(e,t,n){const{nodeType:a,data:r,collectionLimit:l,circularCache:i,keyPath:o,postprocessValue:s,sortObjectKeys:u}=e,f=[];return vz(a,r,u,l,t,n).forEach(c=>{if(yz(c))f.push(E.createElement(bz,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:l6}));else{const{key:d,value:h}=c,g=i.includes(h);f.push(E.createElement(i6,{...e,postprocessValue:s,collectionLimit:l,key:`Node--${d}`,keyPath:[d,...o],value:s(h),circularCache:[...i,h],isCircular:g,hideRoot:!1}))}}),f}function wm(e){const{circularCache:t=[],collectionLimit:n,createItemString:a,data:r,expandable:l,getItemString:i,hideRoot:o,isCircular:s,keyPath:u,labelRenderer:f,level:c=0,nodeType:d,nodeTypeIndicator:h,shouldExpandNodeInitially:g,styling:m}=e,[w,v]=p.useState(s?!1:g(u,r,c)),b=p.useCallback(()=>{l&&v(!w)},[l,w]),y=w||o&&c===0?l6({...e,circularCache:t,level:c+1}):null,C=E.createElement("span",{...m("nestedNodeItemType",w)},h),S=i(d,r,C,a(r,n),u),M=[u,d,w,l];return o?E.createElement("li",{...m("rootNode",...M)},E.createElement("ul",{...m("rootNodeChildren",...M)},y)):E.createElement("li",{...m("nestedNode",...M)},l&&E.createElement(r6,{styling:m,nodeType:d,expanded:w,onClick:b}),E.createElement("label",{...m(["label","nestedNodeLabel"],...M),onClick:b},f(...M)),E.createElement("span",{...m("nestedNodeItemString",...M),onClick:b},S),E.createElement("ul",{...m("nestedNodeChildren",...M)},y))}function wz(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function xz({data:e,...t}){return E.createElement(wm,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:wz,expandable:Object.getOwnPropertyNames(e).length>0})}function Cz(e){return`${e.length} ${e.length!==1?"items":"item"}`}function Sz({data:e,...t}){return E.createElement(wm,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:Cz,expandable:e.length>0})}function Ez(e,t){let n=0,a=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const r of e){if(t&&n+1>t){a=!0;break}n+=1}return`${a?">":""}${n} ${n!==1?"entries":"entry"}`}function Mz(e){return E.createElement(wm,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:Ez,expandable:!0})}function na({nodeType:e,styling:t,labelRenderer:n,keyPath:a,valueRenderer:r,value:l,valueGetter:i=o=>o}){return E.createElement("li",{...t("value",e,a)},E.createElement("label",{...t(["label","valueLabel"],e,a)},n(a,e,!1,!1)),E.createElement("span",{...t("valueText",e,a)},r(i(l),l,...a)))}function i6({getItemString:e,keyPath:t,labelRenderer:n,styling:a,value:r,valueRenderer:l,isCustomNode:i,...o}){const s=i(r)?"Custom":hz(r),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:s,styling:a,value:r,valueRenderer:l},f={...o,...u,data:r,isCustomNode:i};switch(s){case"Object":case"Error":case"WeakMap":case"WeakSet":return E.createElement(xz,{...f});case"Array":return E.createElement(Sz,{...f});case"Iterable":case"Map":case"Set":return E.createElement(Mz,{...f});case"String":return E.createElement(na,{...u,valueGetter:c=>`"${c}"`});case"Number":return E.createElement(na,{...u});case"Boolean":return E.createElement(na,{...u,valueGetter:c=>c?"true":"false"});case"Date":return E.createElement(na,{...u,valueGetter:c=>c.toISOString()});case"Null":return E.createElement(na,{...u,valueGetter:()=>"null"});case"Undefined":return E.createElement(na,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return E.createElement(na,{...u,valueGetter:c=>c.toString()});case"Custom":return E.createElement(na,{...u});default:return E.createElement(na,{...u,valueGetter:()=>`<${s}>`})}}const Rz={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"},Oz=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}),Tz=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}),Dz=e=>{const t=Oz(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},a,r)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:r.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},a)=>({style:{...n,color:Tz(t)[a]}}),itemRange:(n,a)=>({style:{paddingTop:a?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},a,r)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",transform:r?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},a)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:a==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},a,r,l,i)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:a.length>1?"0.875em":0,paddingLeft:i?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},a,r,l,i)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:i?"inherit":"text",MozUserSelect:i?"inherit":"text",cursor:i?"pointer":"default"}}),nestedNodeItemString:({style:n},a,r,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},a,r)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:r?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},kz=cz(Dz,{defaultBase16:Rz}),dy=e=>e,Nz=(e,t,n)=>n===0,Az=(e,t,n,a)=>E.createElement("span",null,n," ",a),jz=([e])=>E.createElement("span",null,e,":"),Lz=()=>!1;function vd({data:e,theme:t,invertTheme:n,keyPath:a=["root"],labelRenderer:r=jz,valueRenderer:l=dy,shouldExpandNodeInitially:i=Nz,hideRoot:o=!1,getItemString:s=Az,postprocessValue:u=dy,isCustomNode:f=Lz,collectionLimit:c=50,sortObjectKeys:d=!1}){const h=p.useMemo(()=>kz(n?fz(t):t),[t,n]);return E.createElement("ul",{...h("tree")},E.createElement(i6,{keyPath:o?[]:a,value:u(e),isCustomNode:f,styling:h,labelRenderer:r,valueRenderer:l,shouldExpandNodeInitially:i,hideRoot:o,getItemString:s,postprocessValue:u,collectionLimit:c,sortObjectKeys:d}))}var lf=function(e){var t=e.actions;return x.jsxs(WD,{children:[x.jsx(am,{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(GM,{width:18,height:18})}),x.jsx(YD,{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(JD,{children:t.map(function(n){return x.jsxs(ak,{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)})})})]})},_z=function(e){var t=e.job,n=e.queueName,a=e.onRemove,r=we.job.retry.useMutation(),l=r.mutate,i=r.isSuccess,o=we.job.discard.useMutation(),s=o.mutate,u=o.isSuccess,f=we.job.rerun.useMutation(),c=f.mutate,d=f.isSuccess,h=we.job.remove.useMutation(),g=h.mutate,m=h.isSuccess;p.useEffect(function(){(i||u||d||m)&&(a==null||a())},[i,u,d,m,a]);var w={queueName:n,jobId:t.id};return x.jsx(lf,{actions:Gr(Gr(Gr([],t.failedReason?[{label:"Retry",onSelect:function(){l(w)},icon:x.jsx(wi,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){c(w)},icon:x.jsx(wi,{})}]:[{label:"Discard",onSelect:function(){s(w)},icon:x.jsx(WM,{})}],!0),[{label:"Remove",onSelect:function(){g(w)},icon:x.jsx(Pi,{})}],!1)})},or=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,a=e.variant,r=a===void 0?"outline":a,l=e.size,i=l===void 0?"md":l,o=e.icon,s=e.label,u=e.isLoading,f=e.onClick,c=e.disabled;return x.jsxs("button",{onClick:f,disabled:u||c,className:Ci("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"&&r==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50":n==="slate"&&r==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50":n==="red"&&r==="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"&&r==="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"&&r==="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"&&r==="filled"}),children:[u?x.jsx("div",{className:"flex w-4 justify-center",children:x.jsx(Fg,{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})]})},zz=function(e){var t=e.job,n=e.queueName,a=e.onDismiss,r=we.queue.byName.useQuery({queueName:n}),l=we.job.retry.useMutation().mutate,i=we.job.logs.useQuery({jobId:t.id,queueName:n}).data;return x.jsx(nf,{isOpen:!0,isDismissable:!0,onOpenChange:function(o){o||a()},className:"fixed inset-0 bg-black/10",children:x.jsx(ef,{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(){a(),u()},children:x.jsx(qg,{})}),x.jsxs("div",{className:"flex items-center space-x-4",children:[x.jsxs(tf,{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(_z,{queueName:n,job:t,onRemove:a})]}),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(or,{label:"Retry",size:"sm",icon:x.jsx(wi,{width:14}),onClick:function(){l({queueName:n,jobId:t.id}),a()}})]}):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(vd,{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(vd,{data:t.data,theme:"monokai"})})]}),((s=r.data)===null||s===void 0?void 0:s.type)==="bullmq"?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(f,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:f})]},c)})})]}):null]})]})}})})},Ku=e7(),Pz=[Ku.display({id:"select",header:function(e){var t=e.table;return x.jsx(ud,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return x.jsx(ud,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),Ku.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"}),Ku.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,a=t.processedAt,r=t.finishedAt,l=t.status,i=t.retriedAt;return x.jsxs("div",{className:"flex items-center space-x-3",children:[x.jsx(_0,{date:new Date(n),variant:"added"}),l==="waiting"?x.jsx(fy,{}):null,a?x.jsxs(x.Fragment,{children:[x.jsx(hy,{date:new Date(a),baseDate:new Date(n)}),x.jsx(_0,{date:new Date(a),variant:i?"retried":"processing"})]}):null,l==="active"?x.jsx(fy,{}):null,r&&a?x.jsxs(x.Fragment,{children:[x.jsx(hy,{date:new Date(r),baseDate:new Date(a)}),x.jsx(_0,{date:new Date(r),variant:l==="failed"?"failed":"completed"})]}):null]})}}),Ku.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(Eo,{icon:x.jsx(XM,{width:12,height:12}),label:t.priority}):null,t.attempts&&t.attempts>1?x.jsx(Eo,{icon:x.jsx(wi,{width:12,height:12}),label:t.attempts}):null,t.lifo?x.jsx(Eo,{icon:x.jsx(vR,{width:12,height:12}),label:"LIFO"}):null,t.delay?x.jsx(Eo,{icon:x.jsx(JM,{width:12,height:12}),label:t.delay}):null,t.repeat?x.jsx(Eo,{icon:x.jsx(tR,{width:12,height:12}),label:t.repeat.count}):null]})}})],Kz=function(e){var t=e.jobs,n=e.totalJobs,a=e.onBottomInView,r=e.isLoading,l=e.isFetchingNextPage,i=e.queueName,o=e.status,s=p.useState({}),u=s[0],f=s[1],c=OA({threshold:0,onChange:function(S){S&&a()}}).ref,d=d7({data:t,columns:Pz,getCoreRowModel:c7(),state:{rowSelection:u},onRowSelectionChange:f}),h=t.length===0,g=t.length/(n||0)*100,m=p.useState(null),w=m[0],v=m[1],b=we.job.retry.useMutation().mutate,y=we.job.rerun.useMutation().mutate,C=we.job.bulkRemove.useMutation().mutate;return p.useEffect(function(){d.resetRowSelection()},[o]),x.jsxs("div",{children:[w?x.jsx(zz,{queueName:i,job:w,onDismiss:function(){return v(null)}}):null,x.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:r?x.jsx(w7,{}):x.jsxs("div",{children:[d.getHeaderGroups().map(function(S,M){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:S.headers.map(function(R){return x.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(M!==0?"pr-10":"pr-3"),children:R.isPlaceholder?null:ld(R.column.columnDef.header,R.getContext())},R.id)})},S.id)}),d.getRowModel().rows.map(function(S,M){return x.jsx(y7,{isLastRow:d.getRowModel().rows.length!==M+1,isSelected:S.getIsSelected(),onClick:function(){return v(S.original)},layoutVariant:"job",children:S.getVisibleCells().map(function(R,D){return x.jsx("div",{className:"flex h-full items-center ".concat(D!==0?"pr-10":"pr-3"),children:ld(R.column.columnDef.cell,R.getContext())},R.id)})},S.id)}),!r&&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]})}),!r&&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(lk,{value:g,children:function(S){var M=S.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-M,"%)")}})})})}}),l?x.jsx(Fg,{className:"animate-spin text-slate-300"}):null]})}),d.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:[d.getSelectedRowModel().rows.length," selected"]}),o==="completed"||o==="failed"?x.jsx(or,{label:o==="failed"?"Retry":"Rerun",icon:x.jsx(wi,{}),size:"sm",onClick:function(){d.getSelectedRowModel().rows.forEach(function(S){o==="failed"?b({queueName:i,jobId:S.original.id}):y({queueName:i,jobId:S.original.id})}),d.resetRowSelection()}}):null,x.jsx(or,{label:"Delete",colorScheme:"red",icon:x.jsx(Pi,{}),size:"sm",onClick:function(){C({queueName:i,jobIds:d.getSelectedRowModel().rows.map(function(S){return S.original.id})}),d.resetRowSelection()}})]})}):null]})},_0=function(e){var t=e.variant,n=e.date,a={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return x.jsx(mm,{message:"".concat(a[t]," ").concat(b7(n)," ago"),children:x.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&x.jsx(C8,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900"}),t==="processing"&&x.jsx(jM,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900"}),t==="retried"&&x.jsx(wi,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900"}),t==="completed"&&x.jsx(b8,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900"}),t==="failed"&&x.jsx(y8,{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:v7(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},fy=function(){return x.jsxs("div",{className:"flex items-center space-x-1.5",children:[x.jsx(Yh,{width:14,height:14,className:"text-slate-300"}),x.jsx(Fg,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},hy=function(e){var t=e.date,n=e.baseDate;return x.jsxs("div",{className:"flex items-center space-x-1.5",children:[x.jsx(Yh,{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:xA(t,n,{locale:{formatDistance:function(a,r){return a==="xSeconds"?"".concat(r,"s"):a==="xMinutes"?"".concat(r,"m"):a==="xHours"?"".concat(r,"h"):a==="xDays"?"".concat(r,"d"):a==="xMonths"?"".concat(r,"mo"):a==="xYears"?"".concat(r,"y"):""}}})}),x.jsx(Yh,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},Hz=function(e){var t=e.title,n=e.description,a=e.action,r=e.children;return x.jsxs(Z4,{children:[x.jsx(am,{children:r}),x.jsx(nf,{isDismissable:!0,className:"fixed inset-0 bg-black/10",children:x.jsx(ef,{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(tf,{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(or,{onClick:i,label:"Cancel"}),a]})]})}})})]})};function Uz(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 Bz=e=>{switch(e){case"success":return Vz;case"info":return Qz;case"warning":return Gz;case"error":return Xz;default:return null}},qz=Array(12).fill(0),Fz=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},qz.map((n,a)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Vz=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.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"})),Gz=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.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"})),Qz=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.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"})),Xz=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.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"})),Yz=E.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"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Iz=()=>{const[e,t]=E.useState(document.hidden);return E.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Op=1;class Zz{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:a,...r}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Op++,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:a}),{...s,...t,id:l,dismissible:o,title:a}):s):this.addToast({title:a,...r,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(a=>a({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 a;n.loading!==void 0&&(a=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let l=a!==void 0,i;const o=r.then(async u=>{if(i=["resolve",u],E.isValidElement(u))l=!1,this.create({id:a,type:"default",message:u});else if($z(u)&&!u.ok){l=!1;const f=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,d=typeof f=="object"&&!E.isValidElement(f)?f:{message:f};this.create({id:a,type:"error",description:c,...d})}else if(u instanceof Error){l=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!E.isValidElement(f)?f:{message:f};this.create({id:a,type:"error",description:c,...d})}else if(n.success!==void 0){l=!1;const f=typeof n.success=="function"?await n.success(u):n.success,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!E.isValidElement(f)?f:{message:f};this.create({id:a,type:"success",description:c,...d})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){l=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!E.isValidElement(f)?f:{message:f};this.create({id:a,type:"error",description:c,...d})}}).finally(()=>{l&&(this.dismiss(a),a=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((u,f)=>o.then(()=>i[0]==="reject"?f(i[1]):u(i[1])).catch(f));return typeof a!="string"&&typeof a!="number"?{unwrap:s}:Object.assign(a,{unwrap:s})},this.custom=(t,n)=>{const a=(n==null?void 0:n.id)||Op++;return this.create({jsx:t(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const St=new Zz,Wz=(e,t)=>{const n=(t==null?void 0:t.id)||Op++;return St.addToast({title:e,...t,id:n}),n},$z=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Jz=Wz,eP=()=>St.toasts,tP=()=>St.getActiveToasts(),uc=Object.assign(Jz,{success:St.success,info:St.info,warning:St.warning,error:St.error,custom:St.custom,message:St.message,promise:St.promise,dismiss:St.dismiss,loading:St.loading},{getHistory:eP,getToasts:tP});Uz("[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}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@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 Hu(e){return e.label!==void 0}const nP=3,aP="24px",rP="16px",py=4e3,lP=356,iP=14,oP=45,sP=200;function Ln(...e){return e.filter(Boolean).join(" ")}function uP(e){const[t,n]=e.split("-"),a=[];return t&&a.push(t),n&&a.push(n),a}const cP=e=>{var t,n,a,r,l,i,o,s,u;const{invert:f,toast:c,unstyled:d,interacting:h,setHeights:g,visibleToasts:m,heights:w,index:v,toasts:b,expanded:y,removeToast:C,defaultRichColors:S,closeButton:M,style:R,cancelButtonStyle:D,actionButtonStyle:j,className:A="",descriptionClassName:k="",duration:P,position:B,gap:z,expandByDefault:L,classNames:T,icons:N,closeButtonAriaLabel:_="Close toast"}=e,[q,U]=E.useState(null),[H,F]=E.useState(null),[Y,le]=E.useState(!1),[J,gt]=E.useState(!1),[fn,It]=E.useState(!1),[Zt,hr]=E.useState(!1),[pr,X]=E.useState(!1),[Wt,Tt]=E.useState(0),[ue,cl]=E.useState(0),gr=E.useRef(c.duration||P||py),xm=E.useRef(null),Xn=E.useRef(null),m6=v===0,v6=v+1<=m,Dt=c.type,dl=c.dismissible!==!1,b6=c.className||"",y6=c.descriptionClassName||"",eu=E.useMemo(()=>w.findIndex(ee=>ee.toastId===c.id)||0,[w,c.id]),w6=E.useMemo(()=>{var ee;return(ee=c.closeButton)!=null?ee:M},[c.closeButton,M]),Cm=E.useMemo(()=>c.duration||P||py,[c.duration,P]),sf=E.useRef(0),fl=E.useRef(0),Sm=E.useRef(0),hl=E.useRef(null),[x6,C6]=B.split("-"),Em=E.useMemo(()=>w.reduce((ee,qe,st)=>st>=eu?ee:ee+qe.height,0),[w,eu]),Mm=Iz(),S6=c.invert||f,uf=Dt==="loading";fl.current=E.useMemo(()=>eu*z+Em,[eu,Em]),E.useEffect(()=>{gr.current=Cm},[Cm]),E.useEffect(()=>{le(!0)},[]),E.useEffect(()=>{const ee=Xn.current;if(ee){const qe=ee.getBoundingClientRect().height;return cl(qe),g(st=>[{toastId:c.id,height:qe,position:c.position},...st]),()=>g(st=>st.filter(hn=>hn.toastId!==c.id))}},[g,c.id]),E.useLayoutEffect(()=>{if(!Y)return;const ee=Xn.current,qe=ee.style.height;ee.style.height="auto";const st=ee.getBoundingClientRect().height;ee.style.height=qe,cl(st),g(hn=>hn.find(Xe=>Xe.toastId===c.id)?hn.map(Xe=>Xe.toastId===c.id?{...Xe,height:st}:Xe):[{toastId:c.id,height:st,position:c.position},...hn])},[Y,c.title,c.description,g,c.id]);const wa=E.useCallback(()=>{gt(!0),Tt(fl.current),g(ee=>ee.filter(qe=>qe.toastId!==c.id)),setTimeout(()=>{C(c)},sP)},[c,C,g,fl]);E.useEffect(()=>{if(c.promise&&Dt==="loading"||c.duration===1/0||c.type==="loading")return;let ee;return y||h||Mm?(()=>{if(Sm.current<sf.current){const qe=new Date().getTime()-sf.current;gr.current=gr.current-qe}Sm.current=new Date().getTime()})():gr.current!==1/0&&(sf.current=new Date().getTime(),ee=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),wa()},gr.current)),()=>clearTimeout(ee)},[y,h,c,Dt,Mm,wa]),E.useEffect(()=>{c.delete&&wa()},[wa,c.delete]);function E6(){var ee;if(N!=null&&N.loading){var qe;return E.createElement("div",{className:Ln(T==null?void 0:T.loader,c==null||(qe=c.classNames)==null?void 0:qe.loader,"sonner-loader"),"data-visible":Dt==="loading"},N.loading)}return E.createElement(Fz,{className:Ln(T==null?void 0:T.loader,c==null||(ee=c.classNames)==null?void 0:ee.loader),visible:Dt==="loading"})}const M6=c.icon||(N==null?void 0:N[Dt])||Bz(Dt);var Rm,Om;return E.createElement("li",{tabIndex:0,ref:Xn,className:Ln(A,b6,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[Dt],c==null||(n=c.classNames)==null?void 0:n[Dt]),"data-sonner-toast":"","data-rich-colors":(Rm=c.richColors)!=null?Rm:S,"data-styled":!(c.jsx||c.unstyled||d),"data-mounted":Y,"data-promise":!!c.promise,"data-swiped":pr,"data-removed":J,"data-visible":v6,"data-y-position":x6,"data-x-position":C6,"data-index":v,"data-front":m6,"data-swiping":fn,"data-dismissible":dl,"data-type":Dt,"data-invert":S6,"data-swipe-out":Zt,"data-swipe-direction":H,"data-expanded":!!(y||L&&Y),style:{"--index":v,"--toasts-before":v,"--z-index":b.length-v,"--offset":`${J?Wt:fl.current}px`,"--initial-height":L?"auto":`${ue}px`,...R,...c.style},onDragEnd:()=>{It(!1),U(null),hl.current=null},onPointerDown:ee=>{uf||!dl||(xm.current=new Date,Tt(fl.current),ee.target.setPointerCapture(ee.pointerId),ee.target.tagName!=="BUTTON"&&(It(!0),hl.current={x:ee.clientX,y:ee.clientY}))},onPointerUp:()=>{var ee,qe,st;if(Zt||!dl)return;hl.current=null;const hn=Number(((ee=Xn.current)==null?void 0:ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Xe=Number(((qe=Xn.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pn=new Date().getTime()-((st=xm.current)==null?void 0:st.getTime()),Bi=q==="x"?hn:Xe,Dn=Math.abs(Bi)/pn;if(Math.abs(Bi)>=oP||Dn>.11){Tt(fl.current),c.onDismiss==null||c.onDismiss.call(c,c),F(q==="x"?hn>0?"right":"left":Xe>0?"down":"up"),wa(),hr(!0);return}else{var gn,qi;(gn=Xn.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(qi=Xn.current)==null||qi.style.setProperty("--swipe-amount-y","0px")}X(!1),It(!1),U(null)},onPointerMove:ee=>{var qe,st,hn;if(!hl.current||!dl||((qe=window.getSelection())==null?void 0:qe.toString().length)>0)return;const Xe=ee.clientY-hl.current.y,pn=ee.clientX-hl.current.x;var Bi;const Dn=(Bi=e.swipeDirections)!=null?Bi:uP(B);!q&&(Math.abs(pn)>1||Math.abs(Xe)>1)&&U(Math.abs(pn)>Math.abs(Xe)?"x":"y");let gn={x:0,y:0};const qi=mr=>1/(1.5+Math.abs(mr)/20);if(q==="y"){if(Dn.includes("top")||Dn.includes("bottom"))if(Dn.includes("top")&&Xe<0||Dn.includes("bottom")&&Xe>0)gn.y=Xe;else{const mr=Xe*qi(Xe);gn.y=Math.abs(mr)<Math.abs(Xe)?mr:Xe}}else if(q==="x"&&(Dn.includes("left")||Dn.includes("right")))if(Dn.includes("left")&&pn<0||Dn.includes("right")&&pn>0)gn.x=pn;else{const mr=pn*qi(pn);gn.x=Math.abs(mr)<Math.abs(pn)?mr:pn}(Math.abs(gn.x)>0||Math.abs(gn.y)>0)&&X(!0),(st=Xn.current)==null||st.style.setProperty("--swipe-amount-x",`${gn.x}px`),(hn=Xn.current)==null||hn.style.setProperty("--swipe-amount-y",`${gn.y}px`)}},w6&&!c.jsx&&Dt!=="loading"?E.createElement("button",{"aria-label":_,"data-disabled":uf,"data-close-button":!0,onClick:uf||!dl?()=>{}:()=>{wa(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Ln(T==null?void 0:T.closeButton,c==null||(a=c.classNames)==null?void 0:a.closeButton)},(Om=N==null?void 0:N.close)!=null?Om:Yz):null,(Dt||c.icon||c.promise)&&c.icon!==null&&((N==null?void 0:N[Dt])!==null||c.icon)?E.createElement("div",{"data-icon":"",className:Ln(T==null?void 0:T.icon,c==null||(r=c.classNames)==null?void 0:r.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||E6():null,c.type!=="loading"?M6:null):null,E.createElement("div",{"data-content":"",className:Ln(T==null?void 0:T.content,c==null||(l=c.classNames)==null?void 0:l.content)},E.createElement("div",{"data-title":"",className:Ln(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?E.createElement("div",{"data-description":"",className:Ln(k,y6,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),E.isValidElement(c.cancel)?c.cancel:c.cancel&&Hu(c.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:ee=>{Hu(c.cancel)&&dl&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ee),wa())},className:Ln(T==null?void 0:T.cancelButton,c==null||(s=c.classNames)==null?void 0:s.cancelButton)},c.cancel.label):null,E.isValidElement(c.action)?c.action:c.action&&Hu(c.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||j,onClick:ee=>{Hu(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ee),!ee.defaultPrevented&&wa())},className:Ln(T==null?void 0:T.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function gy(){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 dP(e,t){const n={};return[e,t].forEach((a,r)=>{const l=r===1,i=l?"--mobile-offset":"--offset",o=l?rP:aP;function s(u){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof a=="number"||typeof a=="string"?s(a):typeof a=="object"?["top","right","bottom","left"].forEach(u=>{a[u]===void 0?n[`${i}-${u}`]=o:n[`${i}-${u}`]=typeof a[u]=="number"?`${a[u]}px`:a[u]}):s(o)}),n}const fP=E.forwardRef(function(e,t){const{invert:n,position:a="bottom-right",hotkey:r=["altKey","KeyT"],expand:l,closeButton:i,className:o,offset:s,mobileOffset:u,theme:f="light",richColors:c,duration:d,style:h,visibleToasts:g=nP,toastOptions:m,dir:w=gy(),gap:v=iP,icons:b,containerAriaLabel:y="Notifications"}=e,[C,S]=E.useState([]),M=E.useMemo(()=>Array.from(new Set([a].concat(C.filter(U=>U.position).map(U=>U.position)))),[C,a]),[R,D]=E.useState([]),[j,A]=E.useState(!1),[k,P]=E.useState(!1),[B,z]=E.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=E.useRef(null),T=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=E.useRef(null),_=E.useRef(!1),q=E.useCallback(U=>{S(H=>{var F;return(F=H.find(Y=>Y.id===U.id))!=null&&F.delete||St.dismiss(U.id),H.filter(({id:Y})=>Y!==U.id)})},[]);return E.useEffect(()=>St.subscribe(U=>{if(U.dismiss){requestAnimationFrame(()=>{S(H=>H.map(F=>F.id===U.id?{...F,delete:!0}:F))});return}setTimeout(()=>{jp.flushSync(()=>{S(H=>{const F=H.findIndex(Y=>Y.id===U.id);return F!==-1?[...H.slice(0,F),{...H[F],...U},...H.slice(F+1)]:[U,...H]})})})}),[C]),E.useEffect(()=>{if(f!=="system"){z(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;const U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:H})=>{z(H?"dark":"light")})}catch{U.addListener(({matches:H})=>{try{z(H?"dark":"light")}catch(F){console.error(F)}})}},[f]),E.useEffect(()=>{C.length<=1&&A(!1)},[C]),E.useEffect(()=>{const U=H=>{var F;if(r.every(le=>H[le]||H.code===le)){var Y;A(!0),(Y=L.current)==null||Y.focus()}H.code==="Escape"&&(document.activeElement===L.current||(F=L.current)!=null&&F.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[r]),E.useEffect(()=>{if(L.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,_.current=!1)}},[L.current]),E.createElement("section",{ref:t,"aria-label":`${y} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((U,H)=>{var F;const[Y,le]=U.split("-");return C.length?E.createElement("ol",{key:U,dir:w==="auto"?gy():w,tabIndex:-1,ref:L,className:o,"data-sonner-toaster":!0,"data-sonner-theme":B,"data-y-position":Y,"data-lifted":j&&C.length>1&&!l,"data-x-position":le,style:{"--front-toast-height":`${((F=R[0])==null?void 0:F.height)||0}px`,"--width":`${lP}px`,"--gap":`${v}px`,...h,...dP(s,u)},onBlur:J=>{_.current&&!J.currentTarget.contains(J.relatedTarget)&&(_.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||_.current||(_.current=!0,N.current=J.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{k||A(!1)},onDragEnd:()=>A(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||P(!0)},onPointerUp:()=>P(!1)},C.filter(J=>!J.position&&H===0||J.position===U).map((J,gt)=>{var fn,It;return E.createElement(cP,{key:J.id,icons:b,index:gt,toast:J,defaultRichColors:c,duration:(fn=m==null?void 0:m.duration)!=null?fn:d,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:g,closeButton:(It=m==null?void 0:m.closeButton)!=null?It:i,interacting:k,position:U,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,closeButtonAriaLabel:m==null?void 0:m.closeButtonAriaLabel,removeToast:q,toasts:C.filter(Zt=>Zt.position==J.position),heights:R.filter(Zt=>Zt.position==J.position),setHeights:D,expandByDefault:l,gap:v,expanded:j,swipeDirections:e.swipeDirections})})):null}))});var hP=function(e){var t=e.showCleanAllButton,n=e.queueName,a=e.status,r=e.queue,l=we.queue.clean.useMutation({onSuccess:function(){uc.success("All ".concat(a," jobs have been removed"))}}),i=l.mutate,o=l.status,s=Gr(Gr([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],r&&"prioritized"in r.counts?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"},{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 f=u.status===a;return x.jsxs(Vd,{to:"?status=".concat(u.status),className:Ci("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":!f,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":f&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":f&&u.status==="failed","bg-cyan-50 text-cyan-900":f&&u.status==="active","bg-purple-50 text-purple-900":f&&u.status==="prioritized","bg-amber-50 text-amber-900":f&&u.status==="waiting","bg-indigo-50 text-indigo-900":f&&u.status==="delayed","bg-stone-50 text-stone-900":f&&u.status==="paused"}),children:[x.jsx("span",{children:u.name}),r!=null&&r.counts[u.status]?x.jsx("span",{className:Ci("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50":!f,"bg-green-600 text-green-50":f&&u.status==="completed","bg-red-600 text-red-50":f&&u.status==="failed","bg-cyan-600 text-cyan-50":f&&u.status==="active","bg-purple-600 text-purple-50":f&&u.status==="prioritized","bg-amber-600 text-amber-50":f&&u.status==="waiting","bg-indigo-600 text-indigo-50":f&&u.status==="delayed","bg-stone-600 text-stone-50":f&&u.status==="paused"}),children:r.counts[u.status]}):null]},u.name)})}),t?x.jsx(Hz,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(a," jobs from the queue."),action:x.jsx(or,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return i({queueName:n,status:a})}}),children:x.jsx(or,{colorScheme:"yellow",icon:x.jsx(Pi,{}),label:"Clean all",size:"sm",isLoading:o==="pending"})}):null]})};function pP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function my(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?my(Object(n),!0).forEach(function(a){pP(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):my(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function gP(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,l;for(l=0;l<a.length;l++)r=a[l],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function mP(e,t){if(e==null)return{};var n=gP(e,t),a,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)a=l[r],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function vP(e,t){return bP(e)||yP(e,t)||wP(e,t)||xP()}function bP(e){if(Array.isArray(e))return e}function yP(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,r=!1,l=void 0;try{for(var i=e[Symbol.iterator](),o;!(a=(o=i.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(s){r=!0,l=s}finally{try{!a&&i.return!=null&&i.return()}finally{if(r)throw l}}return n}}function wP(e,t){if(e){if(typeof e=="string")return by(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return by(e,t)}}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function xP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
106
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yy(Object(n),!0).forEach(function(a){CP(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function SP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(a){return t.reduceRight(function(r,l){return l(r)},a)}}function Lo(e){return function t(){for(var n=this,a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return r.length>=e.length?e.apply(this,r):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(n,[].concat(r,o))}}}function bd(e){return{}.toString.call(e).includes("Object")}function EP(e){return!Object.keys(e).length}function Os(e){return typeof e=="function"}function MP(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function RP(e,t){return bd(t)||er("changeType"),Object.keys(t).some(function(n){return!MP(e,n)})&&er("changeField"),t}function OP(e){Os(e)||er("selectorType")}function TP(e){Os(e)||bd(e)||er("handlerType"),bd(e)&&Object.values(e).some(function(t){return!Os(t)})&&er("handlersType")}function DP(e){e||er("initialIsRequired"),bd(e)||er("initialType"),EP(e)&&er("initialContent")}function kP(e,t){throw new Error(e[t]||e.default)}var NP={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"},er=Lo(kP)(NP),Uu={changes:RP,selector:OP,handler:TP,initial:DP};function AP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Uu.initial(e),Uu.handler(t);var n={current:e},a=Lo(_P)(n,t),r=Lo(LP)(n),l=Lo(Uu.changes)(e),i=Lo(jP)(n);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return Uu.selector(u),u(n.current)}function s(u){SP(a,r,l,i)(u)}return[o,s]}function jP(e,t){return Os(t)?t(e.current):t}function LP(e,t){return e.current=wy(wy({},e.current),t),t}function _P(e,t,n){return Os(t)?t(e.current):Object.keys(n).forEach(function(a){var r;return(r=t[a])===null||r===void 0?void 0:r.call(t,e.current[a])}),n}var zP={create:AP},PP={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function KP(e){return function t(){for(var n=this,a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return r.length>=e.length?e.apply(this,r):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(n,[].concat(r,o))}}}function HP(e){return{}.toString.call(e).includes("Object")}function UP(e){return e||xy("configIsRequired"),HP(e)||xy("configType"),e.urls?(BP(),{paths:{vs:e.urls.monacoBase}}):e}function BP(){console.warn(o6.deprecation)}function qP(e,t){throw new Error(e[t]||e.default)}var o6={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!
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 Jb(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 e2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(n),!0).forEach(function(r){aK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oK(e,t){if(e==null)return{};var n,r,a=sK(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 sK(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 uK(e,t){return rK(e)||lK(e,t)||fK(e,t)||iK()}function cK(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 dK(e){var t=cK(e,"string");return typeof t=="symbol"?t:t+""}function fK(e,t){if(e){if(typeof e=="string")return Wb(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)?Wb(e,t):void 0}}function hK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2(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 n2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(r){hK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pK(){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 Jo(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 mK(e){return!Object.keys(e).length}function Ys(e){return typeof e=="function"}function gK(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vK(e,t){return Fd(t)||va("changeType"),Object.keys(t).some(function(n){return!gK(e,n)})&&va("changeField"),t}function yK(e){Ys(e)||va("selectorType")}function bK(e){Ys(e)||Fd(e)||va("handlerType"),Fd(e)&&Object.values(e).some(function(t){return!Ys(t)})&&va("handlersType")}function wK(e){e||va("initialIsRequired"),Fd(e)||va("initialType"),mK(e)&&va("initialContent")}function xK(e,t){throw new Error(e[t]||e.default)}var CK={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=Jo(xK)(CK),dc={changes:vK,selector:yK,handler:bK,initial:wK};function SK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dc.initial(e),dc.handler(t);var n={current:e},r=Jo(OK)(n,t),a=Jo(MK)(n),l=Jo(dc.changes)(e),i=Jo(EK)(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){pK(r,a,l,i)(u)}return[o,s]}function EK(e,t){return Ys(t)?t(e.current):t}function MK(e,t){return e.current=n2(n2({},e.current),t),t}function OK(e,t,n){return Ys(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 RK={create:SK},TK={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 AK(e){return e||r2("configIsRequired"),jK(e)||r2("configType"),e.urls?(NK(),{paths:{vs:e.urls.monacoBase}}):e}function NK(){console.warn(fw.deprecation)}function kK(e,t){throw new Error(e[t]||e.default)}var fw={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!
107
112
  You are using deprecated way of configuration.
108
113
 
109
114
  Instead of using
@@ -112,4 +117,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
112
117
  monaco.config({ paths: { vs: '...' } })
113
118
 
114
119
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
115
- `},xy=KP(qP)(o6),FP={config:UP},VP=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(a){return t.reduceRight(function(r,l){return l(r)},a)}};function s6(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],s6(e[n],t[n]))}),vy(vy({},e),t)}var GP={type:"cancelation",msg:"operation is manually canceled"};function z0(e){var t=!1,n=new Promise(function(a,r){e.then(function(l){return t?r(GP):a(l)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var QP=zP.create({config:PP,isInitialized:!1,resolve:null,reject:null,monaco:null}),u6=vP(QP,2),Js=u6[0],of=u6[1];function XP(e){var t=FP.config(e),n=t.monaco,a=mP(t,["monaco"]);of(function(r){return{config:s6(r.config,a),monaco:n}})}function YP(){var e=Js(function(t){var n=t.monaco,a=t.isInitialized,r=t.resolve;return{monaco:n,isInitialized:a,resolve:r}});if(!e.isInitialized){if(of({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),z0(P0);if(window.monaco&&window.monaco.editor)return c6(window.monaco),e.resolve(window.monaco),z0(P0);VP(IP,WP)($P)}return z0(P0)}function IP(e){return document.body.appendChild(e)}function ZP(e){var t=document.createElement("script");return e&&(t.src=e),t}function WP(e){var t=Js(function(a){var r=a.config,l=a.reject;return{config:r,reject:l}}),n=ZP("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function $P(){var e=Js(function(n){var a=n.config,r=n.resolve,l=n.reject;return{config:a,resolve:r,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){c6(n),e.resolve(n)},function(n){e.reject(n)})}function c6(e){Js().monaco||of({monaco:e})}function JP(){return Js(function(e){var t=e.monaco;return t})}var P0=new Promise(function(e,t){return of({resolve:e,reject:t})}),d6={config:XP,init:YP,__getMonacoInstance:JP},eK={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},K0=eK,tK={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},nK=tK;function aK({children:e}){return E.createElement("div",{style:nK.container},e)}var rK=aK,lK=rK;function iK({width:e,height:t,isEditorReady:n,loading:a,_ref:r,className:l,wrapperProps:i}){return E.createElement("section",{style:{...K0.wrapper,width:e,height:t},...i},!n&&E.createElement(lK,null,a),E.createElement("div",{ref:r,style:{...K0.fullWidth,...!n&&K0.hide},className:l}))}var oK=iK,f6=p.memo(oK);function sK(e){p.useEffect(e,[])}var h6=sK;function uK(e,t,n=!0){let a=p.useRef(!0);p.useEffect(a.current||!n?()=>{a.current=!1}:e,t)}var zt=uK;function es(){}function Il(e,t,n,a){return cK(e,a)||dK(e,t,n,a)}function cK(e,t){return e.editor.getModel(p6(e,t))}function dK(e,t,n,a){return e.editor.createModel(t,n,a?p6(e,a):void 0)}function p6(e,t){return e.Uri.parse(t)}function fK({original:e,modified:t,language:n,originalLanguage:a,modifiedLanguage:r,originalModelPath:l,modifiedModelPath:i,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:u="light",loading:f="Loading...",options:c={},height:d="100%",width:h="100%",className:g,wrapperProps:m={},beforeMount:w=es,onMount:v=es}){let[b,y]=p.useState(!1),[C,S]=p.useState(!0),M=p.useRef(null),R=p.useRef(null),D=p.useRef(null),j=p.useRef(v),A=p.useRef(w),k=p.useRef(!1);h6(()=>{let L=d6.init();return L.then(T=>(R.current=T)&&S(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>M.current?z():L.cancel()}),zt(()=>{if(M.current&&R.current){let L=M.current.getOriginalEditor(),T=Il(R.current,e||"",a||n||"text",l||"");T!==L.getModel()&&L.setModel(T)}},[l],b),zt(()=>{if(M.current&&R.current){let L=M.current.getModifiedEditor(),T=Il(R.current,t||"",r||n||"text",i||"");T!==L.getModel()&&L.setModel(T)}},[i],b),zt(()=>{let L=M.current.getModifiedEditor();L.getOption(R.current.editor.EditorOption.readOnly)?L.setValue(t||""):t!==L.getValue()&&(L.executeEdits("",[{range:L.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),L.pushUndoStop())},[t],b),zt(()=>{var L,T;(T=(L=M.current)==null?void 0:L.getModel())==null||T.original.setValue(e||"")},[e],b),zt(()=>{let{original:L,modified:T}=M.current.getModel();R.current.editor.setModelLanguage(L,a||n||"text"),R.current.editor.setModelLanguage(T,r||n||"text")},[n,a,r],b),zt(()=>{var L;(L=R.current)==null||L.editor.setTheme(u)},[u],b),zt(()=>{var L;(L=M.current)==null||L.updateOptions(c)},[c],b);let P=p.useCallback(()=>{var L;if(!R.current)return;A.current(R.current);let T=Il(R.current,e||"",a||n||"text",l||""),N=Il(R.current,t||"",r||n||"text",i||"");(L=M.current)==null||L.setModel({original:T,modified:N})},[n,t,r,e,a,l,i]),B=p.useCallback(()=>{var L;!k.current&&D.current&&(M.current=R.current.editor.createDiffEditor(D.current,{automaticLayout:!0,...c}),P(),(L=R.current)==null||L.editor.setTheme(u),y(!0),k.current=!0)},[c,u,P]);p.useEffect(()=>{b&&j.current(M.current,R.current)},[b]),p.useEffect(()=>{!C&&!b&&B()},[C,b,B]);function z(){var L,T,N,_;let q=(L=M.current)==null?void 0:L.getModel();o||(T=q==null?void 0:q.original)==null||T.dispose(),s||(N=q==null?void 0:q.modified)==null||N.dispose(),(_=M.current)==null||_.dispose()}return E.createElement(f6,{width:h,height:d,isEditorReady:b,loading:f,_ref:D,className:g,wrapperProps:m})}var hK=fK;p.memo(hK);function pK(e){let t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}var gK=pK,Bu=new Map;function mK({defaultValue:e,defaultLanguage:t,defaultPath:n,value:a,language:r,path:l,theme:i="light",line:o,loading:s="Loading...",options:u={},overrideServices:f={},saveViewState:c=!0,keepCurrentModel:d=!1,width:h="100%",height:g="100%",className:m,wrapperProps:w={},beforeMount:v=es,onMount:b=es,onChange:y,onValidate:C=es}){let[S,M]=p.useState(!1),[R,D]=p.useState(!0),j=p.useRef(null),A=p.useRef(null),k=p.useRef(null),P=p.useRef(b),B=p.useRef(v),z=p.useRef(),L=p.useRef(a),T=gK(l),N=p.useRef(!1),_=p.useRef(!1);h6(()=>{let H=d6.init();return H.then(F=>(j.current=F)&&D(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>A.current?U():H.cancel()}),zt(()=>{var H,F,Y,le;let J=Il(j.current,e||a||"",t||r||"",l||n||"");J!==((H=A.current)==null?void 0:H.getModel())&&(c&&Bu.set(T,(F=A.current)==null?void 0:F.saveViewState()),(Y=A.current)==null||Y.setModel(J),c&&((le=A.current)==null||le.restoreViewState(Bu.get(l))))},[l],S),zt(()=>{var H;(H=A.current)==null||H.updateOptions(u)},[u],S),zt(()=>{!A.current||a===void 0||(A.current.getOption(j.current.editor.EditorOption.readOnly)?A.current.setValue(a):a!==A.current.getValue()&&(_.current=!0,A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),A.current.pushUndoStop(),_.current=!1))},[a],S),zt(()=>{var H,F;let Y=(H=A.current)==null?void 0:H.getModel();Y&&r&&((F=j.current)==null||F.editor.setModelLanguage(Y,r))},[r],S),zt(()=>{var H;o!==void 0&&((H=A.current)==null||H.revealLine(o))},[o],S),zt(()=>{var H;(H=j.current)==null||H.editor.setTheme(i)},[i],S);let q=p.useCallback(()=>{var H;if(!(!k.current||!j.current)&&!N.current){B.current(j.current);let F=l||n,Y=Il(j.current,a||e||"",t||r||"",F||"");A.current=(H=j.current)==null?void 0:H.editor.create(k.current,{model:Y,automaticLayout:!0,...u},f),c&&A.current.restoreViewState(Bu.get(F)),j.current.editor.setTheme(i),o!==void 0&&A.current.revealLine(o),M(!0),N.current=!0}},[e,t,n,a,r,l,u,f,c,i,o]);p.useEffect(()=>{S&&P.current(A.current,j.current)},[S]),p.useEffect(()=>{!R&&!S&&q()},[R,S,q]),L.current=a,p.useEffect(()=>{var H,F;S&&y&&((H=z.current)==null||H.dispose(),z.current=(F=A.current)==null?void 0:F.onDidChangeModelContent(Y=>{_.current||y(A.current.getValue(),Y)}))},[S,y]),p.useEffect(()=>{if(S){let H=j.current.editor.onDidChangeMarkers(F=>{var Y;let le=(Y=A.current.getModel())==null?void 0:Y.uri;if(le&&F.find(J=>J.path===le.path)){let J=j.current.editor.getModelMarkers({resource:le});C==null||C(J)}});return()=>{H==null||H.dispose()}}return()=>{}},[S,C]);function U(){var H,F;(H=z.current)==null||H.dispose(),d?c&&Bu.set(l,A.current.saveViewState()):(F=A.current.getModel())==null||F.dispose(),A.current.dispose()}return E.createElement(f6,{width:h,height:g,isEditorReady:S,loading:s,_ref:k,className:m,wrapperProps:w})}var vK=mK,bK=p.memo(vK),yK=bK,wK=function(e){var t=e.queue,n=e.onDismiss,a=we.queue.addJob.useMutation({onSuccess:function(){uc.success("New job has been added")},onError:function(d){uc.error(d.message)}}),r=a.mutate,l=a.status,i=p.useState("{}"),o=i[0],s=i[1],u=p.useRef(null),f=function(){var d,h;(h=(d=u.current)===null||d===void 0?void 0:d.getAction("editor.action.formatDocument"))===null||h===void 0||h.run()},c=function(d){var h=String.fromCharCode(d.which).toLowerCase();(d.ctrlKey||d.metaKey)&&h==="s"&&(d.preventDefault(),f())};return x.jsx(Z4,{isOpen:!0,onOpenChange:function(d){d||n()},children:x.jsx(nf,{isDismissable:!0,className:"fixed inset-0 bg-black/10",children:x.jsx(ef,{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(d){var h=d.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(){h(),n()},children:x.jsx(qg,{})}),x.jsx("div",{className:"flex items-center space-x-4",children:x.jsxs(tf,{className:"mb-1 text-xl font-semibold text-slate-900",children:["Add job to ",t.displayName.toLocaleLowerCase()]})}),x.jsx("div",{onKeyDown:c,onBlur:f,className:"mb-6 border border-slate-200",children:x.jsx(yK,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:o,onChange:function(g){g&&s(g)},onMount:function(g,m){u.current=g,m.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"}}),m.editor.setTheme("solarized-light")}})}),x.jsx("div",{children:x.jsx(or,{label:"Add job",variant:"filled",disabled:l==="pending",onClick:function(){var g;if(u.current){(g=u.current.getAction("editor.action.formatDocument"))===null||g===void 0||g.run();try{var m=JSON.parse(u.current.getValue());r({queueName:t.name,data:m})}catch{uc.error("Invalid JSON")}}}})})]})}})})})},xK=function(e){var t=e.queue,n=we.queue.pause.useMutation().mutate,a=we.queue.resume.useMutation().mutate,r=we.queue.empty.useMutation().mutate,l=p.useState(!1),i=l[0],o=l[1],s={queueName:t.name};return x.jsxs(x.Fragment,{children:[x.jsx(lf,{actions:[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?a(s):n(s)},icon:t.paused?x.jsx(x8,{}):x.jsx(w8,{})},{label:"Add job",onSelect:function(){o(!0)},icon:x.jsx(uR,{})},{label:"Empty",onSelect:function(){r(s)},icon:x.jsx(Pi,{})}]}),i?x.jsx(wK,{queue:t,onDismiss:function(){return o(!1)}}):null]})},g6={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(globalThis,()=>(()=>{var n={949:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CronParser=void 0;var u=s(515),f=function(){function c(d,h,g){h===void 0&&(h=!0),g===void 0&&(g=!1),this.expression=d,this.dayOfWeekStartIndexZero=h,this.monthStartIndexZero=g}return c.prototype.parse=function(){var d,h,g=(d=this.expression)!==null&&d!==void 0?d:"";if(g==="@reboot")return h=["@reboot","","","","","",""],h;if(g.startsWith("@")){var m=this.parseSpecial(this.expression);h=this.extractParts(m)}else h=this.extractParts(this.expression);return this.normalize(h),this.validate(h),h},c.prototype.parseSpecial=function(d){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"},g=h[d];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(d){if(!this.expression)throw new Error("cron expression is empty");for(var h=d.trim().split(/[ ]+/),g=0;g<h.length;g++)if(h[g].includes(",")){var m=h[g].split(",").map(function(v){return v.trim()}).filter(function(v){return v!==""}).map(function(v){return isNaN(Number(v))?v:Number(v)}).filter(function(v){return v!==null&&v!==""});m.length===0&&m.push("*"),m.sort(function(v,b){return v!==null&&b!==null?v-b:0}),h[g]=m.map(function(v){return v!==null?v.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 w=/\d{4}$/.test(h[5])||h[4]=="?"||h[2]=="?";w?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(d){var h=this;if(d[3]=d[3].replace("?","*"),d[5]=d[5].replace("?","*"),d[2]=d[2].replace("?","*"),d[0].indexOf("0/")==0&&(d[0]=d[0].replace("0/","*/")),d[1].indexOf("0/")==0&&(d[1]=d[1].replace("0/","*/")),d[2].indexOf("0/")==0&&(d[2]=d[2].replace("0/","*/")),d[3].indexOf("1/")==0&&(d[3]=d[3].replace("1/","*/")),d[4].indexOf("1/")==0&&(d[4]=d[4].replace("1/","*/")),d[6].indexOf("1/")==0&&(d[6]=d[6].replace("1/","*/")),d[5]=d[5].replace(/(^\d)|([^#/\s]\d)/g,function(S){var M=S.replace(/\D/,""),R=M;return h.dayOfWeekStartIndexZero?M=="7"&&(R="0"):R=(parseInt(M)-1).toString(),S.replace(M,R)}),d[5]=="L"&&(d[5]="6"),d[3]=="?"&&(d[3]="*"),d[3].indexOf("W")>-1&&(d[3].indexOf(",")>-1||d[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 g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var m in g)d[5]=d[5].replace(new RegExp(m,"gi"),g[m].toString());d[4]=d[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(S){var M=S.replace(/\D/,""),R=M;return h.monthStartIndexZero&&(R=(parseInt(M)+1).toString()),S.replace(M,R)});var w={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 v in w)d[4]=d[4].replace(new RegExp(v,"gi"),w[v].toString());d[0]=="0"&&(d[0]=""),!/\*|\-|\,|\//.test(d[2])&&(/\*|\//.test(d[1])||/\*|\//.test(d[0]))&&(d[2]+="-".concat(d[2]));for(var b=0;b<d.length;b++)if(d[b].indexOf(",")!=-1&&(d[b]=d[b].split(",").filter(function(S){return S!==""}).join(",")||"*"),d[b]=="*/1"&&(d[b]="*"),d[b].indexOf("/")>-1&&!/^\*|\-|\,/.test(d[b])){var y=null;switch(b){case 4:y="12";break;case 5:y="6";break;case 6:y="9999";break;default:y=null;break}if(y!==null){var C=d[b].split("/");d[b]="".concat(C[0],"-").concat(y,"/").concat(C[1])}}},c.prototype.validate=function(d){var h="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(d[0],h),this.validateOnlyExpectedCharactersFound(d[1],h),this.validateOnlyExpectedCharactersFound(d[2],h),this.validateOnlyExpectedCharactersFound(d[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(d[4],h),this.validateOnlyExpectedCharactersFound(d[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(d[6],h),this.validateAnyRanges(d)},c.prototype.validateAnyRanges=function(d){u.default.secondRange(d[0]),u.default.minuteRange(d[1]),u.default.hourRange(d[2]),u.default.dayOfMonthRange(d[3]),u.default.monthRange(d[4],this.monthStartIndexZero),u.default.dayOfWeekRange(d[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(d,h){var g=d.match(new RegExp("[^".concat(h,"]+"),"gi"));if(g&&g.length)throw new Error("Expression contains invalid values: '".concat(g.toString(),"'"))},c}();o.CronParser=f},333:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ExpressionDescriptor=void 0;var u=s(823),f=s(949),c=function(){function d(h,g){if(this.expression=h,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&d.defaultLocale&&(this.options.locale=d.defaultLocale),!d.locales[this.options.locale]){var m=Object.keys(d.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(m,"'.")),this.options.locale=m}this.i18n=d.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return d.toString=function(h,g){var m=g===void 0?{}:g,w=m.throwExceptionOnParseError,v=w===void 0?!0:w,b=m.verbose,y=b===void 0?!1:b,C=m.dayOfWeekStartIndexZero,S=C===void 0?!0:C,M=m.monthStartIndexZero,R=M===void 0?!1:M,D=m.use24HourTimeFormat,j=m.locale,A=j===void 0?null:j,k={throwExceptionOnParseError:v,verbose:y,dayOfWeekStartIndexZero:S,monthStartIndexZero:R,use24HourTimeFormat:D,locale:A};k.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var P=new d(h,k);return P.getFullDescription()},d.initialize=function(h,g){g===void 0&&(g="en"),d.specialCharacters=["/","-",",","*"],d.defaultLocale=g,h.load(d.locales)},d.prototype.getFullDescription=function(){var h,g,m="";try{var w=new f.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=w.parse(),this.expressionParts[0]==="@reboot")return((g=(h=this.i18n).atReboot)===null||g===void 0?void 0:g.call(h))||"Run once, at startup";var v=this.getTimeOfDayDescription(),b=this.getDayOfMonthDescription(),y=this.getMonthDescription(),C=this.getDayOfWeekDescription(),S=this.getYearDescription();m+=v+b+C+y+S,m=this.transformVerbosity(m,!!this.options.verbose),m=m.charAt(0).toLocaleUpperCase()+m.substr(1)}catch(M){if(!this.options.throwExceptionOnParseError)m=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(M)}return m},d.prototype.getTimeOfDayDescription=function(){var h=this.expressionParts[0],g=this.expressionParts[1],m=this.expressionParts[2],w="";if(!u.StringUtilities.containsAny(g,d.specialCharacters)&&!u.StringUtilities.containsAny(m,d.specialCharacters)&&!u.StringUtilities.containsAny(h,d.specialCharacters))w+=this.i18n.atSpace()+this.formatTime(m,g,h);else if(!h&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!u.StringUtilities.containsAny(m,d.specialCharacters)){var v=g.split("-");w+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(m,v[0],""),this.formatTime(m,v[1],""))}else if(!h&&m.indexOf(",")>-1&&m.indexOf("-")==-1&&m.indexOf("/")==-1&&!u.StringUtilities.containsAny(g,d.specialCharacters)){var b=m.split(",");w+=this.i18n.at();for(var y=0;y<b.length;y++)w+=" ",w+=this.formatTime(b[y],g,""),y<b.length-2&&(w+=","),y==b.length-2&&(w+=this.i18n.spaceAnd())}else{var C=this.getSecondsDescription(),S=this.getMinutesDescription(),M=this.getHoursDescription();if(w+=C,w&&S&&(w+=", "),w+=S,S===M)return w;w&&M&&(w+=", "),w+=M}return w},d.prototype.getSecondsDescription=function(){var h=this,g=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(m){return m},function(m){return u.StringUtilities.format(h.i18n.everyX0Seconds(m),m)},function(m){return h.i18n.secondsX0ThroughX1PastTheMinute()},function(m){return m=="0"?"":parseInt(m)<20?h.i18n.atX0SecondsPastTheMinute(m):h.i18n.atX0SecondsPastTheMinuteGt20()||h.i18n.atX0SecondsPastTheMinute(m)});return g},d.prototype.getMinutesDescription=function(){var h=this,g=this.expressionParts[0],m=this.expressionParts[2],w=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(v){return v},function(v){return u.StringUtilities.format(h.i18n.everyX0Minutes(v),v)},function(v){return h.i18n.minutesX0ThroughX1PastTheHour()},function(v){try{return v=="0"&&m.indexOf("/")==-1&&g==""?h.i18n.everyHour():parseInt(v)<20?h.i18n.atX0MinutesPastTheHour(v):h.i18n.atX0MinutesPastTheHourGt20()||h.i18n.atX0MinutesPastTheHour(v)}catch{return h.i18n.atX0MinutesPastTheHour(v)}});return w},d.prototype.getHoursDescription=function(){var h=this,g=this.expressionParts[2],m=0,w=[];g.split("/")[0].split(",").forEach(function(y){var C=y.split("-");C.length===2&&w.push({value:C[1],index:m+1}),m+=C.length});var v=0,b=this.getSegmentDescription(g,this.i18n.everyHour(),function(y){var C=w.find(function(M){return M.value===y&&M.index===v}),S=C&&h.expressionParts[1]!=="0";return v++,S?h.formatTime(y,"59",""):h.formatTime(y,"0","")},function(y){return u.StringUtilities.format(h.i18n.everyX0Hours(y),y)},function(y){return h.i18n.betweenX0AndX1()},function(y){return h.i18n.atX0()});return b},d.prototype.getDayOfWeekDescription=function(){var h=this,g=this.i18n.daysOfTheWeek(),m=null;return this.expressionParts[5]=="*"?m="":m=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(w,v){var b=w;w.indexOf("#")>-1?b=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(b=b.replace("L",""));var y=parseInt(b),C=h.i18n.daysOfTheWeekInCase?h.i18n.daysOfTheWeekInCase(v)[y]:g[y];if(w.indexOf("#")>-1){var S=null,M=w.substring(w.indexOf("#")+1),R=w.substring(0,w.indexOf("#"));switch(M){case"1":S=h.i18n.first(R);break;case"2":S=h.i18n.second(R);break;case"3":S=h.i18n.third(R);break;case"4":S=h.i18n.fourth(R);break;case"5":S=h.i18n.fifth(R);break}C=S+" "+C}return C},function(w){return parseInt(w)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var v=w.substring(0,w.indexOf("-")),b=h.expressionParts[3]!="*";return b?h.i18n.commaAndX0ThroughX1(v):h.i18n.commaX0ThroughX1(v)},function(w){var v=null;if(w.indexOf("#")>-1){var b=w.substring(w.indexOf("#")+1),y=w.substring(0,w.indexOf("#"));v=h.i18n.commaOnThe(b,y).trim()+h.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)v=h.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var C=h.expressionParts[3]!="*";v=C?h.i18n.commaAndOnX0():h.i18n.commaOnlyOnX0(w)}return v}),m},d.prototype.getMonthDescription=function(){var h=this,g=this.i18n.monthsOfTheYear(),m=this.getSegmentDescription(this.expressionParts[4],"",function(w,v){return v&&h.i18n.monthsOfTheYearInCase?h.i18n.monthsOfTheYearInCase(v)[parseInt(w)-1]:g[parseInt(w)-1]},function(w){return parseInt(w)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0Months(w),w)},function(w){return h.i18n.commaMonthX0ThroughMonthX1()||h.i18n.commaX0ThroughX1()},function(w){return h.i18n.commaOnlyInMonthX0?h.i18n.commaOnlyInMonthX0():h.i18n.commaOnlyInX0()});return m},d.prototype.getDayOfMonthDescription=function(){var h=this,g=null,m=this.expressionParts[3];switch(m){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var w=m.match(/(\d{1,2}W)|(W\d{1,2})/);if(w){var v=parseInt(w[0].replace("W","")),b=v==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),v.toString());g=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),b);break}else{var y=m.match(/L-(\d{1,2})/);if(y){var C=y[1];g=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(C),C);break}else{if(m=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(m,this.i18n.commaEveryDay(),function(S){return S=="L"?h.i18n.lastDay():h.i18n.dayX0?u.StringUtilities.format(h.i18n.dayX0(),S):S},function(S){return S=="1"?h.i18n.commaEveryDay():h.i18n.commaEveryX0Days(S)},function(S){return h.i18n.commaBetweenDayX0AndX1OfTheMonth(S)},function(S){return h.i18n.commaOnDayX0OfTheMonth(S)})}break}}return g},d.prototype.getYearDescription=function(){var h=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(m){return/^\d+$/.test(m)?new Date(parseInt(m),1).getFullYear().toString():m},function(m){return u.StringUtilities.format(h.i18n.commaEveryX0Years(m),m)},function(m){return h.i18n.commaYearX0ThroughYearX1()||h.i18n.commaX0ThroughX1()},function(m){return h.i18n.commaOnlyInYearX0?h.i18n.commaOnlyInYearX0():h.i18n.commaOnlyInX0()});return g},d.prototype.getSegmentDescription=function(h,g,m,w,v,b){var y=null,C=h.indexOf("/")>-1,S=h.indexOf("-")>-1,M=h.indexOf(",")>-1;if(!h)y="";else if(h==="*")y=g;else if(!C&&!S&&!M)y=u.StringUtilities.format(b(h),m(h));else if(M){for(var R=h.split(","),D="",j=0;j<R.length;j++)if(j>0&&R.length>2&&(D+=",",j<R.length-1&&(D+=" ")),j>0&&R.length>1&&(j==R.length-1||R.length==2)&&(D+="".concat(this.i18n.spaceAnd()," ")),R[j].indexOf("/")>-1||R[j].indexOf("-")>-1){var A=R[j].indexOf("-")>-1&&R[j].indexOf("/")==-1,k=this.getSegmentDescription(R[j],g,m,w,A?this.i18n.commaX0ThroughX1:v,b);A&&(k=k.replace(", ","")),D+=k}else C?D+=this.getSegmentDescription(R[j],g,m,w,v,b):D+=m(R[j]);C?y=D:y=u.StringUtilities.format(b(h),D)}else if(C){var R=h.split("/");if(y=u.StringUtilities.format(w(R[1]),R[1]),R[0].indexOf("-")>-1){var P=this.generateRangeSegmentDescription(R[0],v,m);P.indexOf(", ")!=0&&(y+=", "),y+=P}else if(R[0].indexOf("*")==-1){var B=u.StringUtilities.format(b(R[0]),m(R[0]));B=B.replace(", ",""),y+=u.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else S&&(y=this.generateRangeSegmentDescription(h,v,m));return y},d.prototype.generateRangeSegmentDescription=function(h,g,m){var w="",v=h.split("-"),b=m(v[0],1),y=m(v[1],2),C=g(h);return w+=u.StringUtilities.format(C,b,y),w},d.prototype.formatTime=function(h,g,m){var w=0,v=0,b=parseInt(h)+w,y=parseInt(g)+v;y>=60?(y-=60,b+=1):y<0&&(y+=60,b-=1),b>=24?b=b-24:b<0&&(b=24+b);var C="",S=!1;this.options.use24HourTimeFormat||(S=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),C=S?"".concat(this.getPeriod(b)," "):" ".concat(this.getPeriod(b)),b>12&&(b-=12),b===0&&(b=12));var M="";return m&&(M=":".concat(("00"+m).substring(m.length))),"".concat(S?C:"").concat(("00"+b.toString()).substring(b.toString().length),":").concat(("00"+y.toString()).substring(y.toString().length)).concat(M).concat(S?"":C)},d.prototype.transformVerbosity=function(h,g){if(!g&&(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 m=0,w=Object.entries(this.i18n.conciseVerbosityReplacements());m<w.length;m++){var v=w[m],b=v[0],y=v[1];h=h.replace(new RegExp(b,"g"),y)}return h},d.prototype.getPeriod=function(h){return h>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},d.locales={},d}();o.ExpressionDescriptor=c},747:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.enLocaleLoader=void 0;var u=s(486),f=function(){function c(){}return c.prototype.load=function(d){d.en=new u.en},c}();o.enLocaleLoader=f},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(f,c){if(!f)throw new Error(c)}var u=function(){function f(){}return f.secondRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var g=parseInt(d[h],10);s(g>=0&&g<=59,"seconds part must be >= 0 and <= 59")}},f.minuteRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var g=parseInt(d[h],10);s(g>=0&&g<=59,"minutes part must be >= 0 and <= 59")}},f.hourRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var g=parseInt(d[h],10);s(g>=0&&g<=23,"hours part must be >= 0 and <= 23")}},f.dayOfMonthRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var g=parseInt(d[h],10);s(g>=1&&g<=31,"DOM part must be >= 1 and <= 31")}},f.monthRange=function(c,d){for(var h=c.split(","),g=0;g<h.length;g++)if(!isNaN(parseInt(h[g],10))){var m=parseInt(h[g],10);s(m>=1&&m<=12,d?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},f.dayOfWeekRange=function(c,d){for(var h=c.split(","),g=0;g<h.length;g++)if(!isNaN(parseInt(h[g],10))){var m=parseInt(h[g],10);s(m>=0&&m<=6,d?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},f}();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(f){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];return f.replace(/%s/g,function(h){return c.shift()})},u.containsAny=function(f,c){return c.some(function(d){return f.indexOf(d)>-1})},u}();o.StringUtilities=s}},a={};function r(i){var o=a[i];if(o!==void 0)return o.exports;var s=a[i]={exports:{}};return n[i](s,s.exports,r),s.exports}var l={};return(()=>{var i=l;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var o=r(333),s=r(747);o.ExpressionDescriptor.initialize(new s.enLocaleLoader),i.default=o.ExpressionDescriptor;var u=o.ExpressionDescriptor.toString;i.toString=u})(),l})())})(g6);var CK=g6.exports;const SK=x9(CK);var EK=function(e){var t=e.scheduler,n=e.queueName,a=e.onRemove,r=we.scheduler.remove.useMutation(),l=r.mutate,i=r.isSuccess;return p.useEffect(function(){i&&(a==null||a())},[i,a]),x.jsx(lf,{actions:[{label:"Remove",onSelect:function(){l({queueName:n,jobSchedulerId:t.key})},icon:x.jsx(Pi,{})}]})},MK=function(e){var t=e.scheduler,n=e.queueName,a=e.onDismiss,r=t.template,l=ms({},t);return delete l.template,x.jsx(nf,{isOpen:!0,isDismissable:!0,onOpenChange:function(i){i||a()},className:"fixed inset-0 bg-black/10",children:x.jsx(ef,{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(){a(),o()},children:x.jsx(qg,{})}),x.jsxs("div",{className:"flex items-center space-x-4",children:[x.jsxs(tf,{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(EK,{queueName:n,scheduler:t,onRemove:a})]}),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(vd,{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(vd,{data:r,theme:"monokai"})})]})]})]})}})})},qu=e7();function RK(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),a=n.formatToParts(t),r=a.find(function(l){return l.type==="timeZoneName"});return(r==null?void 0:r.value)||""}var OK=[qu.display({id:"select",header:function(e){var t=e.table;return x.jsx(ud,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return x.jsx(ud,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),qu.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"}),qu.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?SK.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(RK(e.cell.row.original.tz),")"):""]})},header:"Pattern"}),qu.accessor("next",{cell:function(e){return e.cell.row.original.next?x.jsx(mm,{message:v7(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 ",b7(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"})],TK=function(e){var t=e.queueName,n=p.useState({}),a=n[0],r=n[1],l=we.scheduler.list.useQuery({queueName:t}),i=l.data,o=l.isLoading,s=(i==null?void 0:i.length)===0,u=d7({data:i||[],columns:OK,getCoreRowModel:c7(),state:{rowSelection:a},onRowSelectionChange:r}),f=p.useState(null),c=f[0],d=f[1],h=we.scheduler.bulkRemove.useMutation().mutate;return!o&&s?null:x.jsxs("div",{children:[c?x.jsx(MK,{scheduler:c,queueName:t,onDismiss:function(){return d(null)}}):null,x.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:o?x.jsx(w7,{}):x.jsxs("div",{children:[u.getHeaderGroups().map(function(g,m){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:g.headers.map(function(w){return x.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(m!==0?"pr-10":"pr-3"),children:w.isPlaceholder?null:ld(w.column.columnDef.header,w.getContext())},w.id)})},g.id)}),u.getRowModel().rows.map(function(g,m){return x.jsx(y7,{isLastRow:u.getRowModel().rows.length!==m+1,isSelected:g.getIsSelected(),onClick:function(){return d(g.original)},layoutVariant:"scheduler",children:g.getVisibleCells().map(function(w,v){return x.jsx("div",{className:"flex h-full items-center ".concat(v!==0?"pr-10":"pr-3"),children:ld(w.column.columnDef.cell,w.getContext())},w.id)})},g.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(or,{label:"Delete",colorScheme:"red",icon:x.jsx(Pi,{}),size:"sm",onClick:function(){h({queueName:t,jobSchedulerIds:u.getSelectedRowModel().rows.map(function(g){return g.original.key})}),u.resetRowSelection()}})]})}):null]})},H0=new Intl.NumberFormat("en-US").format,DK=function(){var e,t,n,a,r=jE().id,l=r,i=SM()[0],o=p.useState("completed"),s=o[0],u=o[1],f=we.job.list.useInfiniteQuery({queueName:l,limit:wp,status:s},{getNextPageParam:function(y){return y.nextCursor},enabled:!!l,refetchInterval:xp,retry:Cp}),c=f.data,d=f.fetchNextPage,h=f.isLoading,g=f.isError,m=f.isFetchingNextPage,w=f.hasNextPage;p.useEffect(function(){var y=i.get("status");y&&u(y),!y&&s&&u("completed")},[i,s]);var v=we.queue.byName.useQuery({queueName:l},{enabled:!!l,refetchInterval:xp,retry:Cp}),b=(e=c==null?void 0:c.pages.map(function(y){return y.jobs}).flat())!==null&&e!==void 0?e:[];return x.jsx(J4,{children:v.data===null?x.jsx(hp,{message:"No queue found"}):g?x.jsx(hp,{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:v.data?v.data.displayName:x.jsx(Qc,{className:"h-8 w-52 rounded-md"})}),x.jsxs("div",{className:"flex items-center space-x-2",children:[v.data?x.jsx(xK,{queue:v.data}):null,!((t=v.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:v.data?x.jsxs(x.Fragment,{children:[x.jsxs("p",{className:"text-slate-600",children:[x.jsxs("span",{className:"text-green-800",children:[H0(v.data.client.connectedClients)," ","connected"]})," ","and"," ",x.jsxs("span",{className:"text-red-800",children:[H0(v.data.client.blockedClients)," ","blocked"]})," ","out of"," ",x.jsxs("span",{className:"text-slate-900",children:[H0(v.data.client.maxClients)," max clients"]})]}),x.jsx("p",{className:"text-slate-600",children:"·"}),x.jsxs("p",{className:"text-slate-600",children:[v.data.client.usedMemoryHuman," /"," ",v.data.client.totalMemoryHuman," (",(v.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),x.jsx("p",{className:"text-slate-600",children:"·"}),x.jsxs("p",{className:"text-slate-600",children:["Redis v",v.data.client.version]})]}):x.jsx(Qc,{className:"h-6 w-80"})})}),x.jsxs("div",{className:"space-y-8",children:[((n=v.data)===null||n===void 0?void 0:n.type)==="bullmq"?x.jsx(TK,{queueName:l}):null,x.jsxs("div",{className:"space-y-4",children:[x.jsx(hP,{showCleanAllButton:b.length>0,queueName:l,status:s,queue:v.data}),x.jsx(Kz,{onBottomInView:function(){m||!w||d()},status:s,totalJobs:((a=c==null?void 0:c.pages.at(-1))===null||a===void 0?void 0:a.totalCount)||0,jobs:b.map(function(y){return ms(ms({},y),{status:s})}),isLoading:h,isFetchingNextPage:m,queueName:l})]})]})]})})},Fu=function(e){var t=e.count,n=e.variant,a={active:"text-cyan-600",completed:"text-green-600",failed:"text-red-600",waiting:"text-amber-600"},r={active:x.jsx(C8,{width:16,height:16}),completed:x.jsx(b8,{width:16,height:16}),failed:x.jsx(y8,{width:16,height:16}),waiting:x.jsx(aR,{width:16,height:16})};return x.jsx("div",{children:x.jsx(mm,{message:n.charAt(0).toUpperCase()+n.slice(1),children:x.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(a[n]),children:[x.jsx("p",{className:"text-lg",children:t}),r[n]]})})})},kK=function(e){var t=e.queueName,n=we.queue.byName.useQuery({queueName:t},{refetchInterval:xp,retry:Cp});return n.data?x.jsxs(Vd,{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(Fu,{count:n.data.counts.completed,variant:"completed"}),x.jsx(Fu,{count:n.data.counts.failed,variant:"failed"}),x.jsx(Fu,{count:n.data.counts.active,variant:"active"}),x.jsx(Fu,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},NK=function(){var e=we.queue.list.useQuery().data,t=we.queue.pauseAll.useMutation().mutate,n=we.queue.resumeAll.useMutation().mutate;return x.jsx(J4,{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(lf,{actions:[{label:"Resume all",icon:x.jsx(x8,{}),onSelect:function(){return n()}},{label:"Pause all",icon:x.jsx(w8,{}),onSelect:function(){return t()}}]})})]}),x.jsx("div",{children:e==null?void 0:e.map(function(a,r){return x.jsx("div",{className:(e==null?void 0:e.length)-1!==r?"border-b border-slate-100 dark:border-slate-700":"",children:x.jsx(kK,{queueName:a.name},a.name)},a.name)})})]})})},AK=function(e){var t=e.apiUrl,n=e.basename,a=p.useState(!1),r=a[0],l=a[1],i=p.useState(function(){return new UC})[0],o=p.useState(function(){return we.createClient({links:[DS({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)},[]),r?x.jsx(we.Provider,{client:o,queryClient:i,children:x.jsxs(QC,{client:i,children:[x.jsx(fP,{}),x.jsx(yM,{basename:n,children:x.jsxs(YE,{children:[x.jsx(Gh,{path:"/",element:x.jsx(NK,{})}),x.jsx(Gh,{path:"/:id",element:x.jsx(DK,{})})]})})]})}):null};xC.createRoot(document.getElementById("root")).render(Tm.jsx(p.StrictMode,{children:Tm.jsx(AK,{apiUrl:window.__INITIAL_STATE__.apiUrl,basename:window.__INITIAL_STATE__.basename})}));
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})}));