@concavejs/cli 0.0.1-alpha.4

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.
@@ -0,0 +1 @@
1
+ export const DASHBOARD_HTML = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n \n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Concave Dashboard</title>\n <script type=\"module\">\nfunction UO(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!=\"string\"&&!Array.isArray(a)){for(const o in a)if(o!==\"default\"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}))}(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const o of document.querySelectorAll('link[rel=\"modulepreload\"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type===\"childList\")for(const c of s.addedNodes)c.tagName===\"LINK\"&&c.rel===\"modulepreload\"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin===\"use-credentials\"?s.credentials=\"include\":o.crossOrigin===\"anonymous\"?s.credentials=\"omit\":s.credentials=\"same-origin\",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Pf=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function Ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var Jp={exports:{}},yu={};/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var vS;function VO(){if(vS)return yu;vS=1;var e=Symbol.for(\"react.transitional.element\"),t=Symbol.for(\"react.fragment\");function n(a,o,s){var c=null;if(s!==void 0&&(c=\"\"+s),o.key!==void 0&&(c=\"\"+o.key),\"key\"in o){s={};for(var u in o)u!==\"key\"&&(s[u]=o[u])}else s=o;return o=s.ref,{$$typeof:e,type:a,key:c,ref:o!==void 0?o:null,props:s}}return yu.Fragment=t,yu.jsx=n,yu.jsxs=n,yu}var yS;function WO(){return yS||(yS=1,Jp.exports=VO()),Jp.exports}var g=WO(),eg={exports:{}},vt={};/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var bS;function GO(){if(bS)return vt;bS=1;var e=Symbol.for(\"react.transitional.element\"),t=Symbol.for(\"react.portal\"),n=Symbol.for(\"react.fragment\"),a=Symbol.for(\"react.strict_mode\"),o=Symbol.for(\"react.profiler\"),s=Symbol.for(\"react.consumer\"),c=Symbol.for(\"react.context\"),u=Symbol.for(\"react.forward_ref\"),f=Symbol.for(\"react.suspense\"),m=Symbol.for(\"react.memo\"),v=Symbol.for(\"react.lazy\"),y=Symbol.for(\"react.activity\"),x=Symbol.iterator;function w(P){return P===null||typeof P!=\"object\"?null:(P=x&&P[x]||P[\"@@iterator\"],typeof P==\"function\"?P:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function _(P,Y,G){this.props=P,this.context=Y,this.refs=R,this.updater=G||S}_.prototype.isReactComponent={},_.prototype.setState=function(P,Y){if(typeof P!=\"object\"&&typeof P!=\"function\"&&P!=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,P,Y,\"setState\")},_.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,\"forceUpdate\")};function E(){}E.prototype=_.prototype;function T(P,Y,G){this.props=P,this.context=Y,this.refs=R,this.updater=G||S}var A=T.prototype=new E;A.constructor=T,C(A,_.prototype),A.isPureReactComponent=!0;var D=Array.isArray;function z(){}var O={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function $(P,Y,G){var K=G.ref;return{$$typeof:e,type:P,key:Y,ref:K!==void 0?K:null,props:G}}function V(P,Y){return $(P.type,Y,P.props)}function I(P){return typeof P==\"object\"&&P!==null&&P.$$typeof===e}function M(P){var Y={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+P.replace(/[=:]/g,function(G){return Y[G]})}var q=/\\/+/g;function B(P,Y){return typeof P==\"object\"&&P!==null&&P.key!=null?M(\"\"+P.key):Y.toString(36)}function j(P){switch(P.status){case\"fulfilled\":return P.value;case\"rejected\":throw P.reason;default:switch(typeof P.status==\"string\"?P.then(z,z):(P.status=\"pending\",P.then(function(Y){P.status===\"pending\"&&(P.status=\"fulfilled\",P.value=Y)},function(Y){P.status===\"pending\"&&(P.status=\"rejected\",P.reason=Y)})),P.status){case\"fulfilled\":return P.value;case\"rejected\":throw P.reason}}throw P}function F(P,Y,G,K,te){var fe=typeof P;(fe===\"undefined\"||fe===\"boolean\")&&(P=null);var ne=!1;if(P===null)ne=!0;else switch(fe){case\"bigint\":case\"string\":case\"number\":ne=!0;break;case\"object\":switch(P.$$typeof){case e:case t:ne=!0;break;case v:return ne=P._init,F(ne(P._payload),Y,G,K,te)}}if(ne)return te=te(P),ne=K===\"\"?\".\"+B(P,0):K,D(te)?(G=\"\",ne!=null&&(G=ne.replace(q,\"$&/\")+\"/\"),F(te,Y,G,\"\",function(He){return He})):te!=null&&(I(te)&&(te=V(te,G+(te.key==null||P&&P.key===te.key?\"\":(\"\"+te.key).replace(q,\"$&/\")+\"/\")+ne)),Y.push(te)),1;ne=0;var he=K===\"\"?\".\":K+\":\";if(D(P))for(var Ae=0;Ae<P.length;Ae++)K=P[Ae],fe=he+B(K,Ae),ne+=F(K,Y,G,fe,te);else if(Ae=w(P),typeof Ae==\"function\")for(P=Ae.call(P),Ae=0;!(K=P.next()).done;)K=K.value,fe=he+B(K,Ae++),ne+=F(K,Y,G,fe,te);else if(fe===\"object\"){if(typeof P.then==\"function\")return F(j(P),Y,G,K,te);throw Y=String(P),Error(\"Objects are not valid as a React child (found: \"+(Y===\"[object Object]\"?\"object with keys {\"+Object.keys(P).join(\", \")+\"}\":Y)+\"). If you meant to render a collection of children, use an array instead.\")}return ne}function U(P,Y,G){if(P==null)return P;var K=[],te=0;return F(P,K,\"\",\"\",function(fe){return Y.call(G,fe,te++)}),K}function W(P){if(P._status===-1){var Y=P._result;Y=Y(),Y.then(function(G){(P._status===0||P._status===-1)&&(P._status=1,P._result=G)},function(G){(P._status===0||P._status===-1)&&(P._status=2,P._result=G)}),P._status===-1&&(P._status=0,P._result=Y)}if(P._status===1)return P._result.default;throw P._result}var ee=typeof reportError==\"function\"?reportError:function(P){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var Y=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof P==\"object\"&&P!==null&&typeof P.message==\"string\"?String(P.message):String(P),error:P});if(!window.dispatchEvent(Y))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",P);return}console.error(P)},oe={map:U,forEach:function(P,Y,G){U(P,function(){Y.apply(this,arguments)},G)},count:function(P){var Y=0;return U(P,function(){Y++}),Y},toArray:function(P){return U(P,function(Y){return Y})||[]},only:function(P){if(!I(P))throw Error(\"React.Children.only expected to receive a single React element child.\");return P}};return vt.Activity=y,vt.Children=oe,vt.Component=_,vt.Fragment=n,vt.Profiler=o,vt.PureComponent=T,vt.StrictMode=a,vt.Suspense=f,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,vt.__COMPILER_RUNTIME={__proto__:null,c:function(P){return O.H.useMemoCache(P)}},vt.cache=function(P){return function(){return P.apply(null,arguments)}},vt.cacheSignal=function(){return null},vt.cloneElement=function(P,Y,G){if(P==null)throw Error(\"The argument must be a React element, but you passed \"+P+\".\");var K=C({},P.props),te=P.key;if(Y!=null)for(fe in Y.key!==void 0&&(te=\"\"+Y.key),Y)!H.call(Y,fe)||fe===\"key\"||fe===\"__self\"||fe===\"__source\"||fe===\"ref\"&&Y.ref===void 0||(K[fe]=Y[fe]);var fe=arguments.length-2;if(fe===1)K.children=G;else if(1<fe){for(var ne=Array(fe),he=0;he<fe;he++)ne[he]=arguments[he+2];K.children=ne}return $(P.type,te,K)},vt.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},vt.createElement=function(P,Y,G){var K,te={},fe=null;if(Y!=null)for(K in Y.key!==void 0&&(fe=\"\"+Y.key),Y)H.call(Y,K)&&K!==\"key\"&&K!==\"__self\"&&K!==\"__source\"&&(te[K]=Y[K]);var ne=arguments.length-2;if(ne===1)te.children=G;else if(1<ne){for(var he=Array(ne),Ae=0;Ae<ne;Ae++)he[Ae]=arguments[Ae+2];te.children=he}if(P&&P.defaultProps)for(K in ne=P.defaultProps,ne)te[K]===void 0&&(te[K]=ne[K]);return $(P,fe,te)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(P){return{$$typeof:u,render:P}},vt.isValidElement=I,vt.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:W}},vt.memo=function(P,Y){return{$$typeof:m,type:P,compare:Y===void 0?null:Y}},vt.startTransition=function(P){var Y=O.T,G={};O.T=G;try{var K=P(),te=O.S;te!==null&&te(G,K),typeof K==\"object\"&&K!==null&&typeof K.then==\"function\"&&K.then(z,ee)}catch(fe){ee(fe)}finally{Y!==null&&G.types!==null&&(Y.types=G.types),O.T=Y}},vt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},vt.use=function(P){return O.H.use(P)},vt.useActionState=function(P,Y,G){return O.H.useActionState(P,Y,G)},vt.useCallback=function(P,Y){return O.H.useCallback(P,Y)},vt.useContext=function(P){return O.H.useContext(P)},vt.useDebugValue=function(){},vt.useDeferredValue=function(P,Y){return O.H.useDeferredValue(P,Y)},vt.useEffect=function(P,Y){return O.H.useEffect(P,Y)},vt.useEffectEvent=function(P){return O.H.useEffectEvent(P)},vt.useId=function(){return O.H.useId()},vt.useImperativeHandle=function(P,Y,G){return O.H.useImperativeHandle(P,Y,G)},vt.useInsertionEffect=function(P,Y){return O.H.useInsertionEffect(P,Y)},vt.useLayoutEffect=function(P,Y){return O.H.useLayoutEffect(P,Y)},vt.useMemo=function(P,Y){return O.H.useMemo(P,Y)},vt.useOptimistic=function(P,Y){return O.H.useOptimistic(P,Y)},vt.useReducer=function(P,Y,G){return O.H.useReducer(P,Y,G)},vt.useRef=function(P){return O.H.useRef(P)},vt.useState=function(P){return O.H.useState(P)},vt.useSyncExternalStore=function(P,Y,G){return O.H.useSyncExternalStore(P,Y,G)},vt.useTransition=function(){return O.H.useTransition()},vt.version=\"19.2.0\",vt}var xS;function ds(){return xS||(xS=1,eg.exports=GO()),eg.exports}var h=ds();const Dt=Ya(h),Oh=UO({__proto__:null,default:Dt},[h]);var tg={exports:{}},bu={},ng={exports:{}},rg={};/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var wS;function YO(){return wS||(wS=1,function(e){function t(F,U){var W=F.length;F.push(U);e:for(;0<W;){var ee=W-1>>>1,oe=F[ee];if(0<o(oe,U))F[ee]=U,F[W]=oe,W=ee;else break e}}function n(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var U=F[0],W=F.pop();if(W!==U){F[0]=W;e:for(var ee=0,oe=F.length,P=oe>>>1;ee<P;){var Y=2*(ee+1)-1,G=F[Y],K=Y+1,te=F[K];if(0>o(G,W))K<oe&&0>o(te,G)?(F[ee]=te,F[K]=W,ee=K):(F[ee]=G,F[Y]=W,ee=Y);else if(K<oe&&0>o(te,W))F[ee]=te,F[K]=W,ee=K;else break e}}return U}function o(F,U){var W=F.sortIndex-U.sortIndex;return W!==0?W:F.id-U.id}if(e.unstable_now=void 0,typeof performance==\"object\"&&typeof performance.now==\"function\"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],m=[],v=1,y=null,x=3,w=!1,S=!1,C=!1,R=!1,_=typeof setTimeout==\"function\"?setTimeout:null,E=typeof clearTimeout==\"function\"?clearTimeout:null,T=typeof setImmediate<\"u\"?setImmediate:null;function A(F){for(var U=n(m);U!==null;){if(U.callback===null)a(m);else if(U.startTime<=F)a(m),U.sortIndex=U.expirationTime,t(f,U);else break;U=n(m)}}function D(F){if(C=!1,A(F),!S)if(n(f)!==null)S=!0,z||(z=!0,M());else{var U=n(m);U!==null&&j(D,U.startTime-F)}}var z=!1,O=-1,H=5,$=-1;function V(){return R?!0:!(e.unstable_now()-$<H)}function I(){if(R=!1,z){var F=e.unstable_now();$=F;var U=!0;try{e:{S=!1,C&&(C=!1,E(O),O=-1),w=!0;var W=x;try{t:{for(A(F),y=n(f);y!==null&&!(y.expirationTime>F&&V());){var ee=y.callback;if(typeof ee==\"function\"){y.callback=null,x=y.priorityLevel;var oe=ee(y.expirationTime<=F);if(F=e.unstable_now(),typeof oe==\"function\"){y.callback=oe,A(F),U=!0;break t}y===n(f)&&a(f),A(F)}else a(f);y=n(f)}if(y!==null)U=!0;else{var P=n(m);P!==null&&j(D,P.startTime-F),U=!1}}break e}finally{y=null,x=W,w=!1}U=void 0}}finally{U?M():z=!1}}}var M;if(typeof T==\"function\")M=function(){T(I)};else if(typeof MessageChannel<\"u\"){var q=new MessageChannel,B=q.port2;q.port1.onmessage=I,M=function(){B.postMessage(null)}}else M=function(){_(I,0)};function j(F,U){O=_(function(){F(e.unstable_now())},U)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):H=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(F){switch(x){case 1:case 2:case 3:var U=3;break;default:U=x}var W=x;x=U;try{return F()}finally{x=W}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(F,U){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var W=x;x=F;try{return U()}finally{x=W}},e.unstable_scheduleCallback=function(F,U,W){var ee=e.unstable_now();switch(typeof W==\"object\"&&W!==null?(W=W.delay,W=typeof W==\"number\"&&0<W?ee+W:ee):W=ee,F){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=W+oe,F={id:v++,callback:U,priorityLevel:F,startTime:W,expirationTime:oe,sortIndex:-1},W>ee?(F.sortIndex=W,t(m,F),n(f)===null&&F===n(m)&&(C?(E(O),O=-1):C=!0,j(D,W-ee))):(F.sortIndex=oe,t(f,F),S||w||(S=!0,z||(z=!0,M()))),F},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(F){var U=x;return function(){var W=x;x=U;try{return F.apply(this,arguments)}finally{x=W}}}}(rg)),rg}var SS;function XO(){return SS||(SS=1,ng.exports=YO()),ng.exports}var ag={exports:{}},vr={};/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var CS;function KO(){if(CS)return vr;CS=1;var e=ds();function t(f){var m=\"https://react.dev/errors/\"+f;if(1<arguments.length){m+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+=\"&args[]=\"+encodeURIComponent(arguments[v])}return\"Minified React error #\"+f+\"; visit \"+m+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for(\"react.portal\");function s(f,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:\"\"+y,children:f,containerInfo:m,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,m){if(f===\"font\")return\"\";if(typeof m==\"string\")return m===\"use-credentials\"?m:\"\"}return vr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,vr.createPortal=function(f,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(f,m,null,v)},vr.flushSync=function(f){var m=c.T,v=a.p;try{if(c.T=null,a.p=2,f)return f()}finally{c.T=m,a.p=v,a.d.f()}},vr.preconnect=function(f,m){typeof f==\"string\"&&(m?(m=m.crossOrigin,m=typeof m==\"string\"?m===\"use-credentials\"?m:\"\":void 0):m=null,a.d.C(f,m))},vr.prefetchDNS=function(f){typeof f==\"string\"&&a.d.D(f)},vr.preinit=function(f,m){if(typeof f==\"string\"&&m&&typeof m.as==\"string\"){var v=m.as,y=u(v,m.crossOrigin),x=typeof m.integrity==\"string\"?m.integrity:void 0,w=typeof m.fetchPriority==\"string\"?m.fetchPriority:void 0;v===\"style\"?a.d.S(f,typeof m.precedence==\"string\"?m.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:w}):v===\"script\"&&a.d.X(f,{crossOrigin:y,integrity:x,fetchPriority:w,nonce:typeof m.nonce==\"string\"?m.nonce:void 0})}},vr.preinitModule=function(f,m){if(typeof f==\"string\")if(typeof m==\"object\"&&m!==null){if(m.as==null||m.as===\"script\"){var v=u(m.as,m.crossOrigin);a.d.M(f,{crossOrigin:v,integrity:typeof m.integrity==\"string\"?m.integrity:void 0,nonce:typeof m.nonce==\"string\"?m.nonce:void 0})}}else m==null&&a.d.M(f)},vr.preload=function(f,m){if(typeof f==\"string\"&&typeof m==\"object\"&&m!==null&&typeof m.as==\"string\"){var v=m.as,y=u(v,m.crossOrigin);a.d.L(f,v,{crossOrigin:y,integrity:typeof m.integrity==\"string\"?m.integrity:void 0,nonce:typeof m.nonce==\"string\"?m.nonce:void 0,type:typeof m.type==\"string\"?m.type:void 0,fetchPriority:typeof m.fetchPriority==\"string\"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy==\"string\"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet==\"string\"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes==\"string\"?m.imageSizes:void 0,media:typeof m.media==\"string\"?m.media:void 0})}},vr.preloadModule=function(f,m){if(typeof f==\"string\")if(m){var v=u(m.as,m.crossOrigin);a.d.m(f,{as:typeof m.as==\"string\"&&m.as!==\"script\"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity==\"string\"?m.integrity:void 0})}else a.d.m(f)},vr.requestFormReset=function(f){a.d.r(f)},vr.unstable_batchedUpdates=function(f,m){return f(m)},vr.useFormState=function(f,m,v){return c.H.useFormState(f,m,v)},vr.useFormStatus=function(){return c.H.useHostTransitionStatus()},vr.version=\"19.2.0\",vr}var RS;function Ik(){if(RS)return ag.exports;RS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\"function\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ag.exports=KO(),ag.exports}/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var ES;function QO(){if(ES)return bu;ES=1;var e=XO(),t=ds(),n=Ik();function a(r){var i=\"https://react.dev/errors/\"+r;if(1<arguments.length){i+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+=\"&args[]=\"+encodeURIComponent(arguments[l])}return\"Minified React error #\"+r+\"; visit \"+i+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function u(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function f(r){if(s(r)!==r)throw Error(a(188))}function m(r){var i=r.alternate;if(!i){if(i=s(r),i===null)throw Error(a(188));return i!==r?null:r}for(var l=r,d=i;;){var p=l.return;if(p===null)break;var b=p.alternate;if(b===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===b.child){for(b=p.child;b;){if(b===l)return f(p),r;if(b===d)return f(p),i;b=b.sibling}throw Error(a(188))}if(l.return!==d.return)l=p,d=b;else{for(var k=!1,L=p.child;L;){if(L===l){k=!0,l=p,d=b;break}if(L===d){k=!0,d=p,l=b;break}L=L.sibling}if(!k){for(L=b.child;L;){if(L===l){k=!0,l=b,d=p;break}if(L===d){k=!0,d=b,l=p;break}L=L.sibling}if(!k)throw Error(a(189))}}if(l.alternate!==d)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?r:i}function v(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=v(r),i!==null)return i;r=r.sibling}return null}var y=Object.assign,x=Symbol.for(\"react.element\"),w=Symbol.for(\"react.transitional.element\"),S=Symbol.for(\"react.portal\"),C=Symbol.for(\"react.fragment\"),R=Symbol.for(\"react.strict_mode\"),_=Symbol.for(\"react.profiler\"),E=Symbol.for(\"react.consumer\"),T=Symbol.for(\"react.context\"),A=Symbol.for(\"react.forward_ref\"),D=Symbol.for(\"react.suspense\"),z=Symbol.for(\"react.suspense_list\"),O=Symbol.for(\"react.memo\"),H=Symbol.for(\"react.lazy\"),$=Symbol.for(\"react.activity\"),V=Symbol.for(\"react.memo_cache_sentinel\"),I=Symbol.iterator;function M(r){return r===null||typeof r!=\"object\"?null:(r=I&&r[I]||r[\"@@iterator\"],typeof r==\"function\"?r:null)}var q=Symbol.for(\"react.client.reference\");function B(r){if(r==null)return null;if(typeof r==\"function\")return r.$$typeof===q?null:r.displayName||r.name||null;if(typeof r==\"string\")return r;switch(r){case C:return\"Fragment\";case _:return\"Profiler\";case R:return\"StrictMode\";case D:return\"Suspense\";case z:return\"SuspenseList\";case $:return\"Activity\"}if(typeof r==\"object\")switch(r.$$typeof){case S:return\"Portal\";case T:return r.displayName||\"Context\";case E:return(r._context.displayName||\"Context\")+\".Consumer\";case A:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||\"\",r=r!==\"\"?\"ForwardRef(\"+r+\")\":\"ForwardRef\"),r;case O:return i=r.displayName||null,i!==null?i:B(r.type)||\"Memo\";case H:i=r._payload,r=r._init;try{return B(r(i))}catch{}}return null}var j=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ee=[],oe=-1;function P(r){return{current:r}}function Y(r){0>oe||(r.current=ee[oe],ee[oe]=null,oe--)}function G(r,i){oe++,ee[oe]=r.current,r.current=i}var K=P(null),te=P(null),fe=P(null),ne=P(null);function he(r,i){switch(G(fe,i),G(te,r),G(K,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?qw(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=qw(i),r=$w(i,r);else switch(r){case\"svg\":r=1;break;case\"math\":r=2;break;default:r=0}}Y(K),G(K,r)}function Ae(){Y(K),Y(te),Y(fe)}function He(r){r.memoizedState!==null&&G(ne,r);var i=K.current,l=$w(i,r.type);i!==l&&(G(te,r),G(K,l))}function Ye(r){te.current===r&&(Y(K),Y(te)),ne.current===r&&(Y(ne),mu._currentValue=W)}var tt,ze;function Ke(r){if(tt===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\\n( *(at )?)/);tt=i&&i[1]||\"\",ze=-1<l.stack.indexOf(`\n at`)?\" (<anonymous>)\":-1<l.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\n`+tt+r+ze}var le=!1;function ke(r,i){if(!r||le)return\"\";le=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(ge){var me=ge}Reflect.construct(r,[],Ee)}else{try{Ee.call()}catch(ge){me=ge}r.call(Ee.prototype)}}else{try{throw Error()}catch(ge){me=ge}(Ee=r())&&typeof Ee.catch==\"function\"&&Ee.catch(function(){})}}catch(ge){if(ge&&me&&typeof ge.stack==\"string\")return[ge.stack,me.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,\"name\");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var b=d.DetermineComponentFrameRoot(),k=b[0],L=b[1];if(k&&L){var X=k.split(`\n`),de=L.split(`\n`);for(p=d=0;d<X.length&&!X[d].includes(\"DetermineComponentFrameRoot\");)d++;for(;p<de.length&&!de[p].includes(\"DetermineComponentFrameRoot\");)p++;if(d===X.length||p===de.length)for(d=X.length-1,p=de.length-1;1<=d&&0<=p&&X[d]!==de[p];)p--;for(;1<=d&&0<=p;d--,p--)if(X[d]!==de[p]){if(d!==1||p!==1)do if(d--,p--,0>p||X[d]!==de[p]){var we=`\n`+X[d].replace(\" at new \",\" at \");return r.displayName&&we.includes(\"<anonymous>\")&&(we=we.replace(\"<anonymous>\",r.displayName)),we}while(1<=d&&0<=p);break}}}finally{le=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:\"\")?Ke(l):\"\"}function re(r,i){switch(r.tag){case 26:case 27:case 5:return Ke(r.type);case 16:return Ke(\"Lazy\");case 13:return r.child!==i&&i!==null?Ke(\"Suspense Fallback\"):Ke(\"Suspense\");case 19:return Ke(\"SuspenseList\");case 0:case 15:return ke(r.type,!1);case 11:return ke(r.type.render,!1);case 1:return ke(r.type,!0);case 31:return Ke(\"Activity\");default:return\"\"}}function ie(r){try{var i=\"\",l=null;do i+=re(r,l),l=r,r=r.return;while(r);return i}catch(d){return`\nError generating stack: `+d.message+`\n`+d.stack}}var be=Object.prototype.hasOwnProperty,Ne=e.unstable_scheduleCallback,qe=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,Be=e.unstable_requestPaint,et=e.unstable_now,ht=e.unstable_getCurrentPriorityLevel,Ve=e.unstable_ImmediatePriority,Ht=e.unstable_UserBlockingPriority,mt=e.unstable_NormalPriority,dt=e.unstable_LowPriority,Sn=e.unstable_IdlePriority,jt=e.log,Mt=e.unstable_setDisableYieldValue,yt=null,Lt=null;function hn(r){if(typeof jt==\"function\"&&Mt(r),Lt&&typeof Lt.setStrictMode==\"function\")try{Lt.setStrictMode(yt,r)}catch{}}var cn=Math.clz32?Math.clz32:xr,Vr=Math.log,kn=Math.LN2;function xr(r){return r>>>=0,r===0?32:31-(Vr(r)/kn|0)|0}var In=256,zr=262144,Pr=4194304;function qt(r){var i=r&42;if(i!==0)return i;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function kt(r,i,l){var d=r.pendingLanes;if(d===0)return 0;var p=0,b=r.suspendedLanes,k=r.pingedLanes;r=r.warmLanes;var L=d&134217727;return L!==0?(d=L&~b,d!==0?p=qt(d):(k&=L,k!==0?p=qt(k):l||(l=L&~r,l!==0&&(p=qt(l))))):(L=d&~b,L!==0?p=qt(L):k!==0?p=qt(k):l||(l=d&~r,l!==0&&(p=qt(l)))),p===0?0:i!==0&&i!==p&&(i&b)===0&&(b=p&-p,l=i&-i,b>=l||b===32&&(l&4194048)!==0)?i:p}function Xt(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function wr(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Vn(){var r=Pr;return Pr<<=1,(Pr&62914560)===0&&(Pr=4194304),r}function at(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function Wt(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function en(r,i,l,d,p,b){var k=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var L=r.entanglements,X=r.expirationTimes,de=r.hiddenUpdates;for(l=k&~l;0<l;){var we=31-cn(l),Ee=1<<we;L[we]=0,X[we]=-1;var me=de[we];if(me!==null)for(de[we]=null,we=0;we<me.length;we++){var ge=me[we];ge!==null&&(ge.lane&=-536870913)}l&=~Ee}d!==0&&Wr(r,d,0),b!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=b&~(k&~i))}function Wr(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var d=31-cn(i);r.entangledLanes|=i,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function Wn(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-cn(l),p=1<<d;p&i|r[d]&i&&(r[d]|=i),l&=~p}}function Sr(r,i){var l=i&-i;return l=(l&42)!==0?1:mn(l),(l&(r.suspendedLanes|i))!==0?0:l}function mn(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Qa(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Cn(){var r=U.p;return r!==0?r:(r=window.event,r===void 0?32:uS(r.type))}function _n(r,i){var l=U.p;try{return U.p=r,i()}finally{U.p=l}}var Rn=Math.random().toString(36).slice(2),Tn=\"__reactFiber$\"+Rn,jn=\"__reactProps$\"+Rn,ur=\"__reactContainer$\"+Rn,Gr=\"__reactEvents$\"+Rn,oo=\"__reactListeners$\"+Rn,hl=\"__reactHandles$\"+Rn,gs=\"__reactResources$\"+Rn,dr=\"__reactMarker$\"+Rn;function Za(r){delete r[Tn],delete r[jn],delete r[Gr],delete r[oo],delete r[hl]}function Yr(r){var i=r[Tn];if(i)return i;for(var l=r.parentNode;l;){if(i=l[ur]||l[Tn]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=Yw(r);r!==null;){if(l=r[Tn])return l;r=Yw(r)}return i}r=l,l=r.parentNode}return null}function Xr(r){if(r=r[Tn]||r[ur]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Kr(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function Cr(r){var i=r[gs];return i||(i=r[gs]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function En(r){r[dr]=!0}var vs=new Set,ml={};function Na(r,i){Qr(r,i),Qr(r+\"Capture\",i)}function Qr(r,i){for(ml[r]=i,r=0;r<i.length;r++)vs.add(i[r])}var Oa=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]*$\"),pl={},gl={};function vl(r){return be.call(gl,r)?!0:be.call(pl,r)?!1:Oa.test(r)?gl[r]=!0:(pl[r]=!0,!1)}function Da(r,i,l){if(vl(i))if(l===null)r.removeAttribute(i);else{switch(typeof l){case\"undefined\":case\"function\":case\"symbol\":r.removeAttribute(i);return;case\"boolean\":var d=i.toLowerCase().slice(0,5);if(d!==\"data-\"&&d!==\"aria-\"){r.removeAttribute(i);return}}r.setAttribute(i,\"\"+l)}}function Rr(r,i,l){if(l===null)r.removeAttribute(i);else{switch(typeof l){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":r.removeAttribute(i);return}r.setAttribute(i,\"\"+l)}}function Mn(r,i,l,d){if(d===null)r.removeAttribute(l);else{switch(typeof d){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":r.removeAttribute(l);return}r.setAttributeNS(i,l,\"\"+d)}}function tr(r){switch(typeof r){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return r;case\"object\":return r;default:return\"\"}}function yi(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()===\"input\"&&(i===\"checkbox\"||i===\"radio\")}function ys(r,i,l){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof d<\"u\"&&typeof d.get==\"function\"&&typeof d.set==\"function\"){var p=d.get,b=d.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(k){l=\"\"+k,b.call(this,k)}}),Object.defineProperty(r,i,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(k){l=\"\"+k},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function ba(r){if(!r._valueTracker){var i=yi(r)?\"checked\":\"value\";r._valueTracker=ys(r,i,\"\"+r[i])}}function fr(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),d=\"\";return r&&(d=yi(r)?r.checked?\"true\":\"false\":r.value),r=d,r!==l?(i.setValue(r),!0):!1}function hr(r){if(r=r||(typeof document<\"u\"?document:void 0),typeof r>\"u\")return null;try{return r.activeElement||r.body}catch{return r.body}}var bs=/[\\n\"\\\\]/g;function zn(r){return r.replace(bs,function(i){return\"\\\\\"+i.charCodeAt(0).toString(16)+\" \"})}function bi(r,i,l,d,p,b,k,L){r.name=\"\",k!=null&&typeof k!=\"function\"&&typeof k!=\"symbol\"&&typeof k!=\"boolean\"?r.type=k:r.removeAttribute(\"type\"),i!=null?k===\"number\"?(i===0&&r.value===\"\"||r.value!=i)&&(r.value=\"\"+tr(i)):r.value!==\"\"+tr(i)&&(r.value=\"\"+tr(i)):k!==\"submit\"&&k!==\"reset\"||r.removeAttribute(\"value\"),i!=null?Ja(r,k,tr(i)):l!=null?Ja(r,k,tr(l)):d!=null&&r.removeAttribute(\"value\"),p==null&&b!=null&&(r.defaultChecked=!!b),p!=null&&(r.checked=p&&typeof p!=\"function\"&&typeof p!=\"symbol\"),L!=null&&typeof L!=\"function\"&&typeof L!=\"symbol\"&&typeof L!=\"boolean\"?r.name=\"\"+tr(L):r.removeAttribute(\"name\")}function Yn(r,i,l,d,p,b,k,L){if(b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"&&typeof b!=\"boolean\"&&(r.type=b),i!=null||l!=null){if(!(b!==\"submit\"&&b!==\"reset\"||i!=null)){ba(r);return}l=l!=null?\"\"+tr(l):\"\",i=i!=null?\"\"+tr(i):l,L||i===r.value||(r.value=i),r.defaultValue=i}d=d??p,d=typeof d!=\"function\"&&typeof d!=\"symbol\"&&!!d,r.checked=L?r.checked:!!d,r.defaultChecked=!!d,k!=null&&typeof k!=\"function\"&&typeof k!=\"symbol\"&&typeof k!=\"boolean\"&&(r.name=k),ba(r)}function Ja(r,i,l){i===\"number\"&&hr(r.ownerDocument)===r||r.defaultValue===\"\"+l||(r.defaultValue=\"\"+l)}function xa(r,i,l,d){if(r=r.options,i){i={};for(var p=0;p<l.length;p++)i[\"$\"+l[p]]=!0;for(l=0;l<r.length;l++)p=i.hasOwnProperty(\"$\"+r[l].value),r[l].selected!==p&&(r[l].selected=p),p&&d&&(r[l].defaultSelected=!0)}else{for(l=\"\"+tr(l),i=null,p=0;p<r.length;p++){if(r[p].value===l){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function xs(r,i,l){if(i!=null&&(i=\"\"+tr(i),i!==r.value&&(r.value=i),l==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=l!=null?\"\"+tr(l):\"\"}function yl(r,i,l,d){if(i==null){if(d!=null){if(l!=null)throw Error(a(92));if(j(d)){if(1<d.length)throw Error(a(93));d=d[0]}l=d}l==null&&(l=\"\"),i=l}l=tr(i),r.defaultValue=l,d=r.textContent,d===l&&d!==\"\"&&d!==null&&(r.value=d),ba(r)}function ja(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var Zr=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 wa(r,i,l){var d=i.indexOf(\"--\")===0;l==null||typeof l==\"boolean\"||l===\"\"?d?r.setProperty(i,\"\"):i===\"float\"?r.cssFloat=\"\":r[i]=\"\":d?r.setProperty(i,l):typeof l!=\"number\"||l===0||Zr.has(i)?i===\"float\"?r.cssFloat=l:r[i]=(\"\"+l).trim():r[i]=l+\"px\"}function mr(r,i,l){if(i!=null&&typeof i!=\"object\")throw Error(a(62));if(r=r.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||i!=null&&i.hasOwnProperty(d)||(d.indexOf(\"--\")===0?r.setProperty(d,\"\"):d===\"float\"?r.cssFloat=\"\":r[d]=\"\");for(var p in i)d=i[p],i.hasOwnProperty(p)&&l[p]!==d&&wa(r,p,d)}else for(var b in i)i.hasOwnProperty(b)&&wa(r,b,i[b])}function ve(r){if(r.indexOf(\"-\")===-1)return!1;switch(r){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 un=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\"]]),xi=/^[\\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 so(r){return xi.test(\"\"+r)?\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\":r}function Lr(){}var wi=null;function ws(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Si=null,Se=null;function nr(r){var i=Xr(r);if(i&&(r=i.stateNode)){var l=r[jn]||null;e:switch(r=i.stateNode,i.type){case\"input\":if(bi(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type===\"radio\"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name=\"'+zn(\"\"+i)+'\"][type=\"radio\"]'),i=0;i<l.length;i++){var d=l[i];if(d!==r&&d.form===r.form){var p=d[jn]||null;if(!p)throw Error(a(90));bi(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<l.length;i++)d=l[i],d.form===r.form&&fr(d)}break e;case\"textarea\":xs(r,l.value,l.defaultValue);break e;case\"select\":i=l.value,i!=null&&xa(r,!!l.multiple,i,!1)}}}var yn=!1;function Ci(r,i,l){if(yn)return r(i,l);yn=!0;try{var d=r(i);return d}finally{if(yn=!1,(Si!==null||Se!==null)&&(mf(),Si&&(i=Si,r=Se,Se=Si=null,nr(i),r)))for(i=0;i<r.length;i++)nr(r[i])}}function za(r,i){var l=r.stateNode;if(l===null)return null;var d=l[jn]||null;if(d===null)return null;l=d[i];e:switch(i){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(d=!d.disabled)||(r=r.type,d=!(r===\"button\"||r===\"input\"||r===\"select\"||r===\"textarea\")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!=\"function\")throw Error(a(231,i,typeof l));return l}var Xn=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),Kn=!1;if(Xn)try{var Er={};Object.defineProperty(Er,\"passive\",{get:function(){Kn=!0}}),window.addEventListener(\"test\",Er,Er),window.removeEventListener(\"test\",Er,Er)}catch{Kn=!1}var Sa=null,ei=null,lo=null;function bl(){if(lo)return lo;var r,i=ei,l=i.length,d,p=\"value\"in Sa?Sa.value:Sa.textContent,b=p.length;for(r=0;r<l&&i[r]===p[r];r++);var k=l-r;for(d=1;d<=k&&i[l-d]===p[b-d];d++);return lo=p.slice(r,1<d?1-d:void 0)}function se(r){var i=r.keyCode;return\"charCode\"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function _e(){return!0}function Pe(){return!1}function De(r){function i(l,d,p,b,k){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var L in r)r.hasOwnProperty(L)&&(l=r[L],this[L]=l?l(b):b[L]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?_e:Pe,this.isPropagationStopped=Pe,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!=\"unknown\"&&(l.returnValue=!1),this.isDefaultPrevented=_e)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!=\"unknown\"&&(l.cancelBubble=!0),this.isPropagationStopped=_e)},persist:function(){},isPersistent:_e}),i}var Me={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Le=De(Me),rt=y({},Me,{view:0,detail:0}),$e=De(rt),Xe,ft,tn,nn=y({},rt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uo,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return\"movementX\"in r?r.movementX:(r!==tn&&(tn&&r.type===\"mousemove\"?(Xe=r.screenX-tn.screenX,ft=r.screenY-tn.screenY):ft=Xe=0,tn=r),Xe)},movementY:function(r){return\"movementY\"in r?r.movementY:ft}}),Ft=De(nn),At=y({},nn,{dataTransfer:0}),dn=De(At),pt=y({},rt,{relatedTarget:0}),Kt=De(pt),Ri=y({},Me,{animationName:0,elapsedTime:0,pseudoElement:0}),An=De(Ri),Ei=y({},Me,{clipboardData:function(r){return\"clipboardData\"in r?r.clipboardData:window.clipboardData}}),Bt=De(Ei),Hn=y({},Me,{data:0}),pr=De(Hn),Ca={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Jr={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\"},co={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function ki(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=co[r])?!!i[r]:!1}function uo(){return ki}var gr=y({},rt,{key:function(r){if(r.key){var i=Ca[r.key]||r.key;if(i!==\"Unidentified\")return i}return r.type===\"keypress\"?(r=se(r),r===13?\"Enter\":String.fromCharCode(r)):r.type===\"keydown\"||r.type===\"keyup\"?Jr[r.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uo,charCode:function(r){return r.type===\"keypress\"?se(r):0},keyCode:function(r){return r.type===\"keydown\"||r.type===\"keyup\"?r.keyCode:0},which:function(r){return r.type===\"keypress\"?se(r):r.type===\"keydown\"||r.type===\"keyup\"?r.keyCode:0}}),rr=De(gr),Qn=y({},nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=De(Qn),_i=y({},rt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uo}),Oc=De(_i),xl=y({},Me,{propertyName:0,elapsedTime:0,pseudoElement:0}),Td=De(xl),wl=y({},nn,{deltaX:function(r){return\"deltaX\"in r?r.deltaX:\"wheelDeltaX\"in r?-r.wheelDeltaX:0},deltaY:function(r){return\"deltaY\"in r?r.deltaY:\"wheelDeltaY\"in r?-r.wheelDeltaY:\"wheelDelta\"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Sl=De(wl),pm=y({},Me,{newState:0,oldState:0}),Md=De(pm),_r=[9,13,27,32],Ss=Xn&&\"CompositionEvent\"in window,ti=null;Xn&&\"documentMode\"in document&&(ti=document.documentMode);var fo=Xn&&\"TextEvent\"in window&&!ti,Dc=Xn&&(!Ss||ti&&8<ti&&11>=ti),bn=\" \",jc=!1;function zc(r,i){switch(r){case\"keyup\":return _r.indexOf(i.keyCode)!==-1;case\"keydown\":return i.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Cl(r){return r=r.detail,typeof r==\"object\"&&\"data\"in r?r.data:null}var ea=!1;function Rl(r,i){switch(r){case\"compositionend\":return Cl(i);case\"keypress\":return i.which!==32?null:(jc=!0,bn);case\"textInput\":return r=i.data,r===bn&&jc?null:r;default:return null}}function ni(r,i){if(ea)return r===\"compositionend\"||!Ss&&zc(r,i)?(r=bl(),lo=ei=Sa=null,ea=!1,r):null;switch(r){case\"paste\":return null;case\"keypress\":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case\"compositionend\":return Dc&&i.locale!==\"ko\"?null:i.data;default:return null}}var ho={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 mo(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i===\"input\"?!!ho[r.type]:i===\"textarea\"}function po(r,i,l,d){Si?Se?Se.push(d):Se=[d]:Si=d,i=wf(i,\"onChange\"),0<i.length&&(l=new Le(\"onChange\",\"change\",null,l,d),r.push({event:l,listeners:i}))}var Pa=null,ta=null;function Ad(r){jw(r,0)}function Tr(r){var i=Kr(r);if(fr(i))return r}function Nd(r,i){if(r===\"change\")return i}var El=!1;if(Xn){var Cs;if(Xn){var kl=\"oninput\"in document;if(!kl){var Ti=document.createElement(\"div\");Ti.setAttribute(\"oninput\",\"return;\"),kl=typeof Ti.oninput==\"function\"}Cs=kl}else Cs=!1;El=Cs&&(!document.documentMode||9<document.documentMode)}function Rs(){Pa&&(Pa.detachEvent(\"onpropertychange\",Od),ta=Pa=null)}function Od(r){if(r.propertyName===\"value\"&&Tr(ta)){var i=[];po(i,ta,r,ws(r)),Ci(Ad,i)}}function Pc(r,i,l){r===\"focusin\"?(Rs(),Pa=i,ta=l,Pa.attachEvent(\"onpropertychange\",Od)):r===\"focusout\"&&Rs()}function go(r){if(r===\"selectionchange\"||r===\"keyup\"||r===\"keydown\")return Tr(ta)}function Dd(r,i){if(r===\"click\")return Tr(i)}function jd(r,i){if(r===\"input\"||r===\"change\")return Tr(i)}function gm(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Mr=typeof Object.is==\"function\"?Object.is:gm;function Es(r,i){if(Mr(r,i))return!0;if(typeof r!=\"object\"||r===null||typeof i!=\"object\"||i===null)return!1;var l=Object.keys(r),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!be.call(i,p)||!Mr(r[p],i[p]))return!1}return!0}function Mi(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function zd(r,i){var l=Mi(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=i&&d>=i)return{node:l,offset:i-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Mi(l)}}function Pd(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Pd(r,i.parentNode):\"contains\"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function _l(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=hr(r.document);i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href==\"string\"}catch{l=!1}if(l)r=i.contentWindow;else break;i=hr(r.document)}return i}function Lc(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i===\"input\"&&(r.type===\"text\"||r.type===\"search\"||r.type===\"tel\"||r.type===\"url\"||r.type===\"password\")||i===\"textarea\"||r.contentEditable===\"true\")}var vm=Xn&&\"documentMode\"in document&&11>=document.documentMode,ri=null,ks=null,_s=null,Ar=!1;function La(r,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ar||ri==null||ri!==hr(d)||(d=ri,\"selectionStart\"in d&&Lc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),_s&&Es(_s,d)||(_s=d,d=wf(ks,\"onSelect\"),0<d.length&&(i=new Le(\"onSelect\",\"select\",null,i,l),r.push({event:i,listeners:d}),i.target=ri)))}function Ai(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l[\"Webkit\"+r]=\"webkit\"+i,l[\"Moz\"+r]=\"moz\"+i,l}var vo={animationend:Ai(\"Animation\",\"AnimationEnd\"),animationiteration:Ai(\"Animation\",\"AnimationIteration\"),animationstart:Ai(\"Animation\",\"AnimationStart\"),transitionrun:Ai(\"Transition\",\"TransitionRun\"),transitionstart:Ai(\"Transition\",\"TransitionStart\"),transitioncancel:Ai(\"Transition\",\"TransitionCancel\"),transitionend:Ai(\"Transition\",\"TransitionEnd\")},Ia={},yo={};Xn&&(yo=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),\"TransitionEvent\"in window||delete vo.transitionend.transition);function ai(r){if(Ia[r])return Ia[r];if(!vo[r])return r;var i=vo[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in yo)return Ia[r]=i[l];return r}var bo=ai(\"animationend\"),Ld=ai(\"animationiteration\"),Tl=ai(\"animationstart\"),Ts=ai(\"transitionrun\"),ym=ai(\"transitionstart\"),bm=ai(\"transitioncancel\"),Ms=ai(\"transitionend\"),As=new Map,xo=\"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(\" \");xo.push(\"scrollEnd\");function Ir(r,i){As.set(r,i),Na(i,[r])}var Ml=typeof reportError==\"function\"?reportError:function(r){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var i=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof r==\"object\"&&r!==null&&typeof r.message==\"string\"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",r);return}console.error(r)},Hr=[],wo=0,Ic=0;function Ns(){for(var r=wo,i=Ic=wo=0;i<r;){var l=Hr[i];Hr[i++]=null;var d=Hr[i];Hr[i++]=null;var p=Hr[i];Hr[i++]=null;var b=Hr[i];if(Hr[i++]=null,d!==null&&p!==null){var k=d.pending;k===null?p.next=p:(p.next=k.next,k.next=p),d.pending=p}b!==0&&Id(l,p,b)}}function Os(r,i,l,d){Hr[wo++]=r,Hr[wo++]=i,Hr[wo++]=l,Hr[wo++]=d,Ic|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function Hc(r,i,l,d){return Os(r,i,l,d),Ds(r)}function Ni(r,i){return Os(r,null,null,i),Ds(r)}function Id(r,i,l){r.lanes|=l;var d=r.alternate;d!==null&&(d.lanes|=l);for(var p=!1,b=r.return;b!==null;)b.childLanes|=l,d=b.alternate,d!==null&&(d.childLanes|=l),b.tag===22&&(r=b.stateNode,r===null||r._visibility&1||(p=!0)),r=b,b=b.return;return r.tag===3?(b=r.stateNode,p&&i!==null&&(p=31-cn(l),r=b.hiddenUpdates,d=r[p],d===null?r[p]=[i]:d.push(i),i.lane=l|536870912),b):null}function Ds(r){if(50<su)throw su=0,Cp=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var So={};function xm(r,i,l,d){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nr(r,i,l,d){return new xm(r,i,l,d)}function qc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ha(r,i){var l=r.alternate;return l===null?(l=Nr(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function N(r,i){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,i=l.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function J(r,i,l,d,p,b){var k=0;if(d=r,typeof r==\"function\")qc(r)&&(k=1);else if(typeof r==\"string\")k=OO(r,l,K.current)?26:r===\"html\"||r===\"head\"||r===\"body\"?27:5;else e:switch(r){case $:return r=Nr(31,l,i,p),r.elementType=$,r.lanes=b,r;case C:return Z(l.children,p,b,i);case R:k=8,p|=24;break;case _:return r=Nr(12,l,i,p|2),r.elementType=_,r.lanes=b,r;case D:return r=Nr(13,l,i,p),r.elementType=D,r.lanes=b,r;case z:return r=Nr(19,l,i,p),r.elementType=z,r.lanes=b,r;default:if(typeof r==\"object\"&&r!==null)switch(r.$$typeof){case T:k=10;break e;case E:k=9;break e;case A:k=11;break e;case O:k=14;break e;case H:k=16,d=null;break e}k=29,l=Error(a(130,r===null?\"null\":typeof r,\"\")),d=null}return i=Nr(k,l,i,p),i.elementType=r,i.type=d,i.lanes=b,i}function Z(r,i,l,d){return r=Nr(7,r,d,i),r.lanes=l,r}function ye(r,i,l){return r=Nr(6,r,null,i),r.lanes=l,r}function xe(r){var i=Nr(18,null,null,0);return i.stateNode=r,i}function Re(r,i,l){return i=Nr(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var ce=new WeakMap;function pe(r,i){if(typeof r==\"object\"&&r!==null){var l=ce.get(r);return l!==void 0?l:(i={value:r,source:i,stack:ie(i)},ce.set(r,i),i)}return{value:r,source:i,stack:ie(i)}}var Te=[],je=0,Ue=null,ut=0,Qe=[],Ze=0,gt=null,Tt=1,Yt=\"\";function It(r,i){Te[je++]=ut,Te[je++]=Ue,Ue=r,ut=i}function Oi(r,i,l){Qe[Ze++]=Tt,Qe[Ze++]=Yt,Qe[Ze++]=gt,gt=r;var d=Tt;r=Yt;var p=32-cn(d)-1;d&=~(1<<p),l+=1;var b=32-cn(i)+p;if(30<b){var k=p-p%5;b=(d&(1<<k)-1).toString(32),d>>=k,p-=k,Tt=1<<32-cn(i)+p|l<<p|d,Yt=b+r}else Tt=1<<b|l<<p|d,Yt=r}function Di(r){r.return!==null&&(It(r,1),Oi(r,1,0))}function ji(r){for(;r===Ue;)Ue=Te[--je],Te[je]=null,ut=Te[--je],Te[je]=null;for(;r===gt;)gt=Qe[--Ze],Qe[Ze]=null,Yt=Qe[--Ze],Qe[Ze]=null,Tt=Qe[--Ze],Qe[Ze]=null}function na(r,i){Qe[Ze++]=Tt,Qe[Ze++]=Yt,Qe[Ze++]=gt,Tt=i.id,Yt=i.overflow,gt=r}var xn=null,$t=null,bt=!1,ra=null,ar=!1,js=Error(a(519));function Co(r){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?\"text\":\"HTML\",\"\"));throw $c(pe(i,r)),js}function w1(r){var i=r.stateNode,l=r.type,d=r.memoizedProps;switch(i[Tn]=r,i[jn]=d,l){case\"dialog\":Ot(\"cancel\",i),Ot(\"close\",i);break;case\"iframe\":case\"object\":case\"embed\":Ot(\"load\",i);break;case\"video\":case\"audio\":for(l=0;l<cu.length;l++)Ot(cu[l],i);break;case\"source\":Ot(\"error\",i);break;case\"img\":case\"image\":case\"link\":Ot(\"error\",i),Ot(\"load\",i);break;case\"details\":Ot(\"toggle\",i);break;case\"input\":Ot(\"invalid\",i),Yn(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case\"select\":Ot(\"invalid\",i);break;case\"textarea\":Ot(\"invalid\",i),yl(i,d.value,d.defaultValue,d.children)}l=d.children,typeof l!=\"string\"&&typeof l!=\"number\"&&typeof l!=\"bigint\"||i.textContent===\"\"+l||d.suppressHydrationWarning===!0||Iw(i.textContent,l)?(d.popover!=null&&(Ot(\"beforetoggle\",i),Ot(\"toggle\",i)),d.onScroll!=null&&Ot(\"scroll\",i),d.onScrollEnd!=null&&Ot(\"scrollend\",i),d.onClick!=null&&(i.onclick=Lr),i=!0):i=!1,i||Co(r,!0)}function S1(r){for(xn=r.return;xn;)switch(xn.tag){case 5:case 31:case 13:ar=!1;return;case 27:case 3:ar=!0;return;default:xn=xn.return}}function Al(r){if(r!==xn)return!1;if(!bt)return S1(r),bt=!0,!1;var i=r.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=r.type,l=!(l!==\"form\"&&l!==\"button\")||Ip(r.type,r.memoizedProps)),l=!l),l&&$t&&Co(r),S1(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));$t=Gw(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));$t=Gw(r)}else i===27?(i=$t,Lo(r.type)?(r=Bp,Bp=null,$t=r):$t=i):$t=xn?Ea(r.stateNode.nextSibling):null;return!0}function zs(){$t=xn=null,bt=!1}function wm(){var r=ra;return r!==null&&(Br===null?Br=r:Br.push.apply(Br,r),ra=null),r}function $c(r){ra===null?ra=[r]:ra.push(r)}var Sm=P(null),Ps=null,zi=null;function Ro(r,i,l){G(Sm,i._currentValue),i._currentValue=l}function Pi(r){r._currentValue=Sm.current,Y(Sm)}function Cm(r,i,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===l)break;r=r.return}}function Rm(r,i,l,d){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var b=p.dependencies;if(b!==null){var k=p.child;b=b.firstContext;e:for(;b!==null;){var L=b;b=p;for(var X=0;X<i.length;X++)if(L.context===i[X]){b.lanes|=l,L=b.alternate,L!==null&&(L.lanes|=l),Cm(b.return,l,r),d||(k=null);break e}b=L.next}}else if(p.tag===18){if(k=p.return,k===null)throw Error(a(341));k.lanes|=l,b=k.alternate,b!==null&&(b.lanes|=l),Cm(k,l,r),k=null}else k=p.child;if(k!==null)k.return=p;else for(k=p;k!==null;){if(k===r){k=null;break}if(p=k.sibling,p!==null){p.return=k.return,k=p;break}k=k.return}p=k}}function Nl(r,i,l,d){r=null;for(var p=i,b=!1;p!==null;){if(!b){if((p.flags&524288)!==0)b=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var k=p.alternate;if(k===null)throw Error(a(387));if(k=k.memoizedProps,k!==null){var L=p.type;Mr(p.pendingProps.value,k.value)||(r!==null?r.push(L):r=[L])}}else if(p===ne.current){if(k=p.alternate,k===null)throw Error(a(387));k.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(mu):r=[mu])}p=p.return}r!==null&&Rm(i,r,l,d),i.flags|=262144}function Hd(r){for(r=r.firstContext;r!==null;){if(!Mr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ls(r){Ps=r,zi=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function ir(r){return C1(Ps,r)}function qd(r,i){return Ps===null&&Ls(r),C1(r,i)}function C1(r,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},zi===null){if(r===null)throw Error(a(308));zi=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else zi=zi.next=i;return l}var TN=typeof AbortController<\"u\"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(l,d){r.push(d)}};this.abort=function(){i.aborted=!0,r.forEach(function(l){return l()})}},MN=e.unstable_scheduleCallback,AN=e.unstable_NormalPriority,qn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Em(){return{controller:new TN,data:new Map,refCount:0}}function Fc(r){r.refCount--,r.refCount===0&&MN(AN,function(){r.controller.abort()})}var Bc=null,km=0,Ol=0,Dl=null;function NN(r,i){if(Bc===null){var l=Bc=[];km=0,Ol=Mp(),Dl={status:\"pending\",value:void 0,then:function(d){l.push(d)}}}return km++,i.then(R1,R1),i}function R1(){if(--km===0&&Bc!==null){Dl!==null&&(Dl.status=\"fulfilled\");var r=Bc;Bc=null,Ol=0,Dl=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function ON(r,i){var l=[],d={status:\"pending\",value:null,reason:null,then:function(p){l.push(p)}};return r.then(function(){d.status=\"fulfilled\",d.value=i;for(var p=0;p<l.length;p++)(0,l[p])(i)},function(p){for(d.status=\"rejected\",d.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),d}var E1=F.S;F.S=function(r,i){lw=et(),typeof i==\"object\"&&i!==null&&typeof i.then==\"function\"&&NN(r,i),E1!==null&&E1(r,i)};var Is=P(null);function _m(){var r=Is.current;return r!==null?r:sn.pooledCache}function $d(r,i){i===null?G(Is,Is.current):G(Is,i.pool)}function k1(){var r=_m();return r===null?null:{parent:qn._currentValue,pool:r}}var jl=Error(a(460)),Tm=Error(a(474)),Fd=Error(a(542)),Bd={then:function(){}};function _1(r){return r=r.status,r===\"fulfilled\"||r===\"rejected\"}function T1(r,i,l){switch(l=r[l],l===void 0?r.push(i):l!==i&&(i.then(Lr,Lr),i=l),i.status){case\"fulfilled\":return i.value;case\"rejected\":throw r=i.reason,A1(r),r;default:if(typeof i.status==\"string\")i.then(Lr,Lr);else{if(r=sn,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status=\"pending\",r.then(function(d){if(i.status===\"pending\"){var p=i;p.status=\"fulfilled\",p.value=d}},function(d){if(i.status===\"pending\"){var p=i;p.status=\"rejected\",p.reason=d}})}switch(i.status){case\"fulfilled\":return i.value;case\"rejected\":throw r=i.reason,A1(r),r}throw qs=i,jl}}function Hs(r){try{var i=r._init;return i(r._payload)}catch(l){throw l!==null&&typeof l==\"object\"&&typeof l.then==\"function\"?(qs=l,jl):l}}var qs=null;function M1(){if(qs===null)throw Error(a(459));var r=qs;return qs=null,r}function A1(r){if(r===jl||r===Fd)throw Error(a(483))}var zl=null,Uc=0;function Ud(r){var i=Uc;return Uc+=1,zl===null&&(zl=[]),T1(zl,r,i)}function Vc(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Vd(r,i){throw i.$$typeof===x?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r===\"[object Object]\"?\"object with keys {\"+Object.keys(i).join(\", \")+\"}\":r)))}function N1(r){function i(ae,Q){if(r){var ue=ae.deletions;ue===null?(ae.deletions=[Q],ae.flags|=16):ue.push(Q)}}function l(ae,Q){if(!r)return null;for(;Q!==null;)i(ae,Q),Q=Q.sibling;return null}function d(ae){for(var Q=new Map;ae!==null;)ae.key!==null?Q.set(ae.key,ae):Q.set(ae.index,ae),ae=ae.sibling;return Q}function p(ae,Q){return ae=Ha(ae,Q),ae.index=0,ae.sibling=null,ae}function b(ae,Q,ue){return ae.index=ue,r?(ue=ae.alternate,ue!==null?(ue=ue.index,ue<Q?(ae.flags|=67108866,Q):ue):(ae.flags|=67108866,Q)):(ae.flags|=1048576,Q)}function k(ae){return r&&ae.alternate===null&&(ae.flags|=67108866),ae}function L(ae,Q,ue,Ce){return Q===null||Q.tag!==6?(Q=ye(ue,ae.mode,Ce),Q.return=ae,Q):(Q=p(Q,ue),Q.return=ae,Q)}function X(ae,Q,ue,Ce){var nt=ue.type;return nt===C?we(ae,Q,ue.props.children,Ce,ue.key):Q!==null&&(Q.elementType===nt||typeof nt==\"object\"&&nt!==null&&nt.$$typeof===H&&Hs(nt)===Q.type)?(Q=p(Q,ue.props),Vc(Q,ue),Q.return=ae,Q):(Q=J(ue.type,ue.key,ue.props,null,ae.mode,Ce),Vc(Q,ue),Q.return=ae,Q)}function de(ae,Q,ue,Ce){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ue.containerInfo||Q.stateNode.implementation!==ue.implementation?(Q=Re(ue,ae.mode,Ce),Q.return=ae,Q):(Q=p(Q,ue.children||[]),Q.return=ae,Q)}function we(ae,Q,ue,Ce,nt){return Q===null||Q.tag!==7?(Q=Z(ue,ae.mode,Ce,nt),Q.return=ae,Q):(Q=p(Q,ue),Q.return=ae,Q)}function Ee(ae,Q,ue){if(typeof Q==\"string\"&&Q!==\"\"||typeof Q==\"number\"||typeof Q==\"bigint\")return Q=ye(\"\"+Q,ae.mode,ue),Q.return=ae,Q;if(typeof Q==\"object\"&&Q!==null){switch(Q.$$typeof){case w:return ue=J(Q.type,Q.key,Q.props,null,ae.mode,ue),Vc(ue,Q),ue.return=ae,ue;case S:return Q=Re(Q,ae.mode,ue),Q.return=ae,Q;case H:return Q=Hs(Q),Ee(ae,Q,ue)}if(j(Q)||M(Q))return Q=Z(Q,ae.mode,ue,null),Q.return=ae,Q;if(typeof Q.then==\"function\")return Ee(ae,Ud(Q),ue);if(Q.$$typeof===T)return Ee(ae,qd(ae,Q),ue);Vd(ae,Q)}return null}function me(ae,Q,ue,Ce){var nt=Q!==null?Q.key:null;if(typeof ue==\"string\"&&ue!==\"\"||typeof ue==\"number\"||typeof ue==\"bigint\")return nt!==null?null:L(ae,Q,\"\"+ue,Ce);if(typeof ue==\"object\"&&ue!==null){switch(ue.$$typeof){case w:return ue.key===nt?X(ae,Q,ue,Ce):null;case S:return ue.key===nt?de(ae,Q,ue,Ce):null;case H:return ue=Hs(ue),me(ae,Q,ue,Ce)}if(j(ue)||M(ue))return nt!==null?null:we(ae,Q,ue,Ce,null);if(typeof ue.then==\"function\")return me(ae,Q,Ud(ue),Ce);if(ue.$$typeof===T)return me(ae,Q,qd(ae,ue),Ce);Vd(ae,ue)}return null}function ge(ae,Q,ue,Ce,nt){if(typeof Ce==\"string\"&&Ce!==\"\"||typeof Ce==\"number\"||typeof Ce==\"bigint\")return ae=ae.get(ue)||null,L(Q,ae,\"\"+Ce,nt);if(typeof Ce==\"object\"&&Ce!==null){switch(Ce.$$typeof){case w:return ae=ae.get(Ce.key===null?ue:Ce.key)||null,X(Q,ae,Ce,nt);case S:return ae=ae.get(Ce.key===null?ue:Ce.key)||null,de(Q,ae,Ce,nt);case H:return Ce=Hs(Ce),ge(ae,Q,ue,Ce,nt)}if(j(Ce)||M(Ce))return ae=ae.get(ue)||null,we(Q,ae,Ce,nt,null);if(typeof Ce.then==\"function\")return ge(ae,Q,ue,Ud(Ce),nt);if(Ce.$$typeof===T)return ge(ae,Q,ue,qd(Q,Ce),nt);Vd(Q,Ce)}return null}function Ge(ae,Q,ue,Ce){for(var nt=null,Ut=null,Je=Q,St=Q=0,Pt=null;Je!==null&&St<ue.length;St++){Je.index>St?(Pt=Je,Je=null):Pt=Je.sibling;var Vt=me(ae,Je,ue[St],Ce);if(Vt===null){Je===null&&(Je=Pt);break}r&&Je&&Vt.alternate===null&&i(ae,Je),Q=b(Vt,Q,St),Ut===null?nt=Vt:Ut.sibling=Vt,Ut=Vt,Je=Pt}if(St===ue.length)return l(ae,Je),bt&&It(ae,St),nt;if(Je===null){for(;St<ue.length;St++)Je=Ee(ae,ue[St],Ce),Je!==null&&(Q=b(Je,Q,St),Ut===null?nt=Je:Ut.sibling=Je,Ut=Je);return bt&&It(ae,St),nt}for(Je=d(Je);St<ue.length;St++)Pt=ge(Je,ae,St,ue[St],Ce),Pt!==null&&(r&&Pt.alternate!==null&&Je.delete(Pt.key===null?St:Pt.key),Q=b(Pt,Q,St),Ut===null?nt=Pt:Ut.sibling=Pt,Ut=Pt);return r&&Je.forEach(function(Fo){return i(ae,Fo)}),bt&&It(ae,St),nt}function st(ae,Q,ue,Ce){if(ue==null)throw Error(a(151));for(var nt=null,Ut=null,Je=Q,St=Q=0,Pt=null,Vt=ue.next();Je!==null&&!Vt.done;St++,Vt=ue.next()){Je.index>St?(Pt=Je,Je=null):Pt=Je.sibling;var Fo=me(ae,Je,Vt.value,Ce);if(Fo===null){Je===null&&(Je=Pt);break}r&&Je&&Fo.alternate===null&&i(ae,Je),Q=b(Fo,Q,St),Ut===null?nt=Fo:Ut.sibling=Fo,Ut=Fo,Je=Pt}if(Vt.done)return l(ae,Je),bt&&It(ae,St),nt;if(Je===null){for(;!Vt.done;St++,Vt=ue.next())Vt=Ee(ae,Vt.value,Ce),Vt!==null&&(Q=b(Vt,Q,St),Ut===null?nt=Vt:Ut.sibling=Vt,Ut=Vt);return bt&&It(ae,St),nt}for(Je=d(Je);!Vt.done;St++,Vt=ue.next())Vt=ge(Je,ae,St,Vt.value,Ce),Vt!==null&&(r&&Vt.alternate!==null&&Je.delete(Vt.key===null?St:Vt.key),Q=b(Vt,Q,St),Ut===null?nt=Vt:Ut.sibling=Vt,Ut=Vt);return r&&Je.forEach(function(BO){return i(ae,BO)}),bt&&It(ae,St),nt}function on(ae,Q,ue,Ce){if(typeof ue==\"object\"&&ue!==null&&ue.type===C&&ue.key===null&&(ue=ue.props.children),typeof ue==\"object\"&&ue!==null){switch(ue.$$typeof){case w:e:{for(var nt=ue.key;Q!==null;){if(Q.key===nt){if(nt=ue.type,nt===C){if(Q.tag===7){l(ae,Q.sibling),Ce=p(Q,ue.props.children),Ce.return=ae,ae=Ce;break e}}else if(Q.elementType===nt||typeof nt==\"object\"&&nt!==null&&nt.$$typeof===H&&Hs(nt)===Q.type){l(ae,Q.sibling),Ce=p(Q,ue.props),Vc(Ce,ue),Ce.return=ae,ae=Ce;break e}l(ae,Q);break}else i(ae,Q);Q=Q.sibling}ue.type===C?(Ce=Z(ue.props.children,ae.mode,Ce,ue.key),Ce.return=ae,ae=Ce):(Ce=J(ue.type,ue.key,ue.props,null,ae.mode,Ce),Vc(Ce,ue),Ce.return=ae,ae=Ce)}return k(ae);case S:e:{for(nt=ue.key;Q!==null;){if(Q.key===nt)if(Q.tag===4&&Q.stateNode.containerInfo===ue.containerInfo&&Q.stateNode.implementation===ue.implementation){l(ae,Q.sibling),Ce=p(Q,ue.children||[]),Ce.return=ae,ae=Ce;break e}else{l(ae,Q);break}else i(ae,Q);Q=Q.sibling}Ce=Re(ue,ae.mode,Ce),Ce.return=ae,ae=Ce}return k(ae);case H:return ue=Hs(ue),on(ae,Q,ue,Ce)}if(j(ue))return Ge(ae,Q,ue,Ce);if(M(ue)){if(nt=M(ue),typeof nt!=\"function\")throw Error(a(150));return ue=nt.call(ue),st(ae,Q,ue,Ce)}if(typeof ue.then==\"function\")return on(ae,Q,Ud(ue),Ce);if(ue.$$typeof===T)return on(ae,Q,qd(ae,ue),Ce);Vd(ae,ue)}return typeof ue==\"string\"&&ue!==\"\"||typeof ue==\"number\"||typeof ue==\"bigint\"?(ue=\"\"+ue,Q!==null&&Q.tag===6?(l(ae,Q.sibling),Ce=p(Q,ue),Ce.return=ae,ae=Ce):(l(ae,Q),Ce=ye(ue,ae.mode,Ce),Ce.return=ae,ae=Ce),k(ae)):l(ae,Q)}return function(ae,Q,ue,Ce){try{Uc=0;var nt=on(ae,Q,ue,Ce);return zl=null,nt}catch(Je){if(Je===jl||Je===Fd)throw Je;var Ut=Nr(29,Je,null,ae.mode);return Ut.lanes=Ce,Ut.return=ae,Ut}finally{}}}var $s=N1(!0),O1=N1(!1),Eo=!1;function Mm(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Am(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ko(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function _o(r,i,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Gt&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,i=Ds(r),Id(r,null,l),i}return Os(r,d,i,l),Ds(r)}function Wc(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var d=i.lanes;d&=r.pendingLanes,l|=d,i.lanes=l,Wn(r,l)}}function Nm(r,i){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?p=b=k:b=b.next=k,l=l.next}while(l!==null);b===null?p=b=i:b=b.next=i}else p=b=i;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}var Om=!1;function Gc(){if(Om){var r=Dl;if(r!==null)throw r}}function Yc(r,i,l,d){Om=!1;var p=r.updateQueue;Eo=!1;var b=p.firstBaseUpdate,k=p.lastBaseUpdate,L=p.shared.pending;if(L!==null){p.shared.pending=null;var X=L,de=X.next;X.next=null,k===null?b=de:k.next=de,k=X;var we=r.alternate;we!==null&&(we=we.updateQueue,L=we.lastBaseUpdate,L!==k&&(L===null?we.firstBaseUpdate=de:L.next=de,we.lastBaseUpdate=X))}if(b!==null){var Ee=p.baseState;k=0,we=de=X=null,L=b;do{var me=L.lane&-536870913,ge=me!==L.lane;if(ge?(zt&me)===me:(d&me)===me){me!==0&&me===Ol&&(Om=!0),we!==null&&(we=we.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Ge=r,st=L;me=i;var on=l;switch(st.tag){case 1:if(Ge=st.payload,typeof Ge==\"function\"){Ee=Ge.call(on,Ee,me);break e}Ee=Ge;break e;case 3:Ge.flags=Ge.flags&-65537|128;case 0:if(Ge=st.payload,me=typeof Ge==\"function\"?Ge.call(on,Ee,me):Ge,me==null)break e;Ee=y({},Ee,me);break e;case 2:Eo=!0}}me=L.callback,me!==null&&(r.flags|=64,ge&&(r.flags|=8192),ge=p.callbacks,ge===null?p.callbacks=[me]:ge.push(me))}else ge={lane:me,tag:L.tag,payload:L.payload,callback:L.callback,next:null},we===null?(de=we=ge,X=Ee):we=we.next=ge,k|=me;if(L=L.next,L===null){if(L=p.shared.pending,L===null)break;ge=L,L=ge.next,ge.next=null,p.lastBaseUpdate=ge,p.shared.pending=null}}while(!0);we===null&&(X=Ee),p.baseState=X,p.firstBaseUpdate=de,p.lastBaseUpdate=we,b===null&&(p.shared.lanes=0),Oo|=k,r.lanes=k,r.memoizedState=Ee}}function D1(r,i){if(typeof r!=\"function\")throw Error(a(191,r));r.call(i)}function j1(r,i){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)D1(l[r],i)}var Pl=P(null),Wd=P(0);function z1(r,i){r=Vi,G(Wd,r),G(Pl,i),Vi=r|i.baseLanes}function Dm(){G(Wd,Vi),G(Pl,Pl.current)}function jm(){Vi=Wd.current,Y(Pl),Y(Wd)}var aa=P(null),Ra=null;function To(r){var i=r.alternate;G(Pn,Pn.current&1),G(aa,r),Ra===null&&(i===null||Pl.current!==null||i.memoizedState!==null)&&(Ra=r)}function zm(r){G(Pn,Pn.current),G(aa,r),Ra===null&&(Ra=r)}function P1(r){r.tag===22?(G(Pn,Pn.current),G(aa,r),Ra===null&&(Ra=r)):Mo()}function Mo(){G(Pn,Pn.current),G(aa,aa.current)}function ia(r){Y(aa),Ra===r&&(Ra=null),Y(Pn)}var Pn=P(0);function Gd(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||$p(l)||Fp(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder===\"forwards\"||i.memoizedProps.revealOrder===\"backwards\"||i.memoizedProps.revealOrder===\"unstable_legacy-backwards\"||i.memoizedProps.revealOrder===\"together\")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Li=0,xt=null,rn=null,$n=null,Yd=!1,Ll=!1,Fs=!1,Xd=0,Xc=0,Il=null,DN=0;function Nn(){throw Error(a(321))}function Pm(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!Mr(r[l],i[l]))return!1;return!0}function Lm(r,i,l,d,p,b){return Li=b,xt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,F.H=r===null||r.memoizedState===null?bx:Zm,Fs=!1,b=l(d,p),Fs=!1,Ll&&(b=I1(i,l,d,p)),L1(r),b}function L1(r){F.H=Zc;var i=rn!==null&&rn.next!==null;if(Li=0,$n=rn=xt=null,Yd=!1,Xc=0,Il=null,i)throw Error(a(300));r===null||Fn||(r=r.dependencies,r!==null&&Hd(r)&&(Fn=!0))}function I1(r,i,l,d){xt=r;var p=0;do{if(Ll&&(Il=null),Xc=0,Ll=!1,25<=p)throw Error(a(301));if(p+=1,$n=rn=null,r.updateQueue!=null){var b=r.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}F.H=xx,b=i(l,d)}while(Ll);return b}function jN(){var r=F.H,i=r.useState()[0];return i=typeof i.then==\"function\"?Kc(i):i,r=r.useState()[0],(rn!==null?rn.memoizedState:null)!==r&&(xt.flags|=1024),i}function Im(){var r=Xd!==0;return Xd=0,r}function Hm(r,i,l){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~l}function qm(r){if(Yd){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Yd=!1}Li=0,$n=rn=xt=null,Ll=!1,Xc=Xd=0,Il=null}function Or(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $n===null?xt.memoizedState=$n=r:$n=$n.next=r,$n}function Ln(){if(rn===null){var r=xt.alternate;r=r!==null?r.memoizedState:null}else r=rn.next;var i=$n===null?xt.memoizedState:$n.next;if(i!==null)$n=i,rn=r;else{if(r===null)throw xt.alternate===null?Error(a(467)):Error(a(310));rn=r,r={memoizedState:rn.memoizedState,baseState:rn.baseState,baseQueue:rn.baseQueue,queue:rn.queue,next:null},$n===null?xt.memoizedState=$n=r:$n=$n.next=r}return $n}function Kd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kc(r){var i=Xc;return Xc+=1,Il===null&&(Il=[]),r=T1(Il,r,i),i=xt,($n===null?i.memoizedState:$n.next)===null&&(i=i.alternate,F.H=i===null||i.memoizedState===null?bx:Zm),r}function Qd(r){if(r!==null&&typeof r==\"object\"){if(typeof r.then==\"function\")return Kc(r);if(r.$$typeof===T)return ir(r)}throw Error(a(438,String(r)))}function $m(r){var i=null,l=xt.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var d=xt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Kd(),xt.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(r),d=0;d<r;d++)l[d]=V;return i.index++,l}function Ii(r,i){return typeof i==\"function\"?i(r):i}function Zd(r){var i=Ln();return Fm(i,rn,r)}function Fm(r,i,l){var d=r.queue;if(d===null)throw Error(a(311));d.lastRenderedReducer=l;var p=r.baseQueue,b=d.pending;if(b!==null){if(p!==null){var k=p.next;p.next=b.next,b.next=k}i.baseQueue=p=b,d.pending=null}if(b=r.baseState,p===null)r.memoizedState=b;else{i=p.next;var L=k=null,X=null,de=i,we=!1;do{var Ee=de.lane&-536870913;if(Ee!==de.lane?(zt&Ee)===Ee:(Li&Ee)===Ee){var me=de.revertLane;if(me===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ee===Ol&&(we=!0);else if((Li&me)===me){de=de.next,me===Ol&&(we=!0);continue}else Ee={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},X===null?(L=X=Ee,k=b):X=X.next=Ee,xt.lanes|=me,Oo|=me;Ee=de.action,Fs&&l(b,Ee),b=de.hasEagerState?de.eagerState:l(b,Ee)}else me={lane:Ee,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},X===null?(L=X=me,k=b):X=X.next=me,xt.lanes|=Ee,Oo|=Ee;de=de.next}while(de!==null&&de!==i);if(X===null?k=b:X.next=L,!Mr(b,r.memoizedState)&&(Fn=!0,we&&(l=Dl,l!==null)))throw l;r.memoizedState=b,r.baseState=k,r.baseQueue=X,d.lastRenderedState=b}return p===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Bm(r){var i=Ln(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=r;var d=l.dispatch,p=l.pending,b=i.memoizedState;if(p!==null){l.pending=null;var k=p=p.next;do b=r(b,k.action),k=k.next;while(k!==p);Mr(b,i.memoizedState)||(Fn=!0),i.memoizedState=b,i.baseQueue===null&&(i.baseState=b),l.lastRenderedState=b}return[b,d]}function H1(r,i,l){var d=xt,p=Ln(),b=bt;if(b){if(l===void 0)throw Error(a(407));l=l()}else l=i();var k=!Mr((rn||p).memoizedState,l);if(k&&(p.memoizedState=l,Fn=!0),p=p.queue,Wm(F1.bind(null,d,p,r),[r]),p.getSnapshot!==i||k||$n!==null&&$n.memoizedState.tag&1){if(d.flags|=2048,Hl(9,{destroy:void 0},$1.bind(null,d,p,l,i),null),sn===null)throw Error(a(349));b||(Li&127)!==0||q1(d,i,l)}return l}function q1(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=xt.updateQueue,i===null?(i=Kd(),xt.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function $1(r,i,l,d){i.value=l,i.getSnapshot=d,B1(i)&&U1(r)}function F1(r,i,l){return l(function(){B1(i)&&U1(r)})}function B1(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!Mr(r,l)}catch{return!0}}function U1(r){var i=Ni(r,2);i!==null&&Ur(i,r,2)}function Um(r){var i=Or();if(typeof r==\"function\"){var l=r;if(r=l(),Fs){hn(!0);try{l()}finally{hn(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ii,lastRenderedState:r},i}function V1(r,i,l,d){return r.baseState=l,Fm(r,rn,typeof d==\"function\"?d:Ii)}function zN(r,i,l,d,p){if(tf(r))throw Error(a(485));if(r=i.action,r!==null){var b={payload:p,action:r,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};F.T!==null?l(!0):b.isTransition=!1,d(b),l=i.pending,l===null?(b.next=i.pending=b,W1(i,b)):(b.next=l.next,i.pending=l.next=b)}}function W1(r,i){var l=i.action,d=i.payload,p=r.state;if(i.isTransition){var b=F.T,k={};F.T=k;try{var L=l(p,d),X=F.S;X!==null&&X(k,L),G1(r,i,L)}catch(de){Vm(r,i,de)}finally{b!==null&&k.types!==null&&(b.types=k.types),F.T=b}}else try{b=l(p,d),G1(r,i,b)}catch(de){Vm(r,i,de)}}function G1(r,i,l){l!==null&&typeof l==\"object\"&&typeof l.then==\"function\"?l.then(function(d){Y1(r,i,d)},function(d){return Vm(r,i,d)}):Y1(r,i,l)}function Y1(r,i,l){i.status=\"fulfilled\",i.value=l,X1(i),r.state=l,i=r.pending,i!==null&&(l=i.next,l===i?r.pending=null:(l=l.next,i.next=l,W1(r,l)))}function Vm(r,i,l){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do i.status=\"rejected\",i.reason=l,X1(i),i=i.next;while(i!==d)}r.action=null}function X1(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function K1(r,i){return i}function Q1(r,i){if(bt){var l=sn.formState;if(l!==null){e:{var d=xt;if(bt){if($t){t:{for(var p=$t,b=ar;p.nodeType!==8;){if(!b){p=null;break t}if(p=Ea(p.nextSibling),p===null){p=null;break t}}b=p.data,p=b===\"F!\"||b===\"F\"?p:null}if(p){$t=Ea(p.nextSibling),d=p.data===\"F!\";break e}}Co(d)}d=!1}d&&(i=l[0])}}return l=Or(),l.memoizedState=l.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:K1,lastRenderedState:i},l.queue=d,l=gx.bind(null,xt,d),d.dispatch=l,d=Um(!1),b=Qm.bind(null,xt,!1,d.queue),d=Or(),p={state:i,dispatch:null,action:r,pending:null},d.queue=p,l=zN.bind(null,xt,p,b,l),p.dispatch=l,d.memoizedState=r,[i,l,!1]}function Z1(r){var i=Ln();return J1(i,rn,r)}function J1(r,i,l){if(i=Fm(r,i,K1)[0],r=Zd(Ii)[0],typeof i==\"object\"&&i!==null&&typeof i.then==\"function\")try{var d=Kc(i)}catch(k){throw k===jl?Fd:k}else d=i;i=Ln();var p=i.queue,b=p.dispatch;return l!==i.memoizedState&&(xt.flags|=2048,Hl(9,{destroy:void 0},PN.bind(null,p,l),null)),[d,b,r]}function PN(r,i){r.action=i}function ex(r){var i=Ln(),l=rn;if(l!==null)return J1(i,l,r);Ln(),i=i.memoizedState,l=Ln();var d=l.queue.dispatch;return l.memoizedState=r,[i,d,!1]}function Hl(r,i,l,d){return r={tag:r,create:l,deps:d,inst:i,next:null},i=xt.updateQueue,i===null&&(i=Kd(),xt.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,i.lastEffect=r),r}function tx(){return Ln().memoizedState}function Jd(r,i,l,d){var p=Or();xt.flags|=r,p.memoizedState=Hl(1|i,{destroy:void 0},l,d===void 0?null:d)}function ef(r,i,l,d){var p=Ln();d=d===void 0?null:d;var b=p.memoizedState.inst;rn!==null&&d!==null&&Pm(d,rn.memoizedState.deps)?p.memoizedState=Hl(i,b,l,d):(xt.flags|=r,p.memoizedState=Hl(1|i,b,l,d))}function nx(r,i){Jd(8390656,8,r,i)}function Wm(r,i){ef(2048,8,r,i)}function LN(r){xt.flags|=4;var i=xt.updateQueue;if(i===null)i=Kd(),xt.updateQueue=i,i.events=[r];else{var l=i.events;l===null?i.events=[r]:l.push(r)}}function rx(r){var i=Ln().memoizedState;return LN({ref:i,nextImpl:r}),function(){if((Gt&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function ax(r,i){return ef(4,2,r,i)}function ix(r,i){return ef(4,4,r,i)}function ox(r,i){if(typeof i==\"function\"){r=r();var l=i(r);return function(){typeof l==\"function\"?l():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function sx(r,i,l){l=l!=null?l.concat([r]):null,ef(4,4,ox.bind(null,i,r),l)}function Gm(){}function lx(r,i){var l=Ln();i=i===void 0?null:i;var d=l.memoizedState;return i!==null&&Pm(i,d[1])?d[0]:(l.memoizedState=[r,i],r)}function cx(r,i){var l=Ln();i=i===void 0?null:i;var d=l.memoizedState;if(i!==null&&Pm(i,d[1]))return d[0];if(d=r(),Fs){hn(!0);try{r()}finally{hn(!1)}}return l.memoizedState=[d,i],d}function Ym(r,i,l){return l===void 0||(Li&1073741824)!==0&&(zt&261930)===0?r.memoizedState=i:(r.memoizedState=l,r=uw(),xt.lanes|=r,Oo|=r,l)}function ux(r,i,l,d){return Mr(l,i)?l:Pl.current!==null?(r=Ym(r,l,d),Mr(r,i)||(Fn=!0),r):(Li&42)===0||(Li&1073741824)!==0&&(zt&261930)===0?(Fn=!0,r.memoizedState=l):(r=uw(),xt.lanes|=r,Oo|=r,i)}function dx(r,i,l,d,p){var b=U.p;U.p=b!==0&&8>b?b:8;var k=F.T,L={};F.T=L,Qm(r,!1,i,l);try{var X=p(),de=F.S;if(de!==null&&de(L,X),X!==null&&typeof X==\"object\"&&typeof X.then==\"function\"){var we=ON(X,d);Qc(r,i,we,la(r))}else Qc(r,i,d,la(r))}catch(Ee){Qc(r,i,{then:function(){},status:\"rejected\",reason:Ee},la())}finally{U.p=b,k!==null&&L.types!==null&&(k.types=L.types),F.T=k}}function IN(){}function Xm(r,i,l,d){if(r.tag!==5)throw Error(a(476));var p=fx(r).queue;dx(r,p,i,W,l===null?IN:function(){return hx(r),l(d)})}function fx(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ii,lastRenderedState:W},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ii,lastRenderedState:l},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function hx(r){var i=fx(r);i.next===null&&(i=r.alternate.memoizedState),Qc(r,i.next.queue,{},la())}function Km(){return ir(mu)}function mx(){return Ln().memoizedState}function px(){return Ln().memoizedState}function HN(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var l=la();r=ko(l);var d=_o(i,r,l);d!==null&&(Ur(d,i,l),Wc(d,i,l)),i={cache:Em()},r.payload=i;return}i=i.return}}function qN(r,i,l){var d=la();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tf(r)?vx(i,l):(l=Hc(r,i,l,d),l!==null&&(Ur(l,r,d),yx(l,i,d)))}function gx(r,i,l){var d=la();Qc(r,i,l,d)}function Qc(r,i,l,d){var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(tf(r))vx(i,p);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=i.lastRenderedReducer,b!==null))try{var k=i.lastRenderedState,L=b(k,l);if(p.hasEagerState=!0,p.eagerState=L,Mr(L,k))return Os(r,i,p,0),sn===null&&Ns(),!1}catch{}finally{}if(l=Hc(r,i,p,d),l!==null)return Ur(l,r,d),yx(l,i,d),!0}return!1}function Qm(r,i,l,d){if(d={lane:2,revertLane:Mp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},tf(r)){if(i)throw Error(a(479))}else i=Hc(r,l,d,2),i!==null&&Ur(i,r,2)}function tf(r){var i=r.alternate;return r===xt||i!==null&&i===xt}function vx(r,i){Ll=Yd=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function yx(r,i,l){if((l&4194048)!==0){var d=i.lanes;d&=r.pendingLanes,l|=d,i.lanes=l,Wn(r,l)}}var Zc={readContext:ir,use:Qd,useCallback:Nn,useContext:Nn,useEffect:Nn,useImperativeHandle:Nn,useLayoutEffect:Nn,useInsertionEffect:Nn,useMemo:Nn,useReducer:Nn,useRef:Nn,useState:Nn,useDebugValue:Nn,useDeferredValue:Nn,useTransition:Nn,useSyncExternalStore:Nn,useId:Nn,useHostTransitionStatus:Nn,useFormState:Nn,useActionState:Nn,useOptimistic:Nn,useMemoCache:Nn,useCacheRefresh:Nn};Zc.useEffectEvent=Nn;var bx={readContext:ir,use:Qd,useCallback:function(r,i){return Or().memoizedState=[r,i===void 0?null:i],r},useContext:ir,useEffect:nx,useImperativeHandle:function(r,i,l){l=l!=null?l.concat([r]):null,Jd(4194308,4,ox.bind(null,i,r),l)},useLayoutEffect:function(r,i){return Jd(4194308,4,r,i)},useInsertionEffect:function(r,i){Jd(4,2,r,i)},useMemo:function(r,i){var l=Or();i=i===void 0?null:i;var d=r();if(Fs){hn(!0);try{r()}finally{hn(!1)}}return l.memoizedState=[d,i],d},useReducer:function(r,i,l){var d=Or();if(l!==void 0){var p=l(i);if(Fs){hn(!0);try{l(i)}finally{hn(!1)}}}else p=i;return d.memoizedState=d.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},d.queue=r,r=r.dispatch=qN.bind(null,xt,r),[d.memoizedState,r]},useRef:function(r){var i=Or();return r={current:r},i.memoizedState=r},useState:function(r){r=Um(r);var i=r.queue,l=gx.bind(null,xt,i);return i.dispatch=l,[r.memoizedState,l]},useDebugValue:Gm,useDeferredValue:function(r,i){var l=Or();return Ym(l,r,i)},useTransition:function(){var r=Um(!1);return r=dx.bind(null,xt,r.queue,!0,!1),Or().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,l){var d=xt,p=Or();if(bt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),sn===null)throw Error(a(349));(zt&127)!==0||q1(d,i,l)}p.memoizedState=l;var b={value:l,getSnapshot:i};return p.queue=b,nx(F1.bind(null,d,b,r),[r]),d.flags|=2048,Hl(9,{destroy:void 0},$1.bind(null,d,b,l,i),null),l},useId:function(){var r=Or(),i=sn.identifierPrefix;if(bt){var l=Yt,d=Tt;l=(d&~(1<<32-cn(d)-1)).toString(32)+l,i=\"_\"+i+\"R_\"+l,l=Xd++,0<l&&(i+=\"H\"+l.toString(32)),i+=\"_\"}else l=DN++,i=\"_\"+i+\"r_\"+l.toString(32)+\"_\";return r.memoizedState=i},useHostTransitionStatus:Km,useFormState:Q1,useActionState:Q1,useOptimistic:function(r){var i=Or();i.memoizedState=i.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Qm.bind(null,xt,!0,l),l.dispatch=i,[r,i]},useMemoCache:$m,useCacheRefresh:function(){return Or().memoizedState=HN.bind(null,xt)},useEffectEvent:function(r){var i=Or(),l={impl:r};return i.memoizedState=l,function(){if((Gt&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Zm={readContext:ir,use:Qd,useCallback:lx,useContext:ir,useEffect:Wm,useImperativeHandle:sx,useInsertionEffect:ax,useLayoutEffect:ix,useMemo:cx,useReducer:Zd,useRef:tx,useState:function(){return Zd(Ii)},useDebugValue:Gm,useDeferredValue:function(r,i){var l=Ln();return ux(l,rn.memoizedState,r,i)},useTransition:function(){var r=Zd(Ii)[0],i=Ln().memoizedState;return[typeof r==\"boolean\"?r:Kc(r),i]},useSyncExternalStore:H1,useId:mx,useHostTransitionStatus:Km,useFormState:Z1,useActionState:Z1,useOptimistic:function(r,i){var l=Ln();return V1(l,rn,r,i)},useMemoCache:$m,useCacheRefresh:px};Zm.useEffectEvent=rx;var xx={readContext:ir,use:Qd,useCallback:lx,useContext:ir,useEffect:Wm,useImperativeHandle:sx,useInsertionEffect:ax,useLayoutEffect:ix,useMemo:cx,useReducer:Bm,useRef:tx,useState:function(){return Bm(Ii)},useDebugValue:Gm,useDeferredValue:function(r,i){var l=Ln();return rn===null?Ym(l,r,i):ux(l,rn.memoizedState,r,i)},useTransition:function(){var r=Bm(Ii)[0],i=Ln().memoizedState;return[typeof r==\"boolean\"?r:Kc(r),i]},useSyncExternalStore:H1,useId:mx,useHostTransitionStatus:Km,useFormState:ex,useActionState:ex,useOptimistic:function(r,i){var l=Ln();return rn!==null?V1(l,rn,r,i):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:$m,useCacheRefresh:px};xx.useEffectEvent=rx;function Jm(r,i,l,d){i=r.memoizedState,l=l(d,i),l=l==null?i:y({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var ep={enqueueSetState:function(r,i,l){r=r._reactInternals;var d=la(),p=ko(d);p.payload=i,l!=null&&(p.callback=l),i=_o(r,p,d),i!==null&&(Ur(i,r,d),Wc(i,r,d))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var d=la(),p=ko(d);p.tag=1,p.payload=i,l!=null&&(p.callback=l),i=_o(r,p,d),i!==null&&(Ur(i,r,d),Wc(i,r,d))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=la(),d=ko(l);d.tag=2,i!=null&&(d.callback=i),i=_o(r,d,l),i!==null&&(Ur(i,r,l),Wc(i,r,l))}};function wx(r,i,l,d,p,b,k){return r=r.stateNode,typeof r.shouldComponentUpdate==\"function\"?r.shouldComponentUpdate(d,b,k):i.prototype&&i.prototype.isPureReactComponent?!Es(l,d)||!Es(p,b):!0}function Sx(r,i,l,d){r=i.state,typeof i.componentWillReceiveProps==\"function\"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps==\"function\"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==r&&ep.enqueueReplaceState(i,i.state,null)}function Bs(r,i){var l=i;if(\"ref\"in i){l={};for(var d in i)d!==\"ref\"&&(l[d]=i[d])}if(r=r.defaultProps){l===i&&(l=y({},l));for(var p in r)l[p]===void 0&&(l[p]=r[p])}return l}function Cx(r){Ml(r)}function Rx(r){console.error(r)}function Ex(r){Ml(r)}function nf(r,i){try{var l=r.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(d){setTimeout(function(){throw d})}}function kx(r,i,l){try{var d=r.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function tp(r,i,l){return l=ko(l),l.tag=3,l.payload={element:null},l.callback=function(){nf(r,i)},l}function _x(r){return r=ko(r),r.tag=3,r}function Tx(r,i,l,d){var p=l.type.getDerivedStateFromError;if(typeof p==\"function\"){var b=d.value;r.payload=function(){return p(b)},r.callback=function(){kx(i,l,d)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch==\"function\"&&(r.callback=function(){kx(i,l,d),typeof p!=\"function\"&&(Do===null?Do=new Set([this]):Do.add(this));var L=d.stack;this.componentDidCatch(d.value,{componentStack:L!==null?L:\"\"})})}function $N(r,i,l,d,p){if(l.flags|=32768,d!==null&&typeof d==\"object\"&&typeof d.then==\"function\"){if(i=l.alternate,i!==null&&Nl(i,l,p,!0),l=aa.current,l!==null){switch(l.tag){case 31:case 13:return Ra===null?pf():l.alternate===null&&On===0&&(On=3),l.flags&=-257,l.flags|=65536,l.lanes=p,d===Bd?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([d]):i.add(d),kp(r,d,p)),!1;case 22:return l.flags|=65536,d===Bd?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([d]):l.add(d)),kp(r,d,p)),!1}throw Error(a(435,l.tag))}return kp(r,d,p),pf(),!1}if(bt)return i=aa.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,d!==js&&(r=Error(a(422),{cause:d}),$c(pe(r,l)))):(d!==js&&(i=Error(a(423),{cause:d}),$c(pe(i,l))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,d=pe(d,l),p=tp(r.stateNode,d,p),Nm(r,p),On!==4&&(On=2)),!1;var b=Error(a(520),{cause:d});if(b=pe(b,l),ou===null?ou=[b]:ou.push(b),On!==4&&(On=2),i===null)return!0;d=pe(d,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,r=p&-p,l.lanes|=r,r=tp(l.stateNode,d,r),Nm(l,r),!1;case 1:if(i=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError==\"function\"||b!==null&&typeof b.componentDidCatch==\"function\"&&(Do===null||!Do.has(b))))return l.flags|=65536,p&=-p,l.lanes|=p,p=_x(p),Tx(p,r,l,d),Nm(l,p),!1}l=l.return}while(l!==null);return!1}var np=Error(a(461)),Fn=!1;function or(r,i,l,d){i.child=r===null?O1(i,null,l,d):$s(i,r.child,l,d)}function Mx(r,i,l,d,p){l=l.render;var b=i.ref;if(\"ref\"in d){var k={};for(var L in d)L!==\"ref\"&&(k[L]=d[L])}else k=d;return Ls(i),d=Lm(r,i,l,k,b,p),L=Im(),r!==null&&!Fn?(Hm(r,i,p),Hi(r,i,p)):(bt&&L&&Di(i),i.flags|=1,or(r,i,d,p),i.child)}function Ax(r,i,l,d,p){if(r===null){var b=l.type;return typeof b==\"function\"&&!qc(b)&&b.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=b,Nx(r,i,b,d,p)):(r=J(l.type,null,d,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(b=r.child,!up(r,p)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Es,l(k,d)&&r.ref===i.ref)return Hi(r,i,p)}return i.flags|=1,r=Ha(b,d),r.ref=i.ref,r.return=i,i.child=r}function Nx(r,i,l,d,p){if(r!==null){var b=r.memoizedProps;if(Es(b,d)&&r.ref===i.ref)if(Fn=!1,i.pendingProps=d=b,up(r,p))(r.flags&131072)!==0&&(Fn=!0);else return i.lanes=r.lanes,Hi(r,i,p)}return rp(r,i,l,d,p)}function Ox(r,i,l,d){var p=d.children,b=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode===\"hidden\"){if((i.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,r!==null){for(d=i.child=r.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~b}else d=0,i.child=null;return Dx(r,i,b,l,d)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&$d(i,b!==null?b.cachePool:null),b!==null?z1(i,b):Dm(),P1(i);else return d=i.lanes=536870912,Dx(r,i,b!==null?b.baseLanes|l:l,l,d)}else b!==null?($d(i,b.cachePool),z1(i,b),Mo(),i.memoizedState=null):(r!==null&&$d(i,null),Dm(),Mo());return or(r,i,p,l),i.child}function Jc(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Dx(r,i,l,d,p){var b=_m();return b=b===null?null:{parent:qn._currentValue,pool:b},i.memoizedState={baseLanes:l,cachePool:b},r!==null&&$d(i,null),Dm(),P1(i),r!==null&&Nl(r,i,d,!0),i.childLanes=p,null}function rf(r,i){return i=of({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function jx(r,i,l){return $s(i,r.child,null,l),r=rf(i,i.pendingProps),r.flags|=2,ia(i),i.memoizedState=null,r}function FN(r,i,l){var d=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(bt){if(d.mode===\"hidden\")return r=rf(i,d),i.lanes=536870912,Jc(null,r);if(zm(i),(r=$t)?(r=Ww(r,ar),r=r!==null&&r.data===\"&\"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:gt!==null?{id:Tt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=xe(r),l.return=i,i.child=l,xn=i,$t=null)):r=null,r===null)throw Co(i);return i.lanes=536870912,null}return rf(i,d)}var b=r.memoizedState;if(b!==null){var k=b.dehydrated;if(zm(i),p)if(i.flags&256)i.flags&=-257,i=jx(r,i,l);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(a(558));else if(Fn||Nl(r,i,l,!1),p=(l&r.childLanes)!==0,Fn||p){if(d=sn,d!==null&&(k=Sr(d,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,Ni(r,k),Ur(d,r,k),np;pf(),i=jx(r,i,l)}else r=b.treeContext,$t=Ea(k.nextSibling),xn=i,bt=!0,ra=null,ar=!1,r!==null&&na(i,r),i=rf(i,d),i.flags|=4096;return i}return r=Ha(r.child,{mode:d.mode,children:d.children}),r.ref=i.ref,i.child=r,r.return=i,r}function af(r,i){var l=i.ref;if(l===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof l!=\"function\"&&typeof l!=\"object\")throw Error(a(284));(r===null||r.ref!==l)&&(i.flags|=4194816)}}function rp(r,i,l,d,p){return Ls(i),l=Lm(r,i,l,d,void 0,p),d=Im(),r!==null&&!Fn?(Hm(r,i,p),Hi(r,i,p)):(bt&&d&&Di(i),i.flags|=1,or(r,i,l,p),i.child)}function zx(r,i,l,d,p,b){return Ls(i),i.updateQueue=null,l=I1(i,d,l,p),L1(r),d=Im(),r!==null&&!Fn?(Hm(r,i,b),Hi(r,i,b)):(bt&&d&&Di(i),i.flags|=1,or(r,i,l,b),i.child)}function Px(r,i,l,d,p){if(Ls(i),i.stateNode===null){var b=So,k=l.contextType;typeof k==\"object\"&&k!==null&&(b=ir(k)),b=new l(d,b),i.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=ep,i.stateNode=b,b._reactInternals=i,b=i.stateNode,b.props=d,b.state=i.memoizedState,b.refs={},Mm(i),k=l.contextType,b.context=typeof k==\"object\"&&k!==null?ir(k):So,b.state=i.memoizedState,k=l.getDerivedStateFromProps,typeof k==\"function\"&&(Jm(i,l,k,d),b.state=i.memoizedState),typeof l.getDerivedStateFromProps==\"function\"||typeof b.getSnapshotBeforeUpdate==\"function\"||typeof b.UNSAFE_componentWillMount!=\"function\"&&typeof b.componentWillMount!=\"function\"||(k=b.state,typeof b.componentWillMount==\"function\"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount==\"function\"&&b.UNSAFE_componentWillMount(),k!==b.state&&ep.enqueueReplaceState(b,b.state,null),Yc(i,d,b,p),Gc(),b.state=i.memoizedState),typeof b.componentDidMount==\"function\"&&(i.flags|=4194308),d=!0}else if(r===null){b=i.stateNode;var L=i.memoizedProps,X=Bs(l,L);b.props=X;var de=b.context,we=l.contextType;k=So,typeof we==\"object\"&&we!==null&&(k=ir(we));var Ee=l.getDerivedStateFromProps;we=typeof Ee==\"function\"||typeof b.getSnapshotBeforeUpdate==\"function\",L=i.pendingProps!==L,we||typeof b.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof b.componentWillReceiveProps!=\"function\"||(L||de!==k)&&Sx(i,b,d,k),Eo=!1;var me=i.memoizedState;b.state=me,Yc(i,d,b,p),Gc(),de=i.memoizedState,L||me!==de||Eo?(typeof Ee==\"function\"&&(Jm(i,l,Ee,d),de=i.memoizedState),(X=Eo||wx(i,l,X,d,me,de,k))?(we||typeof b.UNSAFE_componentWillMount!=\"function\"&&typeof b.componentWillMount!=\"function\"||(typeof b.componentWillMount==\"function\"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount==\"function\"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount==\"function\"&&(i.flags|=4194308)):(typeof b.componentDidMount==\"function\"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=de),b.props=d,b.state=de,b.context=k,d=X):(typeof b.componentDidMount==\"function\"&&(i.flags|=4194308),d=!1)}else{b=i.stateNode,Am(r,i),k=i.memoizedProps,we=Bs(l,k),b.props=we,Ee=i.pendingProps,me=b.context,de=l.contextType,X=So,typeof de==\"object\"&&de!==null&&(X=ir(de)),L=l.getDerivedStateFromProps,(de=typeof L==\"function\"||typeof b.getSnapshotBeforeUpdate==\"function\")||typeof b.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof b.componentWillReceiveProps!=\"function\"||(k!==Ee||me!==X)&&Sx(i,b,d,X),Eo=!1,me=i.memoizedState,b.state=me,Yc(i,d,b,p),Gc();var ge=i.memoizedState;k!==Ee||me!==ge||Eo||r!==null&&r.dependencies!==null&&Hd(r.dependencies)?(typeof L==\"function\"&&(Jm(i,l,L,d),ge=i.memoizedState),(we=Eo||wx(i,l,we,d,me,ge,X)||r!==null&&r.dependencies!==null&&Hd(r.dependencies))?(de||typeof b.UNSAFE_componentWillUpdate!=\"function\"&&typeof b.componentWillUpdate!=\"function\"||(typeof b.componentWillUpdate==\"function\"&&b.componentWillUpdate(d,ge,X),typeof b.UNSAFE_componentWillUpdate==\"function\"&&b.UNSAFE_componentWillUpdate(d,ge,X)),typeof b.componentDidUpdate==\"function\"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate==\"function\"&&(i.flags|=1024)):(typeof b.componentDidUpdate!=\"function\"||k===r.memoizedProps&&me===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!=\"function\"||k===r.memoizedProps&&me===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=ge),b.props=d,b.state=ge,b.context=X,d=we):(typeof b.componentDidUpdate!=\"function\"||k===r.memoizedProps&&me===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!=\"function\"||k===r.memoizedProps&&me===r.memoizedState||(i.flags|=1024),d=!1)}return b=d,af(r,i),d=(i.flags&128)!==0,b||d?(b=i.stateNode,l=d&&typeof l.getDerivedStateFromError!=\"function\"?null:b.render(),i.flags|=1,r!==null&&d?(i.child=$s(i,r.child,null,p),i.child=$s(i,null,l,p)):or(r,i,l,p),i.memoizedState=b.state,r=i.child):r=Hi(r,i,p),r}function Lx(r,i,l,d){return zs(),i.flags|=256,or(r,i,l,d),i.child}var ap={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ip(r){return{baseLanes:r,cachePool:k1()}}function op(r,i,l){return r=r!==null?r.childLanes&~l:0,i&&(r|=sa),r}function Ix(r,i,l){var d=i.pendingProps,p=!1,b=(i.flags&128)!==0,k;if((k=b)||(k=r!==null&&r.memoizedState===null?!1:(Pn.current&2)!==0),k&&(p=!0,i.flags&=-129),k=(i.flags&32)!==0,i.flags&=-33,r===null){if(bt){if(p?To(i):Mo(),(r=$t)?(r=Ww(r,ar),r=r!==null&&r.data!==\"&\"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:gt!==null?{id:Tt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=xe(r),l.return=i,i.child=l,xn=i,$t=null)):r=null,r===null)throw Co(i);return Fp(r)?i.lanes=32:i.lanes=536870912,null}var L=d.children;return d=d.fallback,p?(Mo(),p=i.mode,L=of({mode:\"hidden\",children:L},p),d=Z(d,p,l,null),L.return=i,d.return=i,L.sibling=d,i.child=L,d=i.child,d.memoizedState=ip(l),d.childLanes=op(r,k,l),i.memoizedState=ap,Jc(null,d)):(To(i),sp(i,L))}var X=r.memoizedState;if(X!==null&&(L=X.dehydrated,L!==null)){if(b)i.flags&256?(To(i),i.flags&=-257,i=lp(r,i,l)):i.memoizedState!==null?(Mo(),i.child=r.child,i.flags|=128,i=null):(Mo(),L=d.fallback,p=i.mode,d=of({mode:\"visible\",children:d.children},p),L=Z(L,p,l,null),L.flags|=2,d.return=i,L.return=i,d.sibling=L,i.child=d,$s(i,r.child,null,l),d=i.child,d.memoizedState=ip(l),d.childLanes=op(r,k,l),i.memoizedState=ap,i=Jc(null,d));else if(To(i),Fp(L)){if(k=L.nextSibling&&L.nextSibling.dataset,k)var de=k.dgst;k=de,d=Error(a(419)),d.stack=\"\",d.digest=k,$c({value:d,source:null,stack:null}),i=lp(r,i,l)}else if(Fn||Nl(r,i,l,!1),k=(l&r.childLanes)!==0,Fn||k){if(k=sn,k!==null&&(d=Sr(k,l),d!==0&&d!==X.retryLane))throw X.retryLane=d,Ni(r,d),Ur(k,r,d),np;$p(L)||pf(),i=lp(r,i,l)}else $p(L)?(i.flags|=192,i.child=r.child,i=null):(r=X.treeContext,$t=Ea(L.nextSibling),xn=i,bt=!0,ra=null,ar=!1,r!==null&&na(i,r),i=sp(i,d.children),i.flags|=4096);return i}return p?(Mo(),L=d.fallback,p=i.mode,X=r.child,de=X.sibling,d=Ha(X,{mode:\"hidden\",children:d.children}),d.subtreeFlags=X.subtreeFlags&65011712,de!==null?L=Ha(de,L):(L=Z(L,p,l,null),L.flags|=2),L.return=i,d.return=i,d.sibling=L,i.child=d,Jc(null,d),d=i.child,L=r.child.memoizedState,L===null?L=ip(l):(p=L.cachePool,p!==null?(X=qn._currentValue,p=p.parent!==X?{parent:X,pool:X}:p):p=k1(),L={baseLanes:L.baseLanes|l,cachePool:p}),d.memoizedState=L,d.childLanes=op(r,k,l),i.memoizedState=ap,Jc(r.child,d)):(To(i),l=r.child,r=l.sibling,l=Ha(l,{mode:\"visible\",children:d.children}),l.return=i,l.sibling=null,r!==null&&(k=i.deletions,k===null?(i.deletions=[r],i.flags|=16):k.push(r)),i.child=l,i.memoizedState=null,l)}function sp(r,i){return i=of({mode:\"visible\",children:i},r.mode),i.return=r,r.child=i}function of(r,i){return r=Nr(22,r,null,i),r.lanes=0,r}function lp(r,i,l){return $s(i,r.child,null,l),r=sp(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function Hx(r,i,l){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),Cm(r.return,i,l)}function cp(r,i,l,d,p,b){var k=r.memoizedState;k===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p,treeForkCount:b}:(k.isBackwards=i,k.rendering=null,k.renderingStartTime=0,k.last=d,k.tail=l,k.tailMode=p,k.treeForkCount=b)}function qx(r,i,l){var d=i.pendingProps,p=d.revealOrder,b=d.tail;d=d.children;var k=Pn.current,L=(k&2)!==0;if(L?(k=k&1|2,i.flags|=128):k&=1,G(Pn,k),or(r,i,d,l),d=bt?ut:0,!L&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hx(r,l,i);else if(r.tag===19)Hx(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(p){case\"forwards\":for(l=i.child,p=null;l!==null;)r=l.alternate,r!==null&&Gd(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=i.child,i.child=null):(p=l.sibling,l.sibling=null),cp(i,!1,p,l,b,d);break;case\"backwards\":case\"unstable_legacy-backwards\":for(l=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&Gd(r)===null){i.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}cp(i,!0,l,null,b,d);break;case\"together\":cp(i,!1,null,null,void 0,d);break;default:i.memoizedState=null}return i.child}function Hi(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),Oo|=i.lanes,(l&i.childLanes)===0)if(r!==null){if(Nl(r,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,l=Ha(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=Ha(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function up(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Hd(r)))}function BN(r,i,l){switch(i.tag){case 3:he(i,i.stateNode.containerInfo),Ro(i,qn,r.memoizedState.cache),zs();break;case 27:case 5:He(i);break;case 4:he(i,i.stateNode.containerInfo);break;case 10:Ro(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,zm(i),null;break;case 13:var d=i.memoizedState;if(d!==null)return d.dehydrated!==null?(To(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Ix(r,i,l):(To(i),r=Hi(r,i,l),r!==null?r.sibling:null);To(i);break;case 19:var p=(r.flags&128)!==0;if(d=(l&i.childLanes)!==0,d||(Nl(r,i,l,!1),d=(l&i.childLanes)!==0),p){if(d)return qx(r,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),G(Pn,Pn.current),d)break;return null;case 22:return i.lanes=0,Ox(r,i,l,i.pendingProps);case 24:Ro(i,qn,r.memoizedState.cache)}return Hi(r,i,l)}function $x(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps)Fn=!0;else{if(!up(r,l)&&(i.flags&128)===0)return Fn=!1,BN(r,i,l);Fn=(r.flags&131072)!==0}else Fn=!1,bt&&(i.flags&1048576)!==0&&Oi(i,ut,i.index);switch(i.lanes=0,i.tag){case 16:e:{var d=i.pendingProps;if(r=Hs(i.elementType),i.type=r,typeof r==\"function\")qc(r)?(d=Bs(r,d),i.tag=1,i=Px(null,i,r,d,l)):(i.tag=0,i=rp(null,i,r,d,l));else{if(r!=null){var p=r.$$typeof;if(p===A){i.tag=11,i=Mx(null,i,r,d,l);break e}else if(p===O){i.tag=14,i=Ax(null,i,r,d,l);break e}}throw i=B(r)||r,Error(a(306,i,\"\"))}}return i;case 0:return rp(r,i,i.type,i.pendingProps,l);case 1:return d=i.type,p=Bs(d,i.pendingProps),Px(r,i,d,p,l);case 3:e:{if(he(i,i.stateNode.containerInfo),r===null)throw Error(a(387));d=i.pendingProps;var b=i.memoizedState;p=b.element,Am(r,i),Yc(i,d,null,l);var k=i.memoizedState;if(d=k.cache,Ro(i,qn,d),d!==b.cache&&Rm(i,[qn],l,!0),Gc(),d=k.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:k.cache},i.updateQueue.baseState=b,i.memoizedState=b,i.flags&256){i=Lx(r,i,d,l);break e}else if(d!==p){p=pe(Error(a(424)),i),$c(p),i=Lx(r,i,d,l);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName===\"HTML\"?r.ownerDocument.body:r}for($t=Ea(r.firstChild),xn=i,bt=!0,ra=null,ar=!0,l=O1(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(zs(),d===p){i=Hi(r,i,l);break e}or(r,i,d,l)}i=i.child}return i;case 26:return af(r,i),r===null?(l=Zw(i.type,null,i.pendingProps,null))?i.memoizedState=l:bt||(l=i.type,r=i.pendingProps,d=Sf(fe.current).createElement(l),d[Tn]=i,d[jn]=r,sr(d,l,r),En(d),i.stateNode=d):i.memoizedState=Zw(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return He(i),r===null&&bt&&(d=i.stateNode=Xw(i.type,i.pendingProps,fe.current),xn=i,ar=!0,p=$t,Lo(i.type)?(Bp=p,$t=Ea(d.firstChild)):$t=p),or(r,i,i.pendingProps.children,l),af(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&bt&&((p=d=$t)&&(d=bO(d,i.type,i.pendingProps,ar),d!==null?(i.stateNode=d,xn=i,$t=Ea(d.firstChild),ar=!1,p=!0):p=!1),p||Co(i)),He(i),p=i.type,b=i.pendingProps,k=r!==null?r.memoizedProps:null,d=b.children,Ip(p,b)?d=null:k!==null&&Ip(p,k)&&(i.flags|=32),i.memoizedState!==null&&(p=Lm(r,i,jN,null,null,l),mu._currentValue=p),af(r,i),or(r,i,d,l),i.child;case 6:return r===null&&bt&&((r=l=$t)&&(l=xO(l,i.pendingProps,ar),l!==null?(i.stateNode=l,xn=i,$t=null,r=!0):r=!1),r||Co(i)),null;case 13:return Ix(r,i,l);case 4:return he(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=$s(i,null,d,l):or(r,i,d,l),i.child;case 11:return Mx(r,i,i.type,i.pendingProps,l);case 7:return or(r,i,i.pendingProps,l),i.child;case 8:return or(r,i,i.pendingProps.children,l),i.child;case 12:return or(r,i,i.pendingProps.children,l),i.child;case 10:return d=i.pendingProps,Ro(i,i.type,d.value),or(r,i,d.children,l),i.child;case 9:return p=i.type._context,d=i.pendingProps.children,Ls(i),p=ir(p),d=d(p),i.flags|=1,or(r,i,d,l),i.child;case 14:return Ax(r,i,i.type,i.pendingProps,l);case 15:return Nx(r,i,i.type,i.pendingProps,l);case 19:return qx(r,i,l);case 31:return FN(r,i,l);case 22:return Ox(r,i,l,i.pendingProps);case 24:return Ls(i),d=ir(qn),r===null?(p=_m(),p===null&&(p=sn,b=Em(),p.pooledCache=b,b.refCount++,b!==null&&(p.pooledCacheLanes|=l),p=b),i.memoizedState={parent:d,cache:p},Mm(i),Ro(i,qn,p)):((r.lanes&l)!==0&&(Am(r,i),Yc(i,null,null,l),Gc()),p=r.memoizedState,b=i.memoizedState,p.parent!==d?(p={parent:d,cache:d},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),Ro(i,qn,d)):(d=b.cache,Ro(i,qn,d),d!==p.cache&&Rm(i,[qn],l,!0))),or(r,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function qi(r){r.flags|=4}function dp(r,i,l,d,p){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(p&335544128)===p)if(r.stateNode.complete)r.flags|=8192;else if(mw())r.flags|=8192;else throw qs=Bd,Tm}else r.flags&=-16777217}function Fx(r,i){if(i.type!==\"stylesheet\"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!rS(i))if(mw())r.flags|=8192;else throw qs=Bd,Tm}function sf(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Vn():536870912,r.lanes|=i,Bl|=i)}function eu(r,i){if(!bt)switch(r.tailMode){case\"hidden\":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case\"collapsed\":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function pn(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(i)for(var p=r.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=l,i}function UN(r,i,l){var d=i.pendingProps;switch(ji(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pn(i),null;case 1:return pn(i),null;case 3:return l=i.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),Pi(qn),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Al(i)?qi(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,wm())),pn(i),null;case 26:var p=i.type,b=i.memoizedState;return r===null?(qi(i),b!==null?(pn(i),Fx(i,b)):(pn(i),dp(i,p,null,d,l))):b?b!==r.memoizedState?(qi(i),pn(i),Fx(i,b)):(pn(i),i.flags&=-16777217):(r=r.memoizedProps,r!==d&&qi(i),pn(i),dp(i,p,r,d,l)),null;case 27:if(Ye(i),l=fe.current,p=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==d&&qi(i);else{if(!d){if(i.stateNode===null)throw Error(a(166));return pn(i),null}r=K.current,Al(i)?w1(i):(r=Xw(p,d,l),i.stateNode=r,qi(i))}return pn(i),null;case 5:if(Ye(i),p=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==d&&qi(i);else{if(!d){if(i.stateNode===null)throw Error(a(166));return pn(i),null}if(b=K.current,Al(i))w1(i);else{var k=Sf(fe.current);switch(b){case 1:b=k.createElementNS(\"http://www.w3.org/2000/svg\",p);break;case 2:b=k.createElementNS(\"http://www.w3.org/1998/Math/MathML\",p);break;default:switch(p){case\"svg\":b=k.createElementNS(\"http://www.w3.org/2000/svg\",p);break;case\"math\":b=k.createElementNS(\"http://www.w3.org/1998/Math/MathML\",p);break;case\"script\":b=k.createElement(\"div\"),b.innerHTML=\"<script><\\/script>\",b=b.removeChild(b.firstChild);break;case\"select\":b=typeof d.is==\"string\"?k.createElement(\"select\",{is:d.is}):k.createElement(\"select\"),d.multiple?b.multiple=!0:d.size&&(b.size=d.size);break;default:b=typeof d.is==\"string\"?k.createElement(p,{is:d.is}):k.createElement(p)}}b[Tn]=i,b[jn]=d;e:for(k=i.child;k!==null;){if(k.tag===5||k.tag===6)b.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===i)break e;for(;k.sibling===null;){if(k.return===null||k.return===i)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}i.stateNode=b;e:switch(sr(b,p,d),p){case\"button\":case\"input\":case\"select\":case\"textarea\":d=!!d.autoFocus;break e;case\"img\":d=!0;break e;default:d=!1}d&&qi(i)}}return pn(i),dp(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,l),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==d&&qi(i);else{if(typeof d!=\"string\"&&i.stateNode===null)throw Error(a(166));if(r=fe.current,Al(i)){if(r=i.stateNode,l=i.memoizedProps,d=null,p=xn,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}r[Tn]=i,r=!!(r.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||Iw(r.nodeValue,l)),r||Co(i,!0)}else r=Sf(r).createTextNode(d),r[Tn]=i,i.stateNode=r}return pn(i),null;case 31:if(l=i.memoizedState,r===null||r.memoizedState!==null){if(d=Al(i),l!==null){if(r===null){if(!d)throw Error(a(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Tn]=i}else zs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;pn(i),r=!1}else l=wm(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return i.flags&256?(ia(i),i):(ia(i),null);if((i.flags&128)!==0)throw Error(a(558))}return pn(i),null;case 13:if(d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=Al(i),d!==null&&d.dehydrated!==null){if(r===null){if(!p)throw Error(a(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[Tn]=i}else zs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;pn(i),p=!1}else p=wm(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(ia(i),i):(ia(i),null)}return ia(i),(i.flags&128)!==0?(i.lanes=l,i):(l=d!==null,r=r!==null&&r.memoizedState!==null,l&&(d=i.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),b=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==p&&(d.flags|=2048)),l!==r&&l&&(i.child.flags|=8192),sf(i,i.updateQueue),pn(i),null);case 4:return Ae(),r===null&&Dp(i.stateNode.containerInfo),pn(i),null;case 10:return Pi(i.type),pn(i),null;case 19:if(Y(Pn),d=i.memoizedState,d===null)return pn(i),null;if(p=(i.flags&128)!==0,b=d.rendering,b===null)if(p)eu(d,!1);else{if(On!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(b=Gd(r),b!==null){for(i.flags|=128,eu(d,!1),r=b.updateQueue,i.updateQueue=r,sf(i,r),i.subtreeFlags=0,r=l,l=i.child;l!==null;)N(l,r),l=l.sibling;return G(Pn,Pn.current&1|2),bt&&It(i,d.treeForkCount),i.child}r=r.sibling}d.tail!==null&&et()>ff&&(i.flags|=128,p=!0,eu(d,!1),i.lanes=4194304)}else{if(!p)if(r=Gd(b),r!==null){if(i.flags|=128,p=!0,r=r.updateQueue,i.updateQueue=r,sf(i,r),eu(d,!0),d.tail===null&&d.tailMode===\"hidden\"&&!b.alternate&&!bt)return pn(i),null}else 2*et()-d.renderingStartTime>ff&&l!==536870912&&(i.flags|=128,p=!0,eu(d,!1),i.lanes=4194304);d.isBackwards?(b.sibling=i.child,i.child=b):(r=d.last,r!==null?r.sibling=b:i.child=b,d.last=b)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=et(),r.sibling=null,l=Pn.current,G(Pn,p?l&1|2:l&1),bt&&It(i,d.treeForkCount),r):(pn(i),null);case 22:case 23:return ia(i),jm(),d=i.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(l&536870912)!==0&&(i.flags&128)===0&&(pn(i),i.subtreeFlags&6&&(i.flags|=8192)):pn(i),l=i.updateQueue,l!==null&&sf(i,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==l&&(i.flags|=2048),r!==null&&Y(Is),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Pi(qn),pn(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function VN(r,i){switch(ji(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Pi(qn),Ae(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return Ye(i),null;case 31:if(i.memoizedState!==null){if(ia(i),i.alternate===null)throw Error(a(340));zs()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(ia(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));zs()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Y(Pn),null;case 4:return Ae(),null;case 10:return Pi(i.type),null;case 22:case 23:return ia(i),jm(),r!==null&&Y(Is),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return Pi(qn),null;case 25:return null;default:return null}}function Bx(r,i){switch(ji(i),i.tag){case 3:Pi(qn),Ae();break;case 26:case 27:case 5:Ye(i);break;case 4:Ae();break;case 31:i.memoizedState!==null&&ia(i);break;case 13:ia(i);break;case 19:Y(Pn);break;case 10:Pi(i.type);break;case 22:case 23:ia(i),jm(),r!==null&&Y(Is);break;case 24:Pi(qn)}}function tu(r,i){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&r)===r){d=void 0;var b=l.create,k=l.inst;d=b(),k.destroy=d}l=l.next}while(l!==p)}}catch(L){Zt(i,i.return,L)}}function Ao(r,i,l){try{var d=i.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var b=p.next;d=b;do{if((d.tag&r)===r){var k=d.inst,L=k.destroy;if(L!==void 0){k.destroy=void 0,p=i;var X=l,de=L;try{de()}catch(we){Zt(p,X,we)}}}d=d.next}while(d!==b)}}catch(we){Zt(i,i.return,we)}}function Ux(r){var i=r.updateQueue;if(i!==null){var l=r.stateNode;try{j1(i,l)}catch(d){Zt(r,r.return,d)}}}function Vx(r,i,l){l.props=Bs(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(d){Zt(r,i,d)}}function nu(r,i){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof l==\"function\"?r.refCleanup=l(d):l.current=d}}catch(p){Zt(r,i,p)}}function ii(r,i){var l=r.ref,d=r.refCleanup;if(l!==null)if(typeof d==\"function\")try{d()}catch(p){Zt(r,i,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l==\"function\")try{l(null)}catch(p){Zt(r,i,p)}else l.current=null}function Wx(r){var i=r.type,l=r.memoizedProps,d=r.stateNode;try{e:switch(i){case\"button\":case\"input\":case\"select\":case\"textarea\":l.autoFocus&&d.focus();break e;case\"img\":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(p){Zt(r,r.return,p)}}function fp(r,i,l){try{var d=r.stateNode;hO(d,r.type,l,i),d[jn]=i}catch(p){Zt(r,r.return,p)}}function Gx(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Lo(r.type)||r.tag===4}function hp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Gx(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Lo(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function mp(r,i,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?(l.nodeType===9?l.body:l.nodeName===\"HTML\"?l.ownerDocument.body:l).insertBefore(r,i):(i=l.nodeType===9?l.body:l.nodeName===\"HTML\"?l.ownerDocument.body:l,i.appendChild(r),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Lr));else if(d!==4&&(d===27&&Lo(r.type)&&(l=r.stateNode,i=null),r=r.child,r!==null))for(mp(r,i,l),r=r.sibling;r!==null;)mp(r,i,l),r=r.sibling}function lf(r,i,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(d!==4&&(d===27&&Lo(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(lf(r,i,l),r=r.sibling;r!==null;)lf(r,i,l),r=r.sibling}function Yx(r){var i=r.stateNode,l=r.memoizedProps;try{for(var d=r.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);sr(i,d,l),i[Tn]=r,i[jn]=l}catch(b){Zt(r,r.return,b)}}var $i=!1,Bn=!1,pp=!1,Xx=typeof WeakSet==\"function\"?WeakSet:Set,Zn=null;function WN(r,i){if(r=r.containerInfo,Pp=Mf,r=_l(r),Lc(r)){if(\"selectionStart\"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,L=-1,X=-1,de=0,we=0,Ee=r,me=null;t:for(;;){for(var ge;Ee!==l||p!==0&&Ee.nodeType!==3||(L=k+p),Ee!==b||d!==0&&Ee.nodeType!==3||(X=k+d),Ee.nodeType===3&&(k+=Ee.nodeValue.length),(ge=Ee.firstChild)!==null;)me=Ee,Ee=ge;for(;;){if(Ee===r)break t;if(me===l&&++de===p&&(L=k),me===b&&++we===d&&(X=k),(ge=Ee.nextSibling)!==null)break;Ee=me,me=Ee.parentNode}Ee=ge}l=L===-1||X===-1?null:{start:L,end:X}}else l=null}l=l||{start:0,end:0}}else l=null;for(Lp={focusedElem:r,selectionRange:l},Mf=!1,Zn=i;Zn!==null;)if(i=Zn,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Zn=r;else for(;Zn!==null;){switch(i=Zn,b=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)p=r[l],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&b!==null){r=void 0,l=i,p=b.memoizedProps,b=b.memoizedState,d=l.stateNode;try{var Ge=Bs(l.type,p);r=d.getSnapshotBeforeUpdate(Ge,b),d.__reactInternalSnapshotBeforeUpdate=r}catch(st){Zt(l,l.return,st)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,l=r.nodeType,l===9)qp(r);else if(l===1)switch(r.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":qp(r);break;default:r.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,Zn=r;break}Zn=i.return}}function Kx(r,i,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:Bi(r,l),d&4&&tu(5,l);break;case 1:if(Bi(r,l),d&4)if(r=l.stateNode,i===null)try{r.componentDidMount()}catch(k){Zt(l,l.return,k)}else{var p=Bs(l.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(p,i,r.__reactInternalSnapshotBeforeUpdate)}catch(k){Zt(l,l.return,k)}}d&64&&Ux(l),d&512&&nu(l,l.return);break;case 3:if(Bi(r,l),d&64&&(r=l.updateQueue,r!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{j1(r,i)}catch(k){Zt(l,l.return,k)}}break;case 27:i===null&&d&4&&Yx(l);case 26:case 5:Bi(r,l),i===null&&d&4&&Wx(l),d&512&&nu(l,l.return);break;case 12:Bi(r,l);break;case 31:Bi(r,l),d&4&&Jx(r,l);break;case 13:Bi(r,l),d&4&&ew(r,l),d&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=tO.bind(null,l),wO(r,l))));break;case 22:if(d=l.memoizedState!==null||$i,!d){i=i!==null&&i.memoizedState!==null||Bn,p=$i;var b=Bn;$i=d,(Bn=i)&&!b?Ui(r,l,(l.subtreeFlags&8772)!==0):Bi(r,l),$i=p,Bn=b}break;case 30:break;default:Bi(r,l)}}function Qx(r){var i=r.alternate;i!==null&&(r.alternate=null,Qx(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Za(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var wn=null,qr=!1;function Fi(r,i,l){for(l=l.child;l!==null;)Zx(r,i,l),l=l.sibling}function Zx(r,i,l){if(Lt&&typeof Lt.onCommitFiberUnmount==\"function\")try{Lt.onCommitFiberUnmount(yt,l)}catch{}switch(l.tag){case 26:Bn||ii(l,i),Fi(r,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Bn||ii(l,i);var d=wn,p=qr;Lo(l.type)&&(wn=l.stateNode,qr=!1),Fi(r,i,l),du(l.stateNode),wn=d,qr=p;break;case 5:Bn||ii(l,i);case 6:if(d=wn,p=qr,wn=null,Fi(r,i,l),wn=d,qr=p,wn!==null)if(qr)try{(wn.nodeType===9?wn.body:wn.nodeName===\"HTML\"?wn.ownerDocument.body:wn).removeChild(l.stateNode)}catch(b){Zt(l,i,b)}else try{wn.removeChild(l.stateNode)}catch(b){Zt(l,i,b)}break;case 18:wn!==null&&(qr?(r=wn,Uw(r.nodeType===9?r.body:r.nodeName===\"HTML\"?r.ownerDocument.body:r,l.stateNode),Ql(r)):Uw(wn,l.stateNode));break;case 4:d=wn,p=qr,wn=l.stateNode.containerInfo,qr=!0,Fi(r,i,l),wn=d,qr=p;break;case 0:case 11:case 14:case 15:Ao(2,l,i),Bn||Ao(4,l,i),Fi(r,i,l);break;case 1:Bn||(ii(l,i),d=l.stateNode,typeof d.componentWillUnmount==\"function\"&&Vx(l,i,d)),Fi(r,i,l);break;case 21:Fi(r,i,l);break;case 22:Bn=(d=Bn)||l.memoizedState!==null,Fi(r,i,l),Bn=d;break;default:Fi(r,i,l)}}function Jx(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ql(r)}catch(l){Zt(i,i.return,l)}}}function ew(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ql(r)}catch(l){Zt(i,i.return,l)}}function GN(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Xx),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Xx),i;default:throw Error(a(435,r.tag))}}function cf(r,i){var l=GN(r);i.forEach(function(d){if(!l.has(d)){l.add(d);var p=nO.bind(null,r,d);d.then(p,p)}})}function $r(r,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d],b=r,k=i,L=k;e:for(;L!==null;){switch(L.tag){case 27:if(Lo(L.type)){wn=L.stateNode,qr=!1;break e}break;case 5:wn=L.stateNode,qr=!1;break e;case 3:case 4:wn=L.stateNode.containerInfo,qr=!0;break e}L=L.return}if(wn===null)throw Error(a(160));Zx(b,k,p),wn=null,qr=!1,b=p.alternate,b!==null&&(b.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)tw(i,r),i=i.sibling}var qa=null;function tw(r,i){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:$r(i,r),Fr(r),d&4&&(Ao(3,r,r.return),tu(3,r),Ao(5,r,r.return));break;case 1:$r(i,r),Fr(r),d&512&&(Bn||l===null||ii(l,l.return)),d&64&&$i&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var p=qa;if($r(i,r),Fr(r),d&512&&(Bn||l===null||ii(l,l.return)),d&4){var b=l!==null?l.memoizedState:null;if(d=r.memoizedState,l===null)if(d===null)if(r.stateNode===null){e:{d=r.type,l=r.memoizedProps,p=p.ownerDocument||p;t:switch(d){case\"title\":b=p.getElementsByTagName(\"title\")[0],(!b||b[dr]||b[Tn]||b.namespaceURI===\"http://www.w3.org/2000/svg\"||b.hasAttribute(\"itemprop\"))&&(b=p.createElement(d),p.head.insertBefore(b,p.querySelector(\"head > title\"))),sr(b,d,l),b[Tn]=r,En(b),d=b;break e;case\"link\":var k=tS(\"link\",\"href\",p).get(d+(l.href||\"\"));if(k){for(var L=0;L<k.length;L++)if(b=k[L],b.getAttribute(\"href\")===(l.href==null||l.href===\"\"?null:l.href)&&b.getAttribute(\"rel\")===(l.rel==null?null:l.rel)&&b.getAttribute(\"title\")===(l.title==null?null:l.title)&&b.getAttribute(\"crossorigin\")===(l.crossOrigin==null?null:l.crossOrigin)){k.splice(L,1);break t}}b=p.createElement(d),sr(b,d,l),p.head.appendChild(b);break;case\"meta\":if(k=tS(\"meta\",\"content\",p).get(d+(l.content||\"\"))){for(L=0;L<k.length;L++)if(b=k[L],b.getAttribute(\"content\")===(l.content==null?null:\"\"+l.content)&&b.getAttribute(\"name\")===(l.name==null?null:l.name)&&b.getAttribute(\"property\")===(l.property==null?null:l.property)&&b.getAttribute(\"http-equiv\")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute(\"charset\")===(l.charSet==null?null:l.charSet)){k.splice(L,1);break t}}b=p.createElement(d),sr(b,d,l),p.head.appendChild(b);break;default:throw Error(a(468,d))}b[Tn]=r,En(b),d=b}r.stateNode=d}else nS(p,r.type,r.stateNode);else r.stateNode=eS(p,d,r.memoizedProps);else b!==d?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,d===null?nS(p,r.type,r.stateNode):eS(p,d,r.memoizedProps)):d===null&&r.stateNode!==null&&fp(r,r.memoizedProps,l.memoizedProps)}break;case 27:$r(i,r),Fr(r),d&512&&(Bn||l===null||ii(l,l.return)),l!==null&&d&4&&fp(r,r.memoizedProps,l.memoizedProps);break;case 5:if($r(i,r),Fr(r),d&512&&(Bn||l===null||ii(l,l.return)),r.flags&32){p=r.stateNode;try{ja(p,\"\")}catch(Ge){Zt(r,r.return,Ge)}}d&4&&r.stateNode!=null&&(p=r.memoizedProps,fp(r,p,l!==null?l.memoizedProps:p)),d&1024&&(pp=!0);break;case 6:if($r(i,r),Fr(r),d&4){if(r.stateNode===null)throw Error(a(162));d=r.memoizedProps,l=r.stateNode;try{l.nodeValue=d}catch(Ge){Zt(r,r.return,Ge)}}break;case 3:if(Ef=null,p=qa,qa=Cf(i.containerInfo),$r(i,r),qa=p,Fr(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Ql(i.containerInfo)}catch(Ge){Zt(r,r.return,Ge)}pp&&(pp=!1,nw(r));break;case 4:d=qa,qa=Cf(r.stateNode.containerInfo),$r(i,r),Fr(r),qa=d;break;case 12:$r(i,r),Fr(r);break;case 31:$r(i,r),Fr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,cf(r,d)));break;case 13:$r(i,r),Fr(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(df=et()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,cf(r,d)));break;case 22:p=r.memoizedState!==null;var X=l!==null&&l.memoizedState!==null,de=$i,we=Bn;if($i=de||p,Bn=we||X,$r(i,r),Bn=we,$i=de,Fr(r),d&8192)e:for(i=r.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(l===null||X||$i||Bn||Us(r)),l=null,i=r;;){if(i.tag===5||i.tag===26){if(l===null){X=l=i;try{if(b=X.stateNode,p)k=b.style,typeof k.setProperty==\"function\"?k.setProperty(\"display\",\"none\",\"important\"):k.display=\"none\";else{L=X.stateNode;var Ee=X.memoizedProps.style,me=Ee!=null&&Ee.hasOwnProperty(\"display\")?Ee.display:null;L.style.display=me==null||typeof me==\"boolean\"?\"\":(\"\"+me).trim()}}catch(Ge){Zt(X,X.return,Ge)}}}else if(i.tag===6){if(l===null){X=i;try{X.stateNode.nodeValue=p?\"\":X.memoizedProps}catch(Ge){Zt(X,X.return,Ge)}}}else if(i.tag===18){if(l===null){X=i;try{var ge=X.stateNode;p?Vw(ge,!0):Vw(X.stateNode,!1)}catch(Ge){Zt(X,X.return,Ge)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}d&4&&(d=r.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,cf(r,l))));break;case 19:$r(i,r),Fr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,cf(r,d)));break;case 30:break;case 21:break;default:$r(i,r),Fr(r)}}function Fr(r){var i=r.flags;if(i&2){try{for(var l,d=r.return;d!==null;){if(Gx(d)){l=d;break}d=d.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var p=l.stateNode,b=hp(r);lf(r,b,p);break;case 5:var k=l.stateNode;l.flags&32&&(ja(k,\"\"),l.flags&=-33);var L=hp(r);lf(r,L,k);break;case 3:case 4:var X=l.stateNode.containerInfo,de=hp(r);mp(r,de,X);break;default:throw Error(a(161))}}catch(we){Zt(r,r.return,we)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function nw(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;nw(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Bi(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Kx(r,i.alternate,i),i=i.sibling}function Us(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:Ao(4,i,i.return),Us(i);break;case 1:ii(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount==\"function\"&&Vx(i,i.return,l),Us(i);break;case 27:du(i.stateNode);case 26:case 5:ii(i,i.return),Us(i);break;case 22:i.memoizedState===null&&Us(i);break;case 30:Us(i);break;default:Us(i)}r=r.sibling}}function Ui(r,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var d=i.alternate,p=r,b=i,k=b.flags;switch(b.tag){case 0:case 11:case 15:Ui(p,b,l),tu(4,b);break;case 1:if(Ui(p,b,l),d=b,p=d.stateNode,typeof p.componentDidMount==\"function\")try{p.componentDidMount()}catch(de){Zt(d,d.return,de)}if(d=b,p=d.updateQueue,p!==null){var L=d.stateNode;try{var X=p.shared.hiddenCallbacks;if(X!==null)for(p.shared.hiddenCallbacks=null,p=0;p<X.length;p++)D1(X[p],L)}catch(de){Zt(d,d.return,de)}}l&&k&64&&Ux(b),nu(b,b.return);break;case 27:Yx(b);case 26:case 5:Ui(p,b,l),l&&d===null&&k&4&&Wx(b),nu(b,b.return);break;case 12:Ui(p,b,l);break;case 31:Ui(p,b,l),l&&k&4&&Jx(p,b);break;case 13:Ui(p,b,l),l&&k&4&&ew(p,b);break;case 22:b.memoizedState===null&&Ui(p,b,l),nu(b,b.return);break;case 30:break;default:Ui(p,b,l)}i=i.sibling}}function gp(r,i){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Fc(l))}function vp(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Fc(r))}function $a(r,i,l,d){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)rw(r,i,l,d),i=i.sibling}function rw(r,i,l,d){var p=i.flags;switch(i.tag){case 0:case 11:case 15:$a(r,i,l,d),p&2048&&tu(9,i);break;case 1:$a(r,i,l,d);break;case 3:$a(r,i,l,d),p&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Fc(r)));break;case 12:if(p&2048){$a(r,i,l,d),r=i.stateNode;try{var b=i.memoizedProps,k=b.id,L=b.onPostCommit;typeof L==\"function\"&&L(k,i.alternate===null?\"mount\":\"update\",r.passiveEffectDuration,-0)}catch(X){Zt(i,i.return,X)}}else $a(r,i,l,d);break;case 31:$a(r,i,l,d);break;case 13:$a(r,i,l,d);break;case 23:break;case 22:b=i.stateNode,k=i.alternate,i.memoizedState!==null?b._visibility&2?$a(r,i,l,d):ru(r,i):b._visibility&2?$a(r,i,l,d):(b._visibility|=2,ql(r,i,l,d,(i.subtreeFlags&10256)!==0||!1)),p&2048&&gp(k,i);break;case 24:$a(r,i,l,d),p&2048&&vp(i.alternate,i);break;default:$a(r,i,l,d)}}function ql(r,i,l,d,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var b=r,k=i,L=l,X=d,de=k.flags;switch(k.tag){case 0:case 11:case 15:ql(b,k,L,X,p),tu(8,k);break;case 23:break;case 22:var we=k.stateNode;k.memoizedState!==null?we._visibility&2?ql(b,k,L,X,p):ru(b,k):(we._visibility|=2,ql(b,k,L,X,p)),p&&de&2048&&gp(k.alternate,k);break;case 24:ql(b,k,L,X,p),p&&de&2048&&vp(k.alternate,k);break;default:ql(b,k,L,X,p)}i=i.sibling}}function ru(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=r,d=i,p=d.flags;switch(d.tag){case 22:ru(l,d),p&2048&&gp(d.alternate,d);break;case 24:ru(l,d),p&2048&&vp(d.alternate,d);break;default:ru(l,d)}i=i.sibling}}var au=8192;function $l(r,i,l){if(r.subtreeFlags&au)for(r=r.child;r!==null;)aw(r,i,l),r=r.sibling}function aw(r,i,l){switch(r.tag){case 26:$l(r,i,l),r.flags&au&&r.memoizedState!==null&&DO(l,qa,r.memoizedState,r.memoizedProps);break;case 5:$l(r,i,l);break;case 3:case 4:var d=qa;qa=Cf(r.stateNode.containerInfo),$l(r,i,l),qa=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=au,au=16777216,$l(r,i,l),au=d):$l(r,i,l));break;default:$l(r,i,l)}}function iw(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function iu(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var d=i[l];Zn=d,sw(d,r)}iw(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ow(r),r=r.sibling}function ow(r){switch(r.tag){case 0:case 11:case 15:iu(r),r.flags&2048&&Ao(9,r,r.return);break;case 3:iu(r);break;case 12:iu(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,uf(r)):iu(r);break;default:iu(r)}}function uf(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var d=i[l];Zn=d,sw(d,r)}iw(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:Ao(8,i,i.return),uf(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,uf(i));break;default:uf(i)}r=r.sibling}}function sw(r,i){for(;Zn!==null;){var l=Zn;switch(l.tag){case 0:case 11:case 15:Ao(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Fc(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,Zn=d;else e:for(l=r;Zn!==null;){d=Zn;var p=d.sibling,b=d.return;if(Qx(d),d===l){Zn=null;break e}if(p!==null){p.return=b,Zn=p;break e}Zn=b}}}var YN={getCacheForType:function(r){var i=ir(qn),l=i.data.get(r);return l===void 0&&(l=r(),i.data.set(r,l)),l},cacheSignal:function(){return ir(qn).controller.signal}},XN=typeof WeakMap==\"function\"?WeakMap:Map,Gt=0,sn=null,Nt=null,zt=0,Qt=0,oa=null,No=!1,Fl=!1,yp=!1,Vi=0,On=0,Oo=0,Vs=0,bp=0,sa=0,Bl=0,ou=null,Br=null,xp=!1,df=0,lw=0,ff=1/0,hf=null,Do=null,Gn=0,jo=null,Ul=null,Wi=0,wp=0,Sp=null,cw=null,su=0,Cp=null;function la(){return(Gt&2)!==0&&zt!==0?zt&-zt:F.T!==null?Mp():Cn()}function uw(){if(sa===0)if((zt&536870912)===0||bt){var r=zr;zr<<=1,(zr&3932160)===0&&(zr=262144),sa=r}else sa=536870912;return r=aa.current,r!==null&&(r.flags|=32),sa}function Ur(r,i,l){(r===sn&&(Qt===2||Qt===9)||r.cancelPendingCommit!==null)&&(Vl(r,0),zo(r,zt,sa,!1)),Wt(r,l),((Gt&2)===0||r!==sn)&&(r===sn&&((Gt&2)===0&&(Vs|=l),On===4&&zo(r,zt,sa,!1)),oi(r))}function dw(r,i,l){if((Gt&6)!==0)throw Error(a(327));var d=!l&&(i&127)===0&&(i&r.expiredLanes)===0||Xt(r,i),p=d?ZN(r,i):Ep(r,i,!0),b=d;do{if(p===0){Fl&&!d&&zo(r,i,0,!1);break}else{if(l=r.current.alternate,b&&!KN(l)){p=Ep(r,i,!1),b=!1;continue}if(p===2){if(b=i,r.errorRecoveryDisabledLanes&b)var k=0;else k=r.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){i=k;e:{var L=r;p=ou;var X=L.current.memoizedState.isDehydrated;if(X&&(Vl(L,k).flags|=256),k=Ep(L,k,!1),k!==2){if(yp&&!X){L.errorRecoveryDisabledLanes|=b,Vs|=b,p=4;break e}b=Br,Br=p,b!==null&&(Br===null?Br=b:Br.push.apply(Br,b))}p=k}if(b=!1,p!==2)continue}}if(p===1){Vl(r,0),zo(r,i,0,!0);break}e:{switch(d=r,b=p,b){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:zo(d,i,sa,!No);break e;case 2:Br=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(p=df+300-et(),10<p)){if(zo(d,i,sa,!No),kt(d,0,!0)!==0)break e;Wi=i,d.timeoutHandle=Fw(fw.bind(null,d,l,Br,hf,xp,i,sa,Vs,Bl,No,b,\"Throttled\",-0,0),p);break e}fw(d,l,Br,hf,xp,i,sa,Vs,Bl,No,b,null,-0,0)}}break}while(!0);oi(r)}function fw(r,i,l,d,p,b,k,L,X,de,we,Ee,me,ge){if(r.timeoutHandle=-1,Ee=i.subtreeFlags,Ee&8192||(Ee&16785408)===16785408){Ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lr},aw(i,b,Ee);var Ge=(b&62914560)===b?df-et():(b&4194048)===b?lw-et():0;if(Ge=jO(Ee,Ge),Ge!==null){Wi=b,r.cancelPendingCommit=Ge(xw.bind(null,r,i,b,l,d,p,k,L,X,we,Ee,null,me,ge)),zo(r,b,k,!de);return}}xw(r,i,b,l,d,p,k,L,X)}function KN(r){for(var i=r;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var p=l[d],b=p.getSnapshot;p=p.value;try{if(!Mr(b(),p))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function zo(r,i,l,d){i&=~bp,i&=~Vs,r.suspendedLanes|=i,r.pingedLanes&=~i,d&&(r.warmLanes|=i),d=r.expirationTimes;for(var p=i;0<p;){var b=31-cn(p),k=1<<b;d[b]=-1,p&=~k}l!==0&&Wr(r,l,i)}function mf(){return(Gt&6)===0?(lu(0),!1):!0}function Rp(){if(Nt!==null){if(Qt===0)var r=Nt.return;else r=Nt,zi=Ps=null,qm(r),zl=null,Uc=0,r=Nt;for(;r!==null;)Bx(r.alternate,r),r=r.return;Nt=null}}function Vl(r,i){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,gO(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Wi=0,Rp(),sn=r,Nt=l=Ha(r.current,null),zt=i,Qt=0,oa=null,No=!1,Fl=Xt(r,i),yp=!1,Bl=sa=bp=Vs=Oo=On=0,Br=ou=null,xp=!1,(i&8)!==0&&(i|=i&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=i;0<d;){var p=31-cn(d),b=1<<p;i|=r[p],d&=~b}return Vi=i,Ns(),l}function hw(r,i){xt=null,F.H=Zc,i===jl||i===Fd?(i=M1(),Qt=3):i===Tm?(i=M1(),Qt=4):Qt=i===np?8:i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"?6:1,oa=i,Nt===null&&(On=1,nf(r,pe(i,r.current)))}function mw(){var r=aa.current;return r===null?!0:(zt&4194048)===zt?Ra===null:(zt&62914560)===zt||(zt&536870912)!==0?r===Ra:!1}function pw(){var r=F.H;return F.H=Zc,r===null?Zc:r}function gw(){var r=F.A;return F.A=YN,r}function pf(){On=4,No||(zt&4194048)!==zt&&aa.current!==null||(Fl=!0),(Oo&134217727)===0&&(Vs&134217727)===0||sn===null||zo(sn,zt,sa,!1)}function Ep(r,i,l){var d=Gt;Gt|=2;var p=pw(),b=gw();(sn!==r||zt!==i)&&(hf=null,Vl(r,i)),i=!1;var k=On;e:do try{if(Qt!==0&&Nt!==null){var L=Nt,X=oa;switch(Qt){case 8:Rp(),k=6;break e;case 3:case 2:case 9:case 6:aa.current===null&&(i=!0);var de=Qt;if(Qt=0,oa=null,Wl(r,L,X,de),l&&Fl){k=0;break e}break;default:de=Qt,Qt=0,oa=null,Wl(r,L,X,de)}}QN(),k=On;break}catch(we){hw(r,we)}while(!0);return i&&r.shellSuspendCounter++,zi=Ps=null,Gt=d,F.H=p,F.A=b,Nt===null&&(sn=null,zt=0,Ns()),k}function QN(){for(;Nt!==null;)vw(Nt)}function ZN(r,i){var l=Gt;Gt|=2;var d=pw(),p=gw();sn!==r||zt!==i?(hf=null,ff=et()+500,Vl(r,i)):Fl=Xt(r,i);e:do try{if(Qt!==0&&Nt!==null){i=Nt;var b=oa;t:switch(Qt){case 1:Qt=0,oa=null,Wl(r,i,b,1);break;case 2:case 9:if(_1(b)){Qt=0,oa=null,yw(i);break}i=function(){Qt!==2&&Qt!==9||sn!==r||(Qt=7),oi(r)},b.then(i,i);break e;case 3:Qt=7;break e;case 4:Qt=5;break e;case 7:_1(b)?(Qt=0,oa=null,yw(i)):(Qt=0,oa=null,Wl(r,i,b,7));break;case 5:var k=null;switch(Nt.tag){case 26:k=Nt.memoizedState;case 5:case 27:var L=Nt;if(k?rS(k):L.stateNode.complete){Qt=0,oa=null;var X=L.sibling;if(X!==null)Nt=X;else{var de=L.return;de!==null?(Nt=de,gf(de)):Nt=null}break t}}Qt=0,oa=null,Wl(r,i,b,5);break;case 6:Qt=0,oa=null,Wl(r,i,b,6);break;case 8:Rp(),On=6;break e;default:throw Error(a(462))}}JN();break}catch(we){hw(r,we)}while(!0);return zi=Ps=null,F.H=d,F.A=p,Gt=l,Nt!==null?0:(sn=null,zt=0,Ns(),On)}function JN(){for(;Nt!==null&&!Oe();)vw(Nt)}function vw(r){var i=$x(r.alternate,r,Vi);r.memoizedProps=r.pendingProps,i===null?gf(r):Nt=i}function yw(r){var i=r,l=i.alternate;switch(i.tag){case 15:case 0:i=zx(l,i,i.pendingProps,i.type,void 0,zt);break;case 11:i=zx(l,i,i.pendingProps,i.type.render,i.ref,zt);break;case 5:qm(i);default:Bx(l,i),i=Nt=N(i,Vi),i=$x(l,i,Vi)}r.memoizedProps=r.pendingProps,i===null?gf(r):Nt=i}function Wl(r,i,l,d){zi=Ps=null,qm(i),zl=null,Uc=0;var p=i.return;try{if($N(r,p,i,l,zt)){On=1,nf(r,pe(l,r.current)),Nt=null;return}}catch(b){if(p!==null)throw Nt=p,b;On=1,nf(r,pe(l,r.current)),Nt=null;return}i.flags&32768?(bt||d===1?r=!0:Fl||(zt&536870912)!==0?r=!1:(No=r=!0,(d===2||d===9||d===3||d===6)&&(d=aa.current,d!==null&&d.tag===13&&(d.flags|=16384))),bw(i,r)):gf(i)}function gf(r){var i=r;do{if((i.flags&32768)!==0){bw(i,No);return}r=i.return;var l=UN(i.alternate,i,Vi);if(l!==null){Nt=l;return}if(i=i.sibling,i!==null){Nt=i;return}Nt=i=r}while(i!==null);On===0&&(On=5)}function bw(r,i){do{var l=VN(r.alternate,r);if(l!==null){l.flags&=32767,Nt=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(r=r.sibling,r!==null)){Nt=r;return}Nt=r=l}while(r!==null);On=6,Nt=null}function xw(r,i,l,d,p,b,k,L,X){r.cancelPendingCommit=null;do vf();while(Gn!==0);if((Gt&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(b=i.lanes|i.childLanes,b|=Ic,en(r,l,b,k,L,X),r===sn&&(Nt=sn=null,zt=0),Ul=i,jo=r,Wi=l,wp=b,Sp=p,cw=d,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,rO(mt,function(){return Ew(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=F.T,F.T=null,p=U.p,U.p=2,k=Gt,Gt|=4;try{WN(r,i,l)}finally{Gt=k,U.p=p,F.T=d}}Gn=1,ww(),Sw(),Cw()}}function ww(){if(Gn===1){Gn=0;var r=jo,i=Ul,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=F.T,F.T=null;var d=U.p;U.p=2;var p=Gt;Gt|=4;try{tw(i,r);var b=Lp,k=_l(r.containerInfo),L=b.focusedElem,X=b.selectionRange;if(k!==L&&L&&L.ownerDocument&&Pd(L.ownerDocument.documentElement,L)){if(X!==null&&Lc(L)){var de=X.start,we=X.end;if(we===void 0&&(we=de),\"selectionStart\"in L)L.selectionStart=de,L.selectionEnd=Math.min(we,L.value.length);else{var Ee=L.ownerDocument||document,me=Ee&&Ee.defaultView||window;if(me.getSelection){var ge=me.getSelection(),Ge=L.textContent.length,st=Math.min(X.start,Ge),on=X.end===void 0?st:Math.min(X.end,Ge);!ge.extend&&st>on&&(k=on,on=st,st=k);var ae=zd(L,st),Q=zd(L,on);if(ae&&Q&&(ge.rangeCount!==1||ge.anchorNode!==ae.node||ge.anchorOffset!==ae.offset||ge.focusNode!==Q.node||ge.focusOffset!==Q.offset)){var ue=Ee.createRange();ue.setStart(ae.node,ae.offset),ge.removeAllRanges(),st>on?(ge.addRange(ue),ge.extend(Q.node,Q.offset)):(ue.setEnd(Q.node,Q.offset),ge.addRange(ue))}}}}for(Ee=[],ge=L;ge=ge.parentNode;)ge.nodeType===1&&Ee.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof L.focus==\"function\"&&L.focus(),L=0;L<Ee.length;L++){var Ce=Ee[L];Ce.element.scrollLeft=Ce.left,Ce.element.scrollTop=Ce.top}}Mf=!!Pp,Lp=Pp=null}finally{Gt=p,U.p=d,F.T=l}}r.current=i,Gn=2}}function Sw(){if(Gn===2){Gn=0;var r=jo,i=Ul,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=F.T,F.T=null;var d=U.p;U.p=2;var p=Gt;Gt|=4;try{Kx(r,i.alternate,i)}finally{Gt=p,U.p=d,F.T=l}}Gn=3}}function Cw(){if(Gn===4||Gn===3){Gn=0,Be();var r=jo,i=Ul,l=Wi,d=cw;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Gn=5:(Gn=0,Ul=jo=null,Rw(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(Do=null),Qa(l),i=i.stateNode,Lt&&typeof Lt.onCommitFiberRoot==\"function\")try{Lt.onCommitFiberRoot(yt,i,void 0,(i.current.flags&128)===128)}catch{}if(d!==null){i=F.T,p=U.p,U.p=2,F.T=null;try{for(var b=r.onRecoverableError,k=0;k<d.length;k++){var L=d[k];b(L.value,{componentStack:L.stack})}}finally{F.T=i,U.p=p}}(Wi&3)!==0&&vf(),oi(r),p=r.pendingLanes,(l&261930)!==0&&(p&42)!==0?r===Cp?su++:(su=0,Cp=r):su=0,lu(0)}}function Rw(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Fc(i)))}function vf(){return ww(),Sw(),Cw(),Ew()}function Ew(){if(Gn!==5)return!1;var r=jo,i=wp;wp=0;var l=Qa(Wi),d=F.T,p=U.p;try{U.p=32>l?32:l,F.T=null,l=Sp,Sp=null;var b=jo,k=Wi;if(Gn=0,Ul=jo=null,Wi=0,(Gt&6)!==0)throw Error(a(331));var L=Gt;if(Gt|=4,ow(b.current),rw(b,b.current,k,l),Gt=L,lu(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot==\"function\")try{Lt.onPostCommitFiberRoot(yt,b)}catch{}return!0}finally{U.p=p,F.T=d,Rw(r,i)}}function kw(r,i,l){i=pe(l,i),i=tp(r.stateNode,i,2),r=_o(r,i,2),r!==null&&(Wt(r,2),oi(r))}function Zt(r,i,l){if(r.tag===3)kw(r,r,l);else for(;i!==null;){if(i.tag===3){kw(i,r,l);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError==\"function\"||typeof d.componentDidCatch==\"function\"&&(Do===null||!Do.has(d))){r=pe(l,r),l=_x(2),d=_o(i,l,2),d!==null&&(Tx(l,d,i,r),Wt(d,2),oi(d));break}}i=i.return}}function kp(r,i,l){var d=r.pingCache;if(d===null){d=r.pingCache=new XN;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(l)||(yp=!0,p.add(l),r=eO.bind(null,r,i,l),i.then(r,r))}function eO(r,i,l){var d=r.pingCache;d!==null&&d.delete(i),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,sn===r&&(zt&l)===l&&(On===4||On===3&&(zt&62914560)===zt&&300>et()-df?(Gt&2)===0&&Vl(r,0):bp|=l,Bl===zt&&(Bl=0)),oi(r)}function _w(r,i){i===0&&(i=Vn()),r=Ni(r,i),r!==null&&(Wt(r,i),oi(r))}function tO(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),_w(r,l)}function nO(r,i){var l=0;switch(r.tag){case 31:case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(a(314))}d!==null&&d.delete(i),_w(r,l)}function rO(r,i){return Ne(r,i)}var yf=null,Gl=null,_p=!1,bf=!1,Tp=!1,Po=0;function oi(r){r!==Gl&&r.next===null&&(Gl===null?yf=Gl=r:Gl=Gl.next=r),bf=!0,_p||(_p=!0,iO())}function lu(r,i){if(!Tp&&bf){Tp=!0;do for(var l=!1,d=yf;d!==null;){if(r!==0){var p=d.pendingLanes;if(p===0)var b=0;else{var k=d.suspendedLanes,L=d.pingedLanes;b=(1<<31-cn(42|r)+1)-1,b&=p&~(k&~L),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,Nw(d,b))}else b=zt,b=kt(d,d===sn?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(b&3)===0||Xt(d,b)||(l=!0,Nw(d,b));d=d.next}while(l);Tp=!1}}function aO(){Tw()}function Tw(){bf=_p=!1;var r=0;Po!==0&&pO()&&(r=Po);for(var i=et(),l=null,d=yf;d!==null;){var p=d.next,b=Mw(d,i);b===0?(d.next=null,l===null?yf=p:l.next=p,p===null&&(Gl=l)):(l=d,(r!==0||(b&3)!==0)&&(bf=!0)),d=p}Gn!==0&&Gn!==5||lu(r),Po!==0&&(Po=0)}function Mw(r,i){for(var l=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var k=31-cn(b),L=1<<k,X=p[k];X===-1?((L&l)===0||(L&d)!==0)&&(p[k]=wr(L,i)):X<=i&&(r.expiredLanes|=L),b&=~L}if(i=sn,l=zt,l=kt(r,r===i?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,l===0||r===i&&(Qt===2||Qt===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&qe(d),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Xt(r,l)){if(i=l&-l,i===r.callbackPriority)return i;switch(d!==null&&qe(d),Qa(l)){case 2:case 8:l=Ht;break;case 32:l=mt;break;case 268435456:l=Sn;break;default:l=mt}return d=Aw.bind(null,r),l=Ne(l,d),r.callbackPriority=i,r.callbackNode=l,i}return d!==null&&d!==null&&qe(d),r.callbackPriority=2,r.callbackNode=null,2}function Aw(r,i){if(Gn!==0&&Gn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(vf()&&r.callbackNode!==l)return null;var d=zt;return d=kt(r,r===sn?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(dw(r,d,i),Mw(r,et()),r.callbackNode!=null&&r.callbackNode===l?Aw.bind(null,r):null)}function Nw(r,i){if(vf())return null;dw(r,i,!0)}function iO(){vO(function(){(Gt&6)!==0?Ne(Ve,aO):Tw()})}function Mp(){if(Po===0){var r=Ol;r===0&&(r=In,In<<=1,(In&261888)===0&&(In=256)),Po=r}return Po}function Ow(r){return r==null||typeof r==\"symbol\"||typeof r==\"boolean\"?null:typeof r==\"function\"?r:so(\"\"+r)}function Dw(r,i){var l=i.ownerDocument.createElement(\"input\");return l.name=i.name,l.value=i.value,r.id&&l.setAttribute(\"form\",r.id),i.parentNode.insertBefore(l,i),r=new FormData(r),l.parentNode.removeChild(l),r}function oO(r,i,l,d,p){if(i===\"submit\"&&l&&l.stateNode===p){var b=Ow((p[jn]||null).action),k=d.submitter;k&&(i=(i=k[jn]||null)?Ow(i.formAction):k.getAttribute(\"formAction\"),i!==null&&(b=i,k=null));var L=new Le(\"action\",\"action\",null,d,p);r.push({event:L,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Po!==0){var X=k?Dw(p,k):new FormData(p);Xm(l,{pending:!0,data:X,method:p.method,action:b},null,X)}}else typeof b==\"function\"&&(L.preventDefault(),X=k?Dw(p,k):new FormData(p),Xm(l,{pending:!0,data:X,method:p.method,action:b},b,X))},currentTarget:p}]})}}for(var Ap=0;Ap<xo.length;Ap++){var Np=xo[Ap],sO=Np.toLowerCase(),lO=Np[0].toUpperCase()+Np.slice(1);Ir(sO,\"on\"+lO)}Ir(bo,\"onAnimationEnd\"),Ir(Ld,\"onAnimationIteration\"),Ir(Tl,\"onAnimationStart\"),Ir(\"dblclick\",\"onDoubleClick\"),Ir(\"focusin\",\"onFocus\"),Ir(\"focusout\",\"onBlur\"),Ir(Ts,\"onTransitionRun\"),Ir(ym,\"onTransitionStart\"),Ir(bm,\"onTransitionCancel\"),Ir(Ms,\"onTransitionEnd\"),Qr(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),Qr(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),Qr(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),Qr(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),Na(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),Na(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),Na(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),Na(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),Na(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),Na(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var cu=\"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(\" \"),cO=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(cu));function jw(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],p=d.event;d=d.listeners;e:{var b=void 0;if(i)for(var k=d.length-1;0<=k;k--){var L=d[k],X=L.instance,de=L.currentTarget;if(L=L.listener,X!==b&&p.isPropagationStopped())break e;b=L,p.currentTarget=de;try{b(p)}catch(we){Ml(we)}p.currentTarget=null,b=X}else for(k=0;k<d.length;k++){if(L=d[k],X=L.instance,de=L.currentTarget,L=L.listener,X!==b&&p.isPropagationStopped())break e;b=L,p.currentTarget=de;try{b(p)}catch(we){Ml(we)}p.currentTarget=null,b=X}}}}function Ot(r,i){var l=i[Gr];l===void 0&&(l=i[Gr]=new Set);var d=r+\"__bubble\";l.has(d)||(zw(i,r,2,!1),l.add(d))}function Op(r,i,l){var d=0;i&&(d|=4),zw(l,r,d,i)}var xf=\"_reactListening\"+Math.random().toString(36).slice(2);function Dp(r){if(!r[xf]){r[xf]=!0,vs.forEach(function(l){l!==\"selectionchange\"&&(cO.has(l)||Op(l,!1,r),Op(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[xf]||(i[xf]=!0,Op(\"selectionchange\",!1,i))}}function zw(r,i,l,d){switch(uS(i)){case 2:var p=LO;break;case 8:p=IO;break;default:p=Yp}l=p.bind(null,i,l,r),p=void 0,!Kn||i!==\"touchstart\"&&i!==\"touchmove\"&&i!==\"wheel\"||(p=!0),d?p!==void 0?r.addEventListener(i,l,{capture:!0,passive:p}):r.addEventListener(i,l,!0):p!==void 0?r.addEventListener(i,l,{passive:p}):r.addEventListener(i,l,!1)}function jp(r,i,l,d,p){var b=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var k=d.tag;if(k===3||k===4){var L=d.stateNode.containerInfo;if(L===p)break;if(k===4)for(k=d.return;k!==null;){var X=k.tag;if((X===3||X===4)&&k.stateNode.containerInfo===p)return;k=k.return}for(;L!==null;){if(k=Yr(L),k===null)return;if(X=k.tag,X===5||X===6||X===26||X===27){d=b=k;continue e}L=L.parentNode}}d=d.return}Ci(function(){var de=b,we=ws(l),Ee=[];e:{var me=As.get(r);if(me!==void 0){var ge=Le,Ge=r;switch(r){case\"keypress\":if(se(l)===0)break e;case\"keydown\":case\"keyup\":ge=rr;break;case\"focusin\":Ge=\"focus\",ge=Kt;break;case\"focusout\":Ge=\"blur\",ge=Kt;break;case\"beforeblur\":case\"afterblur\":ge=Kt;break;case\"click\":if(l.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":ge=Ft;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":ge=dn;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":ge=Oc;break;case bo:case Ld:case Tl:ge=An;break;case Ms:ge=Td;break;case\"scroll\":case\"scrollend\":ge=$e;break;case\"wheel\":ge=Sl;break;case\"copy\":case\"cut\":case\"paste\":ge=Bt;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":ge=kr;break;case\"toggle\":case\"beforetoggle\":ge=Md}var st=(i&4)!==0,on=!st&&(r===\"scroll\"||r===\"scrollend\"),ae=st?me!==null?me+\"Capture\":null:me;st=[];for(var Q=de,ue;Q!==null;){var Ce=Q;if(ue=Ce.stateNode,Ce=Ce.tag,Ce!==5&&Ce!==26&&Ce!==27||ue===null||ae===null||(Ce=za(Q,ae),Ce!=null&&st.push(uu(Q,Ce,ue))),on)break;Q=Q.return}0<st.length&&(me=new ge(me,Ge,null,l,we),Ee.push({event:me,listeners:st}))}}if((i&7)===0){e:{if(me=r===\"mouseover\"||r===\"pointerover\",ge=r===\"mouseout\"||r===\"pointerout\",me&&l!==wi&&(Ge=l.relatedTarget||l.fromElement)&&(Yr(Ge)||Ge[ur]))break e;if((ge||me)&&(me=we.window===we?we:(me=we.ownerDocument)?me.defaultView||me.parentWindow:window,ge?(Ge=l.relatedTarget||l.toElement,ge=de,Ge=Ge?Yr(Ge):null,Ge!==null&&(on=s(Ge),st=Ge.tag,Ge!==on||st!==5&&st!==27&&st!==6)&&(Ge=null)):(ge=null,Ge=de),ge!==Ge)){if(st=Ft,Ce=\"onMouseLeave\",ae=\"onMouseEnter\",Q=\"mouse\",(r===\"pointerout\"||r===\"pointerover\")&&(st=kr,Ce=\"onPointerLeave\",ae=\"onPointerEnter\",Q=\"pointer\"),on=ge==null?me:Kr(ge),ue=Ge==null?me:Kr(Ge),me=new st(Ce,Q+\"leave\",ge,l,we),me.target=on,me.relatedTarget=ue,Ce=null,Yr(we)===de&&(st=new st(ae,Q+\"enter\",Ge,l,we),st.target=ue,st.relatedTarget=on,Ce=st),on=Ce,ge&&Ge)t:{for(st=uO,ae=ge,Q=Ge,ue=0,Ce=ae;Ce;Ce=st(Ce))ue++;Ce=0;for(var nt=Q;nt;nt=st(nt))Ce++;for(;0<ue-Ce;)ae=st(ae),ue--;for(;0<Ce-ue;)Q=st(Q),Ce--;for(;ue--;){if(ae===Q||Q!==null&&ae===Q.alternate){st=ae;break t}ae=st(ae),Q=st(Q)}st=null}else st=null;ge!==null&&Pw(Ee,me,ge,st,!1),Ge!==null&&on!==null&&Pw(Ee,on,Ge,st,!0)}}e:{if(me=de?Kr(de):window,ge=me.nodeName&&me.nodeName.toLowerCase(),ge===\"select\"||ge===\"input\"&&me.type===\"file\")var Ut=Nd;else if(mo(me))if(El)Ut=jd;else{Ut=go;var Je=Pc}else ge=me.nodeName,!ge||ge.toLowerCase()!==\"input\"||me.type!==\"checkbox\"&&me.type!==\"radio\"?de&&ve(de.elementType)&&(Ut=Nd):Ut=Dd;if(Ut&&(Ut=Ut(r,de))){po(Ee,Ut,l,we);break e}Je&&Je(r,me,de),r===\"focusout\"&&de&&me.type===\"number\"&&de.memoizedProps.value!=null&&Ja(me,\"number\",me.value)}switch(Je=de?Kr(de):window,r){case\"focusin\":(mo(Je)||Je.contentEditable===\"true\")&&(ri=Je,ks=de,_s=null);break;case\"focusout\":_s=ks=ri=null;break;case\"mousedown\":Ar=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":Ar=!1,La(Ee,l,we);break;case\"selectionchange\":if(vm)break;case\"keydown\":case\"keyup\":La(Ee,l,we)}var St;if(Ss)e:{switch(r){case\"compositionstart\":var Pt=\"onCompositionStart\";break e;case\"compositionend\":Pt=\"onCompositionEnd\";break e;case\"compositionupdate\":Pt=\"onCompositionUpdate\";break e}Pt=void 0}else ea?zc(r,l)&&(Pt=\"onCompositionEnd\"):r===\"keydown\"&&l.keyCode===229&&(Pt=\"onCompositionStart\");Pt&&(Dc&&l.locale!==\"ko\"&&(ea||Pt!==\"onCompositionStart\"?Pt===\"onCompositionEnd\"&&ea&&(St=bl()):(Sa=we,ei=\"value\"in Sa?Sa.value:Sa.textContent,ea=!0)),Je=wf(de,Pt),0<Je.length&&(Pt=new pr(Pt,r,null,l,we),Ee.push({event:Pt,listeners:Je}),St?Pt.data=St:(St=Cl(l),St!==null&&(Pt.data=St)))),(St=fo?Rl(r,l):ni(r,l))&&(Pt=wf(de,\"onBeforeInput\"),0<Pt.length&&(Je=new pr(\"onBeforeInput\",\"beforeinput\",null,l,we),Ee.push({event:Je,listeners:Pt}),Je.data=St)),oO(Ee,r,de,l,we)}jw(Ee,i)})}function uu(r,i,l){return{instance:r,listener:i,currentTarget:l}}function wf(r,i){for(var l=i+\"Capture\",d=[];r!==null;){var p=r,b=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||b===null||(p=za(r,l),p!=null&&d.unshift(uu(r,p,b)),p=za(r,i),p!=null&&d.push(uu(r,p,b))),r.tag===3)return d;r=r.return}return[]}function uO(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Pw(r,i,l,d,p){for(var b=i._reactName,k=[];l!==null&&l!==d;){var L=l,X=L.alternate,de=L.stateNode;if(L=L.tag,X!==null&&X===d)break;L!==5&&L!==26&&L!==27||de===null||(X=de,p?(de=za(l,b),de!=null&&k.unshift(uu(l,de,X))):p||(de=za(l,b),de!=null&&k.push(uu(l,de,X)))),l=l.return}k.length!==0&&r.push({event:i,listeners:k})}var dO=/\\r\\n?/g,fO=/\\u0000|\\uFFFD/g;function Lw(r){return(typeof r==\"string\"?r:\"\"+r).replace(dO,`\n`).replace(fO,\"\")}function Iw(r,i){return i=Lw(i),Lw(r)===i}function an(r,i,l,d,p,b){switch(l){case\"children\":typeof d==\"string\"?i===\"body\"||i===\"textarea\"&&d===\"\"||ja(r,d):(typeof d==\"number\"||typeof d==\"bigint\")&&i!==\"body\"&&ja(r,\"\"+d);break;case\"className\":Rr(r,\"class\",d);break;case\"tabIndex\":Rr(r,\"tabindex\",d);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":Rr(r,l,d);break;case\"style\":mr(r,d,b);break;case\"data\":if(i!==\"object\"){Rr(r,\"data\",d);break}case\"src\":case\"href\":if(d===\"\"&&(i!==\"a\"||l!==\"href\")){r.removeAttribute(l);break}if(d==null||typeof d==\"function\"||typeof d==\"symbol\"||typeof d==\"boolean\"){r.removeAttribute(l);break}d=so(\"\"+d),r.setAttribute(l,d);break;case\"action\":case\"formAction\":if(typeof d==\"function\"){r.setAttribute(l,\"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 b==\"function\"&&(l===\"formAction\"?(i!==\"input\"&&an(r,i,\"name\",p.name,p,null),an(r,i,\"formEncType\",p.formEncType,p,null),an(r,i,\"formMethod\",p.formMethod,p,null),an(r,i,\"formTarget\",p.formTarget,p,null)):(an(r,i,\"encType\",p.encType,p,null),an(r,i,\"method\",p.method,p,null),an(r,i,\"target\",p.target,p,null)));if(d==null||typeof d==\"symbol\"||typeof d==\"boolean\"){r.removeAttribute(l);break}d=so(\"\"+d),r.setAttribute(l,d);break;case\"onClick\":d!=null&&(r.onclick=Lr);break;case\"onScroll\":d!=null&&Ot(\"scroll\",r);break;case\"onScrollEnd\":d!=null&&Ot(\"scrollend\",r);break;case\"dangerouslySetInnerHTML\":if(d!=null){if(typeof d!=\"object\"||!(\"__html\"in d))throw Error(a(61));if(l=d.__html,l!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=l}}break;case\"multiple\":r.multiple=d&&typeof d!=\"function\"&&typeof d!=\"symbol\";break;case\"muted\":r.muted=d&&typeof d!=\"function\"&&typeof d!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(d==null||typeof d==\"function\"||typeof d==\"boolean\"||typeof d==\"symbol\"){r.removeAttribute(\"xlink:href\");break}l=so(\"\"+d),r.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",l);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":d!=null&&typeof d!=\"function\"&&typeof d!=\"symbol\"?r.setAttribute(l,\"\"+d):r.removeAttribute(l);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\":d&&typeof d!=\"function\"&&typeof d!=\"symbol\"?r.setAttribute(l,\"\"):r.removeAttribute(l);break;case\"capture\":case\"download\":d===!0?r.setAttribute(l,\"\"):d!==!1&&d!=null&&typeof d!=\"function\"&&typeof d!=\"symbol\"?r.setAttribute(l,d):r.removeAttribute(l);break;case\"cols\":case\"rows\":case\"size\":case\"span\":d!=null&&typeof d!=\"function\"&&typeof d!=\"symbol\"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case\"rowSpan\":case\"start\":d==null||typeof d==\"function\"||typeof d==\"symbol\"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case\"popover\":Ot(\"beforetoggle\",r),Ot(\"toggle\",r),Da(r,\"popover\",d);break;case\"xlinkActuate\":Mn(r,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",d);break;case\"xlinkArcrole\":Mn(r,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",d);break;case\"xlinkRole\":Mn(r,\"http://www.w3.org/1999/xlink\",\"xlink:role\",d);break;case\"xlinkShow\":Mn(r,\"http://www.w3.org/1999/xlink\",\"xlink:show\",d);break;case\"xlinkTitle\":Mn(r,\"http://www.w3.org/1999/xlink\",\"xlink:title\",d);break;case\"xlinkType\":Mn(r,\"http://www.w3.org/1999/xlink\",\"xlink:type\",d);break;case\"xmlBase\":Mn(r,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",d);break;case\"xmlLang\":Mn(r,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",d);break;case\"xmlSpace\":Mn(r,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",d);break;case\"is\":Da(r,\"is\",d);break;case\"innerText\":case\"textContent\":break;default:(!(2<l.length)||l[0]!==\"o\"&&l[0]!==\"O\"||l[1]!==\"n\"&&l[1]!==\"N\")&&(l=un.get(l)||l,Da(r,l,d))}}function zp(r,i,l,d,p,b){switch(l){case\"style\":mr(r,d,b);break;case\"dangerouslySetInnerHTML\":if(d!=null){if(typeof d!=\"object\"||!(\"__html\"in d))throw Error(a(61));if(l=d.__html,l!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=l}}break;case\"children\":typeof d==\"string\"?ja(r,d):(typeof d==\"number\"||typeof d==\"bigint\")&&ja(r,\"\"+d);break;case\"onScroll\":d!=null&&Ot(\"scroll\",r);break;case\"onScrollEnd\":d!=null&&Ot(\"scrollend\",r);break;case\"onClick\":d!=null&&(r.onclick=Lr);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(!ml.hasOwnProperty(l))e:{if(l[0]===\"o\"&&l[1]===\"n\"&&(p=l.endsWith(\"Capture\"),i=l.slice(2,p?l.length-7:void 0),b=r[jn]||null,b=b!=null?b[l]:null,typeof b==\"function\"&&r.removeEventListener(i,b,p),typeof d==\"function\")){typeof b!=\"function\"&&b!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(i,d,p);break e}l in r?r[l]=d:d===!0?r.setAttribute(l,\"\"):Da(r,l,d)}}}function sr(r,i,l){switch(i){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":Ot(\"error\",r),Ot(\"load\",r);var d=!1,p=!1,b;for(b in l)if(l.hasOwnProperty(b)){var k=l[b];if(k!=null)switch(b){case\"src\":d=!0;break;case\"srcSet\":p=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(a(137,i));default:an(r,i,b,k,l,null)}}p&&an(r,i,\"srcSet\",l.srcSet,l,null),d&&an(r,i,\"src\",l.src,l,null);return;case\"input\":Ot(\"invalid\",r);var L=b=k=p=null,X=null,de=null;for(d in l)if(l.hasOwnProperty(d)){var we=l[d];if(we!=null)switch(d){case\"name\":p=we;break;case\"type\":k=we;break;case\"checked\":X=we;break;case\"defaultChecked\":de=we;break;case\"value\":b=we;break;case\"defaultValue\":L=we;break;case\"children\":case\"dangerouslySetInnerHTML\":if(we!=null)throw Error(a(137,i));break;default:an(r,i,d,we,l,null)}}Yn(r,b,L,X,de,k,p,!1);return;case\"select\":Ot(\"invalid\",r),d=k=b=null;for(p in l)if(l.hasOwnProperty(p)&&(L=l[p],L!=null))switch(p){case\"value\":b=L;break;case\"defaultValue\":k=L;break;case\"multiple\":d=L;default:an(r,i,p,L,l,null)}i=b,l=k,r.multiple=!!d,i!=null?xa(r,!!d,i,!1):l!=null&&xa(r,!!d,l,!0);return;case\"textarea\":Ot(\"invalid\",r),b=p=d=null;for(k in l)if(l.hasOwnProperty(k)&&(L=l[k],L!=null))switch(k){case\"value\":d=L;break;case\"defaultValue\":p=L;break;case\"children\":b=L;break;case\"dangerouslySetInnerHTML\":if(L!=null)throw Error(a(91));break;default:an(r,i,k,L,l,null)}yl(r,d,p,b);return;case\"option\":for(X in l)if(l.hasOwnProperty(X)&&(d=l[X],d!=null))switch(X){case\"selected\":r.selected=d&&typeof d!=\"function\"&&typeof d!=\"symbol\";break;default:an(r,i,X,d,l,null)}return;case\"dialog\":Ot(\"beforetoggle\",r),Ot(\"toggle\",r),Ot(\"cancel\",r),Ot(\"close\",r);break;case\"iframe\":case\"object\":Ot(\"load\",r);break;case\"video\":case\"audio\":for(d=0;d<cu.length;d++)Ot(cu[d],r);break;case\"image\":Ot(\"error\",r),Ot(\"load\",r);break;case\"details\":Ot(\"toggle\",r);break;case\"embed\":case\"source\":case\"link\":Ot(\"error\",r),Ot(\"load\",r);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(de in l)if(l.hasOwnProperty(de)&&(d=l[de],d!=null))switch(de){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(a(137,i));default:an(r,i,de,d,l,null)}return;default:if(ve(i)){for(we in l)l.hasOwnProperty(we)&&(d=l[we],d!==void 0&&zp(r,i,we,d,l,void 0));return}}for(L in l)l.hasOwnProperty(L)&&(d=l[L],d!=null&&an(r,i,L,d,l,null))}function hO(r,i,l,d){switch(i){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var p=null,b=null,k=null,L=null,X=null,de=null,we=null;for(ge in l){var Ee=l[ge];if(l.hasOwnProperty(ge)&&Ee!=null)switch(ge){case\"checked\":break;case\"value\":break;case\"defaultValue\":X=Ee;default:d.hasOwnProperty(ge)||an(r,i,ge,null,d,Ee)}}for(var me in d){var ge=d[me];if(Ee=l[me],d.hasOwnProperty(me)&&(ge!=null||Ee!=null))switch(me){case\"type\":b=ge;break;case\"name\":p=ge;break;case\"checked\":de=ge;break;case\"defaultChecked\":we=ge;break;case\"value\":k=ge;break;case\"defaultValue\":L=ge;break;case\"children\":case\"dangerouslySetInnerHTML\":if(ge!=null)throw Error(a(137,i));break;default:ge!==Ee&&an(r,i,me,ge,d,Ee)}}bi(r,k,L,X,de,we,b,p);return;case\"select\":ge=k=L=me=null;for(b in l)if(X=l[b],l.hasOwnProperty(b)&&X!=null)switch(b){case\"value\":break;case\"multiple\":ge=X;default:d.hasOwnProperty(b)||an(r,i,b,null,d,X)}for(p in d)if(b=d[p],X=l[p],d.hasOwnProperty(p)&&(b!=null||X!=null))switch(p){case\"value\":me=b;break;case\"defaultValue\":L=b;break;case\"multiple\":k=b;default:b!==X&&an(r,i,p,b,d,X)}i=L,l=k,d=ge,me!=null?xa(r,!!l,me,!1):!!d!=!!l&&(i!=null?xa(r,!!l,i,!0):xa(r,!!l,l?[]:\"\",!1));return;case\"textarea\":ge=me=null;for(L in l)if(p=l[L],l.hasOwnProperty(L)&&p!=null&&!d.hasOwnProperty(L))switch(L){case\"value\":break;case\"children\":break;default:an(r,i,L,null,d,p)}for(k in d)if(p=d[k],b=l[k],d.hasOwnProperty(k)&&(p!=null||b!=null))switch(k){case\"value\":me=p;break;case\"defaultValue\":ge=p;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(p!=null)throw Error(a(91));break;default:p!==b&&an(r,i,k,p,d,b)}xs(r,me,ge);return;case\"option\":for(var Ge in l)if(me=l[Ge],l.hasOwnProperty(Ge)&&me!=null&&!d.hasOwnProperty(Ge))switch(Ge){case\"selected\":r.selected=!1;break;default:an(r,i,Ge,null,d,me)}for(X in d)if(me=d[X],ge=l[X],d.hasOwnProperty(X)&&me!==ge&&(me!=null||ge!=null))switch(X){case\"selected\":r.selected=me&&typeof me!=\"function\"&&typeof me!=\"symbol\";break;default:an(r,i,X,me,d,ge)}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 st in l)me=l[st],l.hasOwnProperty(st)&&me!=null&&!d.hasOwnProperty(st)&&an(r,i,st,null,d,me);for(de in d)if(me=d[de],ge=l[de],d.hasOwnProperty(de)&&me!==ge&&(me!=null||ge!=null))switch(de){case\"children\":case\"dangerouslySetInnerHTML\":if(me!=null)throw Error(a(137,i));break;default:an(r,i,de,me,d,ge)}return;default:if(ve(i)){for(var on in l)me=l[on],l.hasOwnProperty(on)&&me!==void 0&&!d.hasOwnProperty(on)&&zp(r,i,on,void 0,d,me);for(we in d)me=d[we],ge=l[we],!d.hasOwnProperty(we)||me===ge||me===void 0&&ge===void 0||zp(r,i,we,me,d,ge);return}}for(var ae in l)me=l[ae],l.hasOwnProperty(ae)&&me!=null&&!d.hasOwnProperty(ae)&&an(r,i,ae,null,d,me);for(Ee in d)me=d[Ee],ge=l[Ee],!d.hasOwnProperty(Ee)||me===ge||me==null&&ge==null||an(r,i,Ee,me,d,ge)}function Hw(r){switch(r){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function mO(){if(typeof performance.getEntriesByType==\"function\"){for(var r=0,i=0,l=performance.getEntriesByType(\"resource\"),d=0;d<l.length;d++){var p=l[d],b=p.transferSize,k=p.initiatorType,L=p.duration;if(b&&L&&Hw(k)){for(k=0,L=p.responseEnd,d+=1;d<l.length;d++){var X=l[d],de=X.startTime;if(de>L)break;var we=X.transferSize,Ee=X.initiatorType;we&&Hw(Ee)&&(X=X.responseEnd,k+=we*(X<L?1:(L-de)/(X-de)))}if(--d,i+=8*(b+k)/(p.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r==\"number\")?r:5}var Pp=null,Lp=null;function Sf(r){return r.nodeType===9?r:r.ownerDocument}function qw(r){switch(r){case\"http://www.w3.org/2000/svg\":return 1;case\"http://www.w3.org/1998/Math/MathML\":return 2;default:return 0}}function $w(r,i){if(r===0)switch(i){case\"svg\":return 1;case\"math\":return 2;default:return 0}return r===1&&i===\"foreignObject\"?0:r}function Ip(r,i){return r===\"textarea\"||r===\"noscript\"||typeof i.children==\"string\"||typeof i.children==\"number\"||typeof i.children==\"bigint\"||typeof i.dangerouslySetInnerHTML==\"object\"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Hp=null;function pO(){var r=window.event;return r&&r.type===\"popstate\"?r===Hp?!1:(Hp=r,!0):(Hp=null,!1)}var Fw=typeof setTimeout==\"function\"?setTimeout:void 0,gO=typeof clearTimeout==\"function\"?clearTimeout:void 0,Bw=typeof Promise==\"function\"?Promise:void 0,vO=typeof queueMicrotask==\"function\"?queueMicrotask:typeof Bw<\"u\"?function(r){return Bw.resolve(null).then(r).catch(yO)}:Fw;function yO(r){setTimeout(function(){throw r})}function Lo(r){return r===\"head\"}function Uw(r,i){var l=i,d=0;do{var p=l.nextSibling;if(r.removeChild(l),p&&p.nodeType===8)if(l=p.data,l===\"/$\"||l===\"/&\"){if(d===0){r.removeChild(p),Ql(i);return}d--}else if(l===\"$\"||l===\"$?\"||l===\"$~\"||l===\"$!\"||l===\"&\")d++;else if(l===\"html\")du(r.ownerDocument.documentElement);else if(l===\"head\"){l=r.ownerDocument.head,du(l);for(var b=l.firstChild;b;){var k=b.nextSibling,L=b.nodeName;b[dr]||L===\"SCRIPT\"||L===\"STYLE\"||L===\"LINK\"&&b.rel.toLowerCase()===\"stylesheet\"||l.removeChild(b),b=k}}else l===\"body\"&&du(r.ownerDocument.body);l=p}while(l);Ql(i)}function Vw(r,i){var l=r;r=0;do{var d=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display=\"none\"):(l.style.display=l._stashedDisplay||\"\",l.getAttribute(\"style\")===\"\"&&l.removeAttribute(\"style\")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=\"\"):l.nodeValue=l._stashedText||\"\"),d&&d.nodeType===8)if(l=d.data,l===\"/$\"){if(r===0)break;r--}else l!==\"$\"&&l!==\"$?\"&&l!==\"$~\"&&l!==\"$!\"||r++;l=d}while(l)}function qp(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":qp(l),Za(l);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(l.rel.toLowerCase()===\"stylesheet\")continue}r.removeChild(l)}}function bO(r,i,l,d){for(;r.nodeType===1;){var p=l;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(r.nodeName!==\"INPUT\"||r.type!==\"hidden\"))break}else if(d){if(!r[dr])switch(i){case\"meta\":if(!r.hasAttribute(\"itemprop\"))break;return r;case\"link\":if(b=r.getAttribute(\"rel\"),b===\"stylesheet\"&&r.hasAttribute(\"data-precedence\"))break;if(b!==p.rel||r.getAttribute(\"href\")!==(p.href==null||p.href===\"\"?null:p.href)||r.getAttribute(\"crossorigin\")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute(\"title\")!==(p.title==null?null:p.title))break;return r;case\"style\":if(r.hasAttribute(\"data-precedence\"))break;return r;case\"script\":if(b=r.getAttribute(\"src\"),(b!==(p.src==null?null:p.src)||r.getAttribute(\"type\")!==(p.type==null?null:p.type)||r.getAttribute(\"crossorigin\")!==(p.crossOrigin==null?null:p.crossOrigin))&&b&&r.hasAttribute(\"async\")&&!r.hasAttribute(\"itemprop\"))break;return r;default:return r}}else if(i===\"input\"&&r.type===\"hidden\"){var b=p.name==null?null:\"\"+p.name;if(p.type===\"hidden\"&&r.getAttribute(\"name\")===b)return r}else return r;if(r=Ea(r.nextSibling),r===null)break}return null}function xO(r,i,l){if(i===\"\")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!==\"INPUT\"||r.type!==\"hidden\")&&!l||(r=Ea(r.nextSibling),r===null))return null;return r}function Ww(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!==\"INPUT\"||r.type!==\"hidden\")&&!i||(r=Ea(r.nextSibling),r===null))return null;return r}function $p(r){return r.data===\"$?\"||r.data===\"$~\"}function Fp(r){return r.data===\"$!\"||r.data===\"$?\"&&r.ownerDocument.readyState!==\"loading\"}function wO(r,i){var l=r.ownerDocument;if(r.data===\"$~\")r._reactRetry=i;else if(r.data!==\"$?\"||l.readyState!==\"loading\")i();else{var d=function(){i(),l.removeEventListener(\"DOMContentLoaded\",d)};l.addEventListener(\"DOMContentLoaded\",d),r._reactRetry=d}}function Ea(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i===\"$\"||i===\"$!\"||i===\"$?\"||i===\"$~\"||i===\"&\"||i===\"F!\"||i===\"F\")break;if(i===\"/$\"||i===\"/&\")return null}}return r}var Bp=null;function Gw(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l===\"/$\"||l===\"/&\"){if(i===0)return Ea(r.nextSibling);i--}else l!==\"$\"&&l!==\"$!\"&&l!==\"$?\"&&l!==\"$~\"&&l!==\"&\"||i++}r=r.nextSibling}return null}function Yw(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l===\"$\"||l===\"$!\"||l===\"$?\"||l===\"$~\"||l===\"&\"){if(i===0)return r;i--}else l!==\"/$\"&&l!==\"/&\"||i++}r=r.previousSibling}return null}function Xw(r,i,l){switch(i=Sf(l),r){case\"html\":if(r=i.documentElement,!r)throw Error(a(452));return r;case\"head\":if(r=i.head,!r)throw Error(a(453));return r;case\"body\":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function du(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Za(r)}var ka=new Map,Kw=new Set;function Cf(r){return typeof r.getRootNode==\"function\"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Gi=U.d;U.d={f:SO,r:CO,D:RO,C:EO,L:kO,m:_O,X:MO,S:TO,M:AO};function SO(){var r=Gi.f(),i=mf();return r||i}function CO(r){var i=Xr(r);i!==null&&i.tag===5&&i.type===\"form\"?hx(i):Gi.r(r)}var Yl=typeof document>\"u\"?null:document;function Qw(r,i,l){var d=Yl;if(d&&typeof i==\"string\"&&i){var p=zn(i);p='link[rel=\"'+r+'\"][href=\"'+p+'\"]',typeof l==\"string\"&&(p+='[crossorigin=\"'+l+'\"]'),Kw.has(p)||(Kw.add(p),r={rel:r,crossOrigin:l,href:i},d.querySelector(p)===null&&(i=d.createElement(\"link\"),sr(i,\"link\",r),En(i),d.head.appendChild(i)))}}function RO(r){Gi.D(r),Qw(\"dns-prefetch\",r,null)}function EO(r,i){Gi.C(r,i),Qw(\"preconnect\",r,i)}function kO(r,i,l){Gi.L(r,i,l);var d=Yl;if(d&&r&&i){var p='link[rel=\"preload\"][as=\"'+zn(i)+'\"]';i===\"image\"&&l&&l.imageSrcSet?(p+='[imagesrcset=\"'+zn(l.imageSrcSet)+'\"]',typeof l.imageSizes==\"string\"&&(p+='[imagesizes=\"'+zn(l.imageSizes)+'\"]')):p+='[href=\"'+zn(r)+'\"]';var b=p;switch(i){case\"style\":b=Xl(r);break;case\"script\":b=Kl(r)}ka.has(b)||(r=y({rel:\"preload\",href:i===\"image\"&&l&&l.imageSrcSet?void 0:r,as:i},l),ka.set(b,r),d.querySelector(p)!==null||i===\"style\"&&d.querySelector(fu(b))||i===\"script\"&&d.querySelector(hu(b))||(i=d.createElement(\"link\"),sr(i,\"link\",r),En(i),d.head.appendChild(i)))}}function _O(r,i){Gi.m(r,i);var l=Yl;if(l&&r){var d=i&&typeof i.as==\"string\"?i.as:\"script\",p='link[rel=\"modulepreload\"][as=\"'+zn(d)+'\"][href=\"'+zn(r)+'\"]',b=p;switch(d){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":b=Kl(r)}if(!ka.has(b)&&(r=y({rel:\"modulepreload\",href:r},i),ka.set(b,r),l.querySelector(p)===null)){switch(d){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(l.querySelector(hu(b)))return}d=l.createElement(\"link\"),sr(d,\"link\",r),En(d),l.head.appendChild(d)}}}function TO(r,i,l){Gi.S(r,i,l);var d=Yl;if(d&&r){var p=Cr(d).hoistableStyles,b=Xl(r);i=i||\"default\";var k=p.get(b);if(!k){var L={loading:0,preload:null};if(k=d.querySelector(fu(b)))L.loading=5;else{r=y({rel:\"stylesheet\",href:r,\"data-precedence\":i},l),(l=ka.get(b))&&Up(r,l);var X=k=d.createElement(\"link\");En(X),sr(X,\"link\",r),X._p=new Promise(function(de,we){X.onload=de,X.onerror=we}),X.addEventListener(\"load\",function(){L.loading|=1}),X.addEventListener(\"error\",function(){L.loading|=2}),L.loading|=4,Rf(k,i,d)}k={type:\"stylesheet\",instance:k,count:1,state:L},p.set(b,k)}}}function MO(r,i){Gi.X(r,i);var l=Yl;if(l&&r){var d=Cr(l).hoistableScripts,p=Kl(r),b=d.get(p);b||(b=l.querySelector(hu(p)),b||(r=y({src:r,async:!0},i),(i=ka.get(p))&&Vp(r,i),b=l.createElement(\"script\"),En(b),sr(b,\"link\",r),l.head.appendChild(b)),b={type:\"script\",instance:b,count:1,state:null},d.set(p,b))}}function AO(r,i){Gi.M(r,i);var l=Yl;if(l&&r){var d=Cr(l).hoistableScripts,p=Kl(r),b=d.get(p);b||(b=l.querySelector(hu(p)),b||(r=y({src:r,async:!0,type:\"module\"},i),(i=ka.get(p))&&Vp(r,i),b=l.createElement(\"script\"),En(b),sr(b,\"link\",r),l.head.appendChild(b)),b={type:\"script\",instance:b,count:1,state:null},d.set(p,b))}}function Zw(r,i,l,d){var p=(p=fe.current)?Cf(p):null;if(!p)throw Error(a(446));switch(r){case\"meta\":case\"title\":return null;case\"style\":return typeof l.precedence==\"string\"&&typeof l.href==\"string\"?(i=Xl(l.href),l=Cr(p).hoistableStyles,d=l.get(i),d||(d={type:\"style\",instance:null,count:0,state:null},l.set(i,d)),d):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(l.rel===\"stylesheet\"&&typeof l.href==\"string\"&&typeof l.precedence==\"string\"){r=Xl(l.href);var b=Cr(p).hoistableStyles,k=b.get(r);if(k||(p=p.ownerDocument||p,k={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},b.set(r,k),(b=p.querySelector(fu(r)))&&!b._p&&(k.instance=b,k.state.loading=5),ka.has(r)||(l={rel:\"preload\",as:\"style\",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ka.set(r,l),b||NO(p,r,l,k.state))),i&&d===null)throw Error(a(528,\"\"));return k}if(i&&d!==null)throw Error(a(529,\"\"));return null;case\"script\":return i=l.async,l=l.src,typeof l==\"string\"&&i&&typeof i!=\"function\"&&typeof i!=\"symbol\"?(i=Kl(l),l=Cr(p).hoistableScripts,d=l.get(i),d||(d={type:\"script\",instance:null,count:0,state:null},l.set(i,d)),d):{type:\"void\",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function Xl(r){return'href=\"'+zn(r)+'\"'}function fu(r){return'link[rel=\"stylesheet\"]['+r+\"]\"}function Jw(r){return y({},r,{\"data-precedence\":r.precedence,precedence:null})}function NO(r,i,l,d){r.querySelector('link[rel=\"preload\"][as=\"style\"]['+i+\"]\")?d.loading=1:(i=r.createElement(\"link\"),d.preload=i,i.addEventListener(\"load\",function(){return d.loading|=1}),i.addEventListener(\"error\",function(){return d.loading|=2}),sr(i,\"link\",l),En(i),r.head.appendChild(i))}function Kl(r){return'[src=\"'+zn(r)+'\"]'}function hu(r){return\"script[async]\"+r}function eS(r,i,l){if(i.count++,i.instance===null)switch(i.type){case\"style\":var d=r.querySelector('style[data-href~=\"'+zn(l.href)+'\"]');if(d)return i.instance=d,En(d),d;var p=y({},l,{\"data-href\":l.href,\"data-precedence\":l.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement(\"style\"),En(d),sr(d,\"style\",p),Rf(d,l.precedence,r),i.instance=d;case\"stylesheet\":p=Xl(l.href);var b=r.querySelector(fu(p));if(b)return i.state.loading|=4,i.instance=b,En(b),b;d=Jw(l),(p=ka.get(p))&&Up(d,p),b=(r.ownerDocument||r).createElement(\"link\"),En(b);var k=b;return k._p=new Promise(function(L,X){k.onload=L,k.onerror=X}),sr(b,\"link\",d),i.state.loading|=4,Rf(b,l.precedence,r),i.instance=b;case\"script\":return b=Kl(l.src),(p=r.querySelector(hu(b)))?(i.instance=p,En(p),p):(d=l,(p=ka.get(b))&&(d=y({},l),Vp(d,p)),r=r.ownerDocument||r,p=r.createElement(\"script\"),En(p),sr(p,\"link\",d),r.head.appendChild(p),i.instance=p);case\"void\":return null;default:throw Error(a(443,i.type))}else i.type===\"stylesheet\"&&(i.state.loading&4)===0&&(d=i.instance,i.state.loading|=4,Rf(d,l.precedence,r));return i.instance}function Rf(r,i,l){for(var d=l.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,b=p,k=0;k<d.length;k++){var L=d[k];if(L.dataset.precedence===i)b=L;else if(b!==p)break}b?b.parentNode.insertBefore(r,b.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(r,i.firstChild))}function Up(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function Vp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Ef=null;function tS(r,i,l){if(Ef===null){var d=new Map,p=Ef=new Map;p.set(l,d)}else p=Ef,d=p.get(l),d||(d=new Map,p.set(l,d));if(d.has(r))return d;for(d.set(r,null),l=l.getElementsByTagName(r),p=0;p<l.length;p++){var b=l[p];if(!(b[dr]||b[Tn]||r===\"link\"&&b.getAttribute(\"rel\")===\"stylesheet\")&&b.namespaceURI!==\"http://www.w3.org/2000/svg\"){var k=b.getAttribute(i)||\"\";k=r+k;var L=d.get(k);L?L.push(b):d.set(k,[b])}}return d}function nS(r,i,l){r=r.ownerDocument||r,r.head.insertBefore(l,i===\"title\"?r.querySelector(\"head > title\"):null)}function OO(r,i,l){if(l===1||i.itemProp!=null)return!1;switch(r){case\"meta\":case\"title\":return!0;case\"style\":if(typeof i.precedence!=\"string\"||typeof i.href!=\"string\"||i.href===\"\")break;return!0;case\"link\":if(typeof i.rel!=\"string\"||typeof i.href!=\"string\"||i.href===\"\"||i.onLoad||i.onError)break;switch(i.rel){case\"stylesheet\":return r=i.disabled,typeof i.precedence==\"string\"&&r==null;default:return!0}case\"script\":if(i.async&&typeof i.async!=\"function\"&&typeof i.async!=\"symbol\"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src==\"string\")return!0}return!1}function rS(r){return!(r.type===\"stylesheet\"&&(r.state.loading&3)===0)}function DO(r,i,l,d){if(l.type===\"stylesheet\"&&(typeof d.media!=\"string\"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var p=Xl(d.href),b=i.querySelector(fu(p));if(b){i=b._p,i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"&&(r.count++,r=kf.bind(r),i.then(r,r)),l.state.loading|=4,l.instance=b,En(b);return}b=i.ownerDocument||i,d=Jw(d),(p=ka.get(p))&&Up(d,p),b=b.createElement(\"link\"),En(b);var k=b;k._p=new Promise(function(L,X){k.onload=L,k.onerror=X}),sr(b,\"link\",d),l.instance=b}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=kf.bind(r),i.addEventListener(\"load\",l),i.addEventListener(\"error\",l))}}var Wp=0;function jO(r,i){return r.stylesheets&&r.count===0&&Tf(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var d=setTimeout(function(){if(r.stylesheets&&Tf(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+i);0<r.imgBytes&&Wp===0&&(Wp=62500*mO());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Tf(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>Wp?50:800)+i);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(p)}}:null}function kf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tf(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var _f=null;function Tf(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,_f=new Map,i.forEach(zO,r),_f=null,kf.call(r))}function zO(r,i){if(!(i.state.loading&4)){var l=_f.get(r);if(l)var d=l.get(null);else{l=new Map,_f.set(r,l);for(var p=r.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),b=0;b<p.length;b++){var k=p[b];(k.nodeName===\"LINK\"||k.getAttribute(\"media\")!==\"not all\")&&(l.set(k.dataset.precedence,k),d=k)}d&&l.set(null,d)}p=i.instance,k=p.getAttribute(\"data-precedence\"),b=l.get(k)||d,b===d&&l.set(null,p),l.set(k,p),this.count++,d=kf.bind(this),p.addEventListener(\"load\",d),p.addEventListener(\"error\",d),b?b.parentNode.insertBefore(p,b.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),i.state.loading|=4}}var mu={$$typeof:T,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function PO(r,i,l,d,p,b,k,L,X){this.tag=1,this.containerInfo=r,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=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function aS(r,i,l,d,p,b,k,L,X,de,we,Ee){return r=new PO(r,i,l,k,X,de,we,Ee,L),i=1,b===!0&&(i|=24),b=Nr(3,null,null,i),r.current=b,b.stateNode=r,i=Em(),i.refCount++,r.pooledCache=i,i.refCount++,b.memoizedState={element:d,isDehydrated:l,cache:i},Mm(b),r}function iS(r){return r?(r=So,r):So}function oS(r,i,l,d,p,b){p=iS(p),d.context===null?d.context=p:d.pendingContext=p,d=ko(i),d.payload={element:l},b=b===void 0?null:b,b!==null&&(d.callback=b),l=_o(r,d,i),l!==null&&(Ur(l,r,i),Wc(l,r,i))}function sS(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function Gp(r,i){sS(r,i),(r=r.alternate)&&sS(r,i)}function lS(r){if(r.tag===13||r.tag===31){var i=Ni(r,67108864);i!==null&&Ur(i,r,67108864),Gp(r,67108864)}}function cS(r){if(r.tag===13||r.tag===31){var i=la();i=mn(i);var l=Ni(r,i);l!==null&&Ur(l,r,i),Gp(r,i)}}var Mf=!0;function LO(r,i,l,d){var p=F.T;F.T=null;var b=U.p;try{U.p=2,Yp(r,i,l,d)}finally{U.p=b,F.T=p}}function IO(r,i,l,d){var p=F.T;F.T=null;var b=U.p;try{U.p=8,Yp(r,i,l,d)}finally{U.p=b,F.T=p}}function Yp(r,i,l,d){if(Mf){var p=Xp(d);if(p===null)jp(r,i,d,Af,l),dS(r,d);else if(qO(p,r,i,l,d))d.stopPropagation();else if(dS(r,d),i&4&&-1<HO.indexOf(r)){for(;p!==null;){var b=Xr(p);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=qt(b.pendingLanes);if(k!==0){var L=b;for(L.pendingLanes|=2,L.entangledLanes|=2;k;){var X=1<<31-cn(k);L.entanglements[1]|=X,k&=~X}oi(b),(Gt&6)===0&&(ff=et()+500,lu(0))}}break;case 31:case 13:L=Ni(b,2),L!==null&&Ur(L,b,2),mf(),Gp(b,2)}if(b=Xp(d),b===null&&jp(r,i,d,Af,l),b===p)break;p=b}p!==null&&d.stopPropagation()}else jp(r,i,d,null,l)}}function Xp(r){return r=ws(r),Kp(r)}var Af=null;function Kp(r){if(Af=null,r=Yr(r),r!==null){var i=s(r);if(i===null)r=null;else{var l=i.tag;if(l===13){if(r=c(i),r!==null)return r;r=null}else if(l===31){if(r=u(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Af=r,null}function uS(r){switch(r){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(ht()){case Ve:return 2;case Ht:return 8;case mt:case dt:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Qp=!1,Io=null,Ho=null,qo=null,pu=new Map,gu=new Map,$o=[],HO=\"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 dS(r,i){switch(r){case\"focusin\":case\"focusout\":Io=null;break;case\"dragenter\":case\"dragleave\":Ho=null;break;case\"mouseover\":case\"mouseout\":qo=null;break;case\"pointerover\":case\"pointerout\":pu.delete(i.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":gu.delete(i.pointerId)}}function vu(r,i,l,d,p,b){return r===null||r.nativeEvent!==b?(r={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:b,targetContainers:[p]},i!==null&&(i=Xr(i),i!==null&&lS(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function qO(r,i,l,d,p){switch(i){case\"focusin\":return Io=vu(Io,r,i,l,d,p),!0;case\"dragenter\":return Ho=vu(Ho,r,i,l,d,p),!0;case\"mouseover\":return qo=vu(qo,r,i,l,d,p),!0;case\"pointerover\":var b=p.pointerId;return pu.set(b,vu(pu.get(b)||null,r,i,l,d,p)),!0;case\"gotpointercapture\":return b=p.pointerId,gu.set(b,vu(gu.get(b)||null,r,i,l,d,p)),!0}return!1}function fS(r){var i=Yr(r.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){r.blockedOn=i,_n(r.priority,function(){cS(l)});return}}else if(i===31){if(i=u(l),i!==null){r.blockedOn=i,_n(r.priority,function(){cS(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Nf(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=Xp(r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);wi=d,l.target.dispatchEvent(d),wi=null}else return i=Xr(l),i!==null&&lS(i),r.blockedOn=l,!1;i.shift()}return!0}function hS(r,i,l){Nf(r)&&l.delete(i)}function $O(){Qp=!1,Io!==null&&Nf(Io)&&(Io=null),Ho!==null&&Nf(Ho)&&(Ho=null),qo!==null&&Nf(qo)&&(qo=null),pu.forEach(hS),gu.forEach(hS)}function Of(r,i){r.blockedOn===i&&(r.blockedOn=null,Qp||(Qp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$O)))}var Df=null;function mS(r){Df!==r&&(Df=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Df===r&&(Df=null);for(var i=0;i<r.length;i+=3){var l=r[i],d=r[i+1],p=r[i+2];if(typeof d!=\"function\"){if(Kp(d||l)===null)continue;break}var b=Xr(l);b!==null&&(r.splice(i,3),i-=3,Xm(b,{pending:!0,data:p,method:l.method,action:d},d,p))}}))}function Ql(r){function i(X){return Of(X,r)}Io!==null&&Of(Io,r),Ho!==null&&Of(Ho,r),qo!==null&&Of(qo,r),pu.forEach(i),gu.forEach(i);for(var l=0;l<$o.length;l++){var d=$o[l];d.blockedOn===r&&(d.blockedOn=null)}for(;0<$o.length&&(l=$o[0],l.blockedOn===null);)fS(l),l.blockedOn===null&&$o.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var p=l[d],b=l[d+1],k=p[jn]||null;if(typeof b==\"function\")k||mS(l);else if(k){var L=null;if(b&&b.hasAttribute(\"formAction\")){if(p=b,k=b[jn]||null)L=k.formAction;else if(Kp(p)!==null)continue}else L=k.action;typeof L==\"function\"?l[d+1]=L:(l.splice(d,3),d-=3),mS(l)}}}function pS(){function r(b){b.canIntercept&&b.info===\"react-transition\"&&b.intercept({handler:function(){return new Promise(function(k){return p=k})},focusReset:\"manual\",scroll:\"manual\"})}function i(){p!==null&&(p(),p=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:\"react-transition\",history:\"replace\"})}}if(typeof navigation==\"object\"){var d=!1,p=null;return navigation.addEventListener(\"navigate\",r),navigation.addEventListener(\"navigatesuccess\",i),navigation.addEventListener(\"navigateerror\",i),setTimeout(l,100),function(){d=!0,navigation.removeEventListener(\"navigate\",r),navigation.removeEventListener(\"navigatesuccess\",i),navigation.removeEventListener(\"navigateerror\",i),p!==null&&(p(),p=null)}}}function Zp(r){this._internalRoot=r}jf.prototype.render=Zp.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,d=la();oS(l,d,r,i,null,null)},jf.prototype.unmount=Zp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;oS(r.current,2,null,r,null,null),mf(),i[ur]=null}};function jf(r){this._internalRoot=r}jf.prototype.unstable_scheduleHydration=function(r){if(r){var i=Cn();r={blockedOn:null,target:r,priority:i};for(var l=0;l<$o.length&&i!==0&&i<$o[l].priority;l++);$o.splice(l,0,r),l===0&&fS(r)}};var gS=t.version;if(gS!==\"19.2.0\")throw Error(a(527,gS,\"19.2.0\"));U.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render==\"function\"?Error(a(188)):(r=Object.keys(r).join(\",\"),Error(a(268,r)));return r=m(i),r=r!==null?v(r):null,r=r===null?null:r.stateNode,r};var FO={bundleType:0,version:\"19.2.0\",rendererPackageName:\"react-dom\",currentDispatcherRef:F,reconcilerVersion:\"19.2.0\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"){var zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zf.isDisabled&&zf.supportsFiber)try{yt=zf.inject(FO),Lt=zf}catch{}}return bu.createRoot=function(r,i){if(!o(r))throw Error(a(299));var l=!1,d=\"\",p=Cx,b=Rx,k=Ex;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(k=i.onRecoverableError)),i=aS(r,1,!1,null,null,l,d,null,p,b,k,pS),r[ur]=i.current,Dp(r),new Zp(i)},bu.hydrateRoot=function(r,i,l){if(!o(r))throw Error(a(299));var d=!1,p=\"\",b=Cx,k=Rx,L=Ex,X=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(L=l.onRecoverableError),l.formState!==void 0&&(X=l.formState)),i=aS(r,1,!0,i,l??null,d,p,X,b,k,L,pS),i.context=iS(null),l=i.current,d=la(),d=mn(d),p=ko(d),p.callback=null,_o(l,p,d),l=d,i.current.lanes=l,Wt(i,l),oi(i),r[ur]=i.current,Dp(r),new jf(i)},bu.version=\"19.2.0\",bu}var kS;function ZO(){if(kS)return tg.exports;kS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\"function\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tg.exports=QO(),tg.exports}var JO=ZO();const e6=Ya(JO);var li=[],Ta=[],t6=Uint8Array,ig=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(var Zl=0,n6=ig.length;Zl<n6;++Zl)li[Zl]=ig[Zl],Ta[ig.charCodeAt(Zl)]=Zl;Ta[45]=62;Ta[95]=63;function r6(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");n===-1&&(n=t);var a=n===t?0:4-n%4;return[n,a]}function a6(e,t,n){return(t+n)*3/4-n}function Ku(e){var t,n=r6(e),a=n[0],o=n[1],s=new t6(a6(e,a,o)),c=0,u=o>0?a-4:a,f;for(f=0;f<u;f+=4)t=Ta[e.charCodeAt(f)]<<18|Ta[e.charCodeAt(f+1)]<<12|Ta[e.charCodeAt(f+2)]<<6|Ta[e.charCodeAt(f+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=t&255;return o===2&&(t=Ta[e.charCodeAt(f)]<<2|Ta[e.charCodeAt(f+1)]>>4,s[c++]=t&255),o===1&&(t=Ta[e.charCodeAt(f)]<<10|Ta[e.charCodeAt(f+1)]<<4|Ta[e.charCodeAt(f+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function i6(e){return li[e>>18&63]+li[e>>12&63]+li[e>>6&63]+li[e&63]}function o6(e,t,n){for(var a,o=[],s=t;s<n;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(i6(a));return o.join(\"\")}function Qu(e){for(var t,n=e.length,a=n%3,o=[],s=16383,c=0,u=n-a;c<u;c+=s)o.push(o6(e,c,c+s>u?u:c+s));return a===1?(t=e[n-1],o.push(li[t>>2]+li[t<<4&63]+\"==\")):a===2&&(t=(e[n-2]<<8)+e[n-1],o.push(li[t>>10]+li[t>>4&63]+li[t<<2&63]+\"=\")),o.join(\"\")}function Ki(e){if(e===void 0)return{};if(!Hk(e))throw new Error(`The arguments to a Convex function must be an object. Received: ${e}`);return e}function s6(e){if(typeof e>\"u\")throw new Error(\"Client created with undefined deployment address. If you used an environment variable, check that it's set.\");if(typeof e!=\"string\")throw new Error(`Invalid deployment address: found ${e}\".`);if(!(e.startsWith(\"http:\")||e.startsWith(\"https:\")))throw new Error(`Invalid deployment address: Must start with \"https://\" or \"http://\". Found \"${e}\".`);try{new URL(e)}catch{throw new Error(`Invalid deployment address: \"${e}\" is not a valid URL. If you believe this URL is correct, use the \\`skipConvexDeploymentUrlCheck\\` option to bypass this.`)}if(e.endsWith(\".convex.site\"))throw new Error(`Invalid deployment address: \"${e}\" ends with .convex.site, which is used for HTTP Actions. Convex deployment URLs typically end with .convex.cloud? If you believe this URL is correct, use the \\`skipConvexDeploymentUrlCheck\\` option to bypass this.`)}function Hk(e){const t=typeof e==\"object\",n=Object.getPrototypeOf(e),a=n===null||n===Object.prototype||n?.constructor?.name===\"Object\";return t&&a}const qk=!0,bc=BigInt(\"-9223372036854775808\"),ub=BigInt(\"9223372036854775807\"),jy=BigInt(\"0\"),l6=BigInt(\"8\"),c6=BigInt(\"256\");function $k(e){return Number.isNaN(e)||!Number.isFinite(e)||Object.is(e,-0)}function u6(e){e<jy&&(e-=bc+bc);let t=e.toString(16);t.length%2===1&&(t=\"0\"+t);const n=new Uint8Array(new ArrayBuffer(8));let a=0;for(const o of t.match(/.{2}/g).reverse())n.set([parseInt(o,16)],a++),e>>=l6;return Qu(n)}function d6(e){const t=Ku(e);if(t.byteLength!==8)throw new Error(`Received ${t.byteLength} bytes, expected 8 for $integer`);let n=jy,a=jy;for(const o of t)n+=BigInt(o)*c6**a,a++;return n>ub&&(n+=bc+bc),n}function f6(e){if(e<bc||ub<e)throw new Error(`BigInt ${e} does not fit into a 64-bit signed integer.`);const t=new ArrayBuffer(8);return new DataView(t).setBigInt64(0,e,!0),Qu(new Uint8Array(t))}function h6(e){const t=Ku(e);if(t.byteLength!==8)throw new Error(`Received ${t.byteLength} bytes, expected 8 for $integer`);return new DataView(t.buffer).getBigInt64(0,!0)}const m6=DataView.prototype.setBigInt64?f6:u6,p6=DataView.prototype.getBigInt64?h6:d6,_S=1024;function Fk(e){if(e.length>_S)throw new Error(`Field name ${e} exceeds maximum field name length ${_S}.`);if(e.startsWith(\"$\"))throw new Error(`Field name ${e} starts with a '$', which is reserved.`);for(let t=0;t<e.length;t+=1){const n=e.charCodeAt(t);if(n<32||n>=127)throw new Error(`Field name ${e} has invalid character '${e[t]}': Field names can only contain non-control ASCII characters`)}}function xc(e){if(e===null||typeof e==\"boolean\"||typeof e==\"number\"||typeof e==\"string\")return e;if(Array.isArray(e))return e.map(a=>xc(a));if(typeof e!=\"object\")throw new Error(`Unexpected type of ${e}`);const t=Object.entries(e);if(t.length===1){const a=t[0][0];if(a===\"$bytes\"){if(typeof e.$bytes!=\"string\")throw new Error(`Malformed $bytes field on ${e}`);return Ku(e.$bytes).buffer}if(a===\"$integer\"){if(typeof e.$integer!=\"string\")throw new Error(`Malformed $integer field on ${e}`);return p6(e.$integer)}if(a===\"$float\"){if(typeof e.$float!=\"string\")throw new Error(`Malformed $float field on ${e}`);const o=Ku(e.$float);if(o.byteLength!==8)throw new Error(`Received ${o.byteLength} bytes, expected 8 for $float`);const c=new DataView(o.buffer).getFloat64(0,qk);if(!$k(c))throw new Error(`Float ${c} should be encoded as a number`);return c}if(a===\"$set\")throw new Error(\"Received a Set which is no longer supported as a Convex type.\");if(a===\"$map\")throw new Error(\"Received a Map which is no longer supported as a Convex type.\")}const n={};for(const[a,o]of Object.entries(e))Fk(a),n[a]=xc(o);return n}function Bu(e){return JSON.stringify(e,(t,n)=>n===void 0?\"undefined\":typeof n==\"bigint\"?`${n.toString()}n`:n)}function zy(e,t,n,a){if(e===void 0){const c=n&&` (present at path ${n} in original object ${Bu(t)})`;throw new Error(`undefined is not a valid Convex value${c}. To learn about Convex's supported types, see https://docs.convex.dev/using/types.`)}if(e===null)return e;if(typeof e==\"bigint\"){if(e<bc||ub<e)throw new Error(`BigInt ${e} does not fit into a 64-bit signed integer.`);return{$integer:m6(e)}}if(typeof e==\"number\")if($k(e)){const c=new ArrayBuffer(8);return new DataView(c).setFloat64(0,e,qk),{$float:Qu(new Uint8Array(c))}}else return e;if(typeof e==\"boolean\"||typeof e==\"string\")return e;if(e instanceof ArrayBuffer)return{$bytes:Qu(new Uint8Array(e))};if(Array.isArray(e))return e.map((c,u)=>zy(c,t,n+`[${u}]`));if(e instanceof Set)throw new Error(og(n,\"Set\",[...e],t));if(e instanceof Map)throw new Error(og(n,\"Map\",[...e],t));if(!Hk(e)){const c=e?.constructor?.name,u=c?`${c} `:\"\";throw new Error(og(n,u,e,t))}const o={},s=Object.entries(e);s.sort(([c,u],[f,m])=>c===f?0:c<f?-1:1);for(const[c,u]of s)u!==void 0&&(Fk(c),o[c]=zy(u,t,n+`.${c}`));return o}function og(e,t,n,a){return e?`${t}${Bu(n)} is not a supported Convex type (present at path ${e} in original object ${Bu(a)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.`:`${t}${Bu(n)} is not a supported Convex type.`}function is(e){return zy(e,e,\"\")}var g6=Object.defineProperty,v6=(e,t,n)=>t in e?g6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sg=(e,t,n)=>v6(e,typeof t!=\"symbol\"?t+\"\":t,n),TS,MS;const y6=Symbol.for(\"ConvexError\");class Py extends(MS=Error,TS=y6,MS){constructor(t){super(typeof t==\"string\"?t:Bu(t)),sg(this,\"name\",\"ConvexError\"),sg(this,\"data\"),sg(this,TS,!0),this.data=t}}const Bk=()=>Array.from({length:4},()=>0);Bk();Bk();const AS=\"1.28.0\";var b6=Object.defineProperty,x6=(e,t,n)=>t in e?b6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NS=(e,t,n)=>x6(e,typeof t!=\"symbol\"?t+\"\":t,n);const w6=\"color:rgb(0, 145, 255)\";function Uk(e){switch(e){case\"query\":return\"Q\";case\"mutation\":return\"M\";case\"action\":return\"A\";case\"any\":return\"?\"}}class Vk{constructor(t){NS(this,\"_onLogLineFuncs\"),NS(this,\"_verbose\"),this._onLogLineFuncs={},this._verbose=t.verbose}addLogLineListener(t){let n=Math.random().toString(36).substring(2,15);for(let a=0;a<10&&this._onLogLineFuncs[n]!==void 0;a++)n=Math.random().toString(36).substring(2,15);return this._onLogLineFuncs[n]=t,()=>{delete this._onLogLineFuncs[n]}}logVerbose(...t){if(this._verbose)for(const n of Object.values(this._onLogLineFuncs))n(\"debug\",`${new Date().toISOString()}`,...t)}log(...t){for(const n of Object.values(this._onLogLineFuncs))n(\"info\",...t)}warn(...t){for(const n of Object.values(this._onLogLineFuncs))n(\"warn\",...t)}error(...t){for(const n of Object.values(this._onLogLineFuncs))n(\"error\",...t)}}function Wk(e){const t=new Vk(e);return t.addLogLineListener((n,...a)=>{switch(n){case\"debug\":console.debug(...a);break;case\"info\":console.log(...a);break;case\"warn\":console.warn(...a);break;case\"error\":console.error(...a);break;default:console.log(...a)}}),t}function Gk(e){return new Vk(e)}function ch(e,t,n,a,o){const s=Uk(n);if(typeof o==\"object\"&&(o=`ConvexError ${JSON.stringify(o.errorData,null,2)}`),t===\"info\"){const c=o.match(/^\\[.*?\\] /);if(c===null){e.error(`[CONVEX ${s}(${a})] Could not parse console.log`);return}const u=o.slice(1,c[0].length-2),f=o.slice(c[0].length);e.log(`%c[CONVEX ${s}(${a})] [${u}]`,w6,f)}else e.error(`[CONVEX ${s}(${a})] ${o}`)}function S6(e,t){const n=`[CONVEX FATAL ERROR] ${t}`;return e.error(n),new Error(n)}function lc(e,t,n){return`[CONVEX ${Uk(e)}(${t})] ${n.errorMessage}\n Called by client`}function Ly(e,t){return t.data=e.errorData,t}function uh(e){const t=e.split(\":\");let n,a;return t.length===1?(n=t[0],a=\"default\"):(n=t.slice(0,t.length-1).join(\":\"),a=t[t.length-1]),n.endsWith(\".js\")&&(n=n.slice(0,-3)),`${n}:${a}`}function Js(e,t){return JSON.stringify({udfPath:uh(e),args:is(t)})}var C6=Object.defineProperty,R6=(e,t,n)=>t in e?C6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,si=(e,t,n)=>R6(e,typeof t!=\"symbol\"?t+\"\":t,n);class E6{constructor(){si(this,\"nextQueryId\"),si(this,\"querySetVersion\"),si(this,\"querySet\"),si(this,\"queryIdToToken\"),si(this,\"identityVersion\"),si(this,\"auth\"),si(this,\"outstandingQueriesOlderThanRestart\"),si(this,\"outstandingAuthOlderThanRestart\"),si(this,\"paused\"),si(this,\"pendingQuerySetModifications\"),this.nextQueryId=0,this.querySetVersion=0,this.identityVersion=0,this.querySet=new Map,this.queryIdToToken=new Map,this.outstandingQueriesOlderThanRestart=new Set,this.outstandingAuthOlderThanRestart=!1,this.paused=!1,this.pendingQuerySetModifications=new Map}hasSyncedPastLastReconnect(){return this.outstandingQueriesOlderThanRestart.size===0&&!this.outstandingAuthOlderThanRestart}markAuthCompletion(){this.outstandingAuthOlderThanRestart=!1}subscribe(t,n,a,o){const s=uh(t),c=Js(s,n),u=this.querySet.get(c);if(u!==void 0)return u.numSubscribers+=1,{queryToken:c,modification:null,unsubscribe:()=>this.removeSubscriber(c)};{const f=this.nextQueryId++,m={id:f,canonicalizedUdfPath:s,args:n,numSubscribers:1,journal:a,componentPath:o};this.querySet.set(c,m),this.queryIdToToken.set(f,c);const v=this.querySetVersion,y=this.querySetVersion+1,x={type:\"Add\",queryId:f,udfPath:s,args:[is(n)],journal:a,componentPath:o};return this.paused?this.pendingQuerySetModifications.set(f,x):this.querySetVersion=y,{queryToken:c,modification:{type:\"ModifyQuerySet\",baseVersion:v,newVersion:y,modifications:[x]},unsubscribe:()=>this.removeSubscriber(c)}}}transition(t){for(const n of t.modifications)switch(n.type){case\"QueryUpdated\":case\"QueryFailed\":{this.outstandingQueriesOlderThanRestart.delete(n.queryId);const a=n.journal;if(a!==void 0){const o=this.queryIdToToken.get(n.queryId);o!==void 0&&(this.querySet.get(o).journal=a)}break}case\"QueryRemoved\":{this.outstandingQueriesOlderThanRestart.delete(n.queryId);break}default:throw new Error(`Invalid modification ${n.type}`)}}queryId(t,n){const a=uh(t),o=Js(a,n),s=this.querySet.get(o);return s!==void 0?s.id:null}isCurrentOrNewerAuthVersion(t){return t>=this.identityVersion}getAuth(){return this.auth}setAuth(t){this.auth={tokenType:\"User\",value:t};const n=this.identityVersion;return this.paused||(this.identityVersion=n+1),{type:\"Authenticate\",baseVersion:n,...this.auth}}setAdminAuth(t,n){const a={tokenType:\"Admin\",value:t,impersonating:n};this.auth=a;const o=this.identityVersion;return this.paused||(this.identityVersion=o+1),{type:\"Authenticate\",baseVersion:o,...a}}clearAuth(){this.auth=void 0,this.markAuthCompletion();const t=this.identityVersion;return this.paused||(this.identityVersion=t+1),{type:\"Authenticate\",tokenType:\"None\",baseVersion:t}}hasAuth(){return!!this.auth}isNewAuth(t){return this.auth?.value!==t}queryPath(t){const n=this.queryIdToToken.get(t);return n?this.querySet.get(n).canonicalizedUdfPath:null}queryArgs(t){const n=this.queryIdToToken.get(t);return n?this.querySet.get(n).args:null}queryToken(t){return this.queryIdToToken.get(t)??null}queryJournal(t){return this.querySet.get(t)?.journal}restart(t){this.unpause(),this.outstandingQueriesOlderThanRestart.clear();const n=[];for(const s of this.querySet.values()){const c={type:\"Add\",queryId:s.id,udfPath:s.canonicalizedUdfPath,args:[is(s.args)],journal:s.journal,componentPath:s.componentPath};n.push(c),t.has(s.id)||this.outstandingQueriesOlderThanRestart.add(s.id)}this.querySetVersion=1;const a={type:\"ModifyQuerySet\",baseVersion:0,newVersion:1,modifications:n};if(!this.auth)return this.identityVersion=0,[a,void 0];this.outstandingAuthOlderThanRestart=!0;const o={type:\"Authenticate\",baseVersion:0,...this.auth};return this.identityVersion=1,[a,o]}pause(){this.paused=!0}resume(){const t=this.pendingQuerySetModifications.size>0?{type:\"ModifyQuerySet\",baseVersion:this.querySetVersion,newVersion:++this.querySetVersion,modifications:Array.from(this.pendingQuerySetModifications.values())}:void 0,n=this.auth!==void 0?{type:\"Authenticate\",baseVersion:this.identityVersion++,...this.auth}:void 0;return this.unpause(),[t,n]}unpause(){this.paused=!1,this.pendingQuerySetModifications.clear()}removeSubscriber(t){const n=this.querySet.get(t);if(n.numSubscribers>1)return n.numSubscribers-=1,null;{this.querySet.delete(t),this.queryIdToToken.delete(n.id),this.outstandingQueriesOlderThanRestart.delete(n.id);const a=this.querySetVersion,o=this.querySetVersion+1,s={type:\"Remove\",queryId:n.id};return this.paused?this.pendingQuerySetModifications.has(n.id)?this.pendingQuerySetModifications.delete(n.id):this.pendingQuerySetModifications.set(n.id,s):this.querySetVersion=o,{type:\"ModifyQuerySet\",baseVersion:a,newVersion:o,modifications:[s]}}}}var k6=Object.defineProperty,_6=(e,t,n)=>t in e?k6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lf=(e,t,n)=>_6(e,typeof t!=\"symbol\"?t+\"\":t,n);class T6{constructor(t,n){this.logger=t,this.markConnectionStateDirty=n,Lf(this,\"inflightRequests\"),Lf(this,\"requestsOlderThanRestart\"),Lf(this,\"inflightMutationsCount\",0),Lf(this,\"inflightActionsCount\",0),this.inflightRequests=new Map,this.requestsOlderThanRestart=new Set}request(t,n){const a=new Promise(o=>{const s=n?\"Requested\":\"NotSent\";this.inflightRequests.set(t.requestId,{message:t,status:{status:s,requestedAt:new Date,onResult:o}}),t.type===\"Mutation\"?this.inflightMutationsCount++:t.type===\"Action\"&&this.inflightActionsCount++});return this.markConnectionStateDirty(),a}onResponse(t){const n=this.inflightRequests.get(t.requestId);if(n===void 0||n.status.status===\"Completed\")return null;const a=n.message.type===\"Mutation\"?\"mutation\":\"action\",o=n.message.udfPath;for(const f of t.logLines)ch(this.logger,\"info\",a,o,f);const s=n.status;let c,u;if(t.success)c={success:!0,logLines:t.logLines,value:xc(t.result)},u=()=>s.onResult(c);else{const f=t.result,{errorData:m}=t;ch(this.logger,\"error\",a,o,f),c={success:!1,errorMessage:f,errorData:m!==void 0?xc(m):void 0,logLines:t.logLines},u=()=>s.onResult(c)}return t.type===\"ActionResponse\"||!t.success?(u(),this.inflightRequests.delete(t.requestId),this.requestsOlderThanRestart.delete(t.requestId),n.message.type===\"Action\"?this.inflightActionsCount--:n.message.type===\"Mutation\"&&this.inflightMutationsCount--,this.markConnectionStateDirty(),{requestId:t.requestId,result:c}):(n.status={status:\"Completed\",result:c,ts:t.ts,onResolve:u},null)}removeCompleted(t){const n=new Map;for(const[a,o]of this.inflightRequests.entries()){const s=o.status;s.status===\"Completed\"&&s.ts.lessThanOrEqual(t)&&(s.onResolve(),n.set(a,s.result),o.message.type===\"Mutation\"?this.inflightMutationsCount--:o.message.type===\"Action\"&&this.inflightActionsCount--,this.inflightRequests.delete(a),this.requestsOlderThanRestart.delete(a))}return n.size>0&&this.markConnectionStateDirty(),n}restart(){this.requestsOlderThanRestart=new Set(this.inflightRequests.keys());const t=[];for(const[n,a]of this.inflightRequests){if(a.status.status===\"NotSent\"){a.status.status=\"Requested\",t.push(a.message);continue}if(a.message.type===\"Mutation\")t.push(a.message);else if(a.message.type===\"Action\"){if(this.inflightRequests.delete(n),this.requestsOlderThanRestart.delete(n),this.inflightActionsCount--,a.status.status===\"Completed\")throw new Error(\"Action should never be in 'Completed' state\");a.status.onResult({success:!1,errorMessage:\"Connection lost while action was in flight\",logLines:[]})}}return this.markConnectionStateDirty(),t}resume(){const t=[];for(const[,n]of this.inflightRequests)if(n.status.status===\"NotSent\"){n.status.status=\"Requested\",t.push(n.message);continue}return t}hasIncompleteRequests(){for(const t of this.inflightRequests.values())if(t.status.status===\"Requested\")return!0;return!1}hasInflightRequests(){return this.inflightRequests.size>0}hasSyncedPastLastReconnect(){return this.requestsOlderThanRestart.size===0}timeOfOldestInflightRequest(){if(this.inflightRequests.size===0)return null;let t=Date.now();for(const n of this.inflightRequests.values())n.status.status!==\"Completed\"&&n.status.requestedAt.getTime()<t&&(t=n.status.requestedAt.getTime());return new Date(t)}inflightMutations(){return this.inflightMutationsCount}inflightActions(){return this.inflightActionsCount}}const Zu=Symbol.for(\"functionName\"),M6=Symbol.for(\"toReferencePath\");function A6(e){return e[M6]??null}function N6(e){return e.startsWith(\"function://\")}function O6(e){let t;if(typeof e==\"string\")N6(e)?t={functionHandle:e}:t={name:e};else if(e[Zu])t={name:e[Zu]};else{const n=A6(e);if(!n)throw new Error(`${e} is not a functionReference`);t={reference:n}}return t}function ga(e){const t=O6(e);if(t.name===void 0)throw t.functionHandle!==void 0?new Error(`Expected function reference like \"api.file.func\" or \"internal.file.func\", but received function handle ${t.functionHandle}`):t.reference!==void 0?new Error(`Expected function reference in the current component like \"api.file.func\" or \"internal.file.func\", but received reference ${t.reference}`):new Error(`Expected function reference like \"api.file.func\" or \"internal.file.func\", but received ${JSON.stringify(t)}`);if(typeof e==\"string\")return e;const n=e[Zu];if(!n)throw new Error(`${e} is not a functionReference`);return n}function Yk(e){return{[Zu]:e}}function Xk(e=[]){const t={get(n,a){if(typeof a==\"string\"){const o=[...e,a];return Xk(o)}else if(a===Zu){if(e.length<2){const c=[\"api\",...e].join(\".\");throw new Error(`API path is expected to be of the form \\`api.moduleName.functionName\\`. Found: \\`${c}\\``)}const o=e.slice(0,-1).join(\"/\"),s=e[e.length-1];return s===\"default\"?o:o+\":\"+s}else return a===Symbol.toStringTag?\"FunctionReference\":void 0}};return new Proxy({},t)}const D6=Xk();var j6=Object.defineProperty,z6=(e,t,n)=>t in e?j6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dh=(e,t,n)=>z6(e,typeof t!=\"symbol\"?t+\"\":t,n);class Ju{constructor(t){dh(this,\"queryResults\"),dh(this,\"modifiedQueries\"),this.queryResults=t,this.modifiedQueries=[]}getQuery(t,...n){const a=Ki(n[0]),o=ga(t),s=this.queryResults.get(Js(o,a));if(s!==void 0)return Ju.queryValue(s.result)}getAllQueries(t){const n=[],a=ga(t);for(const o of this.queryResults.values())o.udfPath===uh(a)&&n.push({args:o.args,value:Ju.queryValue(o.result)});return n}setQuery(t,n,a){const o=Ki(n),s=ga(t),c=Js(s,o);let u;a===void 0?u=void 0:u={success:!0,value:a,logLines:[]};const f={udfPath:s,args:o,result:u};this.queryResults.set(c,f),this.modifiedQueries.push(c)}static queryValue(t){if(t!==void 0)return t.success?t.value:void 0}}class P6{constructor(){dh(this,\"queryResults\"),dh(this,\"optimisticUpdates\"),this.queryResults=new Map,this.optimisticUpdates=[]}ingestQueryResultsFromServer(t,n){this.optimisticUpdates=this.optimisticUpdates.filter(c=>!n.has(c.mutationId));const a=this.queryResults;this.queryResults=new Map(t);const o=new Ju(this.queryResults);for(const c of this.optimisticUpdates)c.update(o);const s=[];for(const[c,u]of this.queryResults){const f=a.get(c);(f===void 0||f.result!==u.result)&&s.push(c)}return s}applyOptimisticUpdate(t,n){this.optimisticUpdates.push({update:t,mutationId:n});const a=new Ju(this.queryResults);return t(a),a.modifiedQueries}rawQueryResult(t){return this.queryResults.get(t)}queryResult(t){const n=this.queryResults.get(t);if(n===void 0)return;const a=n.result;if(a!==void 0){if(a.success)return a.value;throw a.errorData!==void 0?Ly(a,new Py(lc(\"query\",n.udfPath,a))):new Error(lc(\"query\",n.udfPath,a))}}hasQueryResult(t){return this.queryResults.get(t)!==void 0}queryLogs(t){return this.queryResults.get(t)?.result?.logLines}}var L6=Object.defineProperty,I6=(e,t,n)=>t in e?L6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lg=(e,t,n)=>I6(e,typeof t!=\"symbol\"?t+\"\":t,n);class ua{constructor(t,n){lg(this,\"low\"),lg(this,\"high\"),lg(this,\"__isUnsignedLong__\"),this.low=t|0,this.high=n|0,this.__isUnsignedLong__=!0}static isLong(t){return(t&&t.__isUnsignedLong__)===!0}static fromBytesLE(t){return new ua(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24)}toBytesLE(){const t=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}static fromNumber(t){return isNaN(t)||t<0?OS:t>=H6?q6:new ua(t%Uu|0,t/Uu|0)}toString(){return(BigInt(this.high)*BigInt(Uu)+BigInt(this.low)).toString()}equals(t){return ua.isLong(t)||(t=ua.fromValue(t)),this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low}notEquals(t){return!this.equals(t)}comp(t){return ua.isLong(t)||(t=ua.fromValue(t)),this.equals(t)?0:t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1}lessThanOrEqual(t){return this.comp(t)<=0}static fromValue(t){return typeof t==\"number\"?ua.fromNumber(t):new ua(t.low,t.high)}}const OS=new ua(0,0),DS=65536,Uu=DS*DS,H6=Uu*Uu,q6=new ua(-1,-1);var $6=Object.defineProperty,F6=(e,t,n)=>t in e?$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,If=(e,t,n)=>F6(e,typeof t!=\"symbol\"?t+\"\":t,n);class jS{constructor(t,n){If(this,\"version\"),If(this,\"remoteQuerySet\"),If(this,\"queryPath\"),If(this,\"logger\"),this.version={querySet:0,ts:ua.fromNumber(0),identity:0},this.remoteQuerySet=new Map,this.queryPath=t,this.logger=n}transition(t){const n=t.startVersion;if(this.version.querySet!==n.querySet||this.version.ts.notEquals(n.ts)||this.version.identity!==n.identity)throw new Error(`Invalid start version: ${n.ts.toString()}:${n.querySet}:${n.identity}, transitioning from ${this.version.ts.toString()}:${this.version.querySet}:${this.version.identity}`);for(const a of t.modifications)switch(a.type){case\"QueryUpdated\":{const o=this.queryPath(a.queryId);if(o)for(const c of a.logLines)ch(this.logger,\"info\",\"query\",o,c);const s=xc(a.value??null);this.remoteQuerySet.set(a.queryId,{success:!0,value:s,logLines:a.logLines});break}case\"QueryFailed\":{const o=this.queryPath(a.queryId);if(o)for(const c of a.logLines)ch(this.logger,\"info\",\"query\",o,c);const{errorData:s}=a;this.remoteQuerySet.set(a.queryId,{success:!1,errorMessage:a.errorMessage,errorData:s!==void 0?xc(s):void 0,logLines:a.logLines});break}case\"QueryRemoved\":{this.remoteQuerySet.delete(a.queryId);break}default:throw new Error(`Invalid modification ${a.type}`)}this.version=t.endVersion}remoteQueryResults(){return this.remoteQuerySet}timestamp(){return this.version.ts}}function cg(e){const t=Ku(e);return ua.fromBytesLE(Array.from(t))}function B6(e){const t=new Uint8Array(e.toBytesLE());return Qu(t)}function zS(e){switch(e.type){case\"FatalError\":case\"AuthError\":case\"ActionResponse\":case\"TransitionChunk\":case\"Ping\":return{...e};case\"MutationResponse\":return e.success?{...e,ts:cg(e.ts)}:{...e};case\"Transition\":return{...e,startVersion:{...e.startVersion,ts:cg(e.startVersion.ts)},endVersion:{...e.endVersion,ts:cg(e.endVersion.ts)}}}}function U6(e){switch(e.type){case\"Authenticate\":case\"ModifyQuerySet\":case\"Mutation\":case\"Action\":case\"Event\":return{...e};case\"Connect\":return e.maxObservedTimestamp!==void 0?{...e,maxObservedTimestamp:B6(e.maxObservedTimestamp)}:{...e,maxObservedTimestamp:void 0}}}var V6=Object.defineProperty,W6=(e,t,n)=>t in e?V6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lr=(e,t,n)=>W6(e,typeof t!=\"symbol\"?t+\"\":t,n);const G6=1e3,Y6=1001,X6=1005,K6=4040;let Jf;function eh(){return Jf===void 0&&(Jf=Date.now()),typeof performance>\"u\"||!performance.now?Date.now():Math.round(Jf+performance.now())}function PS(){return`t=${Math.round((eh()-Jf)/100)/10}s`}const Kk={InternalServerError:{timeout:1e3},SubscriptionsWorkerFullError:{timeout:3e3},TooManyConcurrentRequests:{timeout:3e3},CommitterFullError:{timeout:3e3},AwsTooManyRequestsException:{timeout:3e3},ExecuteFullError:{timeout:3e3},SystemTimeoutError:{timeout:3e3},ExpiredInQueue:{timeout:3e3},VectorIndexesUnavailable:{timeout:1e3},SearchIndexesUnavailable:{timeout:1e3},TableSummariesUnavailable:{timeout:1e3},VectorIndexTooLarge:{timeout:3e3},SearchIndexTooLarge:{timeout:3e3},TooManyWritesInTimePeriod:{timeout:3e3}};function Q6(e){if(e===void 0)return\"Unknown\";for(const t of Object.keys(Kk))if(e.startsWith(t))return t;return\"Unknown\"}class Z6{constructor(t,n,a,o,s,c){this.markConnectionStateDirty=s,this.debug=c,lr(this,\"socket\"),lr(this,\"connectionCount\"),lr(this,\"_hasEverConnected\",!1),lr(this,\"lastCloseReason\"),lr(this,\"transitionChunkBuffer\",null),lr(this,\"defaultInitialBackoff\"),lr(this,\"maxBackoff\"),lr(this,\"retries\"),lr(this,\"serverInactivityThreshold\"),lr(this,\"reconnectDueToServerInactivityTimeout\"),lr(this,\"uri\"),lr(this,\"onOpen\"),lr(this,\"onResume\"),lr(this,\"onMessage\"),lr(this,\"webSocketConstructor\"),lr(this,\"logger\"),lr(this,\"onServerDisconnectError\"),this.webSocketConstructor=a,this.socket={state:\"disconnected\"},this.connectionCount=0,this.lastCloseReason=\"InitialConnect\",this.defaultInitialBackoff=1e3,this.maxBackoff=16e3,this.retries=0,this.serverInactivityThreshold=6e4,this.reconnectDueToServerInactivityTimeout=null,this.uri=t,this.onOpen=n.onOpen,this.onResume=n.onResume,this.onMessage=n.onMessage,this.onServerDisconnectError=n.onServerDisconnectError,this.logger=o,this.connect()}setSocketState(t){this.socket=t,this._logVerbose(`socket state changed: ${this.socket.state}, paused: ${\"paused\"in this.socket?this.socket.paused:void 0}`),this.markConnectionStateDirty()}assembleTransition(t){if(t.partNumber<0||t.partNumber>=t.totalParts||t.totalParts===0||this.transitionChunkBuffer&&(this.transitionChunkBuffer.totalParts!==t.totalParts||this.transitionChunkBuffer.transitionId!==t.transitionId))throw this.transitionChunkBuffer=null,new Error(\"Invalid TransitionChunk\");if(this.transitionChunkBuffer===null&&(this.transitionChunkBuffer={chunks:[],totalParts:t.totalParts,transitionId:t.transitionId}),t.partNumber!==this.transitionChunkBuffer.chunks.length){const n=this.transitionChunkBuffer.chunks.length;throw this.transitionChunkBuffer=null,new Error(`TransitionChunk received out of order: expected part ${n}, got ${t.partNumber}`)}if(this.transitionChunkBuffer.chunks.push(t.chunk),this.transitionChunkBuffer.chunks.length===t.totalParts){const n=this.transitionChunkBuffer.chunks.join(\"\");this.transitionChunkBuffer=null;const a=zS(JSON.parse(n));if(a.type!==\"Transition\")throw new Error(`Expected Transition, got ${a.type} after assembling chunks`);return a}return null}connect(){if(this.socket.state===\"terminated\")return;if(this.socket.state!==\"disconnected\"&&this.socket.state!==\"stopped\")throw new Error(\"Didn't start connection from disconnected state: \"+this.socket.state);const t=new this.webSocketConstructor(this.uri);this._logVerbose(\"constructed WebSocket\"),this.setSocketState({state:\"connecting\",ws:t,paused:\"no\"}),this.resetServerInactivityTimeout(),t.onopen=()=>{if(this.logger.logVerbose(\"begin ws.onopen\"),this.socket.state!==\"connecting\")throw new Error(\"onopen called with socket not in connecting state\");this.setSocketState({state:\"ready\",ws:t,paused:this.socket.paused===\"yes\"?\"uninitialized\":\"no\"}),this.resetServerInactivityTimeout(),this.socket.paused===\"no\"&&(this._hasEverConnected=!0,this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason,clientTs:eh()})),this.lastCloseReason!==\"InitialConnect\"&&(this.lastCloseReason?this.logger.log(\"WebSocket reconnected at\",PS(),\"after disconnect due to\",this.lastCloseReason):this.logger.log(\"WebSocket reconnected at\",PS())),this.connectionCount+=1,this.lastCloseReason=null},t.onerror=n=>{this.transitionChunkBuffer=null;const a=n.message;a&&this.logger.log(`WebSocket error message: ${a}`)},t.onmessage=n=>{this.resetServerInactivityTimeout();const a=n.data.length;let o=zS(JSON.parse(n.data));if(this._logVerbose(`received ws message with type ${o.type}`),o.type===\"Ping\")return;if(o.type===\"TransitionChunk\"){const c=this.assembleTransition(o);if(!c)return;o=c,this._logVerbose(`assembled full ws message of type ${o.type}`)}this.transitionChunkBuffer!==null&&(this.transitionChunkBuffer=null,this.logger.log(`Received unexpected ${o.type} while buffering TransitionChunks`)),o.type===\"Transition\"&&this.reportLargeTransition({messageLength:a,transition:o}),this.onMessage(o).hasSyncedPastLastReconnect&&(this.retries=0,this.markConnectionStateDirty())},t.onclose=n=>{if(this._logVerbose(\"begin ws.onclose\"),this.transitionChunkBuffer=null,this.lastCloseReason===null&&(this.lastCloseReason=n.reason||`closed with code ${n.code}`),n.code!==G6&&n.code!==Y6&&n.code!==X6&&n.code!==K6){let o=`WebSocket closed with code ${n.code}`;n.reason&&(o+=`: ${n.reason}`),this.logger.log(o),this.onServerDisconnectError&&n.reason&&this.onServerDisconnectError(o)}const a=Q6(n.reason);this.scheduleReconnect(a)}}socketState(){return this.socket.state}sendMessage(t){const n={type:t.type,...t.type===\"Authenticate\"&&t.tokenType===\"User\"?{value:`...${t.value.slice(-7)}`}:{}};if(this.socket.state===\"ready\"&&this.socket.paused===\"no\"){const a=U6(t),o=JSON.stringify(a);let s=!1;try{this.socket.ws.send(o),s=!0}catch(c){this.logger.log(`Failed to send message on WebSocket, reconnecting: ${c}`),this.closeAndReconnect(\"FailedToSendMessage\")}return this._logVerbose(`${s?\"sent\":\"failed to send\"} message with type ${t.type}: ${JSON.stringify(n)}`),!0}return this._logVerbose(`message not sent (socket state: ${this.socket.state}, paused: ${\"paused\"in this.socket?this.socket.paused:void 0}): ${JSON.stringify(n)}`),!1}resetServerInactivityTimeout(){this.socket.state!==\"terminated\"&&(this.reconnectDueToServerInactivityTimeout!==null&&(clearTimeout(this.reconnectDueToServerInactivityTimeout),this.reconnectDueToServerInactivityTimeout=null),this.reconnectDueToServerInactivityTimeout=setTimeout(()=>{this.closeAndReconnect(\"InactiveServer\")},this.serverInactivityThreshold))}scheduleReconnect(t){this.socket={state:\"disconnected\"};const n=this.nextBackoff(t);this.markConnectionStateDirty(),this.logger.log(`Attempting reconnect in ${Math.round(n)}ms`),setTimeout(()=>this.connect(),n)}closeAndReconnect(t){switch(this._logVerbose(`begin closeAndReconnect with reason ${t}`),this.socket.state){case\"disconnected\":case\"terminated\":case\"stopped\":return;case\"connecting\":case\"ready\":{this.lastCloseReason=t,this.close(),this.scheduleReconnect(\"client\");return}default:this.socket}}close(){switch(this.transitionChunkBuffer=null,this.socket.state){case\"disconnected\":case\"terminated\":case\"stopped\":return Promise.resolve();case\"connecting\":{const t=this.socket.ws;return t.onmessage=n=>{this._logVerbose(\"Ignoring message received after close\")},new Promise(n=>{t.onclose=()=>{this._logVerbose(\"Closed after connecting\"),n()},t.onopen=()=>{this._logVerbose(\"Opened after connecting\"),t.close()}})}case\"ready\":{this._logVerbose(\"ws.close called\");const t=this.socket.ws;t.onmessage=a=>{this._logVerbose(\"Ignoring message received after close\")};const n=new Promise(a=>{t.onclose=()=>{a()}});return t.close(),n}default:return this.socket,Promise.resolve()}}terminate(){switch(this.reconnectDueToServerInactivityTimeout&&clearTimeout(this.reconnectDueToServerInactivityTimeout),this.socket.state){case\"terminated\":case\"stopped\":case\"disconnected\":case\"connecting\":case\"ready\":{const t=this.close();return this.setSocketState({state:\"terminated\"}),t}default:throw this.socket,new Error(`Invalid websocket state: ${this.socket.state}`)}}stop(){switch(this.socket.state){case\"terminated\":return Promise.resolve();case\"connecting\":case\"stopped\":case\"disconnected\":case\"ready\":{const t=this.close();return this.socket={state:\"stopped\"},t}default:return this.socket,Promise.resolve()}}tryRestart(){switch(this.socket.state){case\"stopped\":break;case\"terminated\":case\"connecting\":case\"ready\":case\"disconnected\":this.logger.logVerbose(\"Restart called without stopping first\");return;default:this.socket}this.connect()}pause(){switch(this.socket.state){case\"disconnected\":case\"stopped\":case\"terminated\":return;case\"connecting\":case\"ready\":{this.socket={...this.socket,paused:\"yes\"};return}default:{this.socket;return}}}resume(){switch(this.socket.state){case\"connecting\":this.socket={...this.socket,paused:\"no\"};return;case\"ready\":this.socket.paused===\"uninitialized\"?(this.socket={...this.socket,paused:\"no\"},this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason,clientTs:eh()})):this.socket.paused===\"yes\"&&(this.socket={...this.socket,paused:\"no\"},this.onResume());return;case\"terminated\":case\"stopped\":case\"disconnected\":return;default:this.socket}this.connect()}connectionState(){return{isConnected:this.socket.state===\"ready\",hasEverConnected:this._hasEverConnected,connectionCount:this.connectionCount,connectionRetries:this.retries}}_logVerbose(t){this.logger.logVerbose(t)}nextBackoff(t){const a=(t===\"client\"?100:t===\"Unknown\"?this.defaultInitialBackoff:Kk[t].timeout)*Math.pow(2,this.retries);this.retries+=1;const o=Math.min(a,this.maxBackoff),s=o*(Math.random()-.5);return o+s}reportLargeTransition({transition:t,messageLength:n}){if(t.clientClockSkew===void 0||t.serverTs===void 0)return;const a=eh()-t.clientClockSkew-t.serverTs/1e6,o=`${Math.round(a)}ms`,s=`${Math.round(n/1e4)/100}MB`,c=n/(a/1e3),u=`${Math.round(c/1e4)/100}MB per second`;this._logVerbose(`received ${s} transition in ${o} at ${u}`),n>2e7?this.logger.log(`received query results totaling more that 20MB (${s}) which will take a long time to download on slower connections`):a>2e4&&this.logger.log(`received query results totaling ${s} which took more than 20s to arrive (${o})`),this.debug&&this.sendMessage({type:\"Event\",eventType:\"ClientReceivedTransition\",event:{transitionTransitTime:a,messageLength:n}})}}function J6(){return eD()}function eD(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e===\"x\"?t:t&3|8).toString(16)})}class ju extends Error{}ju.prototype.name=\"InvalidTokenError\";function tD(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let a=n.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a=\"0\"+a),\"%\"+a}))}function nD(e){let t=e.replace(/-/g,\"+\").replace(/_/g,\"/\");switch(t.length%4){case 0:break;case 2:t+=\"==\";break;case 3:t+=\"=\";break;default:throw new Error(\"base64 string is not of the correct length\")}try{return tD(t)}catch{return atob(t)}}function Qk(e,t){if(typeof e!=\"string\")throw new ju(\"Invalid token specified: must be a string\");t||(t={});const n=t.header===!0?0:1,a=e.split(\".\")[n];if(typeof a!=\"string\")throw new ju(`Invalid token specified: missing part #${n+1}`);let o;try{o=nD(a)}catch(s){throw new ju(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new ju(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}var rD=Object.defineProperty,aD=(e,t,n)=>t in e?rD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t,n)=>aD(e,typeof t!=\"symbol\"?t+\"\":t,n);const iD=20*24*60*60*1e3,LS=2;class oD{constructor(t,n,a){_a(this,\"authState\",{state:\"noAuth\"}),_a(this,\"configVersion\",0),_a(this,\"syncState\"),_a(this,\"authenticate\"),_a(this,\"stopSocket\"),_a(this,\"tryRestartSocket\"),_a(this,\"pauseSocket\"),_a(this,\"resumeSocket\"),_a(this,\"clearAuth\"),_a(this,\"logger\"),_a(this,\"refreshTokenLeewaySeconds\"),_a(this,\"tokenConfirmationAttempts\",0),this.syncState=t,this.authenticate=n.authenticate,this.stopSocket=n.stopSocket,this.tryRestartSocket=n.tryRestartSocket,this.pauseSocket=n.pauseSocket,this.resumeSocket=n.resumeSocket,this.clearAuth=n.clearAuth,this.logger=a.logger,this.refreshTokenLeewaySeconds=a.refreshTokenLeewaySeconds}async setConfig(t,n){this.resetAuthState(),this._logVerbose(\"pausing WS for auth token fetch\"),this.pauseSocket();const a=await this.fetchTokenAndGuardAgainstRace(t,{forceRefreshToken:!1});a.isFromOutdatedConfig||(a.value?(this.setAuthState({state:\"waitingForServerConfirmationOfCachedToken\",config:{fetchToken:t,onAuthChange:n},hasRetried:!1}),this.authenticate(a.value)):(this.setAuthState({state:\"initialRefetch\",config:{fetchToken:t,onAuthChange:n}}),await this.refetchToken()),this._logVerbose(\"resuming WS after auth token fetch\"),this.resumeSocket())}onTransition(t){if(this.syncState.isCurrentOrNewerAuthVersion(t.endVersion.identity)&&!(t.endVersion.identity<=t.startVersion.identity)){if(this.authState.state===\"waitingForServerConfirmationOfCachedToken\"){this._logVerbose(\"server confirmed auth token is valid\"),this.refetchToken(),this.authState.config.onAuthChange(!0);return}this.authState.state===\"waitingForServerConfirmationOfFreshToken\"&&(this._logVerbose(\"server confirmed new auth token is valid\"),this.scheduleTokenRefetch(this.authState.token),this.tokenConfirmationAttempts=0,this.authState.hadAuth||this.authState.config.onAuthChange(!0))}}onAuthError(t){if(t.authUpdateAttempted===!1&&(this.authState.state===\"waitingForServerConfirmationOfFreshToken\"||this.authState.state===\"waitingForServerConfirmationOfCachedToken\")){this._logVerbose(\"ignoring non-auth token expired error\");return}const{baseVersion:n}=t;if(!this.syncState.isCurrentOrNewerAuthVersion(n+1)){this._logVerbose(\"ignoring auth error for previous auth attempt\");return}this.tryToReauthenticate(t)}async tryToReauthenticate(t){if(this._logVerbose(`attempting to reauthenticate: ${t.error}`),this.authState.state===\"noAuth\"||this.authState.state===\"waitingForServerConfirmationOfFreshToken\"&&this.tokenConfirmationAttempts>=LS){this.logger.error(`Failed to authenticate: \"${t.error}\", check your server auth config`),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.authState.state!==\"noAuth\"&&this.setAndReportAuthFailed(this.authState.config.onAuthChange);return}this.authState.state===\"waitingForServerConfirmationOfFreshToken\"&&(this.tokenConfirmationAttempts++,this._logVerbose(`retrying reauthentication, ${LS-this.tokenConfirmationAttempts} attempts remaining`)),await this.stopSocket();const n=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});n.isFromOutdatedConfig||(n.value&&this.syncState.isNewAuth(n.value)?(this.authenticate(n.value),this.setAuthState({state:\"waitingForServerConfirmationOfFreshToken\",config:this.authState.config,token:n.value,hadAuth:this.authState.state===\"notRefetching\"||this.authState.state===\"waitingForScheduledRefetch\"})):(this._logVerbose(\"reauthentication failed, could not fetch a new token\"),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this.tryRestartSocket())}async refetchToken(){if(this.authState.state===\"noAuth\")return;this._logVerbose(\"refetching auth token\");const t=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});t.isFromOutdatedConfig||(t.value?this.syncState.isNewAuth(t.value)?(this.setAuthState({state:\"waitingForServerConfirmationOfFreshToken\",hadAuth:this.syncState.hasAuth(),token:t.value,config:this.authState.config}),this.authenticate(t.value)):this.setAuthState({state:\"notRefetching\",config:this.authState.config}):(this._logVerbose(\"refetching token failed\"),this.syncState.hasAuth()&&this.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this._logVerbose(\"restarting WS after auth token fetch (if currently stopped)\"),this.tryRestartSocket())}scheduleTokenRefetch(t){if(this.authState.state===\"noAuth\")return;const n=this.decodeToken(t);if(!n){this.logger.error(\"Auth token is not a valid JWT, cannot refetch the token\");return}const{iat:a,exp:o}=n;if(!a||!o){this.logger.error(\"Auth token does not have required fields, cannot refetch the token\");return}const s=o-a;if(s<=2){this.logger.error(\"Auth token does not live long enough, cannot refetch the token\");return}let c=Math.min(iD,(s-this.refreshTokenLeewaySeconds)*1e3);c<=0&&(this.logger.warn(`Refetching auth token immediately, configured leeway ${this.refreshTokenLeewaySeconds}s is larger than the token's lifetime ${s}s`),c=0);const u=setTimeout(()=>{this._logVerbose(\"running scheduled token refetch\"),this.refetchToken()},c);this.setAuthState({state:\"waitingForScheduledRefetch\",refetchTokenTimeoutId:u,config:this.authState.config}),this._logVerbose(`scheduled preemptive auth token refetching in ${c}ms`)}async fetchTokenAndGuardAgainstRace(t,n){const a=++this.configVersion;this._logVerbose(`fetching token with config version ${a}`);const o=await t(n);return this.configVersion!==a?(this._logVerbose(`stale config version, expected ${a}, got ${this.configVersion}`),{isFromOutdatedConfig:!0}):{isFromOutdatedConfig:!1,value:o}}stop(){this.resetAuthState(),this.configVersion++,this._logVerbose(`config version bumped to ${this.configVersion}`)}setAndReportAuthFailed(t){t(!1),this.resetAuthState()}resetAuthState(){this.setAuthState({state:\"noAuth\"})}setAuthState(t){const n=t.state===\"waitingForServerConfirmationOfFreshToken\"?{hadAuth:t.hadAuth,state:t.state,token:`...${t.token.slice(-7)}`}:{state:t.state};switch(this._logVerbose(`setting auth state to ${JSON.stringify(n)}`),t.state){case\"waitingForScheduledRefetch\":case\"notRefetching\":case\"noAuth\":this.tokenConfirmationAttempts=0;break}this.authState.state===\"waitingForScheduledRefetch\"&&(clearTimeout(this.authState.refetchTokenTimeoutId),this.syncState.markAuthCompletion()),this.authState=t}decodeToken(t){try{return Qk(t)}catch(n){return this._logVerbose(`Error decoding token: ${n instanceof Error?n.message:\"Unknown error\"}`),null}}_logVerbose(t){this.logger.logVerbose(`${t} [v${this.configVersion}]`)}}const sD=[\"convexClientConstructed\",\"convexWebSocketOpen\",\"convexFirstMessageReceived\"];function lD(e,t){const n={sessionId:t};typeof performance>\"u\"||!performance.mark||performance.mark(e,{detail:n})}function cD(e){let t=e.name.slice(6);return t=t.charAt(0).toLowerCase()+t.slice(1),{name:t,startTime:e.startTime}}function uD(e){if(typeof performance>\"u\"||!performance.getEntriesByName)return[];const t=[];for(const n of sD){const a=performance.getEntriesByName(n).filter(o=>o.entryType===\"mark\").filter(o=>o.detail.sessionId===e);t.push(...a)}return t.map(cD)}var dD=Object.defineProperty,fD=(e,t,n)=>t in e?dD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Un=(e,t,n)=>fD(e,typeof t!=\"symbol\"?t+\"\":t,n);class hD{constructor(t,n,a){if(Un(this,\"address\"),Un(this,\"state\"),Un(this,\"requestManager\"),Un(this,\"webSocketManager\"),Un(this,\"authenticationManager\"),Un(this,\"remoteQuerySet\"),Un(this,\"optimisticQueryResults\"),Un(this,\"_transitionHandlerCounter\",0),Un(this,\"_nextRequestId\"),Un(this,\"_onTransitionFns\",new Map),Un(this,\"_sessionId\"),Un(this,\"firstMessageReceived\",!1),Un(this,\"debug\"),Un(this,\"logger\"),Un(this,\"maxObservedTimestamp\"),Un(this,\"connectionStateSubscribers\",new Map),Un(this,\"nextConnectionStateSubscriberId\",0),Un(this,\"_lastPublishedConnectionState\"),Un(this,\"markConnectionStateDirty\",()=>{Promise.resolve().then(()=>{const w=this.connectionState();if(JSON.stringify(w)!==JSON.stringify(this._lastPublishedConnectionState)){this._lastPublishedConnectionState=w;for(const S of this.connectionStateSubscribers.values())S(w)}})}),Un(this,\"mark\",w=>{this.debug&&lD(w,this.sessionId)}),typeof t==\"object\")throw new Error(\"Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly.\");a?.skipConvexDeploymentUrlCheck!==!0&&s6(t),a={...a};const o=a.authRefreshTokenLeewaySeconds??2;let s=a.webSocketConstructor;if(!s&&typeof WebSocket>\"u\")throw new Error(\"No WebSocket global variable defined! To use Convex in an environment without WebSocket try the HTTP client: https://docs.convex.dev/api/classes/browser.ConvexHttpClient\");s=s||WebSocket,this.debug=a.reportDebugInfoToConvex??!1,this.address=t,this.logger=a.logger===!1?Gk({verbose:a.verbose??!1}):a.logger!==!0&&a.logger?a.logger:Wk({verbose:a.verbose??!1});const c=t.search(\"://\");if(c===-1)throw new Error(\"Provided address was not an absolute URL.\");const u=t.substring(c+3),f=t.substring(0,c);let m;if(f===\"http\")m=\"ws\";else if(f===\"https\")m=\"wss\";else throw new Error(`Unknown parent protocol ${f}`);const v=`${m}://${u}/api/${AS}/sync`;this.state=new E6,this.remoteQuerySet=new jS(w=>this.state.queryPath(w),this.logger),this.requestManager=new T6(this.logger,this.markConnectionStateDirty);const y=()=>{this.webSocketManager.pause(),this.state.pause()};this.authenticationManager=new oD(this.state,{authenticate:w=>{const S=this.state.setAuth(w);return this.webSocketManager.sendMessage(S),S.baseVersion},stopSocket:()=>this.webSocketManager.stop(),tryRestartSocket:()=>this.webSocketManager.tryRestart(),pauseSocket:y,resumeSocket:()=>this.webSocketManager.resume(),clearAuth:()=>{this.clearAuth()}},{logger:this.logger,refreshTokenLeewaySeconds:o}),this.optimisticQueryResults=new P6,this.addOnTransitionHandler(w=>{n(w.queries.map(S=>S.token))}),this._nextRequestId=0,this._sessionId=J6();const{unsavedChangesWarning:x}=a;if(typeof window>\"u\"||typeof window.addEventListener>\"u\"){if(x===!0)throw new Error(\"unsavedChangesWarning requested, but window.addEventListener not found! Remove {unsavedChangesWarning: true} from Convex client options.\")}else x!==!1&&window.addEventListener(\"beforeunload\",w=>{if(this.requestManager.hasIncompleteRequests()){w.preventDefault();const S=\"Are you sure you want to leave? Your changes may not be saved.\";return(w||window.event).returnValue=S,S}});this.webSocketManager=new Z6(v,{onOpen:w=>{this.mark(\"convexWebSocketOpen\"),this.webSocketManager.sendMessage({...w,type:\"Connect\",sessionId:this._sessionId,maxObservedTimestamp:this.maxObservedTimestamp});const S=new Set(this.remoteQuerySet.remoteQueryResults().keys());this.remoteQuerySet=new jS(_=>this.state.queryPath(_),this.logger);const[C,R]=this.state.restart(S);R&&this.webSocketManager.sendMessage(R),this.webSocketManager.sendMessage(C);for(const _ of this.requestManager.restart())this.webSocketManager.sendMessage(_)},onResume:()=>{const[w,S]=this.state.resume();S&&this.webSocketManager.sendMessage(S),w&&this.webSocketManager.sendMessage(w);for(const C of this.requestManager.resume())this.webSocketManager.sendMessage(C)},onMessage:w=>{switch(this.firstMessageReceived||(this.firstMessageReceived=!0,this.mark(\"convexFirstMessageReceived\"),this.reportMarks()),w.type){case\"Transition\":{this.observedTimestamp(w.endVersion.ts),this.authenticationManager.onTransition(w),this.remoteQuerySet.transition(w),this.state.transition(w);const S=this.requestManager.removeCompleted(this.remoteQuerySet.timestamp());this.notifyOnQueryResultChanges(S);break}case\"MutationResponse\":{w.success&&this.observedTimestamp(w.ts);const S=this.requestManager.onResponse(w);S!==null&&this.notifyOnQueryResultChanges(new Map([[S.requestId,S.result]]));break}case\"ActionResponse\":{this.requestManager.onResponse(w);break}case\"AuthError\":{this.authenticationManager.onAuthError(w);break}case\"FatalError\":{const S=S6(this.logger,w.error);throw this.webSocketManager.terminate(),S}}return{hasSyncedPastLastReconnect:this.hasSyncedPastLastReconnect()}},onServerDisconnectError:a.onServerDisconnectError},s,this.logger,this.markConnectionStateDirty,this.debug),this.mark(\"convexClientConstructed\"),a.expectAuth&&y()}hasSyncedPastLastReconnect(){return this.requestManager.hasSyncedPastLastReconnect()||this.state.hasSyncedPastLastReconnect()}observedTimestamp(t){(this.maxObservedTimestamp===void 0||this.maxObservedTimestamp.lessThanOrEqual(t))&&(this.maxObservedTimestamp=t)}getMaxObservedTimestamp(){return this.maxObservedTimestamp}notifyOnQueryResultChanges(t){const n=this.remoteQuerySet.remoteQueryResults(),a=new Map;for(const[s,c]of n){const u=this.state.queryToken(s);if(u!==null){const f={result:c,udfPath:this.state.queryPath(s),args:this.state.queryArgs(s)};a.set(u,f)}}const o=this.optimisticQueryResults.ingestQueryResultsFromServer(a,new Set(t.keys()));this.handleTransition({queries:o.map(s=>{const c=this.optimisticQueryResults.rawQueryResult(s);return{token:s,modification:{kind:\"Updated\",result:c.result}}}),reflectedMutations:Array.from(t).map(([s,c])=>({requestId:s,result:c})),timestamp:this.remoteQuerySet.timestamp()})}handleTransition(t){for(const n of this._onTransitionFns.values())n(t)}addOnTransitionHandler(t){const n=this._transitionHandlerCounter++;return this._onTransitionFns.set(n,t),()=>this._onTransitionFns.delete(n)}getCurrentAuthClaims(){const t=this.state.getAuth();let n={};if(t&&t.tokenType===\"User\")try{n=t?Qk(t.value):{}}catch{n={}}else return;return{token:t.value,decoded:n}}setAuth(t,n){this.authenticationManager.setConfig(t,n)}hasAuth(){return this.state.hasAuth()}setAdminAuth(t,n){const a=this.state.setAdminAuth(t,n);this.webSocketManager.sendMessage(a)}clearAuth(){const t=this.state.clearAuth();this.webSocketManager.sendMessage(t)}subscribe(t,n,a){const o=Ki(n),{modification:s,queryToken:c,unsubscribe:u}=this.state.subscribe(t,o,a?.journal,a?.componentPath);return s!==null&&this.webSocketManager.sendMessage(s),{queryToken:c,unsubscribe:()=>{const f=u();f&&this.webSocketManager.sendMessage(f)}}}localQueryResult(t,n){const a=Ki(n),o=Js(t,a);return this.optimisticQueryResults.queryResult(o)}localQueryResultByToken(t){return this.optimisticQueryResults.queryResult(t)}hasLocalQueryResultByToken(t){return this.optimisticQueryResults.hasQueryResult(t)}localQueryLogs(t,n){const a=Ki(n),o=Js(t,a);return this.optimisticQueryResults.queryLogs(o)}queryJournal(t,n){const a=Ki(n),o=Js(t,a);return this.state.queryJournal(o)}connectionState(){const t=this.webSocketManager.connectionState();return{hasInflightRequests:this.requestManager.hasInflightRequests(),isWebSocketConnected:t.isConnected,hasEverConnected:t.hasEverConnected,connectionCount:t.connectionCount,connectionRetries:t.connectionRetries,timeOfOldestInflightRequest:this.requestManager.timeOfOldestInflightRequest(),inflightMutations:this.requestManager.inflightMutations(),inflightActions:this.requestManager.inflightActions()}}subscribeToConnectionState(t){const n=this.nextConnectionStateSubscriberId++;return this.connectionStateSubscribers.set(n,t),()=>{this.connectionStateSubscribers.delete(n)}}async mutation(t,n,a){const o=await this.mutationInternal(t,n,a);if(!o.success)throw o.errorData!==void 0?Ly(o,new Py(lc(\"mutation\",t,o))):new Error(lc(\"mutation\",t,o));return o.value}async mutationInternal(t,n,a,o){const{mutationPromise:s}=this.enqueueMutation(t,n,a,o);return s}enqueueMutation(t,n,a,o){const s=Ki(n);this.tryReportLongDisconnect();const c=this.nextRequestId;if(this._nextRequestId++,a!==void 0){const v=a.optimisticUpdate;if(v!==void 0){const y=S=>{v(S,s)instanceof Promise&&this.logger.warn(\"Optimistic update handler returned a Promise. Optimistic updates should be synchronous.\")},w=this.optimisticQueryResults.applyOptimisticUpdate(y,c).map(S=>{const C=this.localQueryResultByToken(S);return{token:S,modification:{kind:\"Updated\",result:C===void 0?void 0:{success:!0,value:C,logLines:[]}}}});this.handleTransition({queries:w,reflectedMutations:[],timestamp:this.remoteQuerySet.timestamp()})}}const u={type:\"Mutation\",requestId:c,udfPath:t,componentPath:o,args:[is(s)]},f=this.webSocketManager.sendMessage(u),m=this.requestManager.request(u,f);return{requestId:c,mutationPromise:m}}async action(t,n){const a=await this.actionInternal(t,n);if(!a.success)throw a.errorData!==void 0?Ly(a,new Py(lc(\"action\",t,a))):new Error(lc(\"action\",t,a));return a.value}async actionInternal(t,n,a){const o=Ki(n),s=this.nextRequestId;this._nextRequestId++,this.tryReportLongDisconnect();const c={type:\"Action\",requestId:s,udfPath:t,componentPath:a,args:[is(o)]},u=this.webSocketManager.sendMessage(c);return this.requestManager.request(c,u)}async close(){return this.authenticationManager.stop(),this.webSocketManager.terminate()}get url(){return this.address}get nextRequestId(){return this._nextRequestId}get sessionId(){return this._sessionId}reportMarks(){if(this.debug){const t=uD(this.sessionId);this.webSocketManager.sendMessage({type:\"Event\",eventType:\"ClientConnect\",event:t})}}tryReportLongDisconnect(){if(!this.debug)return;const t=this.connectionState().timeOfOldestInflightRequest;if(t===null||Date.now()-t.getTime()<=60*1e3)return;const n=`${this.address}/api/debug_event`;fetch(n,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"Convex-Client\":`npm-${AS}`},body:JSON.stringify({event:\"LongWebsocketDisconnect\"})}).then(a=>{a.ok||this.logger.warn(\"Analytics request failed with response:\",a.body)}).catch(a=>{this.logger.warn(\"Analytics response failed with error:\",a)})}}function mD({getCurrentValue:e,subscribe:t}){const[n,a]=h.useState(()=>({getCurrentValue:e,subscribe:t,value:e()}));let o=n.value;return(n.getCurrentValue!==e||n.subscribe!==t)&&(o=e(),a({getCurrentValue:e,subscribe:t,value:o})),h.useEffect(()=>{let s=!1;const c=()=>{s||a(f=>{if(f.getCurrentValue!==e||f.subscribe!==t)return f;const m=e();return f.value===m?f:{...f,value:m}})},u=t(c);return c(),()=>{s=!0,u()}},[e,t]),o}var pD=Object.defineProperty,gD=(e,t,n)=>t in e?pD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bo=(e,t,n)=>gD(e,typeof t!=\"symbol\"?t+\"\":t,n);const vD=5e3;if(typeof Dt>\"u\")throw new Error(\"Required dependency 'react' not found\");function Zk(e,t,n){function a(o){return SD(o),t.mutation(e,o,{optimisticUpdate:n})}return a.withOptimisticUpdate=function(s){if(n!==void 0)throw new Error(`Already specified optimistic update for mutation ${ga(e)}`);return Zk(e,t,s)},a}class yD{constructor(t,n){if(Bo(this,\"address\"),Bo(this,\"cachedSync\"),Bo(this,\"listeners\"),Bo(this,\"options\"),Bo(this,\"closed\",!1),Bo(this,\"_logger\"),Bo(this,\"adminAuth\"),Bo(this,\"fakeUserIdentity\"),t===void 0)throw new Error(\"No address provided to ConvexReactClient.\\nIf trying to deploy to production, make sure to follow all the instructions found at https://docs.convex.dev/production/hosting/\\nIf running locally, make sure to run `convex dev` and ensure the .env.local file is populated.\");if(typeof t!=\"string\")throw new Error(`ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud', received something of type ${typeof t} instead.`);if(!t.includes(\"://\"))throw new Error(\"Provided address was not an absolute URL.\");this.address=t,this.listeners=new Map,this._logger=n?.logger===!1?Gk({verbose:n?.verbose??!1}):n?.logger!==!0&&n?.logger?n.logger:Wk({verbose:n?.verbose??!1}),this.options={...n,logger:this._logger}}get url(){return this.address}get sync(){if(this.closed)throw new Error(\"ConvexReactClient has already been closed.\");return this.cachedSync?this.cachedSync:(this.cachedSync=new hD(this.address,t=>this.transition(t),this.options),this.adminAuth&&this.cachedSync.setAdminAuth(this.adminAuth,this.fakeUserIdentity),this.cachedSync)}setAuth(t,n){if(typeof t==\"string\")throw new Error(\"Passing a string to ConvexReactClient.setAuth is no longer supported, please upgrade to passing in an async function to handle reauthentication.\");this.sync.setAuth(t,n??(()=>{}))}clearAuth(){this.sync.clearAuth()}setAdminAuth(t,n){if(this.adminAuth=t,this.fakeUserIdentity=n,this.closed)throw new Error(\"ConvexReactClient has already been closed.\");this.cachedSync&&this.sync.setAdminAuth(t,n)}watchQuery(t,...n){const[a,o]=n,s=ga(t);return{onUpdate:c=>{const{queryToken:u,unsubscribe:f}=this.sync.subscribe(s,a,o),m=this.listeners.get(u);return m!==void 0?m.add(c):this.listeners.set(u,new Set([c])),()=>{if(this.closed)return;const v=this.listeners.get(u);v.delete(c),v.size===0&&this.listeners.delete(u),f()}},localQueryResult:()=>{if(this.cachedSync)return this.cachedSync.localQueryResult(s,a)},localQueryLogs:()=>{if(this.cachedSync)return this.cachedSync.localQueryLogs(s,a)},journal:()=>{if(this.cachedSync)return this.cachedSync.queryJournal(s,a)}}}prewarmQuery(t){const n=t.extendSubscriptionFor??vD,o=this.watchQuery(t.query,t.args||{}).onUpdate(()=>{});setTimeout(o,n)}mutation(t,...n){const[a,o]=n,s=ga(t);return this.sync.mutation(s,a,o)}action(t,...n){const a=ga(t);return this.sync.action(a,...n)}query(t,...n){const a=this.watchQuery(t,...n),o=a.localQueryResult();return o!==void 0?Promise.resolve(o):new Promise((s,c)=>{const u=a.onUpdate(()=>{u();try{s(a.localQueryResult())}catch(f){c(f)}})})}connectionState(){return this.sync.connectionState()}subscribeToConnectionState(t){return this.sync.subscribeToConnectionState(t)}get logger(){return this._logger}async close(){if(this.closed=!0,this.listeners=new Map,this.cachedSync){const t=this.cachedSync;this.cachedSync=void 0,await t.close()}}transition(t){for(const n of t){const a=this.listeners.get(n);if(a)for(const o of a)o()}}}const db=Dt.createContext(void 0);function bD(){return h.useContext(db)}const xD=({client:e,children:t})=>Dt.createElement(db.Provider,{value:e},t);function IS(e,...t){const n=t[0]===\"skip\",a=t[0]===\"skip\"?{}:Ki(t[0]),o=typeof e==\"string\"?Yk(e):e,s=ga(o),c=h.useMemo(()=>n?{}:{query:{query:o,args:a}},[JSON.stringify(is(a)),s,n]),f=kD(c).query;if(f instanceof Error)throw f;return f}function wD(e){const t=typeof e==\"string\"?Yk(e):e,n=h.useContext(db);if(n===void 0)throw new Error(\"Could not find Convex client! `useMutation` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app\");return h.useMemo(()=>Zk(t,n),[n,ga(t)])}function SD(e){if(typeof e==\"object\"&&e!==null&&\"bubbles\"in e&&\"persist\"in e&&\"isDefaultPrevented\"in e)throw new Error(\"Convex function called with SyntheticEvent object. Did you use a Convex function as an event handler directly? Event handlers like onClick receive an event object as their first argument. These SyntheticEvent objects are not valid Convex values. Try wrapping the function like `const handler = () => myMutation();` and using `handler` in the event handler.\")}var CD=Object.defineProperty,RD=(e,t,n)=>t in e?CD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ug=(e,t,n)=>RD(e,typeof t!=\"symbol\"?t+\"\":t,n);class ED{constructor(t){ug(this,\"createWatch\"),ug(this,\"queries\"),ug(this,\"listeners\"),this.createWatch=t,this.queries={},this.listeners=new Set}setQueries(t){for(const n of Object.keys(t)){const{query:a,args:o}=t[n];if(ga(a),this.queries[n]===void 0)this.addQuery(n,a,o);else{const s=this.queries[n];(ga(a)!==ga(s.query)||JSON.stringify(is(o))!==JSON.stringify(is(s.args)))&&(this.removeQuery(n),this.addQuery(n,a,o))}}for(const n of Object.keys(this.queries))t[n]===void 0&&this.removeQuery(n)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}getLocalResults(t){const n={};for(const a of Object.keys(t)){const{query:o,args:s}=t[a];ga(o);const c=this.createWatch(o,s);let u;try{u=c.localQueryResult()}catch(f){if(f instanceof Error)u=f;else throw f}n[a]=u}return n}setCreateWatch(t){this.createWatch=t;for(const n of Object.keys(this.queries)){const{query:a,args:o,watch:s}=this.queries[n],c=s.journal();this.removeQuery(n),this.addQuery(n,a,o,c)}}destroy(){for(const t of Object.keys(this.queries))this.removeQuery(t);this.listeners=new Set}addQuery(t,n,a,o){if(this.queries[t]!==void 0)throw new Error(`Tried to add a new query with identifier ${t} when it already exists.`);const s=this.createWatch(n,a,o),c=s.onUpdate(()=>this.notifyListeners());this.queries[t]={query:n,args:a,watch:s,unsubscribe:c}}removeQuery(t){const n=this.queries[t];if(n===void 0)throw new Error(`No query found with identifier ${t}.`);n.unsubscribe(),delete this.queries[t]}notifyListeners(){for(const t of this.listeners)t()}}function kD(e){const t=bD();if(t===void 0)throw new Error(\"Could not find Convex client! `useQuery` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app\");const n=h.useMemo(()=>(a,o,s)=>t.watchQuery(a,o,s?{journal:s}:{}),[t]);return _D(e,n)}function _D(e,t){const[n]=h.useState(()=>new ED(t));n.createWatch!==t&&n.setCreateWatch(t),h.useEffect(()=>()=>n.destroy(),[n]);const a=h.useMemo(()=>({getCurrentValue:()=>n.getLocalResults(e),subscribe:o=>(n.setQueries(e),n.subscribe(o))}),[n,e]);return mD(a)}/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const TD=e=>e.replace(/([a-z0-9])([A-Z])/g,\"$1-$2\").toLowerCase(),Jk=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==\"\"&&a.indexOf(t)===n).join(\" \").trim();/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */var MD={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const AD=h.forwardRef(({color:e=\"currentColor\",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:o=\"\",children:s,iconNode:c,...u},f)=>h.createElement(\"svg\",{ref:f,...MD,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:Jk(\"lucide\",o),...u},[...c.map(([m,v])=>h.createElement(m,v)),...Array.isArray(s)?s:[s]]));/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const ct=(e,t)=>{const n=h.forwardRef(({className:a,...o},s)=>h.createElement(AD,{ref:s,iconNode:t,className:Jk(`lucide-${TD(e)}`,a),...o}));return n.displayName=`${e}`,n};/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const ND=ct(\"Activity\",[[\"path\",{d:\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\",key:\"169zse\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const OD=ct(\"ArrowDown\",[[\"path\",{d:\"M12 5v14\",key:\"s699le\"}],[\"path\",{d:\"m19 12-7 7-7-7\",key:\"1idqje\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const DD=ct(\"ArrowUpDown\",[[\"path\",{d:\"m21 16-4 4-4-4\",key:\"f6ql7i\"}],[\"path\",{d:\"M17 20V4\",key:\"1ejh1v\"}],[\"path\",{d:\"m3 8 4-4 4 4\",key:\"11wl7u\"}],[\"path\",{d:\"M7 4v16\",key:\"1glfcx\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const jD=ct(\"Calendar\",[[\"path\",{d:\"M8 2v4\",key:\"1cmpym\"}],[\"path\",{d:\"M16 2v4\",key:\"4m81vk\"}],[\"rect\",{width:\"18\",height:\"18\",x:\"3\",y:\"4\",rx:\"2\",key:\"1hopcy\"}],[\"path\",{d:\"M3 10h18\",key:\"8toen8\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const zD=ct(\"ChartColumn\",[[\"path\",{d:\"M3 3v16a2 2 0 0 0 2 2h16\",key:\"c24i48\"}],[\"path\",{d:\"M18 17V9\",key:\"2bz60n\"}],[\"path\",{d:\"M13 17V5\",key:\"1frdt8\"}],[\"path\",{d:\"M8 17v-3\",key:\"17ska0\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const e_=ct(\"Check\",[[\"path\",{d:\"M20 6 9 17l-5-5\",key:\"1gmf2c\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const el=ct(\"ChevronDown\",[[\"path\",{d:\"m6 9 6 6 6-6\",key:\"qrunsl\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const PD=ct(\"ChevronLeft\",[[\"path\",{d:\"m15 18-6-6 6-6\",key:\"1wnfg3\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const dd=ct(\"ChevronRight\",[[\"path\",{d:\"m9 18 6-6-6-6\",key:\"mthhwq\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const fb=ct(\"CircleAlert\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"line\",{x1:\"12\",x2:\"12\",y1:\"8\",y2:\"12\",key:\"1pkeuh\"}],[\"line\",{x1:\"12\",x2:\"12.01\",y1:\"16\",y2:\"16\",key:\"4dfq90\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const Dh=ct(\"CircleCheck\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"path\",{d:\"m9 12 2 2 4-4\",key:\"dzmm74\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const LD=ct(\"CircleHelp\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"path\",{d:\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\",key:\"1u773s\"}],[\"path\",{d:\"M12 17h.01\",key:\"p32p05\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const Iy=ct(\"CircleX\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"path\",{d:\"m15 9-6 6\",key:\"1uzhvr\"}],[\"path\",{d:\"m9 9 6 6\",key:\"z0biqf\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const ID=ct(\"Circle\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const HS=ct(\"ClipboardList\",[[\"rect\",{width:\"8\",height:\"4\",x:\"8\",y:\"2\",rx:\"1\",ry:\"1\",key:\"tgr4d6\"}],[\"path\",{d:\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\",key:\"116196\"}],[\"path\",{d:\"M12 11h4\",key:\"1jrz19\"}],[\"path\",{d:\"M12 16h4\",key:\"n85exb\"}],[\"path\",{d:\"M8 11h.01\",key:\"1dfujw\"}],[\"path\",{d:\"M8 16h.01\",key:\"18s6g9\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const HD=ct(\"Clipboard\",[[\"rect\",{width:\"8\",height:\"4\",x:\"8\",y:\"2\",rx:\"1\",ry:\"1\",key:\"tgr4d6\"}],[\"path\",{d:\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\",key:\"116196\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const t_=ct(\"Clock\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"polyline\",{points:\"12 6 12 12 16 14\",key:\"68esgv\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const Hy=ct(\"Code\",[[\"polyline\",{points:\"16 18 22 12 16 6\",key:\"z7tu5w\"}],[\"polyline\",{points:\"8 6 2 12 8 18\",key:\"1eg1df\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const tl=ct(\"Copy\",[[\"rect\",{width:\"14\",height:\"14\",x:\"8\",y:\"8\",rx:\"2\",ry:\"2\",key:\"17jyea\"}],[\"path\",{d:\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\",key:\"zix9uf\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const hb=ct(\"Database\",[[\"ellipse\",{cx:\"12\",cy:\"5\",rx:\"9\",ry:\"3\",key:\"msslwz\"}],[\"path\",{d:\"M3 5V19A9 3 0 0 0 21 19V5\",key:\"1wlel7\"}],[\"path\",{d:\"M3 12A9 3 0 0 0 21 12\",key:\"mv7ke4\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const qy=ct(\"Download\",[[\"path\",{d:\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\",key:\"ih7n3h\"}],[\"polyline\",{points:\"7 10 12 15 17 10\",key:\"2ggqvy\"}],[\"line\",{x1:\"12\",x2:\"12\",y1:\"15\",y2:\"3\",key:\"1vk2je\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const n_=ct(\"Ellipsis\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"1\",key:\"41hilf\"}],[\"circle\",{cx:\"19\",cy:\"12\",r:\"1\",key:\"1wjl8i\"}],[\"circle\",{cx:\"5\",cy:\"12\",r:\"1\",key:\"1pcz8c\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const qD=ct(\"Eraser\",[[\"path\",{d:\"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21\",key:\"182aya\"}],[\"path\",{d:\"M22 21H7\",key:\"t4ddhn\"}],[\"path\",{d:\"m5 11 9 9\",key:\"1mo9qw\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const $D=ct(\"EyeOff\",[[\"path\",{d:\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\",key:\"ct8e1f\"}],[\"path\",{d:\"M14.084 14.158a3 3 0 0 1-4.242-4.242\",key:\"151rxh\"}],[\"path\",{d:\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\",key:\"13bj9a\"}],[\"path\",{d:\"m2 2 20 20\",key:\"1ooewy\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const FD=ct(\"FileArchive\",[[\"path\",{d:\"M10 12v-1\",key:\"v7bkov\"}],[\"path\",{d:\"M10 18v-2\",key:\"1cjy8d\"}],[\"path\",{d:\"M10 7V6\",key:\"dljcrl\"}],[\"path\",{d:\"M14 2v4a2 2 0 0 0 2 2h4\",key:\"tnqrlb\"}],[\"path\",{d:\"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01\",key:\"gkbcor\"}],[\"circle\",{cx:\"10\",cy:\"20\",r:\"2\",key:\"1xzdoj\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const BD=ct(\"FileJson\",[[\"path\",{d:\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\",key:\"1rqfz7\"}],[\"path\",{d:\"M14 2v4a2 2 0 0 0 2 2h4\",key:\"tnqrlb\"}],[\"path\",{d:\"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1\",key:\"1oajmo\"}],[\"path\",{d:\"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1\",key:\"mpwhp6\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const r_=ct(\"FileText\",[[\"path\",{d:\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\",key:\"1rqfz7\"}],[\"path\",{d:\"M14 2v4a2 2 0 0 0 2 2h4\",key:\"tnqrlb\"}],[\"path\",{d:\"M10 9H8\",key:\"b1mrlr\"}],[\"path\",{d:\"M16 13H8\",key:\"t4e002\"}],[\"path\",{d:\"M16 17H8\",key:\"z1uh3a\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const qS=ct(\"File\",[[\"path\",{d:\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\",key:\"1rqfz7\"}],[\"path\",{d:\"M14 2v4a2 2 0 0 0 2 2h4\",key:\"tnqrlb\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const UD=ct(\"Filter\",[[\"polygon\",{points:\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\",key:\"1yg77f\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const VD=ct(\"Globe\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"path\",{d:\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\",key:\"13o1zl\"}],[\"path\",{d:\"M2 12h20\",key:\"9i4pu4\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const $y=ct(\"HardDrive\",[[\"line\",{x1:\"22\",x2:\"2\",y1:\"12\",y2:\"12\",key:\"1y58io\"}],[\"path\",{d:\"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\",key:\"oot6mr\"}],[\"line\",{x1:\"6\",x2:\"6.01\",y1:\"16\",y2:\"16\",key:\"sgf278\"}],[\"line\",{x1:\"10\",x2:\"10.01\",y1:\"16\",y2:\"16\",key:\"1l4acy\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const WD=ct(\"Image\",[[\"rect\",{width:\"18\",height:\"18\",x:\"3\",y:\"3\",rx:\"2\",ry:\"2\",key:\"1m3agn\"}],[\"circle\",{cx:\"9\",cy:\"9\",r:\"2\",key:\"af1f0g\"}],[\"path\",{d:\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\",key:\"1xmnt7\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const hi=ct(\"LoaderCircle\",[[\"path\",{d:\"M21 12a9 9 0 1 1-6.219-8.56\",key:\"13zald\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const GD=ct(\"Lock\",[[\"rect\",{width:\"18\",height:\"11\",x:\"3\",y:\"11\",rx:\"2\",ry:\"2\",key:\"1w4ew1\"}],[\"path\",{d:\"M7 11V7a5 5 0 0 1 10 0v4\",key:\"fwvmzm\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const YD=ct(\"Moon\",[[\"path\",{d:\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\",key:\"a7tn18\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const XD=ct(\"Music\",[[\"path\",{d:\"M9 18V5l12-2v13\",key:\"1jmyc2\"}],[\"circle\",{cx:\"6\",cy:\"18\",r:\"3\",key:\"fqmcym\"}],[\"circle\",{cx:\"18\",cy:\"16\",r:\"3\",key:\"1hluhg\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const $S=ct(\"Package\",[[\"path\",{d:\"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z\",key:\"1a0edw\"}],[\"path\",{d:\"M12 22V12\",key:\"d0xqtd\"}],[\"path\",{d:\"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7\",key:\"yx3hmr\"}],[\"path\",{d:\"m7.5 4.27 9 5.15\",key:\"1c824w\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const KD=ct(\"Pause\",[[\"rect\",{x:\"14\",y:\"4\",width:\"4\",height:\"16\",rx:\"1\",key:\"zuxfzm\"}],[\"rect\",{x:\"6\",y:\"4\",width:\"4\",height:\"16\",rx:\"1\",key:\"1okwgv\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const QD=ct(\"PenLine\",[[\"path\",{d:\"M12 20h9\",key:\"t2du7b\"}],[\"path\",{d:\"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z\",key:\"1ykcvy\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const a_=ct(\"Play\",[[\"polygon\",{points:\"6 3 20 12 6 21 6 3\",key:\"1oa8hb\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const ZD=ct(\"Plus\",[[\"path\",{d:\"M5 12h14\",key:\"1ays0h\"}],[\"path\",{d:\"M12 5v14\",key:\"s699le\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const JD=ct(\"RefreshCcw\",[[\"path\",{d:\"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\",key:\"14sxne\"}],[\"path\",{d:\"M3 3v5h5\",key:\"1xhq8a\"}],[\"path\",{d:\"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16\",key:\"1hlbsb\"}],[\"path\",{d:\"M16 16h5v5\",key:\"ccwih5\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const fd=ct(\"Search\",[[\"circle\",{cx:\"11\",cy:\"11\",r:\"8\",key:\"4ej97u\"}],[\"path\",{d:\"m21 21-4.3-4.3\",key:\"1qie3q\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const e5=ct(\"Send\",[[\"path\",{d:\"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\",key:\"1ffxy3\"}],[\"path\",{d:\"m21.854 2.147-10.94 10.939\",key:\"12cjpa\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const t5=ct(\"Sun\",[[\"circle\",{cx:\"12\",cy:\"12\",r:\"4\",key:\"4exip2\"}],[\"path\",{d:\"M12 2v2\",key:\"tus03m\"}],[\"path\",{d:\"M12 20v2\",key:\"1lh1kg\"}],[\"path\",{d:\"m4.93 4.93 1.41 1.41\",key:\"149t6j\"}],[\"path\",{d:\"m17.66 17.66 1.41 1.41\",key:\"ptbguv\"}],[\"path\",{d:\"M2 12h2\",key:\"1t8f8n\"}],[\"path\",{d:\"M20 12h2\",key:\"1q8mjw\"}],[\"path\",{d:\"m6.34 17.66-1.41 1.41\",key:\"1m8zz5\"}],[\"path\",{d:\"m19.07 4.93-1.41 1.41\",key:\"1shlcs\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const Fy=ct(\"Table2\",[[\"path\",{d:\"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18\",key:\"gugj83\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const es=ct(\"Trash2\",[[\"path\",{d:\"M3 6h18\",key:\"d0wm0j\"}],[\"path\",{d:\"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\",key:\"4alrt4\"}],[\"path\",{d:\"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\",key:\"v07s0e\"}],[\"line\",{x1:\"10\",x2:\"10\",y1:\"11\",y2:\"17\",key:\"1uufr5\"}],[\"line\",{x1:\"14\",x2:\"14\",y1:\"11\",y2:\"17\",key:\"xtxkd\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const n5=ct(\"TrendingUp\",[[\"polyline\",{points:\"22 7 13.5 15.5 8.5 10.5 2 17\",key:\"126l90\"}],[\"polyline\",{points:\"16 7 22 7 22 13\",key:\"kwv8wd\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const r5=ct(\"Video\",[[\"path\",{d:\"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5\",key:\"ftymec\"}],[\"rect\",{x:\"2\",y:\"6\",width:\"14\",height:\"12\",rx:\"2\",key:\"158x01\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const a5=ct(\"X\",[[\"path\",{d:\"M18 6 6 18\",key:\"1bl5f8\"}],[\"path\",{d:\"m6 6 12 12\",key:\"d8bk6v\"}]]);/**\n * @license lucide-react v0.468.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const mb=ct(\"Zap\",[[\"path\",{d:\"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\",key:\"1xq2db\"}]]);function i_(e){var t,n,a=\"\";if(typeof e==\"string\"||typeof e==\"number\")a+=e;else if(typeof e==\"object\")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=i_(e[t]))&&(a&&(a+=\" \"),a+=n)}else for(n in e)e[n]&&(a&&(a+=\" \"),a+=n);return a}function o_(){for(var e,t,n=0,a=\"\",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=i_(e))&&(a&&(a+=\" \"),a+=t);return a}const pb=\"-\",i5=e=>{const t=s5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{const u=c.split(pb);return u[0]===\"\"&&u.length!==1&&u.shift(),s_(u,t)||o5(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&a[c]?[...f,...a[c]]:f}}},s_=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),o=a?s_(e.slice(1),a):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(pb);return t.validators.find(({validator:c})=>c(s))?.classGroupId},FS=/^\\[(.+)\\]$/,o5=e=>{if(FS.test(e)){const t=FS.exec(e)[1],n=t?.substring(0,t.indexOf(\":\"));if(n)return\"arbitrary..\"+n}},s5=e=>{const{theme:t,prefix:n}=e,a={nextPart:new Map,validators:[]};return c5(Object.entries(e.classGroups),n).forEach(([s,c])=>{By(c,a,s,t)}),a},By=(e,t,n,a)=>{e.forEach(o=>{if(typeof o==\"string\"){const s=o===\"\"?t:BS(t,o);s.classGroupId=n;return}if(typeof o==\"function\"){if(l5(o)){By(o(a),t,n,a);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{By(c,BS(t,s),n,a)})})},BS=(e,t)=>{let n=e;return t.split(pb).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},l5=e=>e.isThemeGetter,c5=(e,t)=>t?e.map(([n,a])=>{const o=a.map(s=>typeof s==\"string\"?t+s:typeof s==\"object\"?Object.fromEntries(Object.entries(s).map(([c,u])=>[t+c,u])):s);return[n,o]}):e,u5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const o=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,a=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=a.get(s))!==void 0)return o(s,c),c},set(s,c){n.has(s)?n.set(s,c):o(s,c)}}},l_=\"!\",d5=e=>{const{separator:t,experimentalParseClassName:n}=e,a=t.length===1,o=t[0],s=t.length,c=u=>{const f=[];let m=0,v=0,y;for(let R=0;R<u.length;R++){let _=u[R];if(m===0){if(_===o&&(a||u.slice(R,R+s)===t)){f.push(u.slice(v,R)),v=R+s;continue}if(_===\"/\"){y=R;continue}}_===\"[\"?m++:_===\"]\"&&m--}const x=f.length===0?u:u.substring(v),w=x.startsWith(l_),S=w?x.substring(1):x,C=y&&y>v?y-v:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:C}};return n?u=>n({className:u,parseClassName:c}):c},f5=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(a=>{a[0]===\"[\"?(t.push(...n.sort(),a),n=[]):n.push(a)}),t.push(...n.sort()),t},h5=e=>({cache:u5(e.cacheSize),parseClassName:d5(e),...i5(e)}),m5=/\\s+/,p5=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:o}=t,s=[],c=e.trim().split(m5);let u=\"\";for(let f=c.length-1;f>=0;f-=1){const m=c[f],{modifiers:v,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:w}=n(m);let S=!!w,C=a(S?x.substring(0,w):x);if(!C){if(!S){u=m+(u.length>0?\" \"+u:u);continue}if(C=a(x),!C){u=m+(u.length>0?\" \"+u:u);continue}S=!1}const R=f5(v).join(\":\"),_=y?R+l_:R,E=_+C;if(s.includes(E))continue;s.push(E);const T=o(C,S);for(let A=0;A<T.length;++A){const D=T[A];s.push(_+D)}u=m+(u.length>0?\" \"+u:u)}return u};function g5(){let e=0,t,n,a=\"\";for(;e<arguments.length;)(t=arguments[e++])&&(n=c_(t))&&(a&&(a+=\" \"),a+=n);return a}const c_=e=>{if(typeof e==\"string\")return e;let t,n=\"\";for(let a=0;a<e.length;a++)e[a]&&(t=c_(e[a]))&&(n&&(n+=\" \"),n+=t);return n};function v5(e,...t){let n,a,o,s=c;function c(f){const m=t.reduce((v,y)=>y(v),e());return n=h5(m),a=n.cache.get,o=n.cache.set,s=u,u(f)}function u(f){const m=a(f);if(m)return m;const v=p5(f,n);return o(f,v),v}return function(){return s(g5.apply(null,arguments))}}const gn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},u_=/^\\[(?:([a-z-]+):)?(.+)\\]$/i,y5=/^\\d+\\/\\d+$/,b5=new Set([\"px\",\"full\",\"screen\"]),x5=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,w5=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,S5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/,C5=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,R5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,Yi=e=>hc(e)||b5.has(e)||y5.test(e),Uo=e=>_c(e,\"length\",O5),hc=e=>!!e&&!Number.isNaN(Number(e)),dg=e=>_c(e,\"number\",hc),xu=e=>!!e&&Number.isInteger(Number(e)),E5=e=>e.endsWith(\"%\")&&hc(e.slice(0,-1)),Ct=e=>u_.test(e),Vo=e=>x5.test(e),k5=new Set([\"length\",\"size\",\"percentage\"]),_5=e=>_c(e,k5,d_),T5=e=>_c(e,\"position\",d_),M5=new Set([\"image\",\"url\"]),A5=e=>_c(e,M5,j5),N5=e=>_c(e,\"\",D5),wu=()=>!0,_c=(e,t,n)=>{const a=u_.exec(e);return a?a[1]?typeof t==\"string\"?a[1]===t:t.has(a[1]):n(a[2]):!1},O5=e=>w5.test(e)&&!S5.test(e),d_=()=>!1,D5=e=>C5.test(e),j5=e=>R5.test(e),z5=()=>{const e=gn(\"colors\"),t=gn(\"spacing\"),n=gn(\"blur\"),a=gn(\"brightness\"),o=gn(\"borderColor\"),s=gn(\"borderRadius\"),c=gn(\"borderSpacing\"),u=gn(\"borderWidth\"),f=gn(\"contrast\"),m=gn(\"grayscale\"),v=gn(\"hueRotate\"),y=gn(\"invert\"),x=gn(\"gap\"),w=gn(\"gradientColorStops\"),S=gn(\"gradientColorStopPositions\"),C=gn(\"inset\"),R=gn(\"margin\"),_=gn(\"opacity\"),E=gn(\"padding\"),T=gn(\"saturate\"),A=gn(\"scale\"),D=gn(\"sepia\"),z=gn(\"skew\"),O=gn(\"space\"),H=gn(\"translate\"),$=()=>[\"auto\",\"contain\",\"none\"],V=()=>[\"auto\",\"hidden\",\"clip\",\"visible\",\"scroll\"],I=()=>[\"auto\",Ct,t],M=()=>[Ct,t],q=()=>[\"\",Yi,Uo],B=()=>[\"auto\",hc,Ct],j=()=>[\"bottom\",\"center\",\"left\",\"left-bottom\",\"left-top\",\"right\",\"right-bottom\",\"right-top\",\"top\"],F=()=>[\"solid\",\"dashed\",\"dotted\",\"double\",\"none\"],U=()=>[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"],W=()=>[\"start\",\"end\",\"center\",\"between\",\"around\",\"evenly\",\"stretch\"],ee=()=>[\"\",\"0\",Ct],oe=()=>[\"auto\",\"avoid\",\"all\",\"avoid-page\",\"page\",\"left\",\"right\",\"column\"],P=()=>[hc,Ct];return{cacheSize:500,separator:\":\",theme:{colors:[wu],spacing:[Yi,Uo],blur:[\"none\",\"\",Vo,Ct],brightness:P(),borderColor:[e],borderRadius:[\"none\",\"\",\"full\",Vo,Ct],borderSpacing:M(),borderWidth:q(),contrast:P(),grayscale:ee(),hueRotate:P(),invert:ee(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[E5,Uo],inset:I(),margin:I(),opacity:P(),padding:M(),saturate:P(),scale:P(),sepia:ee(),skew:P(),space:M(),translate:M()},classGroups:{aspect:[{aspect:[\"auto\",\"square\",\"video\",Ct]}],container:[\"container\"],columns:[{columns:[Vo]}],\"break-after\":[{\"break-after\":oe()}],\"break-before\":[{\"break-before\":oe()}],\"break-inside\":[{\"break-inside\":[\"auto\",\"avoid\",\"avoid-page\",\"avoid-column\"]}],\"box-decoration\":[{\"box-decoration\":[\"slice\",\"clone\"]}],box:[{box:[\"border\",\"content\"]}],display:[\"block\",\"inline-block\",\"inline\",\"flex\",\"inline-flex\",\"table\",\"inline-table\",\"table-caption\",\"table-cell\",\"table-column\",\"table-column-group\",\"table-footer-group\",\"table-header-group\",\"table-row-group\",\"table-row\",\"flow-root\",\"grid\",\"inline-grid\",\"contents\",\"list-item\",\"hidden\"],float:[{float:[\"right\",\"left\",\"none\",\"start\",\"end\"]}],clear:[{clear:[\"left\",\"right\",\"both\",\"none\",\"start\",\"end\"]}],isolation:[\"isolate\",\"isolation-auto\"],\"object-fit\":[{object:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"]}],\"object-position\":[{object:[...j(),Ct]}],overflow:[{overflow:V()}],\"overflow-x\":[{\"overflow-x\":V()}],\"overflow-y\":[{\"overflow-y\":V()}],overscroll:[{overscroll:$()}],\"overscroll-x\":[{\"overscroll-x\":$()}],\"overscroll-y\":[{\"overscroll-y\":$()}],position:[\"static\",\"fixed\",\"absolute\",\"relative\",\"sticky\"],inset:[{inset:[C]}],\"inset-x\":[{\"inset-x\":[C]}],\"inset-y\":[{\"inset-y\":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:[\"visible\",\"invisible\",\"collapse\"],z:[{z:[\"auto\",xu,Ct]}],basis:[{basis:I()}],\"flex-direction\":[{flex:[\"row\",\"row-reverse\",\"col\",\"col-reverse\"]}],\"flex-wrap\":[{flex:[\"wrap\",\"wrap-reverse\",\"nowrap\"]}],flex:[{flex:[\"1\",\"auto\",\"initial\",\"none\",Ct]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:[\"first\",\"last\",\"none\",xu,Ct]}],\"grid-cols\":[{\"grid-cols\":[wu]}],\"col-start-end\":[{col:[\"auto\",{span:[\"full\",xu,Ct]},Ct]}],\"col-start\":[{\"col-start\":B()}],\"col-end\":[{\"col-end\":B()}],\"grid-rows\":[{\"grid-rows\":[wu]}],\"row-start-end\":[{row:[\"auto\",{span:[xu,Ct]},Ct]}],\"row-start\":[{\"row-start\":B()}],\"row-end\":[{\"row-end\":B()}],\"grid-flow\":[{\"grid-flow\":[\"row\",\"col\",\"dense\",\"row-dense\",\"col-dense\"]}],\"auto-cols\":[{\"auto-cols\":[\"auto\",\"min\",\"max\",\"fr\",Ct]}],\"auto-rows\":[{\"auto-rows\":[\"auto\",\"min\",\"max\",\"fr\",Ct]}],gap:[{gap:[x]}],\"gap-x\":[{\"gap-x\":[x]}],\"gap-y\":[{\"gap-y\":[x]}],\"justify-content\":[{justify:[\"normal\",...W()]}],\"justify-items\":[{\"justify-items\":[\"start\",\"end\",\"center\",\"stretch\"]}],\"justify-self\":[{\"justify-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],\"align-content\":[{content:[\"normal\",...W(),\"baseline\"]}],\"align-items\":[{items:[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"align-self\":[{self:[\"auto\",\"start\",\"end\",\"center\",\"stretch\",\"baseline\"]}],\"place-content\":[{\"place-content\":[...W(),\"baseline\"]}],\"place-items\":[{\"place-items\":[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"place-self\":[{\"place-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],\"space-x\":[{\"space-x\":[O]}],\"space-x-reverse\":[\"space-x-reverse\"],\"space-y\":[{\"space-y\":[O]}],\"space-y-reverse\":[\"space-y-reverse\"],w:[{w:[\"auto\",\"min\",\"max\",\"fit\",\"svw\",\"lvw\",\"dvw\",Ct,t]}],\"min-w\":[{\"min-w\":[Ct,t,\"min\",\"max\",\"fit\"]}],\"max-w\":[{\"max-w\":[Ct,t,\"none\",\"full\",\"min\",\"max\",\"fit\",\"prose\",{screen:[Vo]},Vo]}],h:[{h:[Ct,t,\"auto\",\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"min-h\":[{\"min-h\":[Ct,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"max-h\":[{\"max-h\":[Ct,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],size:[{size:[Ct,t,\"auto\",\"min\",\"max\",\"fit\"]}],\"font-size\":[{text:[\"base\",Vo,Uo]}],\"font-smoothing\":[\"antialiased\",\"subpixel-antialiased\"],\"font-style\":[\"italic\",\"not-italic\"],\"font-weight\":[{font:[\"thin\",\"extralight\",\"light\",\"normal\",\"medium\",\"semibold\",\"bold\",\"extrabold\",\"black\",dg]}],\"font-family\":[{font:[wu]}],\"fvn-normal\":[\"normal-nums\"],\"fvn-ordinal\":[\"ordinal\"],\"fvn-slashed-zero\":[\"slashed-zero\"],\"fvn-figure\":[\"lining-nums\",\"oldstyle-nums\"],\"fvn-spacing\":[\"proportional-nums\",\"tabular-nums\"],\"fvn-fraction\":[\"diagonal-fractions\",\"stacked-fractions\"],tracking:[{tracking:[\"tighter\",\"tight\",\"normal\",\"wide\",\"wider\",\"widest\",Ct]}],\"line-clamp\":[{\"line-clamp\":[\"none\",hc,dg]}],leading:[{leading:[\"none\",\"tight\",\"snug\",\"normal\",\"relaxed\",\"loose\",Yi,Ct]}],\"list-image\":[{\"list-image\":[\"none\",Ct]}],\"list-style-type\":[{list:[\"none\",\"disc\",\"decimal\",Ct]}],\"list-style-position\":[{list:[\"inside\",\"outside\"]}],\"placeholder-color\":[{placeholder:[e]}],\"placeholder-opacity\":[{\"placeholder-opacity\":[_]}],\"text-alignment\":[{text:[\"left\",\"center\",\"right\",\"justify\",\"start\",\"end\"]}],\"text-color\":[{text:[e]}],\"text-opacity\":[{\"text-opacity\":[_]}],\"text-decoration\":[\"underline\",\"overline\",\"line-through\",\"no-underline\"],\"text-decoration-style\":[{decoration:[...F(),\"wavy\"]}],\"text-decoration-thickness\":[{decoration:[\"auto\",\"from-font\",Yi,Uo]}],\"underline-offset\":[{\"underline-offset\":[\"auto\",Yi,Ct]}],\"text-decoration-color\":[{decoration:[e]}],\"text-transform\":[\"uppercase\",\"lowercase\",\"capitalize\",\"normal-case\"],\"text-overflow\":[\"truncate\",\"text-ellipsis\",\"text-clip\"],\"text-wrap\":[{text:[\"wrap\",\"nowrap\",\"balance\",\"pretty\"]}],indent:[{indent:M()}],\"vertical-align\":[{align:[\"baseline\",\"top\",\"middle\",\"bottom\",\"text-top\",\"text-bottom\",\"sub\",\"super\",Ct]}],whitespace:[{whitespace:[\"normal\",\"nowrap\",\"pre\",\"pre-line\",\"pre-wrap\",\"break-spaces\"]}],break:[{break:[\"normal\",\"words\",\"all\",\"keep\"]}],hyphens:[{hyphens:[\"none\",\"manual\",\"auto\"]}],content:[{content:[\"none\",Ct]}],\"bg-attachment\":[{bg:[\"fixed\",\"local\",\"scroll\"]}],\"bg-clip\":[{\"bg-clip\":[\"border\",\"padding\",\"content\",\"text\"]}],\"bg-opacity\":[{\"bg-opacity\":[_]}],\"bg-origin\":[{\"bg-origin\":[\"border\",\"padding\",\"content\"]}],\"bg-position\":[{bg:[...j(),T5]}],\"bg-repeat\":[{bg:[\"no-repeat\",{repeat:[\"\",\"x\",\"y\",\"round\",\"space\"]}]}],\"bg-size\":[{bg:[\"auto\",\"cover\",\"contain\",_5]}],\"bg-image\":[{bg:[\"none\",{\"gradient-to\":[\"t\",\"tr\",\"r\",\"br\",\"b\",\"bl\",\"l\",\"tl\"]},A5]}],\"bg-color\":[{bg:[e]}],\"gradient-from-pos\":[{from:[S]}],\"gradient-via-pos\":[{via:[S]}],\"gradient-to-pos\":[{to:[S]}],\"gradient-from\":[{from:[w]}],\"gradient-via\":[{via:[w]}],\"gradient-to\":[{to:[w]}],rounded:[{rounded:[s]}],\"rounded-s\":[{\"rounded-s\":[s]}],\"rounded-e\":[{\"rounded-e\":[s]}],\"rounded-t\":[{\"rounded-t\":[s]}],\"rounded-r\":[{\"rounded-r\":[s]}],\"rounded-b\":[{\"rounded-b\":[s]}],\"rounded-l\":[{\"rounded-l\":[s]}],\"rounded-ss\":[{\"rounded-ss\":[s]}],\"rounded-se\":[{\"rounded-se\":[s]}],\"rounded-ee\":[{\"rounded-ee\":[s]}],\"rounded-es\":[{\"rounded-es\":[s]}],\"rounded-tl\":[{\"rounded-tl\":[s]}],\"rounded-tr\":[{\"rounded-tr\":[s]}],\"rounded-br\":[{\"rounded-br\":[s]}],\"rounded-bl\":[{\"rounded-bl\":[s]}],\"border-w\":[{border:[u]}],\"border-w-x\":[{\"border-x\":[u]}],\"border-w-y\":[{\"border-y\":[u]}],\"border-w-s\":[{\"border-s\":[u]}],\"border-w-e\":[{\"border-e\":[u]}],\"border-w-t\":[{\"border-t\":[u]}],\"border-w-r\":[{\"border-r\":[u]}],\"border-w-b\":[{\"border-b\":[u]}],\"border-w-l\":[{\"border-l\":[u]}],\"border-opacity\":[{\"border-opacity\":[_]}],\"border-style\":[{border:[...F(),\"hidden\"]}],\"divide-x\":[{\"divide-x\":[u]}],\"divide-x-reverse\":[\"divide-x-reverse\"],\"divide-y\":[{\"divide-y\":[u]}],\"divide-y-reverse\":[\"divide-y-reverse\"],\"divide-opacity\":[{\"divide-opacity\":[_]}],\"divide-style\":[{divide:F()}],\"border-color\":[{border:[o]}],\"border-color-x\":[{\"border-x\":[o]}],\"border-color-y\":[{\"border-y\":[o]}],\"border-color-s\":[{\"border-s\":[o]}],\"border-color-e\":[{\"border-e\":[o]}],\"border-color-t\":[{\"border-t\":[o]}],\"border-color-r\":[{\"border-r\":[o]}],\"border-color-b\":[{\"border-b\":[o]}],\"border-color-l\":[{\"border-l\":[o]}],\"divide-color\":[{divide:[o]}],\"outline-style\":[{outline:[\"\",...F()]}],\"outline-offset\":[{\"outline-offset\":[Yi,Ct]}],\"outline-w\":[{outline:[Yi,Uo]}],\"outline-color\":[{outline:[e]}],\"ring-w\":[{ring:q()}],\"ring-w-inset\":[\"ring-inset\"],\"ring-color\":[{ring:[e]}],\"ring-opacity\":[{\"ring-opacity\":[_]}],\"ring-offset-w\":[{\"ring-offset\":[Yi,Uo]}],\"ring-offset-color\":[{\"ring-offset\":[e]}],shadow:[{shadow:[\"\",\"inner\",\"none\",Vo,N5]}],\"shadow-color\":[{shadow:[wu]}],opacity:[{opacity:[_]}],\"mix-blend\":[{\"mix-blend\":[...U(),\"plus-lighter\",\"plus-darker\"]}],\"bg-blend\":[{\"bg-blend\":U()}],filter:[{filter:[\"\",\"none\"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[f]}],\"drop-shadow\":[{\"drop-shadow\":[\"\",\"none\",Vo,Ct]}],grayscale:[{grayscale:[m]}],\"hue-rotate\":[{\"hue-rotate\":[v]}],invert:[{invert:[y]}],saturate:[{saturate:[T]}],sepia:[{sepia:[D]}],\"backdrop-filter\":[{\"backdrop-filter\":[\"\",\"none\"]}],\"backdrop-blur\":[{\"backdrop-blur\":[n]}],\"backdrop-brightness\":[{\"backdrop-brightness\":[a]}],\"backdrop-contrast\":[{\"backdrop-contrast\":[f]}],\"backdrop-grayscale\":[{\"backdrop-grayscale\":[m]}],\"backdrop-hue-rotate\":[{\"backdrop-hue-rotate\":[v]}],\"backdrop-invert\":[{\"backdrop-invert\":[y]}],\"backdrop-opacity\":[{\"backdrop-opacity\":[_]}],\"backdrop-saturate\":[{\"backdrop-saturate\":[T]}],\"backdrop-sepia\":[{\"backdrop-sepia\":[D]}],\"border-collapse\":[{border:[\"collapse\",\"separate\"]}],\"border-spacing\":[{\"border-spacing\":[c]}],\"border-spacing-x\":[{\"border-spacing-x\":[c]}],\"border-spacing-y\":[{\"border-spacing-y\":[c]}],\"table-layout\":[{table:[\"auto\",\"fixed\"]}],caption:[{caption:[\"top\",\"bottom\"]}],transition:[{transition:[\"none\",\"all\",\"\",\"colors\",\"opacity\",\"shadow\",\"transform\",Ct]}],duration:[{duration:P()}],ease:[{ease:[\"linear\",\"in\",\"out\",\"in-out\",Ct]}],delay:[{delay:P()}],animate:[{animate:[\"none\",\"spin\",\"ping\",\"pulse\",\"bounce\",Ct]}],transform:[{transform:[\"\",\"gpu\",\"none\"]}],scale:[{scale:[A]}],\"scale-x\":[{\"scale-x\":[A]}],\"scale-y\":[{\"scale-y\":[A]}],rotate:[{rotate:[xu,Ct]}],\"translate-x\":[{\"translate-x\":[H]}],\"translate-y\":[{\"translate-y\":[H]}],\"skew-x\":[{\"skew-x\":[z]}],\"skew-y\":[{\"skew-y\":[z]}],\"transform-origin\":[{origin:[\"center\",\"top\",\"top-right\",\"right\",\"bottom-right\",\"bottom\",\"bottom-left\",\"left\",\"top-left\",Ct]}],accent:[{accent:[\"auto\",e]}],appearance:[{appearance:[\"none\",\"auto\"]}],cursor:[{cursor:[\"auto\",\"default\",\"pointer\",\"wait\",\"text\",\"move\",\"help\",\"not-allowed\",\"none\",\"context-menu\",\"progress\",\"cell\",\"crosshair\",\"vertical-text\",\"alias\",\"copy\",\"no-drop\",\"grab\",\"grabbing\",\"all-scroll\",\"col-resize\",\"row-resize\",\"n-resize\",\"e-resize\",\"s-resize\",\"w-resize\",\"ne-resize\",\"nw-resize\",\"se-resize\",\"sw-resize\",\"ew-resize\",\"ns-resize\",\"nesw-resize\",\"nwse-resize\",\"zoom-in\",\"zoom-out\",Ct]}],\"caret-color\":[{caret:[e]}],\"pointer-events\":[{\"pointer-events\":[\"none\",\"auto\"]}],resize:[{resize:[\"none\",\"y\",\"x\",\"\"]}],\"scroll-behavior\":[{scroll:[\"auto\",\"smooth\"]}],\"scroll-m\":[{\"scroll-m\":M()}],\"scroll-mx\":[{\"scroll-mx\":M()}],\"scroll-my\":[{\"scroll-my\":M()}],\"scroll-ms\":[{\"scroll-ms\":M()}],\"scroll-me\":[{\"scroll-me\":M()}],\"scroll-mt\":[{\"scroll-mt\":M()}],\"scroll-mr\":[{\"scroll-mr\":M()}],\"scroll-mb\":[{\"scroll-mb\":M()}],\"scroll-ml\":[{\"scroll-ml\":M()}],\"scroll-p\":[{\"scroll-p\":M()}],\"scroll-px\":[{\"scroll-px\":M()}],\"scroll-py\":[{\"scroll-py\":M()}],\"scroll-ps\":[{\"scroll-ps\":M()}],\"scroll-pe\":[{\"scroll-pe\":M()}],\"scroll-pt\":[{\"scroll-pt\":M()}],\"scroll-pr\":[{\"scroll-pr\":M()}],\"scroll-pb\":[{\"scroll-pb\":M()}],\"scroll-pl\":[{\"scroll-pl\":M()}],\"snap-align\":[{snap:[\"start\",\"end\",\"center\",\"align-none\"]}],\"snap-stop\":[{snap:[\"normal\",\"always\"]}],\"snap-type\":[{snap:[\"none\",\"x\",\"y\",\"both\"]}],\"snap-strictness\":[{snap:[\"mandatory\",\"proximity\"]}],touch:[{touch:[\"auto\",\"none\",\"manipulation\"]}],\"touch-x\":[{\"touch-pan\":[\"x\",\"left\",\"right\"]}],\"touch-y\":[{\"touch-pan\":[\"y\",\"up\",\"down\"]}],\"touch-pz\":[\"touch-pinch-zoom\"],select:[{select:[\"none\",\"text\",\"all\",\"auto\"]}],\"will-change\":[{\"will-change\":[\"auto\",\"scroll\",\"contents\",\"transform\",Ct]}],fill:[{fill:[e,\"none\"]}],\"stroke-w\":[{stroke:[Yi,Uo,dg]}],stroke:[{stroke:[e,\"none\"]}],sr:[\"sr-only\",\"not-sr-only\"],\"forced-color-adjust\":[{\"forced-color-adjust\":[\"auto\",\"none\"]}]},conflictingClassGroups:{overflow:[\"overflow-x\",\"overflow-y\"],overscroll:[\"overscroll-x\",\"overscroll-y\"],inset:[\"inset-x\",\"inset-y\",\"start\",\"end\",\"top\",\"right\",\"bottom\",\"left\"],\"inset-x\":[\"right\",\"left\"],\"inset-y\":[\"top\",\"bottom\"],flex:[\"basis\",\"grow\",\"shrink\"],gap:[\"gap-x\",\"gap-y\"],p:[\"px\",\"py\",\"ps\",\"pe\",\"pt\",\"pr\",\"pb\",\"pl\"],px:[\"pr\",\"pl\"],py:[\"pt\",\"pb\"],m:[\"mx\",\"my\",\"ms\",\"me\",\"mt\",\"mr\",\"mb\",\"ml\"],mx:[\"mr\",\"ml\"],my:[\"mt\",\"mb\"],size:[\"w\",\"h\"],\"font-size\":[\"leading\"],\"fvn-normal\":[\"fvn-ordinal\",\"fvn-slashed-zero\",\"fvn-figure\",\"fvn-spacing\",\"fvn-fraction\"],\"fvn-ordinal\":[\"fvn-normal\"],\"fvn-slashed-zero\":[\"fvn-normal\"],\"fvn-figure\":[\"fvn-normal\"],\"fvn-spacing\":[\"fvn-normal\"],\"fvn-fraction\":[\"fvn-normal\"],\"line-clamp\":[\"display\",\"overflow\"],rounded:[\"rounded-s\",\"rounded-e\",\"rounded-t\",\"rounded-r\",\"rounded-b\",\"rounded-l\",\"rounded-ss\",\"rounded-se\",\"rounded-ee\",\"rounded-es\",\"rounded-tl\",\"rounded-tr\",\"rounded-br\",\"rounded-bl\"],\"rounded-s\":[\"rounded-ss\",\"rounded-es\"],\"rounded-e\":[\"rounded-se\",\"rounded-ee\"],\"rounded-t\":[\"rounded-tl\",\"rounded-tr\"],\"rounded-r\":[\"rounded-tr\",\"rounded-br\"],\"rounded-b\":[\"rounded-br\",\"rounded-bl\"],\"rounded-l\":[\"rounded-tl\",\"rounded-bl\"],\"border-spacing\":[\"border-spacing-x\",\"border-spacing-y\"],\"border-w\":[\"border-w-s\",\"border-w-e\",\"border-w-t\",\"border-w-r\",\"border-w-b\",\"border-w-l\"],\"border-w-x\":[\"border-w-r\",\"border-w-l\"],\"border-w-y\":[\"border-w-t\",\"border-w-b\"],\"border-color\":[\"border-color-s\",\"border-color-e\",\"border-color-t\",\"border-color-r\",\"border-color-b\",\"border-color-l\"],\"border-color-x\":[\"border-color-r\",\"border-color-l\"],\"border-color-y\":[\"border-color-t\",\"border-color-b\"],\"scroll-m\":[\"scroll-mx\",\"scroll-my\",\"scroll-ms\",\"scroll-me\",\"scroll-mt\",\"scroll-mr\",\"scroll-mb\",\"scroll-ml\"],\"scroll-mx\":[\"scroll-mr\",\"scroll-ml\"],\"scroll-my\":[\"scroll-mt\",\"scroll-mb\"],\"scroll-p\":[\"scroll-px\",\"scroll-py\",\"scroll-ps\",\"scroll-pe\",\"scroll-pt\",\"scroll-pr\",\"scroll-pb\",\"scroll-pl\"],\"scroll-px\":[\"scroll-pr\",\"scroll-pl\"],\"scroll-py\":[\"scroll-pt\",\"scroll-pb\"],touch:[\"touch-x\",\"touch-y\",\"touch-pz\"],\"touch-x\":[\"touch\"],\"touch-y\":[\"touch\"],\"touch-pz\":[\"touch\"]},conflictingClassGroupModifiers:{\"font-size\":[\"leading\"]}}},P5=v5(z5);function Fe(...e){return P5(o_(e))}const f_=h.createContext(void 0);function L5({children:e}){const[t,n]=h.useState(()=>{const o=localStorage.getItem(\"concave-theme\");return o===\"light\"||o===\"dark\"?o:window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"});h.useEffect(()=>{const o=document.documentElement;t===\"dark\"?o.classList.add(\"dark\"):o.classList.remove(\"dark\"),localStorage.setItem(\"concave-theme\",t)},[t]);const a=()=>{n(o=>o===\"light\"?\"dark\":\"light\")};return g.jsx(f_.Provider,{value:{theme:t,toggleTheme:a},children:e})}function h_(){const e=h.useContext(f_);if(e===void 0)throw new Error(\"useTheme must be used within a ThemeProvider\");return e}function fs(e,t){return t===void 0?IS(e):IS(e,t)}function ts(e){return wD(e)}const Jn=D6._system,I5=Jn.systemListComponents,H5=Jn.systemListTables;Jn.systemGetTableSchema;const q5=Jn.systemGetTableData,$5=Jn.systemDeleteDocument,F5=Jn.systemClearTable,B5=Jn.systemUpdateDocument,U5=Jn.systemInsertDocument,V5=Jn.systemGetLogs,W5=Jn.systemClearLogs,G5=Jn.systemGetAnalytics,Y5=Jn.systemListStorage,X5=Jn.systemDeleteStorage;Jn.systemGetStorageMetadata;const K5=Jn.systemListFunctions,Q5=Jn.systemExecuteFunction,Z5=Jn.systemListScheduledFunctions,J5=Jn.systemCancelScheduledFunction,m_=h.createContext(null);function e4({children:e}){const[t,n]=h.useState(\"\"),a=fs(I5),o=a??[],s=a===void 0;return g.jsx(m_.Provider,{value:{selectedComponent:t,setSelectedComponent:n,components:o,componentsLoading:s},children:e})}function gb(){const e=h.useContext(m_);if(!e)throw new Error(\"useComponent must be used within a ComponentProvider\");return e}function it(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function US(e,t){if(typeof e==\"function\")return e(t);e!=null&&(e.current=t)}function er(...e){return t=>{let n=!1;const a=e.map(o=>{const s=US(o,t);return!n&&typeof s==\"function\"&&(n=!0),s});if(n)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s==\"function\"?s():US(e[o],null)}}}}function vn(...e){return h.useCallback(er(...e),e)}function jh(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,t4(o,...t)]}function t4(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var hd=Ik();const n4=Ya(hd);function r4(e){const t=a4(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(o4);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function a4(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=l4(o),u=s4(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i4=Symbol(\"radix.slottable\");function o4(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===i4}function s4(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function l4(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var c4=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],p_=c4.reduce((e,t)=>{const n=r4(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function u4(e,t){e&&hd.flushSync(()=>e.dispatchEvent(t))}function to(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function d4(e,t=globalThis?.document){const n=to(e);h.useEffect(()=>{const a=o=>{o.key===\"Escape\"&&n(o)};return t.addEventListener(\"keydown\",a,{capture:!0}),()=>t.removeEventListener(\"keydown\",a,{capture:!0})},[n,t])}var f4=\"DismissableLayer\",Uy=\"dismissableLayer.update\",h4=\"dismissableLayer.pointerDownOutside\",m4=\"dismissableLayer.focusOutside\",VS,g_=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),md=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...f}=e,m=h.useContext(g_),[v,y]=h.useState(null),x=v?.ownerDocument??globalThis?.document,[,w]=h.useState({}),S=vn(t,O=>y(O)),C=Array.from(m.layers),[R]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),_=C.indexOf(R),E=v?C.indexOf(v):-1,T=m.layersWithOutsidePointerEventsDisabled.size>0,A=E>=_,D=v4(O=>{const H=O.target,$=[...m.branches].some(V=>V.contains(H));!A||$||(o?.(O),c?.(O),O.defaultPrevented||u?.())},x),z=y4(O=>{const H=O.target;[...m.branches].some(V=>V.contains(H))||(s?.(O),c?.(O),O.defaultPrevented||u?.())},x);return d4(O=>{E===m.layers.size-1&&(a?.(O),!O.defaultPrevented&&u&&(O.preventDefault(),u()))},x),h.useEffect(()=>{if(v)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(VS=x.body.style.pointerEvents,x.body.style.pointerEvents=\"none\"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),WS(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=VS)}},[v,x,n,m]),h.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),WS())},[v,m]),h.useEffect(()=>{const O=()=>w({});return document.addEventListener(Uy,O),()=>document.removeEventListener(Uy,O)},[]),g.jsx(p_.div,{...f,ref:S,style:{pointerEvents:T?A?\"auto\":\"none\":void 0,...e.style},onFocusCapture:it(e.onFocusCapture,z.onFocusCapture),onBlurCapture:it(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:it(e.onPointerDownCapture,D.onPointerDownCapture)})});md.displayName=f4;var p4=\"DismissableLayerBranch\",g4=h.forwardRef((e,t)=>{const n=h.useContext(g_),a=h.useRef(null),o=vn(t,a);return h.useEffect(()=>{const s=a.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(p_.div,{...e,ref:o})});g4.displayName=p4;function v4(e,t=globalThis?.document){const n=to(e),a=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const s=u=>{if(u.target&&!a.current){let f=function(){v_(h4,n,m,{discrete:!0})};const m={originalEvent:u};u.pointerType===\"touch\"?(t.removeEventListener(\"click\",o.current),o.current=f,t.addEventListener(\"click\",o.current,{once:!0})):f()}else t.removeEventListener(\"click\",o.current);a.current=!1},c=window.setTimeout(()=>{t.addEventListener(\"pointerdown\",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener(\"pointerdown\",s),t.removeEventListener(\"click\",o.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function y4(e,t=globalThis?.document){const n=to(e),a=h.useRef(!1);return h.useEffect(()=>{const o=s=>{s.target&&!a.current&&v_(m4,n,{originalEvent:s},{discrete:!1})};return t.addEventListener(\"focusin\",o),()=>t.removeEventListener(\"focusin\",o)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function WS(){const e=new CustomEvent(Uy);document.dispatchEvent(e)}function v_(e,t,n,{discrete:a}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),a?u4(o,s):o.dispatchEvent(s)}var os=globalThis?.document?h.useLayoutEffect:()=>{},b4=Oh[\" useId \".trim().toString()]||(()=>{}),x4=0;function rs(e){const[t,n]=h.useState(b4());return os(()=>{n(a=>a??String(x4++))},[e]),t?`radix-${t}`:\"\"}const w4=[\"top\",\"right\",\"bottom\",\"left\"],ss=Math.min,ha=Math.max,fh=Math.round,Hf=Math.floor,di=e=>({x:e,y:e}),S4={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"},C4={start:\"end\",end:\"start\"};function Vy(e,t,n){return ha(e,ss(t,n))}function no(e,t){return typeof e==\"function\"?e(t):e}function ro(e){return e.split(\"-\")[0]}function Tc(e){return e.split(\"-\")[1]}function vb(e){return e===\"x\"?\"y\":\"x\"}function yb(e){return e===\"y\"?\"height\":\"width\"}const R4=new Set([\"top\",\"bottom\"]);function ui(e){return R4.has(ro(e))?\"y\":\"x\"}function bb(e){return vb(ui(e))}function E4(e,t,n){n===void 0&&(n=!1);const a=Tc(e),o=bb(e),s=yb(o);let c=o===\"x\"?a===(n?\"end\":\"start\")?\"right\":\"left\":a===\"start\"?\"bottom\":\"top\";return t.reference[s]>t.floating[s]&&(c=hh(c)),[c,hh(c)]}function k4(e){const t=hh(e);return[Wy(e),t,Wy(t)]}function Wy(e){return e.replace(/start|end/g,t=>C4[t])}const GS=[\"left\",\"right\"],YS=[\"right\",\"left\"],_4=[\"top\",\"bottom\"],T4=[\"bottom\",\"top\"];function M4(e,t,n){switch(e){case\"top\":case\"bottom\":return n?t?YS:GS:t?GS:YS;case\"left\":case\"right\":return t?_4:T4;default:return[]}}function A4(e,t,n,a){const o=Tc(e);let s=M4(ro(e),n===\"start\",a);return o&&(s=s.map(c=>c+\"-\"+o),t&&(s=s.concat(s.map(Wy)))),s}function hh(e){return e.replace(/left|right|bottom|top/g,t=>S4[t])}function N4(e){return{top:0,right:0,bottom:0,left:0,...e}}function y_(e){return typeof e!=\"number\"?N4(e):{top:e,right:e,bottom:e,left:e}}function mh(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function XS(e,t,n){let{reference:a,floating:o}=e;const s=ui(t),c=bb(t),u=yb(c),f=ro(t),m=s===\"y\",v=a.x+a.width/2-o.width/2,y=a.y+a.height/2-o.height/2,x=a[u]/2-o[u]/2;let w;switch(f){case\"top\":w={x:v,y:a.y-o.height};break;case\"bottom\":w={x:v,y:a.y+a.height};break;case\"right\":w={x:a.x+a.width,y};break;case\"left\":w={x:a.x-o.width,y};break;default:w={x:a.x,y:a.y}}switch(Tc(t)){case\"start\":w[c]-=x*(n&&m?-1:1);break;case\"end\":w[c]+=x*(n&&m?-1:1);break}return w}async function O4(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:s,rects:c,elements:u,strategy:f}=e,{boundary:m=\"clippingAncestors\",rootBoundary:v=\"viewport\",elementContext:y=\"floating\",altBoundary:x=!1,padding:w=0}=no(t,e),S=y_(w),R=u[x?y===\"floating\"?\"reference\":\"floating\":y],_=mh(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(R)))==null||n?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:m,rootBoundary:v,strategy:f})),E=y===\"floating\"?{x:a,y:o,width:c.floating.width,height:c.floating.height}:c.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),A=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},D=mh(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:T,strategy:f}):E);return{top:(_.top-D.top+S.top)/A.y,bottom:(D.bottom-_.bottom+S.bottom)/A.y,left:(_.left-D.left+S.left)/A.x,right:(D.right-_.right+S.right)/A.x}}const D4=async(e,t,n)=>{const{placement:a=\"bottom\",strategy:o=\"absolute\",middleware:s=[],platform:c}=n,u=s.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y}=XS(m,a,f),x=a,w={},S=0;for(let R=0;R<u.length;R++){var C;const{name:_,fn:E}=u[R],{x:T,y:A,data:D,reset:z}=await E({x:v,y,initialPlacement:a,placement:x,strategy:o,middlewareData:w,rects:m,platform:{...c,detectOverflow:(C=c.detectOverflow)!=null?C:O4},elements:{reference:e,floating:t}});v=T??v,y=A??y,w={...w,[_]:{...w[_],...D}},z&&S<=50&&(S++,typeof z==\"object\"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):z.rects),{x:v,y}=XS(m,x,f)),R=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:w}},j4=e=>({name:\"arrow\",options:e,async fn(t){const{x:n,y:a,placement:o,rects:s,platform:c,elements:u,middlewareData:f}=t,{element:m,padding:v=0}=no(e,t)||{};if(m==null)return{};const y=y_(v),x={x:n,y:a},w=bb(o),S=yb(w),C=await c.getDimensions(m),R=w===\"y\",_=R?\"top\":\"left\",E=R?\"bottom\":\"right\",T=R?\"clientHeight\":\"clientWidth\",A=s.reference[S]+s.reference[w]-x[w]-s.floating[S],D=x[w]-s.reference[w],z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let O=z?z[T]:0;(!O||!await(c.isElement==null?void 0:c.isElement(z)))&&(O=u.floating[T]||s.floating[S]);const H=A/2-D/2,$=O/2-C[S]/2-1,V=ss(y[_],$),I=ss(y[E],$),M=V,q=O-C[S]-I,B=O/2-C[S]/2+H,j=Vy(M,B,q),F=!f.arrow&&Tc(o)!=null&&B!==j&&s.reference[S]/2-(B<M?V:I)-C[S]/2<0,U=F?B<M?B-M:B-q:0;return{[w]:x[w]+U,data:{[w]:j,centerOffset:B-j-U,...F&&{alignmentOffset:U}},reset:F}}}),z4=function(e){return e===void 0&&(e={}),{name:\"flip\",options:e,async fn(t){var n,a;const{placement:o,middlewareData:s,rects:c,initialPlacement:u,platform:f,elements:m}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:w=\"bestFit\",fallbackAxisSideDirection:S=\"none\",flipAlignment:C=!0,...R}=no(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=ro(o),E=ui(u),T=ro(u)===u,A=await(f.isRTL==null?void 0:f.isRTL(m.floating)),D=x||(T||!C?[hh(u)]:k4(u)),z=S!==\"none\";!x&&z&&D.push(...A4(u,C,S,A));const O=[u,...D],H=await f.detectOverflow(t,R),$=[];let V=((a=s.flip)==null?void 0:a.overflows)||[];if(v&&$.push(H[_]),y){const B=E4(o,c,A);$.push(H[B[0]],H[B[1]])}if(V=[...V,{placement:o,overflows:$}],!$.every(B=>B<=0)){var I,M;const B=(((I=s.flip)==null?void 0:I.index)||0)+1,j=O[B];if(j&&(!(y===\"alignment\"?E!==ui(j):!1)||V.every(W=>ui(W.placement)===E?W.overflows[0]>0:!0)))return{data:{index:B,overflows:V},reset:{placement:j}};let F=(M=V.filter(U=>U.overflows[0]<=0).sort((U,W)=>U.overflows[1]-W.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(w){case\"bestFit\":{var q;const U=(q=V.filter(W=>{if(z){const ee=ui(W.placement);return ee===E||ee===\"y\"}return!0}).map(W=>[W.placement,W.overflows.filter(ee=>ee>0).reduce((ee,oe)=>ee+oe,0)]).sort((W,ee)=>W[1]-ee[1])[0])==null?void 0:q[0];U&&(F=U);break}case\"initialPlacement\":F=u;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function KS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function QS(e){return w4.some(t=>e[t]>=0)}const P4=function(e){return e===void 0&&(e={}),{name:\"hide\",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:o=\"referenceHidden\",...s}=no(e,t);switch(o){case\"referenceHidden\":{const c=await a.detectOverflow(t,{...s,elementContext:\"reference\"}),u=KS(c,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:QS(u)}}}case\"escaped\":{const c=await a.detectOverflow(t,{...s,altBoundary:!0}),u=KS(c,n.floating);return{data:{escapedOffsets:u,escaped:QS(u)}}}default:return{}}}}},b_=new Set([\"left\",\"top\"]);async function L4(e,t){const{placement:n,platform:a,elements:o}=e,s=await(a.isRTL==null?void 0:a.isRTL(o.floating)),c=ro(n),u=Tc(n),f=ui(n)===\"y\",m=b_.has(c)?-1:1,v=s&&f?-1:1,y=no(t,e);let{mainAxis:x,crossAxis:w,alignmentAxis:S}=typeof y==\"number\"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return u&&typeof S==\"number\"&&(w=u===\"end\"?S*-1:S),f?{x:w*v,y:x*m}:{x:x*m,y:w*v}}const I4=function(e){return e===void 0&&(e=0),{name:\"offset\",options:e,async fn(t){var n,a;const{x:o,y:s,placement:c,middlewareData:u}=t,f=await L4(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(a=u.arrow)!=null&&a.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:c}}}}},H4=function(e){return e===void 0&&(e={}),{name:\"shift\",options:e,async fn(t){const{x:n,y:a,placement:o,platform:s}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:_=>{let{x:E,y:T}=_;return{x:E,y:T}}},...m}=no(e,t),v={x:n,y:a},y=await s.detectOverflow(t,m),x=ui(ro(o)),w=vb(x);let S=v[w],C=v[x];if(c){const _=w===\"y\"?\"top\":\"left\",E=w===\"y\"?\"bottom\":\"right\",T=S+y[_],A=S-y[E];S=Vy(T,S,A)}if(u){const _=x===\"y\"?\"top\":\"left\",E=x===\"y\"?\"bottom\":\"right\",T=C+y[_],A=C-y[E];C=Vy(T,C,A)}const R=f.fn({...t,[w]:S,[x]:C});return{...R,data:{x:R.x-n,y:R.y-a,enabled:{[w]:c,[x]:u}}}}}},q4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:s,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=no(e,t),v={x:n,y:a},y=ui(o),x=vb(y);let w=v[x],S=v[y];const C=no(u,t),R=typeof C==\"number\"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(f){const T=x===\"y\"?\"height\":\"width\",A=s.reference[x]-s.floating[T]+R.mainAxis,D=s.reference[x]+s.reference[T]-R.mainAxis;w<A?w=A:w>D&&(w=D)}if(m){var _,E;const T=x===\"y\"?\"width\":\"height\",A=b_.has(ro(o)),D=s.reference[y]-s.floating[T]+(A&&((_=c.offset)==null?void 0:_[y])||0)+(A?0:R.crossAxis),z=s.reference[y]+s.reference[T]+(A?0:((E=c.offset)==null?void 0:E[y])||0)-(A?R.crossAxis:0);S<D?S=D:S>z&&(S=z)}return{[x]:w,[y]:S}}}},$4=function(e){return e===void 0&&(e={}),{name:\"size\",options:e,async fn(t){var n,a;const{placement:o,rects:s,platform:c,elements:u}=t,{apply:f=()=>{},...m}=no(e,t),v=await c.detectOverflow(t,m),y=ro(o),x=Tc(o),w=ui(o)===\"y\",{width:S,height:C}=s.floating;let R,_;y===\"top\"||y===\"bottom\"?(R=y,_=x===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?\"start\":\"end\")?\"left\":\"right\"):(_=y,R=x===\"end\"?\"top\":\"bottom\");const E=C-v.top-v.bottom,T=S-v.left-v.right,A=ss(C-v[R],E),D=ss(S-v[_],T),z=!t.middlewareData.shift;let O=A,H=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=T),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(O=E),z&&!x){const V=ha(v.left,0),I=ha(v.right,0),M=ha(v.top,0),q=ha(v.bottom,0);w?H=S-2*(V!==0||I!==0?V+I:ha(v.left,v.right)):O=C-2*(M!==0||q!==0?M+q:ha(v.top,v.bottom))}await f({...t,availableWidth:H,availableHeight:O});const $=await c.getDimensions(u.floating);return S!==$.width||C!==$.height?{reset:{rects:!0}}:{}}}};function zh(){return typeof window<\"u\"}function Mc(e){return x_(e)?(e.nodeName||\"\").toLowerCase():\"#document\"}function va(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pi(e){var t;return(t=(x_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x_(e){return zh()?e instanceof Node||e instanceof va(e).Node:!1}function Wa(e){return zh()?e instanceof Element||e instanceof va(e).Element:!1}function mi(e){return zh()?e instanceof HTMLElement||e instanceof va(e).HTMLElement:!1}function ZS(e){return!zh()||typeof ShadowRoot>\"u\"?!1:e instanceof ShadowRoot||e instanceof va(e).ShadowRoot}const F4=new Set([\"inline\",\"contents\"]);function pd(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=Ga(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!F4.has(o)}const B4=new Set([\"table\",\"td\",\"th\"]);function U4(e){return B4.has(Mc(e))}const V4=[\":popover-open\",\":modal\"];function Ph(e){return V4.some(t=>{try{return e.matches(t)}catch{return!1}})}const W4=[\"transform\",\"translate\",\"scale\",\"rotate\",\"perspective\"],G4=[\"transform\",\"translate\",\"scale\",\"rotate\",\"perspective\",\"filter\"],Y4=[\"paint\",\"layout\",\"strict\",\"content\"];function xb(e){const t=wb(),n=Wa(e)?Ga(e):e;return W4.some(a=>n[a]?n[a]!==\"none\":!1)||(n.containerType?n.containerType!==\"normal\":!1)||!t&&(n.backdropFilter?n.backdropFilter!==\"none\":!1)||!t&&(n.filter?n.filter!==\"none\":!1)||G4.some(a=>(n.willChange||\"\").includes(a))||Y4.some(a=>(n.contain||\"\").includes(a))}function X4(e){let t=ls(e);for(;mi(t)&&!wc(t);){if(xb(t))return t;if(Ph(t))return null;t=ls(t)}return null}function wb(){return typeof CSS>\"u\"||!CSS.supports?!1:CSS.supports(\"-webkit-backdrop-filter\",\"none\")}const K4=new Set([\"html\",\"body\",\"#document\"]);function wc(e){return K4.has(Mc(e))}function Ga(e){return va(e).getComputedStyle(e)}function Lh(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ls(e){if(Mc(e)===\"html\")return e;const t=e.assignedSlot||e.parentNode||ZS(e)&&e.host||pi(e);return ZS(t)?t.host:t}function w_(e){const t=ls(e);return wc(t)?e.ownerDocument?e.ownerDocument.body:e.body:mi(t)&&pd(t)?t:w_(t)}function ed(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=w_(e),s=o===((a=e.ownerDocument)==null?void 0:a.body),c=va(o);if(s){const u=Gy(c);return t.concat(c,c.visualViewport||[],pd(o)?o:[],u&&n?ed(u):[])}return t.concat(o,ed(o,[],n))}function Gy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function S_(e){const t=Ga(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=mi(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:a,u=fh(n)!==s||fh(a)!==c;return u&&(n=s,a=c),{width:n,height:a,$:u}}function Sb(e){return Wa(e)?e:e.contextElement}function mc(e){const t=Sb(e);if(!mi(t))return di(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:s}=S_(t);let c=(s?fh(n.width):n.width)/a,u=(s?fh(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const Q4=di(0);function C_(e){const t=va(e);return!wb()||!t.visualViewport?Q4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==va(e)?!1:t}function rl(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Sb(e);let c=di(1);t&&(a?Wa(a)&&(c=mc(a)):c=mc(e));const u=Z4(s,n,a)?C_(s):di(0);let f=(o.left+u.x)/c.x,m=(o.top+u.y)/c.y,v=o.width/c.x,y=o.height/c.y;if(s){const x=va(s),w=a&&Wa(a)?va(a):a;let S=x,C=Gy(S);for(;C&&a&&w!==S;){const R=mc(C),_=C.getBoundingClientRect(),E=Ga(C),T=_.left+(C.clientLeft+parseFloat(E.paddingLeft))*R.x,A=_.top+(C.clientTop+parseFloat(E.paddingTop))*R.y;f*=R.x,m*=R.y,v*=R.x,y*=R.y,f+=T,m+=A,S=va(C),C=Gy(S)}}return mh({width:v,height:y,x:f,y:m})}function Ih(e,t){const n=Lh(e).scrollLeft;return t?t.left+n:rl(pi(e)).left+n}function R_(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-Ih(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function J4(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const s=o===\"fixed\",c=pi(a),u=t?Ph(t.floating):!1;if(a===c||u&&s)return n;let f={scrollLeft:0,scrollTop:0},m=di(1);const v=di(0),y=mi(a);if((y||!y&&!s)&&((Mc(a)!==\"body\"||pd(c))&&(f=Lh(a)),mi(a))){const w=rl(a);m=mc(a),v.x=w.x+a.clientLeft,v.y=w.y+a.clientTop}const x=c&&!y&&!s?R_(c,f):di(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+v.x+x.x,y:n.y*m.y-f.scrollTop*m.y+v.y+x.y}}function ej(e){return Array.from(e.getClientRects())}function tj(e){const t=pi(e),n=Lh(e),a=e.ownerDocument.body,o=ha(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=ha(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let c=-n.scrollLeft+Ih(e);const u=-n.scrollTop;return Ga(a).direction===\"rtl\"&&(c+=ha(t.clientWidth,a.clientWidth)-o),{width:o,height:s,x:c,y:u}}const JS=25;function nj(e,t){const n=va(e),a=pi(e),o=n.visualViewport;let s=a.clientWidth,c=a.clientHeight,u=0,f=0;if(o){s=o.width,c=o.height;const v=wb();(!v||v&&t===\"fixed\")&&(u=o.offsetLeft,f=o.offsetTop)}const m=Ih(a);if(m<=0){const v=a.ownerDocument,y=v.body,x=getComputedStyle(y),w=v.compatMode===\"CSS1Compat\"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,S=Math.abs(a.clientWidth-y.clientWidth-w);S<=JS&&(s-=S)}else m<=JS&&(s+=m);return{width:s,height:c,x:u,y:f}}const rj=new Set([\"absolute\",\"fixed\"]);function aj(e,t){const n=rl(e,!0,t===\"fixed\"),a=n.top+e.clientTop,o=n.left+e.clientLeft,s=mi(e)?mc(e):di(1),c=e.clientWidth*s.x,u=e.clientHeight*s.y,f=o*s.x,m=a*s.y;return{width:c,height:u,x:f,y:m}}function e2(e,t,n){let a;if(t===\"viewport\")a=nj(e,n);else if(t===\"document\")a=tj(pi(e));else if(Wa(t))a=aj(t,n);else{const o=C_(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mh(a)}function E_(e,t){const n=ls(e);return n===t||!Wa(n)||wc(n)?!1:Ga(n).position===\"fixed\"||E_(n,t)}function ij(e,t){const n=t.get(e);if(n)return n;let a=ed(e,[],!1).filter(u=>Wa(u)&&Mc(u)!==\"body\"),o=null;const s=Ga(e).position===\"fixed\";let c=s?ls(e):e;for(;Wa(c)&&!wc(c);){const u=Ga(c),f=xb(c);!f&&u.position===\"fixed\"&&(o=null),(s?!f&&!o:!f&&u.position===\"static\"&&!!o&&rj.has(o.position)||pd(c)&&!f&&E_(e,c))?a=a.filter(v=>v!==c):o=u,c=ls(c)}return t.set(e,a),a}function oj(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const c=[...n===\"clippingAncestors\"?Ph(t)?[]:ij(t,this._c):[].concat(n),a],u=c[0],f=c.reduce((m,v)=>{const y=e2(t,v,o);return m.top=ha(y.top,m.top),m.right=ss(y.right,m.right),m.bottom=ss(y.bottom,m.bottom),m.left=ha(y.left,m.left),m},e2(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function sj(e){const{width:t,height:n}=S_(e);return{width:t,height:n}}function lj(e,t,n){const a=mi(t),o=pi(t),s=n===\"fixed\",c=rl(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=di(0);function m(){f.x=Ih(o)}if(a||!a&&!s)if((Mc(t)!==\"body\"||pd(o))&&(u=Lh(t)),a){const w=rl(t,!0,s,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else o&&m();s&&!a&&o&&m();const v=o&&!a&&!s?R_(o,u):di(0),y=c.left+u.scrollLeft-f.x-v.x,x=c.top+u.scrollTop-f.y-v.y;return{x:y,y:x,width:c.width,height:c.height}}function fg(e){return Ga(e).position===\"static\"}function t2(e,t){if(!mi(e)||Ga(e).position===\"fixed\")return null;if(t)return t(e);let n=e.offsetParent;return pi(e)===n&&(n=n.ownerDocument.body),n}function k_(e,t){const n=va(e);if(Ph(e))return n;if(!mi(e)){let o=ls(e);for(;o&&!wc(o);){if(Wa(o)&&!fg(o))return o;o=ls(o)}return n}let a=t2(e,t);for(;a&&U4(a)&&fg(a);)a=t2(a,t);return a&&wc(a)&&fg(a)&&!xb(a)?n:a||X4(e)||n}const cj=async function(e){const t=this.getOffsetParent||k_,n=this.getDimensions,a=await n(e.floating);return{reference:lj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function uj(e){return Ga(e).direction===\"rtl\"}const dj={convertOffsetParentRelativeRectToViewportRelativeRect:J4,getDocumentElement:pi,getClippingRect:oj,getOffsetParent:k_,getElementRects:cj,getClientRects:ej,getDimensions:sj,getScale:mc,isElement:Wa,isRTL:uj};function __(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fj(e,t){let n=null,a;const o=pi(e);function s(){var u;clearTimeout(a),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const m=e.getBoundingClientRect(),{left:v,top:y,width:x,height:w}=m;if(u||t(),!x||!w)return;const S=Hf(y),C=Hf(o.clientWidth-(v+x)),R=Hf(o.clientHeight-(y+w)),_=Hf(v),T={rootMargin:-S+\"px \"+-C+\"px \"+-R+\"px \"+-_+\"px\",threshold:ha(0,ss(1,f))||1};let A=!0;function D(z){const O=z[0].intersectionRatio;if(O!==f){if(!A)return c();O?c(!1,O):a=setTimeout(()=>{c(!1,1e-7)},1e3)}O===1&&!__(m,e.getBoundingClientRect())&&c(),A=!1}try{n=new IntersectionObserver(D,{...T,root:o.ownerDocument})}catch{n=new IntersectionObserver(D,T)}n.observe(e)}return c(!0),s}function hj(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver==\"function\",layoutShift:u=typeof IntersectionObserver==\"function\",animationFrame:f=!1}=a,m=Sb(e),v=o||s?[...m?ed(m):[],...ed(t)]:[];v.forEach(_=>{o&&_.addEventListener(\"scroll\",n,{passive:!0}),s&&_.addEventListener(\"resize\",n)});const y=m&&u?fj(m,n):null;let x=-1,w=null;c&&(w=new ResizeObserver(_=>{let[E]=_;E&&E.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var T;(T=w)==null||T.observe(t)})),n()}),m&&!f&&w.observe(m),w.observe(t));let S,C=f?rl(e):null;f&&R();function R(){const _=rl(e);C&&!__(C,_)&&n(),C=_,S=requestAnimationFrame(R)}return n(),()=>{var _;v.forEach(E=>{o&&E.removeEventListener(\"scroll\",n),s&&E.removeEventListener(\"resize\",n)}),y?.(),(_=w)==null||_.disconnect(),w=null,f&&cancelAnimationFrame(S)}}const mj=I4,pj=H4,gj=z4,vj=$4,yj=P4,n2=j4,bj=q4,xj=(e,t,n)=>{const a=new Map,o={platform:dj,...n},s={...o.platform,_c:a};return D4(e,t,{...o,platform:s})};var wj=typeof document<\"u\",Sj=function(){},th=wj?h.useLayoutEffect:Sj;function ph(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==\"function\"&&e.toString()===t.toString())return!0;let n,a,o;if(e&&t&&typeof e==\"object\"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!ph(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=n;a--!==0;){const s=o[a];if(!(s===\"_owner\"&&e.$$typeof)&&!ph(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function T_(e){return typeof window>\"u\"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function r2(e,t){const n=T_(e);return Math.round(t*n)/n}function hg(e){const t=h.useRef(e);return th(()=>{t.current=e}),t}function Cj(e){e===void 0&&(e={});const{placement:t=\"bottom\",strategy:n=\"absolute\",middleware:a=[],platform:o,elements:{reference:s,floating:c}={},transform:u=!0,whileElementsMounted:f,open:m}=e,[v,y]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=h.useState(a);ph(x,a)||w(a);const[S,C]=h.useState(null),[R,_]=h.useState(null),E=h.useCallback(W=>{W!==z.current&&(z.current=W,C(W))},[]),T=h.useCallback(W=>{W!==O.current&&(O.current=W,_(W))},[]),A=s||S,D=c||R,z=h.useRef(null),O=h.useRef(null),H=h.useRef(v),$=f!=null,V=hg(f),I=hg(o),M=hg(m),q=h.useCallback(()=>{if(!z.current||!O.current)return;const W={placement:t,strategy:n,middleware:x};I.current&&(W.platform=I.current),xj(z.current,O.current,W).then(ee=>{const oe={...ee,isPositioned:M.current!==!1};B.current&&!ph(H.current,oe)&&(H.current=oe,hd.flushSync(()=>{y(oe)}))})},[x,t,n,I,M]);th(()=>{m===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,y(W=>({...W,isPositioned:!1})))},[m]);const B=h.useRef(!1);th(()=>(B.current=!0,()=>{B.current=!1}),[]),th(()=>{if(A&&(z.current=A),D&&(O.current=D),A&&D){if(V.current)return V.current(A,D,q);q()}},[A,D,q,V,$]);const j=h.useMemo(()=>({reference:z,floating:O,setReference:E,setFloating:T}),[E,T]),F=h.useMemo(()=>({reference:A,floating:D}),[A,D]),U=h.useMemo(()=>{const W={position:n,left:0,top:0};if(!F.floating)return W;const ee=r2(F.floating,v.x),oe=r2(F.floating,v.y);return u?{...W,transform:\"translate(\"+ee+\"px, \"+oe+\"px)\",...T_(F.floating)>=1.5&&{willChange:\"transform\"}}:{position:n,left:ee,top:oe}},[n,u,F.floating,v.x,v.y]);return h.useMemo(()=>({...v,update:q,refs:j,elements:F,floatingStyles:U}),[v,q,j,F,U])}const Rj=e=>{function t(n){return{}.hasOwnProperty.call(n,\"current\")}return{name:\"arrow\",options:e,fn(n){const{element:a,padding:o}=typeof e==\"function\"?e(n):e;return a&&t(a)?a.current!=null?n2({element:a.current,padding:o}).fn(n):{}:a?n2({element:a,padding:o}).fn(n):{}}}},Ej=(e,t)=>({...mj(e),options:[e,t]}),kj=(e,t)=>({...pj(e),options:[e,t]}),_j=(e,t)=>({...bj(e),options:[e,t]}),Tj=(e,t)=>({...gj(e),options:[e,t]}),Mj=(e,t)=>({...vj(e),options:[e,t]}),Aj=(e,t)=>({...yj(e),options:[e,t]}),Nj=(e,t)=>({...Rj(e),options:[e,t]});function Oj(e){const t=Dj(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(zj);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Dj(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=Lj(o),u=Pj(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jj=Symbol(\"radix.slottable\");function zj(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===jj}function Pj(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function Lj(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ij=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],Hj=Ij.reduce((e,t)=>{const n=Oj(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),qj=\"Arrow\",M_=h.forwardRef((e,t)=>{const{children:n,width:a=10,height:o=5,...s}=e;return g.jsx(Hj.svg,{...s,ref:t,width:a,height:o,viewBox:\"0 0 30 10\",preserveAspectRatio:\"none\",children:e.asChild?n:g.jsx(\"polygon\",{points:\"0,0 30,0 15,10\"})})});M_.displayName=qj;var $j=M_;function Fj(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,Bj(o,...t)]}function Bj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Uj(e){const t=Vj(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(Gj);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Vj(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=Xj(o),u=Yj(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wj=Symbol(\"radix.slottable\");function Gj(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===Wj}function Yj(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function Xj(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kj=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],A_=Kj.reduce((e,t)=>{const n=Uj(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function N_(e){const[t,n]=h.useState(void 0);return os(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,u;if(\"borderBoxSize\"in s){const f=s.borderBoxSize,m=Array.isArray(f)?f[0]:f;c=m.inlineSize,u=m.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return a.observe(e,{box:\"border-box\"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var Cb=\"Popper\",[O_,Ac]=Fj(Cb),[Qj,D_]=O_(Cb),j_=e=>{const{__scopePopper:t,children:n}=e,[a,o]=h.useState(null);return g.jsx(Qj,{scope:t,anchor:a,onAnchorChange:o,children:n})};j_.displayName=Cb;var z_=\"PopperAnchor\",P_=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...o}=e,s=D_(z_,n),c=h.useRef(null),u=vn(t,c),f=h.useRef(null);return h.useEffect(()=>{const m=f.current;f.current=a?.current||c.current,m!==f.current&&s.onAnchorChange(f.current)}),a?null:g.jsx(A_.div,{...o,ref:u})});P_.displayName=z_;var Rb=\"PopperContent\",[Zj,Jj]=O_(Rb),L_=h.forwardRef((e,t)=>{const{__scopePopper:n,side:a=\"bottom\",sideOffset:o=0,align:s=\"center\",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y=\"partial\",hideWhenDetached:x=!1,updatePositionStrategy:w=\"optimized\",onPlaced:S,...C}=e,R=D_(Rb,n),[_,E]=h.useState(null),T=vn(t,ne=>E(ne)),[A,D]=h.useState(null),z=N_(A),O=z?.width??0,H=z?.height??0,$=a+(s!==\"center\"?\"-\"+s:\"\"),V=typeof v==\"number\"?v:{top:0,right:0,bottom:0,left:0,...v},I=Array.isArray(m)?m:[m],M=I.length>0,q={padding:V,boundary:I.filter(t7),altBoundary:M},{refs:B,floatingStyles:j,placement:F,isPositioned:U,middlewareData:W}=Cj({strategy:\"fixed\",placement:$,whileElementsMounted:(...ne)=>hj(...ne,{animationFrame:w===\"always\"}),elements:{reference:R.anchor},middleware:[Ej({mainAxis:o+H,alignmentAxis:c}),f&&kj({mainAxis:!0,crossAxis:!1,limiter:y===\"partial\"?_j():void 0,...q}),f&&Tj({...q}),Mj({...q,apply:({elements:ne,rects:he,availableWidth:Ae,availableHeight:He})=>{const{width:Ye,height:tt}=he.reference,ze=ne.floating.style;ze.setProperty(\"--radix-popper-available-width\",`${Ae}px`),ze.setProperty(\"--radix-popper-available-height\",`${He}px`),ze.setProperty(\"--radix-popper-anchor-width\",`${Ye}px`),ze.setProperty(\"--radix-popper-anchor-height\",`${tt}px`)}}),A&&Nj({element:A,padding:u}),n7({arrowWidth:O,arrowHeight:H}),x&&Aj({strategy:\"referenceHidden\",...q})]}),[ee,oe]=q_(F),P=to(S);os(()=>{U&&P?.()},[U,P]);const Y=W.arrow?.x,G=W.arrow?.y,K=W.arrow?.centerOffset!==0,[te,fe]=h.useState();return os(()=>{_&&fe(window.getComputedStyle(_).zIndex)},[_]),g.jsx(\"div\",{ref:B.setFloating,\"data-radix-popper-content-wrapper\":\"\",style:{...j,transform:U?j.transform:\"translate(0, -200%)\",minWidth:\"max-content\",zIndex:te,\"--radix-popper-transform-origin\":[W.transformOrigin?.x,W.transformOrigin?.y].join(\" \"),...W.hide?.referenceHidden&&{visibility:\"hidden\",pointerEvents:\"none\"}},dir:e.dir,children:g.jsx(Zj,{scope:n,placedSide:ee,onArrowChange:D,arrowX:Y,arrowY:G,shouldHideArrow:K,children:g.jsx(A_.div,{\"data-side\":ee,\"data-align\":oe,...C,ref:T,style:{...C.style,animation:U?void 0:\"none\"}})})})});L_.displayName=Rb;var I_=\"PopperArrow\",e7={top:\"bottom\",right:\"left\",bottom:\"top\",left:\"right\"},H_=h.forwardRef(function(t,n){const{__scopePopper:a,...o}=t,s=Jj(I_,a),c=e7[s.placedSide];return g.jsx(\"span\",{ref:s.onArrowChange,style:{position:\"absolute\",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:\"\",right:\"0 0\",bottom:\"center 0\",left:\"100% 0\"}[s.placedSide],transform:{top:\"translateY(100%)\",right:\"translateY(50%) rotate(90deg) translateX(-50%)\",bottom:\"rotate(180deg)\",left:\"translateY(50%) rotate(-90deg) translateX(50%)\"}[s.placedSide],visibility:s.shouldHideArrow?\"hidden\":void 0},children:g.jsx($j,{...o,ref:n,style:{...o.style,display:\"block\"}})})});H_.displayName=I_;function t7(e){return e!==null}var n7=e=>({name:\"transformOrigin\",options:e,fn(t){const{placement:n,rects:a,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,u=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[m,v]=q_(n),y={start:\"0%\",center:\"50%\",end:\"100%\"}[v],x=(o.arrow?.x??0)+u/2,w=(o.arrow?.y??0)+f/2;let S=\"\",C=\"\";return m===\"bottom\"?(S=c?y:`${x}px`,C=`${-f}px`):m===\"top\"?(S=c?y:`${x}px`,C=`${a.floating.height+f}px`):m===\"right\"?(S=`${-f}px`,C=c?y:`${w}px`):m===\"left\"&&(S=`${a.floating.width+f}px`,C=c?y:`${w}px`),{data:{x:S,y:C}}}});function q_(e){const[t,n=\"center\"]=e.split(\"-\");return[t,n]}var Eb=j_,Hh=P_,kb=L_,_b=H_;function r7(e){const t=a7(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(o7);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function a7(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=l7(o),u=s7(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i7=Symbol(\"radix.slottable\");function o7(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===i7}function s7(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function l7(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var c7=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],u7=c7.reduce((e,t)=>{const n=r7(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),d7=\"Portal\",qh=h.forwardRef((e,t)=>{const{container:n,...a}=e,[o,s]=h.useState(!1);os(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?n4.createPortal(g.jsx(u7.div,{...a,ref:t}),c):null});qh.displayName=d7;function f7(e,t){return h.useReducer((n,a)=>t[n][a]??n,e)}var Xa=e=>{const{present:t,children:n}=e,a=h7(t),o=typeof n==\"function\"?n({present:a.isPresent}):h.Children.only(n),s=vn(a.ref,m7(o));return typeof n==\"function\"||a.isPresent?h.cloneElement(o,{ref:s}):null};Xa.displayName=\"Presence\";function h7(e){const[t,n]=h.useState(),a=h.useRef(null),o=h.useRef(e),s=h.useRef(\"none\"),c=e?\"mounted\":\"unmounted\",[u,f]=f7(c,{mounted:{UNMOUNT:\"unmounted\",ANIMATION_OUT:\"unmountSuspended\"},unmountSuspended:{MOUNT:\"mounted\",ANIMATION_END:\"unmounted\"},unmounted:{MOUNT:\"mounted\"}});return h.useEffect(()=>{const m=qf(a.current);s.current=u===\"mounted\"?m:\"none\"},[u]),os(()=>{const m=a.current,v=o.current;if(v!==e){const x=s.current,w=qf(m);e?f(\"MOUNT\"):w===\"none\"||m?.display===\"none\"?f(\"UNMOUNT\"):f(v&&x!==w?\"ANIMATION_OUT\":\"UNMOUNT\"),o.current=e}},[e,f]),os(()=>{if(t){let m;const v=t.ownerDocument.defaultView??window,y=w=>{const C=qf(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&C&&(f(\"ANIMATION_END\"),!o.current)){const R=t.style.animationFillMode;t.style.animationFillMode=\"forwards\",m=v.setTimeout(()=>{t.style.animationFillMode===\"forwards\"&&(t.style.animationFillMode=R)})}},x=w=>{w.target===t&&(s.current=qf(a.current))};return t.addEventListener(\"animationstart\",x),t.addEventListener(\"animationcancel\",y),t.addEventListener(\"animationend\",y),()=>{v.clearTimeout(m),t.removeEventListener(\"animationstart\",x),t.removeEventListener(\"animationcancel\",y),t.removeEventListener(\"animationend\",y)}}else f(\"ANIMATION_END\")},[t,f]),{isPresent:[\"mounted\",\"unmountSuspended\"].includes(u),ref:h.useCallback(m=>{a.current=m?getComputedStyle(m):null,n(m)},[])}}function qf(e){return e?.animationName||\"none\"}function m7(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function p7(e){const t=g7(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(y7);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function g7(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=x7(o),u=b7(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $_=Symbol(\"radix.slottable\");function v7(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=$_,t}function y7(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===$_}function b7(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function x7(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var w7=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],S7=w7.reduce((e,t)=>{const n=p7(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),C7=Oh[\" useInsertionEffect \".trim().toString()]||os;function Nc({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[o,s,c]=R7({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:o;{const v=h.useRef(e!==void 0);h.useEffect(()=>{const y=v.current;y!==u&&console.warn(`${a} is changing from ${y?\"controlled\":\"uncontrolled\"} to ${u?\"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.`),v.current=u},[u,a])}const m=h.useCallback(v=>{if(u){const y=E7(v)?v(e):v;y!==e&&c.current?.(y)}else s(v)},[u,e,s,c]);return[f,m]}function R7({defaultProp:e,onChange:t}){const[n,a]=h.useState(e),o=h.useRef(n),s=h.useRef(t);return C7(()=>{s.current=t},[t]),h.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,a,s]}function E7(e){return typeof e==\"function\"}function k7(e){const t=_7(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(M7);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function _7(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=N7(o),u=A7(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T7=Symbol(\"radix.slottable\");function M7(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===T7}function A7(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function N7(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O7=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],D7=O7.reduce((e,t)=>{const n=k7(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),j7=Object.freeze({position:\"absolute\",border:0,width:1,height:1,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",wordWrap:\"normal\"}),z7=\"VisuallyHidden\",F_=h.forwardRef((e,t)=>g.jsx(D7.span,{...e,ref:t,style:{...j7,...e.style}}));F_.displayName=z7;var P7=F_,[$h,ZW]=jh(\"Tooltip\",[Ac]),Fh=Ac(),B_=\"TooltipProvider\",L7=700,Yy=\"tooltip.open\",[I7,Tb]=$h(B_),U_=e=>{const{__scopeTooltip:t,delayDuration:n=L7,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,c=h.useRef(!0),u=h.useRef(!1),f=h.useRef(0);return h.useEffect(()=>{const m=f.current;return()=>window.clearTimeout(m)},[]),g.jsx(I7,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(f.current),c.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.current=!0,a)},[a]),isPointerInTransitRef:u,onPointerInTransitChange:h.useCallback(m=>{u.current=m},[]),disableHoverableContent:o,children:s})};U_.displayName=B_;var td=\"Tooltip\",[H7,Bh]=$h(td),V_=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:u}=e,f=Tb(td,e.__scopeTooltip),m=Fh(t),[v,y]=h.useState(null),x=rs(),w=h.useRef(0),S=c??f.disableHoverableContent,C=u??f.delayDuration,R=h.useRef(!1),[_,E]=Nc({prop:a,defaultProp:o??!1,onChange:O=>{O?(f.onOpen(),document.dispatchEvent(new CustomEvent(Yy))):f.onClose(),s?.(O)},caller:td}),T=h.useMemo(()=>_?R.current?\"delayed-open\":\"instant-open\":\"closed\",[_]),A=h.useCallback(()=>{window.clearTimeout(w.current),w.current=0,R.current=!1,E(!0)},[E]),D=h.useCallback(()=>{window.clearTimeout(w.current),w.current=0,E(!1)},[E]),z=h.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R.current=!0,E(!0),w.current=0},C)},[C,E]);return h.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(Eb,{...m,children:g.jsx(H7,{scope:t,contentId:x,open:_,stateAttribute:T,trigger:v,onTriggerChange:y,onTriggerEnter:h.useCallback(()=>{f.isOpenDelayedRef.current?z():A()},[f.isOpenDelayedRef,z,A]),onTriggerLeave:h.useCallback(()=>{S?D():(window.clearTimeout(w.current),w.current=0)},[D,S]),onOpen:A,onClose:D,disableHoverableContent:S,children:n})})};V_.displayName=td;var Xy=\"TooltipTrigger\",W_=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,o=Bh(Xy,n),s=Tb(Xy,n),c=Fh(n),u=h.useRef(null),f=vn(t,u,o.onTriggerChange),m=h.useRef(!1),v=h.useRef(!1),y=h.useCallback(()=>m.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener(\"pointerup\",y),[y]),g.jsx(Hh,{asChild:!0,...c,children:g.jsx(S7.button,{\"aria-describedby\":o.open?o.contentId:void 0,\"data-state\":o.stateAttribute,...a,ref:f,onPointerMove:it(e.onPointerMove,x=>{x.pointerType!==\"touch\"&&!v.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:it(e.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:it(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener(\"pointerup\",y,{once:!0})}),onFocus:it(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:it(e.onBlur,o.onClose),onClick:it(e.onClick,o.onClose)})})});W_.displayName=Xy;var q7=\"TooltipPortal\",[JW,$7]=$h(q7,{forceMount:void 0}),Sc=\"TooltipContent\",G_=h.forwardRef((e,t)=>{const n=$7(Sc,e.__scopeTooltip),{forceMount:a=n.forceMount,side:o=\"top\",...s}=e,c=Bh(Sc,e.__scopeTooltip);return g.jsx(Xa,{present:a||c.open,children:c.disableHoverableContent?g.jsx(Y_,{side:o,...s,ref:t}):g.jsx(F7,{side:o,...s,ref:t})})}),F7=h.forwardRef((e,t)=>{const n=Bh(Sc,e.__scopeTooltip),a=Tb(Sc,e.__scopeTooltip),o=h.useRef(null),s=vn(t,o),[c,u]=h.useState(null),{trigger:f,onClose:m}=n,v=o.current,{onPointerInTransitChange:y}=a,x=h.useCallback(()=>{u(null),y(!1)},[y]),w=h.useCallback((S,C)=>{const R=S.currentTarget,_={x:S.clientX,y:S.clientY},E=G7(_,R.getBoundingClientRect()),T=Y7(_,E),A=X7(C.getBoundingClientRect()),D=Q7([...T,...A]);u(D),y(!0)},[y]);return h.useEffect(()=>()=>x(),[x]),h.useEffect(()=>{if(f&&v){const S=R=>w(R,v),C=R=>w(R,f);return f.addEventListener(\"pointerleave\",S),v.addEventListener(\"pointerleave\",C),()=>{f.removeEventListener(\"pointerleave\",S),v.removeEventListener(\"pointerleave\",C)}}},[f,v,w,x]),h.useEffect(()=>{if(c){const S=C=>{const R=C.target,_={x:C.clientX,y:C.clientY},E=f?.contains(R)||v?.contains(R),T=!K7(_,c);E?x():T&&(x(),m())};return document.addEventListener(\"pointermove\",S),()=>document.removeEventListener(\"pointermove\",S)}},[f,v,c,m,x]),g.jsx(Y_,{...e,ref:s})}),[B7,U7]=$h(td,{isInside:!1}),V7=v7(\"TooltipContent\"),Y_=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,\"aria-label\":o,onEscapeKeyDown:s,onPointerDownOutside:c,...u}=e,f=Bh(Sc,n),m=Fh(n),{onClose:v}=f;return h.useEffect(()=>(document.addEventListener(Yy,v),()=>document.removeEventListener(Yy,v)),[v]),h.useEffect(()=>{if(f.trigger){const y=x=>{x.target?.contains(f.trigger)&&v()};return window.addEventListener(\"scroll\",y,{capture:!0}),()=>window.removeEventListener(\"scroll\",y,{capture:!0})}},[f.trigger,v]),g.jsx(md,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:g.jsxs(kb,{\"data-state\":f.stateAttribute,...m,...u,ref:t,style:{...u.style,\"--radix-tooltip-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-tooltip-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-tooltip-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-tooltip-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-tooltip-trigger-height\":\"var(--radix-popper-anchor-height)\"},children:[g.jsx(V7,{children:a}),g.jsx(B7,{scope:n,isInside:!0,children:g.jsx(P7,{id:f.contentId,role:\"tooltip\",children:o||a})})]})})});G_.displayName=Sc;var X_=\"TooltipArrow\",W7=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,o=Fh(n);return U7(X_,n).isInside?null:g.jsx(_b,{...o,...a,ref:t})});W7.displayName=X_;function G7(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,a,o,s)){case s:return\"left\";case o:return\"right\";case n:return\"top\";case a:return\"bottom\";default:throw new Error(\"unreachable\")}}function Y7(e,t,n=5){const a=[];switch(t){case\"top\":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case\"bottom\":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case\"left\":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case\"right\":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function X7(e){const{top:t,right:n,bottom:a,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:a},{x:o,y:a}]}function K7(e,t){const{x:n,y:a}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const u=t[s],f=t[c],m=u.x,v=u.y,y=f.x,x=f.y;v>a!=x>a&&n<(y-m)*(a-v)/(x-v)+m&&(o=!o)}return o}function Q7(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),Z7(t)}function Z7(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const o=e[a];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const o=e[a];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var J7=U_,e8=V_,t8=W_,K_=G_;const n8=J7,mg=e8,pg=t8,nh=h.forwardRef(({className:e,sideOffset:t=4,...n},a)=>g.jsx(K_,{ref:a,sideOffset:t,className:Fe(\"z-50 overflow-hidden rounded-md border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#2d2d30] px-3 py-1.5 text-sm text-stone-950 dark:text-[#cccccc] shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",e),...n}));nh.displayName=K_.displayName;var gg=0;function Mb(){h.useEffect(()=>{const e=document.querySelectorAll(\"[data-radix-focus-guard]\");return document.body.insertAdjacentElement(\"afterbegin\",e[0]??a2()),document.body.insertAdjacentElement(\"beforeend\",e[1]??a2()),gg++,()=>{gg===1&&document.querySelectorAll(\"[data-radix-focus-guard]\").forEach(t=>t.remove()),gg--}},[])}function a2(){const e=document.createElement(\"span\");return e.setAttribute(\"data-radix-focus-guard\",\"\"),e.tabIndex=0,e.style.outline=\"none\",e.style.opacity=\"0\",e.style.position=\"fixed\",e.style.pointerEvents=\"none\",e}function r8(e){const t=a8(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(o8);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function a8(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=l8(o),u=s8(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i8=Symbol(\"radix.slottable\");function o8(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===i8}function s8(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function l8(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var c8=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],u8=c8.reduce((e,t)=>{const n=r8(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),vg=\"focusScope.autoFocusOnMount\",yg=\"focusScope.autoFocusOnUnmount\",i2={bubbles:!1,cancelable:!0},d8=\"FocusScope\",Uh=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[u,f]=h.useState(null),m=to(o),v=to(s),y=h.useRef(null),x=vn(t,C=>f(C)),w=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(a){let C=function(T){if(w.paused||!u)return;const A=T.target;u.contains(A)?y.current=A:Xo(y.current,{select:!0})},R=function(T){if(w.paused||!u)return;const A=T.relatedTarget;A!==null&&(u.contains(A)||Xo(y.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const D of T)D.removedNodes.length>0&&Xo(u)};document.addEventListener(\"focusin\",C),document.addEventListener(\"focusout\",R);const E=new MutationObserver(_);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener(\"focusin\",C),document.removeEventListener(\"focusout\",R),E.disconnect()}}},[a,u,w.paused]),h.useEffect(()=>{if(u){s2.add(w);const C=document.activeElement;if(!u.contains(C)){const _=new CustomEvent(vg,i2);u.addEventListener(vg,m),u.dispatchEvent(_),_.defaultPrevented||(f8(v8(Q_(u)),{select:!0}),document.activeElement===C&&Xo(u))}return()=>{u.removeEventListener(vg,m),setTimeout(()=>{const _=new CustomEvent(yg,i2);u.addEventListener(yg,v),u.dispatchEvent(_),_.defaultPrevented||Xo(C??document.body,{select:!0}),u.removeEventListener(yg,v),s2.remove(w)},0)}}},[u,m,v,w]);const S=h.useCallback(C=>{if(!n&&!a||w.paused)return;const R=C.key===\"Tab\"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,_=document.activeElement;if(R&&_){const E=C.currentTarget,[T,A]=h8(E);T&&A?!C.shiftKey&&_===A?(C.preventDefault(),n&&Xo(T,{select:!0})):C.shiftKey&&_===T&&(C.preventDefault(),n&&Xo(A,{select:!0})):_===E&&C.preventDefault()}},[n,a,w.paused]);return g.jsx(u8.div,{tabIndex:-1,...c,ref:x,onKeyDown:S})});Uh.displayName=d8;function f8(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(Xo(a,{select:t}),document.activeElement!==n)return}function h8(e){const t=Q_(e),n=o2(t,e),a=o2(t.reverse(),e);return[n,a]}function Q_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName===\"INPUT\"&&a.type===\"hidden\";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function o2(e,t){for(const n of e)if(!m8(n,{upTo:t}))return n}function m8(e,{upTo:t}){if(getComputedStyle(e).visibility===\"hidden\")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===\"none\")return!0;e=e.parentElement}return!1}function p8(e){return e instanceof HTMLInputElement&&\"select\"in e}function Xo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&p8(e)&&t&&e.select()}}var s2=g8();function g8(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=l2(e,t),e.unshift(t)},remove(t){e=l2(e,t),e[0]?.resume()}}}function l2(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function v8(e){return e.filter(t=>t.tagName!==\"A\")}function Z_(e){const t=y8(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(x8);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function y8(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=S8(o),u=w8(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var b8=Symbol(\"radix.slottable\");function x8(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===b8}function w8(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function S8(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C8=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],J_=C8.reduce((e,t)=>{const n=Z_(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),R8=function(e){if(typeof document>\"u\")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jl=new WeakMap,$f=new WeakMap,Ff={},bg=0,eT=function(e){return e&&(e.host||eT(e.parentNode))},E8=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=eT(n);return a&&e.contains(a)?a:(console.error(\"aria-hidden\",n,\"in not contained inside\",e,\". Doing nothing\"),null)}).filter(function(n){return!!n})},k8=function(e,t,n,a){var o=E8(t,Array.isArray(e)?e:[e]);Ff[n]||(Ff[n]=new WeakMap);var s=Ff[n],c=[],u=new Set,f=new Set(o),m=function(y){!y||u.has(y)||(u.add(y),m(y.parentNode))};o.forEach(m);var v=function(y){!y||f.has(y)||Array.prototype.forEach.call(y.children,function(x){if(u.has(x))v(x);else try{var w=x.getAttribute(a),S=w!==null&&w!==\"false\",C=(Jl.get(x)||0)+1,R=(s.get(x)||0)+1;Jl.set(x,C),s.set(x,R),c.push(x),C===1&&S&&$f.set(x,!0),R===1&&x.setAttribute(n,\"true\"),S||x.setAttribute(a,\"true\")}catch(_){console.error(\"aria-hidden: cannot operate on \",x,_)}})};return v(t),u.clear(),bg++,function(){c.forEach(function(y){var x=Jl.get(y)-1,w=s.get(y)-1;Jl.set(y,x),s.set(y,w),x||($f.has(y)||y.removeAttribute(a),$f.delete(y)),w||y.removeAttribute(n)}),bg--,bg||(Jl=new WeakMap,Jl=new WeakMap,$f=new WeakMap,Ff={})}},Ab=function(e,t,n){n===void 0&&(n=\"data-aria-hidden\");var a=Array.from(Array.isArray(e)?e:[e]),o=R8(e);return o?(a.push.apply(a,Array.from(o.querySelectorAll(\"[aria-live], script\"))),k8(a,o,n,\"aria-hidden\")):function(){return null}},ci=function(){return ci=Object.assign||function(t){for(var n,a=1,o=arguments.length;a<o;a++){n=arguments[a];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ci.apply(this,arguments)};function tT(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 o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function _8(e,t,n){if(n||arguments.length===2)for(var a=0,o=t.length,s;a<o;a++)(s||!(a in t))&&(s||(s=Array.prototype.slice.call(t,0,a)),s[a]=t[a]);return e.concat(s||Array.prototype.slice.call(t))}var rh=\"right-scroll-bar-position\",ah=\"width-before-scroll-bar\",T8=\"with-scroll-bars-hidden\",M8=\"--removed-body-scroll-bar-size\";function xg(e,t){return typeof e==\"function\"?e(t):e&&(e.current=t),e}function A8(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var o=n.value;o!==a&&(n.value=a,n.callback(a,o))}}}})[0];return n.callback=t,n.facade}var N8=typeof window<\"u\"?h.useLayoutEffect:h.useEffect,c2=new WeakMap;function O8(e,t){var n=A8(null,function(a){return e.forEach(function(o){return xg(o,a)})});return N8(function(){var a=c2.get(n);if(a){var o=new Set(a),s=new Set(e),c=n.current;o.forEach(function(u){s.has(u)||xg(u,null)}),s.forEach(function(u){o.has(u)||xg(u,c)})}c2.set(n,e)},[e]),n}function D8(e){return e}function j8(e,t){t===void 0&&(t=D8);var n=[],a=!1,o={read:function(){if(a)throw new Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,a);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(s){for(a=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){a=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(s),c=n}var f=function(){var v=c;c=[],v.forEach(s)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(v){c.push(v),m()},filter:function(v){return c=c.filter(v),n}}}};return o}function z8(e){e===void 0&&(e={});var t=j8(null);return t.options=ci({async:!0,ssr:!1},e),t}var nT=function(e){var t=e.sideCar,n=tT(e,[\"sideCar\"]);if(!t)throw new Error(\"Sidecar: please provide `sideCar` property to import the right car\");var a=t.read();if(!a)throw new Error(\"Sidecar medium not found\");return h.createElement(a,ci({},n))};nT.isSideCarExport=!0;function P8(e,t){return e.useMedium(t),nT}var rT=z8(),wg=function(){},Vh=h.forwardRef(function(e,t){var n=h.useRef(null),a=h.useState({onScrollCapture:wg,onWheelCapture:wg,onTouchMoveCapture:wg}),o=a[0],s=a[1],c=e.forwardProps,u=e.children,f=e.className,m=e.removeScrollBar,v=e.enabled,y=e.shards,x=e.sideCar,w=e.noRelative,S=e.noIsolation,C=e.inert,R=e.allowPinchZoom,_=e.as,E=_===void 0?\"div\":_,T=e.gapMode,A=tT(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noRelative\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\",\"gapMode\"]),D=x,z=O8([n,t]),O=ci(ci({},A),o);return h.createElement(h.Fragment,null,v&&h.createElement(D,{sideCar:rT,removeScrollBar:m,shards:y,noRelative:w,noIsolation:S,inert:C,setCallbacks:s,allowPinchZoom:!!R,lockRef:n,gapMode:T}),c?h.cloneElement(h.Children.only(u),ci(ci({},O),{ref:z})):h.createElement(E,ci({},O,{className:f,ref:z}),u))});Vh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vh.classNames={fullWidth:ah,zeroRight:rh};var L8=function(){if(typeof __webpack_nonce__<\"u\")return __webpack_nonce__};function I8(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var t=L8();return t&&e.setAttribute(\"nonce\",t),e}function H8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function q8(e){var t=document.head||document.getElementsByTagName(\"head\")[0];t.appendChild(e)}var $8=function(){var e=0,t=null;return{add:function(n){e==0&&(t=I8())&&(H8(t,n),q8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F8=function(){var e=$8();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},aT=function(){var e=F8(),t=function(n){var a=n.styles,o=n.dynamic;return e(a,o),null};return t},B8={left:0,top:0,right:0,gap:0},Sg=function(e){return parseInt(e||\"\",10)||0},U8=function(e){var t=window.getComputedStyle(document.body),n=t[e===\"padding\"?\"paddingLeft\":\"marginLeft\"],a=t[e===\"padding\"?\"paddingTop\":\"marginTop\"],o=t[e===\"padding\"?\"paddingRight\":\"marginRight\"];return[Sg(n),Sg(a),Sg(o)]},V8=function(e){if(e===void 0&&(e=\"margin\"),typeof window>\"u\")return B8;var t=U8(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},W8=aT(),pc=\"data-scroll-locked\",G8=function(e,t,n,a){var o=e.left,s=e.top,c=e.right,u=e.gap;return n===void 0&&(n=\"margin\"),`\n .`.concat(T8,` {\n overflow: hidden `).concat(a,`;\n padding-right: `).concat(u,\"px \").concat(a,`;\n }\n body[`).concat(pc,`] {\n overflow: hidden `).concat(a,`;\n overscroll-behavior: contain;\n `).concat([t&&\"position: relative \".concat(a,\";\"),n===\"margin\"&&`\n padding-left: `.concat(o,`px;\n padding-top: `).concat(s,`px;\n padding-right: `).concat(c,`px;\n margin-left:0;\n margin-top:0;\n margin-right: `).concat(u,\"px \").concat(a,`;\n `),n===\"padding\"&&\"padding-right: \".concat(u,\"px \").concat(a,\";\")].filter(Boolean).join(\"\"),`\n }\n \n .`).concat(rh,` {\n right: `).concat(u,\"px \").concat(a,`;\n }\n \n .`).concat(ah,` {\n margin-right: `).concat(u,\"px \").concat(a,`;\n }\n \n .`).concat(rh,\" .\").concat(rh,` {\n right: 0 `).concat(a,`;\n }\n \n .`).concat(ah,\" .\").concat(ah,` {\n margin-right: 0 `).concat(a,`;\n }\n \n body[`).concat(pc,`] {\n `).concat(M8,\": \").concat(u,`px;\n }\n`)},u2=function(){var e=parseInt(document.body.getAttribute(pc)||\"0\",10);return isFinite(e)?e:0},Y8=function(){h.useEffect(function(){return document.body.setAttribute(pc,(u2()+1).toString()),function(){var e=u2()-1;e<=0?document.body.removeAttribute(pc):document.body.setAttribute(pc,e.toString())}},[])},X8=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?\"margin\":a;Y8();var s=h.useMemo(function(){return V8(o)},[o]);return h.createElement(W8,{styles:G8(s,!t,o,n?\"\":\"!important\")})},Ky=!1;if(typeof window<\"u\")try{var Bf=Object.defineProperty({},\"passive\",{get:function(){return Ky=!0,!0}});window.addEventListener(\"test\",Bf,Bf),window.removeEventListener(\"test\",Bf,Bf)}catch{Ky=!1}var ec=Ky?{passive:!1}:!1,K8=function(e){return e.tagName===\"TEXTAREA\"},iT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==\"hidden\"&&!(n.overflowY===n.overflowX&&!K8(e)&&n[t]===\"visible\")},Q8=function(e){return iT(e,\"overflowY\")},Z8=function(e){return iT(e,\"overflowX\")},d2=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<\"u\"&&a instanceof ShadowRoot&&(a=a.host);var o=oT(e,a);if(o){var s=sT(e,a),c=s[1],u=s[2];if(c>u)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},J8=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},ez=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},oT=function(e,t){return e===\"v\"?Q8(t):Z8(t)},sT=function(e,t){return e===\"v\"?J8(t):ez(t)},tz=function(e,t){return e===\"h\"&&t===\"rtl\"?-1:1},nz=function(e,t,n,a,o){var s=tz(e,window.getComputedStyle(t).direction),c=s*a,u=n.target,f=t.contains(u),m=!1,v=c>0,y=0,x=0;do{if(!u)break;var w=sT(e,u),S=w[0],C=w[1],R=w[2],_=C-R-s*S;(S||_)&&oT(e,u)&&(y+=_,x+=S);var E=u.parentNode;u=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(m=!0),m},Uf=function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},f2=function(e){return[e.deltaX,e.deltaY]},h2=function(e){return e&&\"current\"in e?e.current:e},rz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},az=function(e){return`\n .block-interactivity-`.concat(e,` {pointer-events: none;}\n .allow-interactivity-`).concat(e,` {pointer-events: all;}\n`)},iz=0,tc=[];function oz(e){var t=h.useRef([]),n=h.useRef([0,0]),a=h.useRef(),o=h.useState(iz++)[0],s=h.useState(aT)[0],c=h.useRef(e);h.useEffect(function(){c.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(o));var C=_8([e.lockRef.current],(e.shards||[]).map(h2),!0).filter(Boolean);return C.forEach(function(R){return R.classList.add(\"allow-interactivity-\".concat(o))}),function(){document.body.classList.remove(\"block-interactivity-\".concat(o)),C.forEach(function(R){return R.classList.remove(\"allow-interactivity-\".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=h.useCallback(function(C,R){if(\"touches\"in C&&C.touches.length===2||C.type===\"wheel\"&&C.ctrlKey)return!c.current.allowPinchZoom;var _=Uf(C),E=n.current,T=\"deltaX\"in C?C.deltaX:E[0]-_[0],A=\"deltaY\"in C?C.deltaY:E[1]-_[1],D,z=C.target,O=Math.abs(T)>Math.abs(A)?\"h\":\"v\";if(\"touches\"in C&&O===\"h\"&&z.type===\"range\")return!1;var H=window.getSelection(),$=H&&H.anchorNode,V=$?$===z||$.contains(z):!1;if(V)return!1;var I=d2(O,z);if(!I)return!0;if(I?D=O:(D=O===\"v\"?\"h\":\"v\",I=d2(O,z)),!I)return!1;if(!a.current&&\"changedTouches\"in C&&(T||A)&&(a.current=D),!D)return!0;var M=a.current||D;return nz(M,R,C,M===\"h\"?T:A)},[]),f=h.useCallback(function(C){var R=C;if(!(!tc.length||tc[tc.length-1]!==s)){var _=\"deltaY\"in R?f2(R):Uf(R),E=t.current.filter(function(D){return D.name===R.type&&(D.target===R.target||R.target===D.shadowParent)&&rz(D.delta,_)})[0];if(E&&E.should){R.cancelable&&R.preventDefault();return}if(!E){var T=(c.current.shards||[]).map(h2).filter(Boolean).filter(function(D){return D.contains(R.target)}),A=T.length>0?u(R,T[0]):!c.current.noIsolation;A&&R.cancelable&&R.preventDefault()}}},[]),m=h.useCallback(function(C,R,_,E){var T={name:C,delta:R,target:_,should:E,shadowParent:sz(_)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),v=h.useCallback(function(C){n.current=Uf(C),a.current=void 0},[]),y=h.useCallback(function(C){m(C.type,f2(C),C.target,u(C,e.lockRef.current))},[]),x=h.useCallback(function(C){m(C.type,Uf(C),C.target,u(C,e.lockRef.current))},[]);h.useEffect(function(){return tc.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener(\"wheel\",f,ec),document.addEventListener(\"touchmove\",f,ec),document.addEventListener(\"touchstart\",v,ec),function(){tc=tc.filter(function(C){return C!==s}),document.removeEventListener(\"wheel\",f,ec),document.removeEventListener(\"touchmove\",f,ec),document.removeEventListener(\"touchstart\",v,ec)}},[]);var w=e.removeScrollBar,S=e.inert;return h.createElement(h.Fragment,null,S?h.createElement(s,{styles:az(o)}):null,w?h.createElement(X8,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sz(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lz=P8(rT,oz);var Wh=h.forwardRef(function(e,t){return h.createElement(Vh,ci({},e,{ref:t,sideCar:lz}))});Wh.classNames=Vh.classNames;var Gh=\"Popover\",[lT,eG]=jh(Gh,[Ac]),gd=Ac(),[cz,hs]=lT(Gh),cT=e=>{const{__scopePopover:t,children:n,open:a,defaultOpen:o,onOpenChange:s,modal:c=!1}=e,u=gd(t),f=h.useRef(null),[m,v]=h.useState(!1),[y,x]=Nc({prop:a,defaultProp:o??!1,onChange:s,caller:Gh});return g.jsx(Eb,{...u,children:g.jsx(cz,{scope:t,contentId:rs(),triggerRef:f,open:y,onOpenChange:x,onOpenToggle:h.useCallback(()=>x(w=>!w),[x]),hasCustomAnchor:m,onCustomAnchorAdd:h.useCallback(()=>v(!0),[]),onCustomAnchorRemove:h.useCallback(()=>v(!1),[]),modal:c,children:n})})};cT.displayName=Gh;var uT=\"PopoverAnchor\",uz=h.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,o=hs(uT,n),s=gd(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:u}=o;return h.useEffect(()=>(c(),()=>u()),[c,u]),g.jsx(Hh,{...s,...a,ref:t})});uz.displayName=uT;var dT=\"PopoverTrigger\",fT=h.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,o=hs(dT,n),s=gd(n),c=vn(t,o.triggerRef),u=g.jsx(J_.button,{type:\"button\",\"aria-haspopup\":\"dialog\",\"aria-expanded\":o.open,\"aria-controls\":o.contentId,\"data-state\":vT(o.open),...a,ref:c,onClick:it(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:g.jsx(Hh,{asChild:!0,...s,children:u})});fT.displayName=dT;var Nb=\"PopoverPortal\",[dz,fz]=lT(Nb,{forceMount:void 0}),hT=e=>{const{__scopePopover:t,forceMount:n,children:a,container:o}=e,s=hs(Nb,t);return g.jsx(dz,{scope:t,forceMount:n,children:g.jsx(Xa,{present:n||s.open,children:g.jsx(qh,{asChild:!0,container:o,children:a})})})};hT.displayName=Nb;var Cc=\"PopoverContent\",mT=h.forwardRef((e,t)=>{const n=fz(Cc,e.__scopePopover),{forceMount:a=n.forceMount,...o}=e,s=hs(Cc,e.__scopePopover);return g.jsx(Xa,{present:a||s.open,children:s.modal?g.jsx(mz,{...o,ref:t}):g.jsx(pz,{...o,ref:t})})});mT.displayName=Cc;var hz=Z_(\"PopoverContent.RemoveScroll\"),mz=h.forwardRef((e,t)=>{const n=hs(Cc,e.__scopePopover),a=h.useRef(null),o=vn(t,a),s=h.useRef(!1);return h.useEffect(()=>{const c=a.current;if(c)return Ab(c)},[]),g.jsx(Wh,{as:hz,allowPinchZoom:!0,children:g.jsx(pT,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:it(e.onCloseAutoFocus,c=>{c.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:it(e.onPointerDownOutside,c=>{const u=c.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0,m=u.button===2||f;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:it(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),pz=h.forwardRef((e,t)=>{const n=hs(Cc,e.__scopePopover),a=h.useRef(!1),o=h.useRef(!1);return g.jsx(pT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(a.current||n.triggerRef.current?.focus(),s.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type===\"pointerdown\"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type===\"focusin\"&&o.current&&s.preventDefault()}})}),pT=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:v,...y}=e,x=hs(Cc,n),w=gd(n);return Mb(),g.jsx(Uh,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:s,children:g.jsx(md,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:v,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>x.onOpenChange(!1),children:g.jsx(kb,{\"data-state\":vT(x.open),role:\"dialog\",id:x.contentId,...w,...y,ref:t,style:{...y.style,\"--radix-popover-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-popover-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-popover-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-popover-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-popover-trigger-height\":\"var(--radix-popper-anchor-height)\"}})})})}),gT=\"PopoverClose\",gz=h.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,o=hs(gT,n);return g.jsx(J_.button,{type:\"button\",...a,ref:t,onClick:it(e.onClick,()=>o.onOpenChange(!1))})});gz.displayName=gT;var vz=\"PopoverArrow\",yz=h.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,o=gd(n);return g.jsx(_b,{...o,...a,ref:t})});yz.displayName=vz;function vT(e){return e?\"open\":\"closed\"}var bz=cT,xz=fT,wz=hT,yT=mT;const Sz=bz,Cz=xz,bT=h.forwardRef(({className:e,align:t=\"center\",sideOffset:n=4,...a},o)=>g.jsx(wz,{children:g.jsx(yT,{ref:o,align:t,sideOffset:n,className:Fe(\"z-50 w-72 rounded-md border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] p-4 text-stone-950 dark:text-[#cccccc] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",e),...a})}));bT.displayName=yT.displayName;const Rz=[{id:\"tables\",label:\"Tables\",icon:Fy},{id:\"functions\",label:\"Functions\",icon:Hy},{id:\"storage\",label:\"Storage\",icon:$y},{id:\"logs\",label:\"Logs\",icon:r_},{id:\"analytics\",label:\"Analytics\",icon:zD}];function Ez({children:e,activeTab:t,onTabChange:n,navItems:a=Rz}){const{theme:o,toggleTheme:s}=h_(),{selectedComponent:c,setSelectedComponent:u,components:f,componentsLoading:m}=gb(),v=f.length>1||f.length===1&&!f[0].isRoot,y=c||\"(root)\";return g.jsx(n8,{delayDuration:300,children:g.jsxs(\"div\",{className:\"flex h-screen bg-[var(--bg-secondary)]\",children:[g.jsxs(\"aside\",{className:\"w-12 flex flex-col border-r border-[var(--border-color)] bg-[var(--bg-primary)]\",children:[g.jsx(\"div\",{className:\"h-12 flex items-center justify-center border-b border-[var(--border-color)]\",children:g.jsx(hb,{className:\"h-5 w-5 text-[var(--accent-color)]\"})}),g.jsx(\"nav\",{className:\"py-2\",children:a.map(x=>{const w=x.icon,S=t===x.id;return g.jsxs(mg,{children:[g.jsx(pg,{asChild:!0,children:g.jsxs(\"button\",{onClick:()=>n(x.id),className:Fe(\"w-full h-10 flex items-center justify-center transition-colors relative\",S?\"text-[var(--accent-color)] bg-[var(--bg-selected)]\":\"text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)]\"),children:[g.jsx(w,{className:\"h-5 w-5\"}),S&&g.jsx(\"div\",{className:\"absolute left-0 top-1 bottom-1 w-0.5 bg-[var(--accent-color)] rounded-r\"})]})}),g.jsx(nh,{side:\"right\",children:g.jsx(\"p\",{children:x.label})})]},x.id)})}),g.jsx(\"div\",{className:\"flex-1\"}),g.jsxs(\"div\",{className:\"py-2 border-t border-[var(--border-color)]\",children:[g.jsxs(mg,{children:[g.jsx(pg,{asChild:!0,children:g.jsx(\"button\",{onClick:s,className:\"w-full h-10 flex items-center justify-center text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors\",children:o===\"light\"?g.jsx(YD,{className:\"h-5 w-5\"}):g.jsx(t5,{className:\"h-5 w-5\"})})}),g.jsx(nh,{side:\"right\",children:g.jsx(\"p\",{children:o===\"light\"?\"Dark mode\":\"Light mode\"})})]}),g.jsxs(mg,{children:[g.jsx(pg,{asChild:!0,children:g.jsx(\"button\",{className:\"w-full h-10 flex items-center justify-center text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors\",children:g.jsx(LD,{className:\"h-5 w-5\"})})}),g.jsx(nh,{side:\"right\",children:g.jsx(\"p\",{children:\"Help\"})})]})]})]}),g.jsxs(\"main\",{className:\"flex-1 overflow-hidden flex flex-col\",children:[v&&g.jsx(\"div\",{className:\"h-10 border-b border-[var(--border-color)] bg-[var(--bg-primary)] flex items-center px-4\",children:g.jsxs(Sz,{children:[g.jsx(Cz,{asChild:!0,children:g.jsxs(\"button\",{className:\"flex items-center gap-2 px-3 py-1.5 rounded-md hover:bg-[var(--bg-hover)] transition-colors\",disabled:m,children:[g.jsx($S,{className:\"h-4 w-4 text-[var(--text-secondary)]\"}),g.jsx(\"span\",{className:\"text-sm font-medium text-[var(--text-primary)]\",children:y}),g.jsx(el,{className:\"h-3 w-3 text-[var(--text-secondary)]\"})]})}),g.jsx(bT,{align:\"start\",className:\"w-64 p-2\",children:g.jsx(\"div\",{className:\"space-y-1\",children:f.map(x=>g.jsxs(\"button\",{onClick:()=>u(x.isRoot?\"\":x.path),className:Fe(\"w-full flex items-center justify-between px-3 py-2 rounded-md text-left transition-colors\",x.isRoot&&c===\"\"||x.path===c?\"bg-[var(--bg-selected)] text-[var(--accent-color)]\":\"hover:bg-[var(--bg-hover)] text-[var(--text-primary)]\"),children:[g.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[g.jsx($S,{className:\"h-4 w-4\"}),g.jsx(\"span\",{className:\"text-sm font-medium\",children:x.isRoot?\"(root)\":x.path})]}),g.jsxs(\"span\",{className:\"text-xs text-[var(--text-secondary)]\",children:[x.functionCount,\" fn\"]})]},x.path))})})]})}),g.jsx(\"div\",{className:\"flex-1 overflow-hidden\",children:e})]})]})})}function xT(e=\"This should not happen\"){throw new Error(e)}function ma(e,t=\"Assertion failed\"){if(!e)return xT(t)}function nd(e,t){return xT(t??\"Hell froze over\")}function kz(e,t){try{return e()}catch{return t}}const m2=Object.prototype.hasOwnProperty;function Rc(e,t){let n,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&Rc(e[a],t[a]););return a===-1}if(!n||typeof e==\"object\"){a=0;for(n in e)if(m2.call(e,n)&&++a&&!m2.call(t,n)||!(n in t)||!Rc(e[n],t[n]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}var Cg,p2;function _z(){if(p2)return Cg;p2=1;var e=Object.prototype,t=e.hasOwnProperty;function n(a,o){return a!=null&&t.call(a,o)}return Cg=n,Cg}var Rg,g2;function gi(){if(g2)return Rg;g2=1;var e=Array.isArray;return Rg=e,Rg}var Eg,v2;function wT(){if(v2)return Eg;v2=1;var e=typeof Pf==\"object\"&&Pf&&Pf.Object===Object&&Pf;return Eg=e,Eg}var kg,y2;function vi(){if(y2)return kg;y2=1;var e=wT(),t=typeof self==\"object\"&&self&&self.Object===Object&&self,n=e||t||Function(\"return this\")();return kg=n,kg}var _g,b2;function vd(){if(b2)return _g;b2=1;var e=vi(),t=e.Symbol;return _g=t,_g}var Tg,x2;function Tz(){if(x2)return Tg;x2=1;var e=vd(),t=Object.prototype,n=t.hasOwnProperty,a=t.toString,o=e?e.toStringTag:void 0;function s(c){var u=n.call(c,o),f=c[o];try{c[o]=void 0;var m=!0}catch{}var v=a.call(c);return m&&(u?c[o]=f:delete c[o]),v}return Tg=s,Tg}var Mg,w2;function Mz(){if(w2)return Mg;w2=1;var e=Object.prototype,t=e.toString;function n(a){return t.call(a)}return Mg=n,Mg}var Ag,S2;function yd(){if(S2)return Ag;S2=1;var e=vd(),t=Tz(),n=Mz(),a=\"[object Null]\",o=\"[object Undefined]\",s=e?e.toStringTag:void 0;function c(u){return u==null?u===void 0?o:a:s&&s in Object(u)?t(u):n(u)}return Ag=c,Ag}var Ng,C2;function bd(){if(C2)return Ng;C2=1;function e(t){return t!=null&&typeof t==\"object\"}return Ng=e,Ng}var Og,R2;function Yh(){if(R2)return Og;R2=1;var e=yd(),t=bd(),n=\"[object Symbol]\";function a(o){return typeof o==\"symbol\"||t(o)&&e(o)==n}return Og=a,Og}var Dg,E2;function Ob(){if(E2)return Dg;E2=1;var e=gi(),t=Yh(),n=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,a=/^\\w*$/;function o(s,c){if(e(s))return!1;var u=typeof s;return u==\"number\"||u==\"symbol\"||u==\"boolean\"||s==null||t(s)?!0:a.test(s)||!n.test(s)||c!=null&&s in Object(c)}return Dg=o,Dg}var jg,k2;function sl(){if(k2)return jg;k2=1;function e(t){var n=typeof t;return t!=null&&(n==\"object\"||n==\"function\")}return jg=e,jg}var zg,_2;function ST(){if(_2)return zg;_2=1;var e=yd(),t=sl(),n=\"[object AsyncFunction]\",a=\"[object Function]\",o=\"[object GeneratorFunction]\",s=\"[object Proxy]\";function c(u){if(!t(u))return!1;var f=e(u);return f==a||f==o||f==n||f==s}return zg=c,zg}var Pg,T2;function Az(){if(T2)return Pg;T2=1;var e=vi(),t=e[\"__core-js_shared__\"];return Pg=t,Pg}var Lg,M2;function Nz(){if(M2)return Lg;M2=1;var e=Az(),t=function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||\"\");return a?\"Symbol(src)_1.\"+a:\"\"}();function n(a){return!!t&&t in a}return Lg=n,Lg}var Ig,A2;function CT(){if(A2)return Ig;A2=1;var e=Function.prototype,t=e.toString;function n(a){if(a!=null){try{return t.call(a)}catch{}try{return a+\"\"}catch{}}return\"\"}return Ig=n,Ig}var Hg,N2;function Oz(){if(N2)return Hg;N2=1;var e=ST(),t=Nz(),n=sl(),a=CT(),o=/[\\\\^$.*+?()[\\]{}|]/g,s=/^\\[object .+?Constructor\\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,m=u.hasOwnProperty,v=RegExp(\"^\"+f.call(m).replace(o,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");function y(x){if(!n(x)||t(x))return!1;var w=e(x)?v:s;return w.test(a(x))}return Hg=y,Hg}var qg,O2;function Dz(){if(O2)return qg;O2=1;function e(t,n){return t?.[n]}return qg=e,qg}var $g,D2;function ll(){if(D2)return $g;D2=1;var e=Oz(),t=Dz();function n(a,o){var s=t(a,o);return e(s)?s:void 0}return $g=n,$g}var Fg,j2;function Xh(){if(j2)return Fg;j2=1;var e=ll(),t=e(Object,\"create\");return Fg=t,Fg}var Bg,z2;function jz(){if(z2)return Bg;z2=1;var e=Xh();function t(){this.__data__=e?e(null):{},this.size=0}return Bg=t,Bg}var Ug,P2;function zz(){if(P2)return Ug;P2=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ug=e,Ug}var Vg,L2;function Pz(){if(L2)return Vg;L2=1;var e=Xh(),t=\"__lodash_hash_undefined__\",n=Object.prototype,a=n.hasOwnProperty;function o(s){var c=this.__data__;if(e){var u=c[s];return u===t?void 0:u}return a.call(c,s)?c[s]:void 0}return Vg=o,Vg}var Wg,I2;function Lz(){if(I2)return Wg;I2=1;var e=Xh(),t=Object.prototype,n=t.hasOwnProperty;function a(o){var s=this.__data__;return e?s[o]!==void 0:n.call(s,o)}return Wg=a,Wg}var Gg,H2;function Iz(){if(H2)return Gg;H2=1;var e=Xh(),t=\"__lodash_hash_undefined__\";function n(a,o){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=e&&o===void 0?t:o,this}return Gg=n,Gg}var Yg,q2;function Hz(){if(q2)return Yg;q2=1;var e=jz(),t=zz(),n=Pz(),a=Lz(),o=Iz();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=a,s.prototype.set=o,Yg=s,Yg}var Xg,$2;function qz(){if($2)return Xg;$2=1;function e(){this.__data__=[],this.size=0}return Xg=e,Xg}var Kg,F2;function Db(){if(F2)return Kg;F2=1;function e(t,n){return t===n||t!==t&&n!==n}return Kg=e,Kg}var Qg,B2;function Kh(){if(B2)return Qg;B2=1;var e=Db();function t(n,a){for(var o=n.length;o--;)if(e(n[o][0],a))return o;return-1}return Qg=t,Qg}var Zg,U2;function $z(){if(U2)return Zg;U2=1;var e=Kh(),t=Array.prototype,n=t.splice;function a(o){var s=this.__data__,c=e(s,o);if(c<0)return!1;var u=s.length-1;return c==u?s.pop():n.call(s,c,1),--this.size,!0}return Zg=a,Zg}var Jg,V2;function Fz(){if(V2)return Jg;V2=1;var e=Kh();function t(n){var a=this.__data__,o=e(a,n);return o<0?void 0:a[o][1]}return Jg=t,Jg}var ev,W2;function Bz(){if(W2)return ev;W2=1;var e=Kh();function t(n){return e(this.__data__,n)>-1}return ev=t,ev}var tv,G2;function Uz(){if(G2)return tv;G2=1;var e=Kh();function t(n,a){var o=this.__data__,s=e(o,n);return s<0?(++this.size,o.push([n,a])):o[s][1]=a,this}return tv=t,tv}var nv,Y2;function Qh(){if(Y2)return nv;Y2=1;var e=qz(),t=$z(),n=Fz(),a=Bz(),o=Uz();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=a,s.prototype.set=o,nv=s,nv}var rv,X2;function jb(){if(X2)return rv;X2=1;var e=ll(),t=vi(),n=e(t,\"Map\");return rv=n,rv}var av,K2;function Vz(){if(K2)return av;K2=1;var e=Hz(),t=Qh(),n=jb();function a(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return av=a,av}var iv,Q2;function Wz(){if(Q2)return iv;Q2=1;function e(t){var n=typeof t;return n==\"string\"||n==\"number\"||n==\"symbol\"||n==\"boolean\"?t!==\"__proto__\":t===null}return iv=e,iv}var ov,Z2;function Zh(){if(Z2)return ov;Z2=1;var e=Wz();function t(n,a){var o=n.__data__;return e(a)?o[typeof a==\"string\"?\"string\":\"hash\"]:o.map}return ov=t,ov}var sv,J2;function Gz(){if(J2)return sv;J2=1;var e=Zh();function t(n){var a=e(this,n).delete(n);return this.size-=a?1:0,a}return sv=t,sv}var lv,eC;function Yz(){if(eC)return lv;eC=1;var e=Zh();function t(n){return e(this,n).get(n)}return lv=t,lv}var cv,tC;function Xz(){if(tC)return cv;tC=1;var e=Zh();function t(n){return e(this,n).has(n)}return cv=t,cv}var uv,nC;function Kz(){if(nC)return uv;nC=1;var e=Zh();function t(n,a){var o=e(this,n),s=o.size;return o.set(n,a),this.size+=o.size==s?0:1,this}return uv=t,uv}var dv,rC;function zb(){if(rC)return dv;rC=1;var e=Vz(),t=Gz(),n=Yz(),a=Xz(),o=Kz();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=a,s.prototype.set=o,dv=s,dv}var fv,aC;function Qz(){if(aC)return fv;aC=1;var e=zb(),t=\"Expected a function\";function n(a,o){if(typeof a!=\"function\"||o!=null&&typeof o!=\"function\")throw new TypeError(t);var s=function(){var c=arguments,u=o?o.apply(this,c):c[0],f=s.cache;if(f.has(u))return f.get(u);var m=a.apply(this,c);return s.cache=f.set(u,m)||f,m};return s.cache=new(n.Cache||e),s}return n.Cache=e,fv=n,fv}var hv,iC;function Zz(){if(iC)return hv;iC=1;var e=Qz(),t=500;function n(a){var o=e(a,function(c){return s.size===t&&s.clear(),c}),s=o.cache;return o}return hv=n,hv}var mv,oC;function Jz(){if(oC)return mv;oC=1;var e=Zz(),t=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,n=/\\\\(\\\\)?/g,a=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(\"\"),o.replace(t,function(c,u,f,m){s.push(f?m.replace(n,\"$1\"):u||c)}),s});return mv=a,mv}var pv,sC;function eP(){if(sC)return pv;sC=1;function e(t,n){for(var a=-1,o=t==null?0:t.length,s=Array(o);++a<o;)s[a]=n(t[a],a,t);return s}return pv=e,pv}var gv,lC;function tP(){if(lC)return gv;lC=1;var e=vd(),t=eP(),n=gi(),a=Yh(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function c(u){if(typeof u==\"string\")return u;if(n(u))return t(u,c)+\"\";if(a(u))return s?s.call(u):\"\";var f=u+\"\";return f==\"0\"&&1/u==-1/0?\"-0\":f}return gv=c,gv}var vv,cC;function nP(){if(cC)return vv;cC=1;var e=tP();function t(n){return n==null?\"\":e(n)}return vv=t,vv}var yv,uC;function RT(){if(uC)return yv;uC=1;var e=gi(),t=Ob(),n=Jz(),a=nP();function o(s,c){return e(s)?s:t(s,c)?[s]:n(a(s))}return yv=o,yv}var bv,dC;function rP(){if(dC)return bv;dC=1;var e=yd(),t=bd(),n=\"[object Arguments]\";function a(o){return t(o)&&e(o)==n}return bv=a,bv}var xv,fC;function Pb(){if(fC)return xv;fC=1;var e=rP(),t=bd(),n=Object.prototype,a=n.hasOwnProperty,o=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(c){return t(c)&&a.call(c,\"callee\")&&!o.call(c,\"callee\")};return xv=s,xv}var wv,hC;function Lb(){if(hC)return wv;hC=1;var e=9007199254740991,t=/^(?:0|[1-9]\\d*)$/;function n(a,o){var s=typeof a;return o=o??e,!!o&&(s==\"number\"||s!=\"symbol\"&&t.test(a))&&a>-1&&a%1==0&&a<o}return wv=n,wv}var Sv,mC;function Ib(){if(mC)return Sv;mC=1;var e=9007199254740991;function t(n){return typeof n==\"number\"&&n>-1&&n%1==0&&n<=e}return Sv=t,Sv}var Cv,pC;function Jh(){if(pC)return Cv;pC=1;var e=Yh();function t(n){if(typeof n==\"string\"||e(n))return n;var a=n+\"\";return a==\"0\"&&1/n==-1/0?\"-0\":a}return Cv=t,Cv}var Rv,gC;function ET(){if(gC)return Rv;gC=1;var e=RT(),t=Pb(),n=gi(),a=Lb(),o=Ib(),s=Jh();function c(u,f,m){f=e(f,u);for(var v=-1,y=f.length,x=!1;++v<y;){var w=s(f[v]);if(!(x=u!=null&&m(u,w)))break;u=u[w]}return x||++v!=y?x:(y=u==null?0:u.length,!!y&&o(y)&&a(w,y)&&(n(u)||t(u)))}return Rv=c,Rv}var Ev,vC;function aP(){if(vC)return Ev;vC=1;var e=_z(),t=ET();function n(a,o){return a!=null&&t(a,o,e)}return Ev=n,Ev}var iP=aP();const oP=Ya(iP),gh=null,Hb=void 0;var Ie;(function(e){e.Uri=\"uri\",e.Text=\"text\",e.Image=\"image\",e.RowID=\"row-id\",e.Number=\"number\",e.Bubble=\"bubble\",e.Boolean=\"boolean\",e.Loading=\"loading\",e.Markdown=\"markdown\",e.Drilldown=\"drilldown\",e.Protected=\"protected\",e.Custom=\"custom\"})(Ie||(Ie={}));var yC;(function(e){e.HeaderRowID=\"headerRowID\",e.HeaderCode=\"headerCode\",e.HeaderNumber=\"headerNumber\",e.HeaderString=\"headerString\",e.HeaderBoolean=\"headerBoolean\",e.HeaderAudioUri=\"headerAudioUri\",e.HeaderVideoUri=\"headerVideoUri\",e.HeaderEmoji=\"headerEmoji\",e.HeaderImage=\"headerImage\",e.HeaderUri=\"headerUri\",e.HeaderPhone=\"headerPhone\",e.HeaderMarkdown=\"headerMarkdown\",e.HeaderDate=\"headerDate\",e.HeaderTime=\"headerTime\",e.HeaderEmail=\"headerEmail\",e.HeaderReference=\"headerReference\",e.HeaderIfThenElse=\"headerIfThenElse\",e.HeaderSingleValue=\"headerSingleValue\",e.HeaderLookup=\"headerLookup\",e.HeaderTextTemplate=\"headerTextTemplate\",e.HeaderMath=\"headerMath\",e.HeaderRollup=\"headerRollup\",e.HeaderJoinStrings=\"headerJoinStrings\",e.HeaderSplitString=\"headerSplitString\",e.HeaderGeoDistance=\"headerGeoDistance\",e.HeaderArray=\"headerArray\",e.RowOwnerOverlay=\"rowOwnerOverlay\",e.ProtectedColumnOverlay=\"protectedColumnOverlay\"})(yC||(yC={}));var vh;(function(e){e.Triangle=\"triangle\",e.Dots=\"dots\"})(vh||(vh={}));function Vf(e){return\"width\"in e&&typeof e.width==\"number\"}async function bC(e){return typeof e==\"object\"?e:await e()}function Qi(e){return!(e.kind===Ie.Loading||e.kind===Ie.Bubble||e.kind===Ie.RowID||e.kind===Ie.Protected||e.kind===Ie.Drilldown)}function Zs(e){return e.kind===Ma.Marker||e.kind===Ma.NewRow}function zu(e){if(!Qi(e)||e.kind===Ie.Image)return!1;if(e.kind===Ie.Text||e.kind===Ie.Number||e.kind===Ie.Markdown||e.kind===Ie.Uri||e.kind===Ie.Custom||e.kind===Ie.Boolean)return e.readonly!==!0;nd(e,\"A cell was passed with an invalid kind\")}function kT(e){return oP(e,\"editor\")}function Qy(e){return!(e.readonly??!1)}var Ma;(function(e){e.NewRow=\"new-row\",e.Marker=\"marker\"})(Ma||(Ma={}));function sP(e){if(e.length===0)return[];const t=[...e],n=[];t.sort(function(a,o){return a[0]-o[0]}),n.push([...t[0]]);for(const a of t.slice(1)){const o=n[n.length-1];o[1]<a[0]?n.push([...a]):o[1]<a[1]&&(o[1]=a[1])}return n}let xC;class wt{items;constructor(t){this.items=t}static empty=()=>xC??(xC=new wt([]));static fromSingleSelection=t=>wt.empty().add(t);offset(t){if(t===0)return this;const n=this.items.map(a=>[a[0]+t,a[1]+t]);return new wt(n)}add(t){const n=typeof t==\"number\"?[t,t+1]:t,a=sP([...this.items,n]);return new wt(a)}remove(t){const n=[...this.items],a=typeof t==\"number\"?t:t[0],o=typeof t==\"number\"?t+1:t[1];for(const[s,c]of n.entries()){const[u,f]=c;if(u<=o&&a<=f){const m=[];u<a&&m.push([u,a]),o<f&&m.push([o,f]),n.splice(s,1,...m)}}return new wt(n)}first(){if(this.items.length!==0)return this.items[0][0]}last(){if(this.items.length!==0)return this.items.slice(-1)[0][1]-1}hasIndex(t){for(let n=0;n<this.items.length;n++){const[a,o]=this.items[n];if(t>=a&&t<o)return!0}return!1}hasAll(t){for(let n=t[0];n<t[1];n++)if(!this.hasIndex(n))return!1;return!0}some(t){for(const n of this)if(t(n))return!0;return!1}equals(t){if(t===this)return!0;if(t.items.length!==this.items.length)return!1;for(let n=0;n<this.items.length;n++){const a=t.items[n],o=this.items[n];if(a[0]!==o[0]||a[1]!==o[1])return!1}return!0}toArray(){const t=[];for(const[n,a]of this.items)for(let o=n;o<a;o++)t.push(o);return t}get length(){let t=0;for(const[n,a]of this.items)t+=a-n;return t}*[Symbol.iterator](){for(const[t,n]of this.items)for(let a=t;a<n;a++)yield a}}function lP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kv=lP(function(e){return cP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uP=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},a=[];t.forEach(s=>{(s?s.split(\" \"):[]).forEach(u=>{if(u.startsWith(\"atm_\")){const[,f]=u.split(\"_\");n[f]=u}else a.push(u)})});const o=[];for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&o.push(n[s]);return o.push(...a),o.join(\" \")},wC=uP,dP=e=>e.toUpperCase()===e,fP=e=>t=>e.indexOf(t)===-1,_T=(e,t)=>{const n={};return Object.keys(e).filter(fP(t)).forEach(a=>{n[a]=e[a]}),n};function hP(e,t,n){const a=_T(t,n);if(!e){const o=typeof kv==\"function\"?{default:kv}:kv;Object.keys(a).forEach(s=>{o.default(s)||delete a[s]})}return a}var mP=(e,t)=>{};function pP(e){let t=\"\";return n=>{const a=(s,c)=>{const{as:u=e,class:f=t}=s,m=n.propsAsIs===void 0?!(typeof u==\"string\"&&u.indexOf(\"-\")===-1&&!dP(u[0])):n.propsAsIs,v=hP(m,s,[\"as\",\"class\"]);v.ref=c,v.className=n.atomic?wC(n.class,v.className||f):wC(v.className||f,n.class);const{vars:y}=n;if(y){const x={};for(const C in y){const R=y[C],_=R[0],E=R[1]||\"\",T=typeof _==\"function\"?_(s):_;mP(T,n.name),x[`--${C}`]=`${T}${E}`}const w=v.style||{},S=Object.keys(w);S.length>0&&S.forEach(C=>{x[C]=w[C]}),v.style=x}return e.__linaria&&e!==u?(v.as=u,Dt.createElement(e,v)):Dt.createElement(u,v)},o=Dt.forwardRef?Dt.forwardRef(a):s=>{const c=_T(s,[\"innerRef\"]);return a(c,s.innerRef)};return o.displayName=n.name,o.__linaria={className:n.class||t,extends:e},o}}var Dr=pP;const gP=Dr(\"div\")({name:\"ImageOverlayEditorStyle\",class:\"gdg-i2iowwq\",propsAsIs:!1});var _v={},Su={},Wf={},Gf={},Tv={exports:{}},Mv,SC;function vP(){if(SC)return Mv;SC=1;var e=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";return Mv=e,Mv}var Av,CC;function yP(){if(CC)return Av;CC=1;var e=vP();function t(){}function n(){}return n.resetWarningCache=t,Av=function(){function a(c,u,f,m,v,y){if(y!==e){var x=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw x.name=\"Invariant Violation\",x}}a.isRequired=a;function o(){return a}var s={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:o,element:a,elementType:a,instanceOf:o,node:a,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Av}var RC;function bP(){return RC||(RC=1,Tv.exports=yP()()),Tv.exports}var EC;function xP(){return EC||(EC=1,function(e){(function(t,n){n(e,ds(),bP())})(Gf,function(t,n,a){Object.defineProperty(t,\"__esModule\",{value:!0}),t.setHasSupportToCaptureOption=S;var o=c(n),s=c(a);function c(E){return E&&E.__esModule?E:{default:E}}var u=Object.assign||function(E){for(var T=1;T<arguments.length;T++){var A=arguments[T];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(E[D]=A[D])}return E};function f(E,T){var A={};for(var D in E)T.indexOf(D)>=0||Object.prototype.hasOwnProperty.call(E,D)&&(A[D]=E[D]);return A}function m(E,T){if(!(E instanceof T))throw new TypeError(\"Cannot call a class as a function\")}var v=function(){function E(T,A){for(var D=0;D<A.length;D++){var z=A[D];z.enumerable=z.enumerable||!1,z.configurable=!0,\"value\"in z&&(z.writable=!0),Object.defineProperty(T,z.key,z)}}return function(T,A,D){return A&&E(T.prototype,A),D&&E(T,D),T}}();function y(E,T){if(!E)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return T&&(typeof T==\"object\"||typeof T==\"function\")?T:E}function x(E,T){if(typeof T!=\"function\"&&T!==null)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof T);E.prototype=Object.create(T&&T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(E,T):E.__proto__=T)}var w=!1;function S(E){w=E}try{addEventListener(\"test\",null,Object.defineProperty({},\"capture\",{get:function(){S(!0)}}))}catch{}function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?E:E.capture}function R(E){if(\"touches\"in E){var T=E.touches[0],A=T.pageX,D=T.pageY;return{x:A,y:D}}var z=E.screenX,O=E.screenY;return{x:z,y:O}}var _=function(E){x(T,E);function T(){var A;m(this,T);for(var D=arguments.length,z=Array(D),O=0;O<D;O++)z[O]=arguments[O];var H=y(this,(A=T.__proto__||Object.getPrototypeOf(T)).call.apply(A,[this].concat(z)));return H._handleSwipeStart=H._handleSwipeStart.bind(H),H._handleSwipeMove=H._handleSwipeMove.bind(H),H._handleSwipeEnd=H._handleSwipeEnd.bind(H),H._onMouseDown=H._onMouseDown.bind(H),H._onMouseMove=H._onMouseMove.bind(H),H._onMouseUp=H._onMouseUp.bind(H),H._setSwiperRef=H._setSwiperRef.bind(H),H}return v(T,[{key:\"componentDidMount\",value:function(){this.swiper&&this.swiper.addEventListener(\"touchmove\",this._handleSwipeMove,C({capture:!0,passive:!1}))}},{key:\"componentWillUnmount\",value:function(){this.swiper&&this.swiper.removeEventListener(\"touchmove\",this._handleSwipeMove,C({capture:!0,passive:!1}))}},{key:\"_onMouseDown\",value:function(D){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener(\"mouseup\",this._onMouseUp),document.addEventListener(\"mousemove\",this._onMouseMove),this._handleSwipeStart(D))}},{key:\"_onMouseMove\",value:function(D){this.mouseDown&&this._handleSwipeMove(D)}},{key:\"_onMouseUp\",value:function(D){this.mouseDown=!1,document.removeEventListener(\"mouseup\",this._onMouseUp),document.removeEventListener(\"mousemove\",this._onMouseMove),this._handleSwipeEnd(D)}},{key:\"_handleSwipeStart\",value:function(D){var z=R(D),O=z.x,H=z.y;this.moveStart={x:O,y:H},this.props.onSwipeStart(D)}},{key:\"_handleSwipeMove\",value:function(D){if(this.moveStart){var z=R(D),O=z.x,H=z.y,$=O-this.moveStart.x,V=H-this.moveStart.y;this.moving=!0;var I=this.props.onSwipeMove({x:$,y:V},D);I&&D.cancelable&&D.preventDefault(),this.movePosition={deltaX:$,deltaY:V}}}},{key:\"_handleSwipeEnd\",value:function(D){this.props.onSwipeEnd(D);var z=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-z?this.props.onSwipeLeft(1,D):this.movePosition.deltaX>z&&this.props.onSwipeRight(1,D),this.movePosition.deltaY<-z?this.props.onSwipeUp(1,D):this.movePosition.deltaY>z&&this.props.onSwipeDown(1,D)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:\"_setSwiperRef\",value:function(D){this.swiper=D,this.props.innerRef(D)}},{key:\"render\",value:function(){var D=this.props;D.tagName;var z=D.className,O=D.style,H=D.children;D.allowMouseEvents,D.onSwipeUp,D.onSwipeDown,D.onSwipeLeft,D.onSwipeRight,D.onSwipeStart,D.onSwipeMove,D.onSwipeEnd,D.innerRef,D.tolerance;var $=f(D,[\"tagName\",\"className\",\"style\",\"children\",\"allowMouseEvents\",\"onSwipeUp\",\"onSwipeDown\",\"onSwipeLeft\",\"onSwipeRight\",\"onSwipeStart\",\"onSwipeMove\",\"onSwipeEnd\",\"innerRef\",\"tolerance\"]);return o.default.createElement(this.props.tagName,u({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:z,style:O},$),H)}}]),T}(n.Component);_.displayName=\"ReactSwipe\",_.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},_.defaultProps={tagName:\"div\",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=_})}(Gf)),Gf}var kC;function TT(){return kC||(kC=1,function(e){(function(t,n){n(e,xP())})(Wf,function(t,n){Object.defineProperty(t,\"__esModule\",{value:!0});var a=o(n);function o(s){return s&&s.__esModule?s:{default:s}}t.default=a.default})}(Wf)),Wf}var Cu={},Nv={exports:{}};/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/var _C;function wP(){return _C||(_C=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s=\"\",c=0;c<arguments.length;c++){var u=arguments[c];u&&(s=o(s,a(u)))}return s}function a(s){if(typeof s==\"string\"||typeof s==\"number\")return s;if(typeof s!=\"object\")return\"\";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes(\"[native code]\"))return s.toString();var c=\"\";for(var u in s)t.call(s,u)&&s[u]&&(c=o(c,u));return c}function o(s,c){return c?s?s+\" \"+c:s+c:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Nv)),Nv.exports}var TC;function MT(){if(TC)return Cu;TC=1,Object.defineProperty(Cu,\"__esModule\",{value:!0}),Cu.default=void 0;var e=t(wP());function t(o){return o&&o.__esModule?o:{default:o}}function n(o,s,c){return s in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}var a={ROOT:function(s){return(0,e.default)(n({\"carousel-root\":!0},s||\"\",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,\"carousel-slider\":s})},WRAPPER:function(s,c){return(0,e.default)({\"thumbs-wrapper\":!s,\"slider-wrapper\":s,\"axis-horizontal\":c===\"horizontal\",\"axis-vertical\":c!==\"horizontal\"})},SLIDER:function(s,c){return(0,e.default)({thumbs:!s,slider:s,animated:!c})},ITEM:function(s,c,u){return(0,e.default)({thumb:!s,slide:s,selected:c,previous:u})},ARROW_PREV:function(s){return(0,e.default)({\"control-arrow control-prev\":!0,\"control-disabled\":s})},ARROW_NEXT:function(s){return(0,e.default)({\"control-arrow control-next\":!0,\"control-disabled\":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return Cu.default=a,Cu}var Ru={},Eu={},MC;function SP(){if(MC)return Eu;MC=1,Object.defineProperty(Eu,\"__esModule\",{value:!0}),Eu.outerWidth=void 0;var e=function(n){var a=n.offsetWidth,o=getComputedStyle(n);return a+=parseInt(o.marginLeft)+parseInt(o.marginRight),a};return Eu.outerWidth=e,Eu}var ku={},AC;function qb(){if(AC)return ku;AC=1,Object.defineProperty(ku,\"__esModule\",{value:!0}),ku.default=void 0;var e=function(n,a,o){var s=n===0?n:n+a,c=o===\"horizontal\"?[s,0,0]:[0,s,0],u=\"translate3d\",f=\"(\"+c.join(\",\")+\")\";return u+f};return ku.default=e,ku}var _u={},NC;function AT(){if(NC)return _u;NC=1,Object.defineProperty(_u,\"__esModule\",{value:!0}),_u.default=void 0;var e=function(){return window};return _u.default=e,_u}var OC;function NT(){if(OC)return Ru;OC=1,Object.defineProperty(Ru,\"__esModule\",{value:!0}),Ru.default=void 0;var e=f(ds()),t=c(MT()),n=SP(),a=c(qb()),o=c(TT()),s=c(AT());function c(H){return H&&H.__esModule?H:{default:H}}function u(){if(typeof WeakMap!=\"function\")return null;var H=new WeakMap;return u=function(){return H},H}function f(H){if(H&&H.__esModule)return H;if(H===null||m(H)!==\"object\"&&typeof H!=\"function\")return{default:H};var $=u();if($&&$.has(H))return $.get(H);var V={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in H)if(Object.prototype.hasOwnProperty.call(H,M)){var q=I?Object.getOwnPropertyDescriptor(H,M):null;q&&(q.get||q.set)?Object.defineProperty(V,M,q):V[M]=H[M]}return V.default=H,$&&$.set(H,V),V}function m(H){\"@babel/helpers - typeof\";return typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?m=function(V){return typeof V}:m=function(V){return V&&typeof Symbol==\"function\"&&V.constructor===Symbol&&V!==Symbol.prototype?\"symbol\":typeof V},m(H)}function v(){return v=Object.assign||function(H){for(var $=1;$<arguments.length;$++){var V=arguments[$];for(var I in V)Object.prototype.hasOwnProperty.call(V,I)&&(H[I]=V[I])}return H},v.apply(this,arguments)}function y(H,$){if(!(H instanceof $))throw new TypeError(\"Cannot call a class as a function\")}function x(H,$){for(var V=0;V<$.length;V++){var I=$[V];I.enumerable=I.enumerable||!1,I.configurable=!0,\"value\"in I&&(I.writable=!0),Object.defineProperty(H,I.key,I)}}function w(H,$,V){return $&&x(H.prototype,$),H}function S(H,$){if(typeof $!=\"function\"&&$!==null)throw new TypeError(\"Super expression must either be null or a function\");H.prototype=Object.create($&&$.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),$&&C(H,$)}function C(H,$){return C=Object.setPrototypeOf||function(I,M){return I.__proto__=M,I},C(H,$)}function R(H){var $=T();return function(){var I=A(H),M;if($){var q=A(this).constructor;M=Reflect.construct(I,arguments,q)}else M=I.apply(this,arguments);return _(this,M)}}function _(H,$){return $&&(m($)===\"object\"||typeof $==\"function\")?$:E(H)}function E(H){if(H===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return H}function T(){if(typeof Reflect>\"u\"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==\"function\")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(H){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},A(H)}function D(H,$,V){return $ in H?Object.defineProperty(H,$,{value:V,enumerable:!0,configurable:!0,writable:!0}):H[$]=V,H}var z=function($){return $.hasOwnProperty(\"key\")},O=function(H){S(V,H);var $=R(V);function V(I){var M;return y(this,V),M=$.call(this,I),D(E(M),\"itemsWrapperRef\",void 0),D(E(M),\"itemsListRef\",void 0),D(E(M),\"thumbsRef\",void 0),D(E(M),\"setItemsWrapperRef\",function(q){M.itemsWrapperRef=q}),D(E(M),\"setItemsListRef\",function(q){M.itemsListRef=q}),D(E(M),\"setThumbsRef\",function(q,B){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[B]=q}),D(E(M),\"updateSizes\",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var q=e.Children.count(M.props.children),B=M.itemsWrapperRef.clientWidth,j=M.props.thumbWidth?M.props.thumbWidth:(0,n.outerWidth)(M.thumbsRef[0]),F=Math.floor(B/j),U=F<q,W=U?q-F:0;M.setState(function(ee,oe){return{itemSize:j,visibleItems:F,firstItem:U?M.getFirstItem(oe.selectedItem):0,lastPosition:W,showArrows:U}})}}),D(E(M),\"handleClickItem\",function(q,B,j){if(!z(j)||j.key===\"Enter\"){var F=M.props.onSelectItem;typeof F==\"function\"&&F(q,B)}}),D(E(M),\"onSwipeStart\",function(){M.setState({swiping:!0})}),D(E(M),\"onSwipeEnd\",function(){M.setState({swiping:!1})}),D(E(M),\"onSwipeMove\",function(q){var B=q.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var j=0,F=e.Children.count(M.props.children),U=-(M.state.firstItem*100)/M.state.visibleItems,W=Math.max(F-M.state.visibleItems,0),ee=-W*100/M.state.visibleItems;U===j&&B>0&&(B=0),U===ee&&B<0&&(B=0);var oe=M.itemsWrapperRef.clientWidth,P=U+100/(oe/B);return M.itemsListRef&&[\"WebkitTransform\",\"MozTransform\",\"MsTransform\",\"OTransform\",\"transform\",\"msTransform\"].forEach(function(Y){M.itemsListRef.style[Y]=(0,a.default)(P,\"%\",M.props.axis)}),!0}),D(E(M),\"slideRight\",function(q){M.moveTo(M.state.firstItem-(typeof q==\"number\"?q:1))}),D(E(M),\"slideLeft\",function(q){M.moveTo(M.state.firstItem+(typeof q==\"number\"?q:1))}),D(E(M),\"moveTo\",function(q){q=q<0?0:q,q=q>=M.state.lastPosition?M.state.lastPosition:q,M.setState({firstItem:q})}),M.state={selectedItem:I.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return w(V,[{key:\"componentDidMount\",value:function(){this.setupThumbs()}},{key:\"componentDidUpdate\",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:\"componentWillUnmount\",value:function(){this.destroyThumbs()}},{key:\"setupThumbs\",value:function(){(0,s.default)().addEventListener(\"resize\",this.updateSizes),(0,s.default)().addEventListener(\"DOMContentLoaded\",this.updateSizes),this.updateSizes()}},{key:\"destroyThumbs\",value:function(){(0,s.default)().removeEventListener(\"resize\",this.updateSizes),(0,s.default)().removeEventListener(\"DOMContentLoaded\",this.updateSizes)}},{key:\"getFirstItem\",value:function(M){var q=M;return M>=this.state.lastPosition&&(q=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(q=this.state.firstItem),M<this.state.firstItem&&(q=M),q}},{key:\"renderItems\",value:function(){var M=this;return this.props.children.map(function(q,B){var j=t.default.ITEM(!1,B===M.state.selectedItem),F={key:B,ref:function(W){return M.setThumbsRef(W,B)},className:j,onClick:M.handleClickItem.bind(M,B,M.props.children[B]),onKeyDown:M.handleClickItem.bind(M,B,M.props.children[B]),\"aria-label\":\"\".concat(M.props.labels.item,\" \").concat(B+1),style:{width:M.props.thumbWidth}};return e.default.createElement(\"li\",v({},F,{role:\"button\",tabIndex:0}),q)})}},{key:\"render\",value:function(){var M=this;if(!this.props.children)return null;var q=e.Children.count(this.props.children)>1,B=this.state.showArrows&&this.state.firstItem>0,j=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,F={},U=-this.state.firstItem*(this.state.itemSize||0),W=(0,a.default)(U,\"px\",this.props.axis),ee=this.props.transitionTime+\"ms\";return F={WebkitTransform:W,MozTransform:W,MsTransform:W,OTransform:W,transform:W,msTransform:W,WebkitTransitionDuration:ee,MozTransitionDuration:ee,MsTransitionDuration:ee,OTransitionDuration:ee,transitionDuration:ee,msTransitionDuration:ee},e.default.createElement(\"div\",{className:t.default.CAROUSEL(!1)},e.default.createElement(\"div\",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement(\"button\",{type:\"button\",className:t.default.ARROW_PREV(!B),onClick:function(){return M.slideRight()},\"aria-label\":this.props.labels.leftArrow}),q?e.default.createElement(o.default,{tagName:\"ul\",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:F,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement(\"ul\",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(P){return M.setItemsListRef(P)},style:F},this.renderItems()),e.default.createElement(\"button\",{type:\"button\",className:t.default.ARROW_NEXT(!j),onClick:function(){return M.slideLeft()},\"aria-label\":this.props.labels.rightArrow})))}}]),V}(e.Component);return Ru.default=O,D(O,\"displayName\",\"Thumbs\"),D(O,\"defaultProps\",{axis:\"horizontal\",labels:{leftArrow:\"previous slide / item\",rightArrow:\"next slide / item\",item:\"slide item\"},selectedItem:0,thumbWidth:80,transitionTime:350}),Ru}var Tu={},DC;function CP(){if(DC)return Tu;DC=1,Object.defineProperty(Tu,\"__esModule\",{value:!0}),Tu.default=void 0;var e=function(){return document};return Tu.default=e,Tu}var ca={},jC;function OT(){if(jC)return ca;jC=1,Object.defineProperty(ca,\"__esModule\",{value:!0}),ca.setPosition=ca.getPosition=ca.isKeyboardEvent=ca.defaultStatusFormatter=ca.noop=void 0;var e=ds(),t=n(qb());function n(f){return f&&f.__esModule?f:{default:f}}var a=function(){};ca.noop=a;var o=function(m,v){return\"\".concat(m,\" of \").concat(v)};ca.defaultStatusFormatter=o;var s=function(m){return m?m.hasOwnProperty(\"key\"):!1};ca.isKeyboardEvent=s;var c=function(m,v){if(v.infiniteLoop&&++m,m===0)return 0;var y=e.Children.count(v.children);if(v.centerMode&&v.axis===\"horizontal\"){var x=-m*v.centerSlidePercentage,w=y-1;return m&&(m!==w||v.infiniteLoop)?x+=(100-v.centerSlidePercentage)/2:m===w&&(x+=100-v.centerSlidePercentage),x}return-m*100};ca.getPosition=c;var u=function(m,v){var y={};return[\"WebkitTransform\",\"MozTransform\",\"MsTransform\",\"OTransform\",\"transform\",\"msTransform\"].forEach(function(x){y[x]=(0,t.default)(m,\"%\",v)}),y};return ca.setPosition=u,ca}var Fa={},zC;function RP(){if(zC)return Fa;zC=1,Object.defineProperty(Fa,\"__esModule\",{value:!0}),Fa.fadeAnimationHandler=Fa.slideStopSwipingHandler=Fa.slideSwipeAnimationHandler=Fa.slideAnimationHandler=void 0;var e=ds(),t=a(qb()),n=OT();function a(y){return y&&y.__esModule?y:{default:y}}function o(y,x){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(y);x&&(S=S.filter(function(C){return Object.getOwnPropertyDescriptor(y,C).enumerable})),w.push.apply(w,S)}return w}function s(y){for(var x=1;x<arguments.length;x++){var w=arguments[x]!=null?arguments[x]:{};x%2?o(Object(w),!0).forEach(function(S){c(y,S,w[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):o(Object(w)).forEach(function(S){Object.defineProperty(y,S,Object.getOwnPropertyDescriptor(w,S))})}return y}function c(y,x,w){return x in y?Object.defineProperty(y,x,{value:w,enumerable:!0,configurable:!0,writable:!0}):y[x]=w,y}var u=function(x,w){var S={},C=w.selectedItem,R=C,_=e.Children.count(x.children)-1,E=x.infiniteLoop&&(C<0||C>_);if(E)return R<0?x.centerMode&&x.centerSlidePercentage&&x.axis===\"horizontal\"?S.itemListStyle=(0,n.setPosition)(-(_+2)*x.centerSlidePercentage-(100-x.centerSlidePercentage)/2,x.axis):S.itemListStyle=(0,n.setPosition)(-(_+2)*100,x.axis):R>_&&(S.itemListStyle=(0,n.setPosition)(0,x.axis)),S;var T=(0,n.getPosition)(C,x),A=(0,t.default)(T,\"%\",x.axis),D=x.transitionTime+\"ms\";return S.itemListStyle={WebkitTransform:A,msTransform:A,OTransform:A,transform:A},w.swiping||(S.itemListStyle=s(s({},S.itemListStyle),{},{WebkitTransitionDuration:D,MozTransitionDuration:D,OTransitionDuration:D,transitionDuration:D,msTransitionDuration:D})),S};Fa.slideAnimationHandler=u;var f=function(x,w,S,C){var R={},_=w.axis===\"horizontal\",E=e.Children.count(w.children),T=0,A=(0,n.getPosition)(S.selectedItem,w),D=w.infiniteLoop?(0,n.getPosition)(E-1,w)-100:(0,n.getPosition)(E-1,w),z=_?x.x:x.y,O=z;A===T&&z>0&&(O=0),A===D&&z<0&&(O=0);var H=A+100/(S.itemSize/O),$=Math.abs(z)>w.swipeScrollTolerance;return w.infiniteLoop&&$&&(S.selectedItem===0&&H>-100?H-=E*100:S.selectedItem===E-1&&H<-E*100&&(H+=E*100)),(!w.preventMovementUntilSwipeScrollTolerance||$||S.swipeMovementStarted)&&(S.swipeMovementStarted||C({swipeMovementStarted:!0}),R.itemListStyle=(0,n.setPosition)(H,w.axis)),$&&!S.cancelClick&&C({cancelClick:!0}),R};Fa.slideSwipeAnimationHandler=f;var m=function(x,w){var S=(0,n.getPosition)(w.selectedItem,x),C=(0,n.setPosition)(S,x.axis);return{itemListStyle:C}};Fa.slideStopSwipingHandler=m;var v=function(x,w){var S=x.transitionTime+\"ms\",C=\"ease-in-out\",R={position:\"absolute\",display:\"block\",zIndex:-2,minHeight:\"100%\",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:C,msTransitionTimingFunction:C,MozTransitionTimingFunction:C,WebkitTransitionTimingFunction:C,OTransitionTimingFunction:C};return w.swiping||(R=s(s({},R),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:R,selectedStyle:s(s({},R),{},{opacity:1,position:\"relative\"}),prevStyle:s({},R)}};return Fa.fadeAnimationHandler=v,Fa}var PC;function EP(){if(PC)return Su;PC=1,Object.defineProperty(Su,\"__esModule\",{value:!0}),Su.default=void 0;var e=v(ds()),t=f(TT()),n=f(MT()),a=f(NT()),o=f(CP()),s=f(AT()),c=OT(),u=RP();function f(I){return I&&I.__esModule?I:{default:I}}function m(){if(typeof WeakMap!=\"function\")return null;var I=new WeakMap;return m=function(){return I},I}function v(I){if(I&&I.__esModule)return I;if(I===null||y(I)!==\"object\"&&typeof I!=\"function\")return{default:I};var M=m();if(M&&M.has(I))return M.get(I);var q={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in I)if(Object.prototype.hasOwnProperty.call(I,j)){var F=B?Object.getOwnPropertyDescriptor(I,j):null;F&&(F.get||F.set)?Object.defineProperty(q,j,F):q[j]=I[j]}return q.default=I,M&&M.set(I,q),q}function y(I){\"@babel/helpers - typeof\";return typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?y=function(q){return typeof q}:y=function(q){return q&&typeof Symbol==\"function\"&&q.constructor===Symbol&&q!==Symbol.prototype?\"symbol\":typeof q},y(I)}function x(){return x=Object.assign||function(I){for(var M=1;M<arguments.length;M++){var q=arguments[M];for(var B in q)Object.prototype.hasOwnProperty.call(q,B)&&(I[B]=q[B])}return I},x.apply(this,arguments)}function w(I,M){var q=Object.keys(I);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(I);M&&(B=B.filter(function(j){return Object.getOwnPropertyDescriptor(I,j).enumerable})),q.push.apply(q,B)}return q}function S(I){for(var M=1;M<arguments.length;M++){var q=arguments[M]!=null?arguments[M]:{};M%2?w(Object(q),!0).forEach(function(B){$(I,B,q[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(q)):w(Object(q)).forEach(function(B){Object.defineProperty(I,B,Object.getOwnPropertyDescriptor(q,B))})}return I}function C(I,M){if(!(I instanceof M))throw new TypeError(\"Cannot call a class as a function\")}function R(I,M){for(var q=0;q<M.length;q++){var B=M[q];B.enumerable=B.enumerable||!1,B.configurable=!0,\"value\"in B&&(B.writable=!0),Object.defineProperty(I,B.key,B)}}function _(I,M,q){return M&&R(I.prototype,M),I}function E(I,M){if(typeof M!=\"function\"&&M!==null)throw new TypeError(\"Super expression must either be null or a function\");I.prototype=Object.create(M&&M.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),M&&T(I,M)}function T(I,M){return T=Object.setPrototypeOf||function(B,j){return B.__proto__=j,B},T(I,M)}function A(I){var M=O();return function(){var B=H(I),j;if(M){var F=H(this).constructor;j=Reflect.construct(B,arguments,F)}else j=B.apply(this,arguments);return D(this,j)}}function D(I,M){return M&&(y(M)===\"object\"||typeof M==\"function\")?M:z(I)}function z(I){if(I===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return I}function O(){if(typeof Reflect>\"u\"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==\"function\")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function H(I){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},H(I)}function $(I,M,q){return M in I?Object.defineProperty(I,M,{value:q,enumerable:!0,configurable:!0,writable:!0}):I[M]=q,I}var V=function(I){E(q,I);var M=A(q);function q(B){var j;C(this,q),j=M.call(this,B),$(z(j),\"thumbsRef\",void 0),$(z(j),\"carouselWrapperRef\",void 0),$(z(j),\"listRef\",void 0),$(z(j),\"itemsRef\",void 0),$(z(j),\"timer\",void 0),$(z(j),\"animationHandler\",void 0),$(z(j),\"setThumbsRef\",function(U){j.thumbsRef=U}),$(z(j),\"setCarouselWrapperRef\",function(U){j.carouselWrapperRef=U}),$(z(j),\"setListRef\",function(U){j.listRef=U}),$(z(j),\"setItemsRef\",function(U,W){j.itemsRef||(j.itemsRef=[]),j.itemsRef[W]=U}),$(z(j),\"autoPlay\",function(){e.Children.count(j.props.children)<=1||(j.clearAutoPlay(),j.props.autoPlay&&(j.timer=setTimeout(function(){j.increment()},j.props.interval)))}),$(z(j),\"clearAutoPlay\",function(){j.timer&&clearTimeout(j.timer)}),$(z(j),\"resetAutoPlay\",function(){j.clearAutoPlay(),j.autoPlay()}),$(z(j),\"stopOnHover\",function(){j.setState({isMouseEntered:!0},j.clearAutoPlay)}),$(z(j),\"startOnLeave\",function(){j.setState({isMouseEntered:!1},j.autoPlay)}),$(z(j),\"isFocusWithinTheCarousel\",function(){return j.carouselWrapperRef?!!((0,o.default)().activeElement===j.carouselWrapperRef||j.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),$(z(j),\"navigateWithKeyboard\",function(U){if(j.isFocusWithinTheCarousel()){var W=j.props.axis,ee=W===\"horizontal\",oe={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},P=ee?oe.ArrowRight:oe.ArrowDown,Y=ee?oe.ArrowLeft:oe.ArrowUp;P===U.keyCode?j.increment():Y===U.keyCode&&j.decrement()}}),$(z(j),\"updateSizes\",function(){if(!(!j.state.initialized||!j.itemsRef||j.itemsRef.length===0)){var U=j.props.axis===\"horizontal\",W=j.itemsRef[0];if(W){var ee=U?W.clientWidth:W.clientHeight;j.setState({itemSize:ee}),j.thumbsRef&&j.thumbsRef.updateSizes()}}}),$(z(j),\"setMountState\",function(){j.setState({hasMount:!0}),j.updateSizes()}),$(z(j),\"handleClickItem\",function(U,W){if(e.Children.count(j.props.children)!==0){if(j.state.cancelClick){j.setState({cancelClick:!1});return}j.props.onClickItem(U,W),U!==j.state.selectedItem&&j.setState({selectedItem:U})}}),$(z(j),\"handleOnChange\",function(U,W){e.Children.count(j.props.children)<=1||j.props.onChange(U,W)}),$(z(j),\"handleClickThumb\",function(U,W){j.props.onClickThumb(U,W),j.moveTo(U)}),$(z(j),\"onSwipeStart\",function(U){j.setState({swiping:!0}),j.props.onSwipeStart(U)}),$(z(j),\"onSwipeEnd\",function(U){j.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),j.props.onSwipeEnd(U),j.clearAutoPlay(),j.state.autoPlay&&j.autoPlay()}),$(z(j),\"onSwipeMove\",function(U,W){j.props.onSwipeMove(W);var ee=j.props.swipeAnimationHandler(U,j.props,j.state,j.setState.bind(z(j)));return j.setState(S({},ee)),!!Object.keys(ee).length}),$(z(j),\"decrement\",function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;j.moveTo(j.state.selectedItem-(typeof U==\"number\"?U:1))}),$(z(j),\"increment\",function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;j.moveTo(j.state.selectedItem+(typeof U==\"number\"?U:1))}),$(z(j),\"moveTo\",function(U){if(typeof U==\"number\"){var W=e.Children.count(j.props.children)-1;U<0&&(U=j.props.infiniteLoop?W:0),U>W&&(U=j.props.infiniteLoop?0:W),j.selectItem({selectedItem:U}),j.state.autoPlay&&j.state.isMouseEntered===!1&&j.resetAutoPlay()}}),$(z(j),\"onClickNext\",function(){j.increment(1)}),$(z(j),\"onClickPrev\",function(){j.decrement(1)}),$(z(j),\"onSwipeForward\",function(){j.increment(1),j.props.emulateTouch&&j.setState({cancelClick:!0})}),$(z(j),\"onSwipeBackwards\",function(){j.decrement(1),j.props.emulateTouch&&j.setState({cancelClick:!0})}),$(z(j),\"changeItem\",function(U){return function(W){(!(0,c.isKeyboardEvent)(W)||W.key===\"Enter\")&&j.moveTo(U)}}),$(z(j),\"selectItem\",function(U){j.setState(S({previousItem:j.state.selectedItem},U),function(){j.setState(j.animationHandler(j.props,j.state))}),j.handleOnChange(U.selectedItem,e.Children.toArray(j.props.children)[U.selectedItem])}),$(z(j),\"getInitialImage\",function(){var U=j.props.selectedItem,W=j.itemsRef&&j.itemsRef[U],ee=W&&W.getElementsByTagName(\"img\")||[];return ee[0]}),$(z(j),\"getVariableItemHeight\",function(U){var W=j.itemsRef&&j.itemsRef[U];if(j.state.hasMount&&W&&W.children.length){var ee=W.children[0].getElementsByTagName(\"img\")||[];if(ee.length>0){var oe=ee[0];if(!oe.complete){var P=function K(){j.forceUpdate(),oe.removeEventListener(\"load\",K)};oe.addEventListener(\"load\",P)}}var Y=ee[0]||W.children[0],G=Y.clientHeight;return G>0?G:null}return null});var F={initialized:!1,previousItem:B.selectedItem,selectedItem:B.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:B.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return j.animationHandler=typeof B.animationHandler==\"function\"&&B.animationHandler||B.animationHandler===\"fade\"&&u.fadeAnimationHandler||u.slideAnimationHandler,j.state=S(S({},F),j.animationHandler(B,F)),j}return _(q,[{key:\"componentDidMount\",value:function(){this.props.children&&this.setupCarousel()}},{key:\"componentDidUpdate\",value:function(j,F){!j.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!j.autoFocus&&this.props.autoFocus&&this.forceFocus(),F.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(j.selectedItem!==this.props.selectedItem||j.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),j.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:\"componentWillUnmount\",value:function(){this.destroyCarousel()}},{key:\"setupCarousel\",value:function(){var j=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var F=j.getInitialImage();F&&!F.complete?F.addEventListener(\"load\",j.setMountState):j.setMountState()})}},{key:\"destroyCarousel\",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:\"setupAutoPlay\",value:function(){this.autoPlay();var j=this.carouselWrapperRef;this.props.stopOnHover&&j&&(j.addEventListener(\"mouseenter\",this.stopOnHover),j.addEventListener(\"mouseleave\",this.startOnLeave))}},{key:\"destroyAutoPlay\",value:function(){this.clearAutoPlay();var j=this.carouselWrapperRef;this.props.stopOnHover&&j&&(j.removeEventListener(\"mouseenter\",this.stopOnHover),j.removeEventListener(\"mouseleave\",this.startOnLeave))}},{key:\"bindEvents\",value:function(){(0,s.default)().addEventListener(\"resize\",this.updateSizes),(0,s.default)().addEventListener(\"DOMContentLoaded\",this.updateSizes),this.props.useKeyboardArrows&&(0,o.default)().addEventListener(\"keydown\",this.navigateWithKeyboard)}},{key:\"unbindEvents\",value:function(){(0,s.default)().removeEventListener(\"resize\",this.updateSizes),(0,s.default)().removeEventListener(\"DOMContentLoaded\",this.updateSizes);var j=this.getInitialImage();j&&j.removeEventListener(\"load\",this.setMountState),this.props.useKeyboardArrows&&(0,o.default)().removeEventListener(\"keydown\",this.navigateWithKeyboard)}},{key:\"forceFocus\",value:function(){var j;(j=this.carouselWrapperRef)===null||j===void 0||j.focus()}},{key:\"renderItems\",value:function(j){var F=this;return this.props.children?e.Children.map(this.props.children,function(U,W){var ee=W===F.state.selectedItem,oe=W===F.state.previousItem,P=ee&&F.state.selectedStyle||oe&&F.state.prevStyle||F.state.slideStyle||{};F.props.centerMode&&F.props.axis===\"horizontal\"&&(P=S(S({},P),{},{minWidth:F.props.centerSlidePercentage+\"%\"})),F.state.swiping&&F.state.swipeMovementStarted&&(P=S(S({},P),{},{pointerEvents:\"none\"}));var Y={ref:function(K){return F.setItemsRef(K,W)},key:\"itemKey\"+W+(j?\"clone\":\"\"),className:n.default.ITEM(!0,W===F.state.selectedItem,W===F.state.previousItem),onClick:F.handleClickItem.bind(F,W,U),style:P};return e.default.createElement(\"li\",Y,F.props.renderItem(U,{isSelected:W===F.state.selectedItem,isPrevious:W===F.state.previousItem}))}):[]}},{key:\"renderControls\",value:function(){var j=this,F=this.props,U=F.showIndicators,W=F.labels,ee=F.renderIndicator,oe=F.children;return U?e.default.createElement(\"ul\",{className:\"control-dots\"},e.Children.map(oe,function(P,Y){return ee&&ee(j.changeItem(Y),Y===j.state.selectedItem,Y,W.item)})):null}},{key:\"renderStatus\",value:function(){return this.props.showStatus?e.default.createElement(\"p\",{className:\"carousel-status\"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:\"renderThumbs\",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(a.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:\"render\",value:function(){var j=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var F=this.props.swipeable&&e.Children.count(this.props.children)>1,U=this.props.axis===\"horizontal\",W=this.props.showArrows&&e.Children.count(this.props.children)>1,ee=W&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,oe=W&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,P=this.renderItems(!0),Y=P.shift(),G=P.pop(),K={className:n.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},te={};if(U){if(K.onSwipeLeft=this.onSwipeForward,K.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);te.height=fe||\"auto\"}}else K.onSwipeUp=this.props.verticalSwipe===\"natural\"?this.onSwipeBackwards:this.onSwipeForward,K.onSwipeDown=this.props.verticalSwipe===\"natural\"?this.onSwipeForward:this.onSwipeBackwards,K.style=S(S({},K.style),{},{height:this.state.itemSize}),te.height=this.state.itemSize;return e.default.createElement(\"div\",{\"aria-label\":this.props.ariaLabel,className:n.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement(\"div\",{className:n.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ee,this.props.labels.leftArrow),e.default.createElement(\"div\",{className:n.default.WRAPPER(!0,this.props.axis),style:te},F?e.default.createElement(t.default,x({tagName:\"ul\",innerRef:this.setListRef},K,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&G,this.renderItems(),this.props.infiniteLoop&&Y):e.default.createElement(\"ul\",{className:n.default.SLIDER(!0,this.state.swiping),ref:function(he){return j.setListRef(he)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&G,this.renderItems(),this.props.infiniteLoop&&Y)),this.props.renderArrowNext(this.onClickNext,oe,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),q}(e.default.Component);return Su.default=V,$(V,\"displayName\",\"Carousel\"),$(V,\"defaultProps\",{ariaLabel:void 0,axis:\"horizontal\",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:\"previous slide / item\",rightArrow:\"next slide / item\",item:\"slide item\"},onClickItem:c.noop,onClickThumb:c.noop,onChange:c.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,q,B){return e.default.createElement(\"button\",{type:\"button\",\"aria-label\":B,className:n.default.ARROW_PREV(!q),onClick:M})},renderArrowNext:function(M,q,B){return e.default.createElement(\"button\",{type:\"button\",\"aria-label\":B,className:n.default.ARROW_NEXT(!q),onClick:M})},renderIndicator:function(M,q,B,j){return e.default.createElement(\"li\",{className:n.default.DOT(q),onClick:M,onKeyDown:M,value:B,key:B,role:\"button\",tabIndex:0,\"aria-label\":\"\".concat(j,\" \").concat(B+1)})},renderItem:function(M){return M},renderThumbs:function(M){var q=e.Children.map(M,function(B){var j=B;if(B.type!==\"img\"&&(j=e.Children.toArray(B.props.children).find(function(F){return F.type===\"img\"})),!!j)return j});return q.filter(function(B){return B}).length===0?(console.warn(\"No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md\"),[]):q},statusFormatter:c.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:\"standard\",width:\"100%\",animationHandler:\"slide\",swipeAnimationHandler:u.slideSwipeAnimationHandler,stopSwipingHandler:u.slideStopSwipingHandler}),Su}var LC={},IC;function kP(){return IC||(IC=1),LC}var HC;function _P(){return HC||(HC=1,function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),Object.defineProperty(e,\"Carousel\",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,\"CarouselProps\",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,\"Thumbs\",{enumerable:!0,get:function(){return a.default}});var t=o(EP()),n=kP(),a=o(NT());function o(s){return s&&s.__esModule?s:{default:s}}}(_v)),_v}var TP=_P(),Ov,qC;function MP(){if(qC)return Ov;qC=1;var e=vi(),t=function(){return e.Date.now()};return Ov=t,Ov}var Dv,$C;function AP(){if($C)return Dv;$C=1;var e=/\\s/;function t(n){for(var a=n.length;a--&&e.test(n.charAt(a)););return a}return Dv=t,Dv}var jv,FC;function NP(){if(FC)return jv;FC=1;var e=AP(),t=/^\\s+/;function n(a){return a&&a.slice(0,e(a)+1).replace(t,\"\")}return jv=n,jv}var zv,BC;function $b(){if(BC)return zv;BC=1;var e=NP(),t=sl(),n=Yh(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function f(m){if(typeof m==\"number\")return m;if(n(m))return a;if(t(m)){var v=typeof m.valueOf==\"function\"?m.valueOf():m;m=t(v)?v+\"\":v}if(typeof m!=\"string\")return m===0?m:+m;m=e(m);var y=s.test(m);return y||c.test(m)?u(m.slice(2),y?2:8):o.test(m)?a:+m}return zv=f,zv}var Pv,UC;function DT(){if(UC)return Pv;UC=1;var e=sl(),t=MP(),n=$b(),a=\"Expected a function\",o=Math.max,s=Math.min;function c(u,f,m){var v,y,x,w,S,C,R=0,_=!1,E=!1,T=!0;if(typeof u!=\"function\")throw new TypeError(a);f=n(f)||0,e(m)&&(_=!!m.leading,E=\"maxWait\"in m,x=E?o(n(m.maxWait)||0,f):x,T=\"trailing\"in m?!!m.trailing:T);function A(q){var B=v,j=y;return v=y=void 0,R=q,w=u.apply(j,B),w}function D(q){return R=q,S=setTimeout(H,f),_?A(q):w}function z(q){var B=q-C,j=q-R,F=f-B;return E?s(F,x-j):F}function O(q){var B=q-C,j=q-R;return C===void 0||B>=f||B<0||E&&j>=x}function H(){var q=t();if(O(q))return $(q);S=setTimeout(H,z(q))}function $(q){return S=void 0,T&&v?A(q):(v=y=void 0,w)}function V(){S!==void 0&&clearTimeout(S),R=0,v=C=y=S=void 0}function I(){return S===void 0?w:$(t())}function M(){var q=t(),B=O(q);if(v=arguments,y=this,C=q,B){if(S===void 0)return D(C);if(E)return clearTimeout(S),S=setTimeout(H,f),A(C)}return S===void 0&&(S=setTimeout(H,f)),w}return M.cancel=V,M.flush=I,M}return Pv=c,Pv}var OP=DT();const jT=Ya(OP);function cr(e,t,n,a,o=!1){const s=h.useRef();s.current=t,h.useEffect(()=>{if(n===null||n.addEventListener===void 0)return;const c=n,u=f=>{s.current?.call(c,f)};return c.addEventListener(e,u,{passive:a,capture:o}),()=>{c.removeEventListener(e,u,{capture:o})}},[e,n,a,o])}function nc(e,t){return e===void 0?void 0:t}const DP=Math.PI;function VC(e){return e*DP/180}const zT=(e,t,n)=>({x1:e-n/2,y1:t-n/2,x2:e+n/2,y2:t+n/2}),PT=(e,t,n,a,o)=>{switch(e){case\"left\":return Math.floor(t)+a+o/2;case\"center\":return Math.floor(t+n/2);case\"right\":return Math.floor(t+n)-a-o/2}},LT=(e,t,n)=>Math.min(e,t-n*2),IT=(e,t,n)=>n.x1<=e&&e<=n.x2&&n.y1<=t&&t<=n.y2,Fb=e=>{const t=e.fgColor??\"currentColor\";return h.createElement(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},h.createElement(\"path\",{d:\"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929\",stroke:t,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\",vectorEffect:\"non-scaling-stroke\"}),h.createElement(\"path\",{d:\"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z\",stroke:t,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\",vectorEffect:\"non-scaling-stroke\"}))},jP=e=>{const t=e.fgColor??\"currentColor\";return h.createElement(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},h.createElement(\"path\",{d:\"M19 6L10.3802 17L5.34071 11.8758\",vectorEffect:\"non-scaling-stroke\",stroke:t,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))};function zP(e,t,n){const[a,o]=h.useState(e),s=h.useRef(!0);h.useEffect(()=>()=>{s.current=!1},[]);const c=h.useRef(jT(u=>{s.current&&o(u)},n));return h.useLayoutEffect(()=>{s.current&&c.current(()=>e())},t),a}const PP=\"֑-߿יִ-﷽ﹰ-ﻼ\",LP=\"A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿\",IP=new RegExp(\"^[^\"+LP+\"]*[\"+PP+\"]\");function Bb(e){return IP.test(e)?\"rtl\":\"not-rtl\"}let Yf;function Zy(){if(typeof document>\"u\")return 0;if(Yf!==void 0)return Yf;const e=document.createElement(\"p\");e.style.width=\"100%\",e.style.height=\"200px\";const t=document.createElement(\"div\");t.id=\"testScrollbar\",t.style.position=\"absolute\",t.style.top=\"0px\",t.style.left=\"0px\",t.style.visibility=\"hidden\",t.style.width=\"200px\",t.style.height=\"150px\",t.style.overflow=\"hidden\",t.append(e),document.body.append(t);const n=e.offsetWidth;t.style.overflow=\"scroll\";let a=e.offsetWidth;return n===a&&(a=t.clientWidth),t.remove(),Yf=n-a,Yf}const Ws=Symbol();function HP(e){const t=h.useRef([Ws,e]);t.current[1]!==e&&(t.current[0]=e),t.current[1]=e;const[n,a]=h.useState(e),[,o]=h.useState(),s=h.useCallback(u=>{const f=t.current[0];f!==Ws&&(u=typeof u==\"function\"?u(f):u,u===f)||(f!==Ws&&o({}),a(m=>typeof u==\"function\"?u(f===Ws?m:f):u),t.current[0]=Ws)},[]),c=h.useCallback(()=>{t.current[0]=Ws,o({})},[]);return[t.current[0]===Ws?n:t.current[0],s,c]}function HT(e){if(e.length===0)return\"\";let t=0,n=0;for(const a of e){if(n+=a.length,n>1e4)break;t++}return e.slice(0,t).join(\", \")}function qP(e){const t=h.useRef(e);return Rc(e,t.current)||(t.current=e),t.current}const $P=e=>{const{urls:t,canWrite:n,onEditClick:a,renderImage:o}=e,s=t.filter(u=>u!==\"\");if(s.length===0)return null;const c=s.length>1;return h.createElement(gP,{\"data-testid\":\"GDG-default-image-overlay-editor\"},h.createElement(TP.Carousel,{showArrows:c,showThumbs:!1,swipeable:c,emulateTouch:c,infiniteLoop:c},s.map(u=>{const f=o?.(u)??h.createElement(\"img\",{draggable:!1,src:u});return h.createElement(\"div\",{className:\"gdg-centering-container\",key:u},f)})),n&&a&&h.createElement(\"button\",{className:\"gdg-edit-icon\",onClick:a},h.createElement(Fb,null)))};function qT(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:\"\",highlight:null,hooks:null,langPrefix:\"language-\",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let cl=qT();function FP(e){cl=e}const $T=/[&<>\"']/,BP=new RegExp($T.source,\"g\"),FT=/[<>\"']|&(?!(#\\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\\w+);)/,UP=new RegExp(FT.source,\"g\"),VP={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"},WC=e=>VP[e];function yr(e,t){if(t){if($T.test(e))return e.replace(BP,WC)}else if(FT.test(e))return e.replace(UP,WC);return e}const WP=/&(#(?:\\d+)|(?:#x[0-9A-Fa-f]+)|(?:\\w+));?/ig;function BT(e){return e.replace(WP,(t,n)=>(n=n.toLowerCase(),n===\"colon\"?\":\":n.charAt(0)===\"#\"?n.charAt(1)===\"x\"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):\"\"))}const GP=/(^|[^\\[])\\^/g;function ln(e,t){e=typeof e==\"string\"?e:e.source,t=t||\"\";const n={replace:(a,o)=>(o=o.source||o,o=o.replace(GP,\"$1\"),e=e.replace(a,o),n),getRegex:()=>new RegExp(e,t)};return n}const YP=/[^\\w:]/g,XP=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function GC(e,t,n){if(e){let a;try{a=decodeURIComponent(BT(n)).replace(YP,\"\").toLowerCase()}catch{return null}if(a.indexOf(\"javascript:\")===0||a.indexOf(\"vbscript:\")===0||a.indexOf(\"data:\")===0)return null}t&&!XP.test(n)&&(n=JP(t,n));try{n=encodeURI(n).replace(/%25/g,\"%\")}catch{return null}return n}const Xf={},KP=/^[^:]+:\\/*[^/]*$/,QP=/^([^:]+:)[\\s\\S]*$/,ZP=/^([^:]+:\\/*[^/]*)[\\s\\S]*$/;function JP(e,t){Xf[\" \"+e]||(KP.test(e)?Xf[\" \"+e]=e+\"/\":Xf[\" \"+e]=ih(e,\"/\",!0)),e=Xf[\" \"+e];const n=e.indexOf(\":\")===-1;return t.substring(0,2)===\"//\"?n?t:e.replace(QP,\"$1\")+t:t.charAt(0)===\"/\"?n?t:e.replace(ZP,\"$1\")+t:e+t}const yh={exec:function(){}};function YC(e,t){const n=e.replace(/\\|/g,(s,c,u)=>{let f=!1,m=c;for(;--m>=0&&u[m]===\"\\\\\";)f=!f;return f?\"|\":\" |\"}),a=n.split(/ \\|/);let o=0;if(a[0].trim()||a.shift(),a.length>0&&!a[a.length-1].trim()&&a.pop(),a.length>t)a.splice(t);else for(;a.length<t;)a.push(\"\");for(;o<a.length;o++)a[o]=a[o].trim().replace(/\\\\\\|/g,\"|\");return a}function ih(e,t,n){const a=e.length;if(a===0)return\"\";let o=0;for(;o<a;){const s=e.charAt(a-o-1);if(s===t&&!n)o++;else if(s!==t&&n)o++;else break}return e.slice(0,a-o)}function eL(e,t){if(e.indexOf(t[1])===-1)return-1;const n=e.length;let a=0,o=0;for(;o<n;o++)if(e[o]===\"\\\\\")o++;else if(e[o]===t[0])a++;else if(e[o]===t[1]&&(a--,a<0))return o;return-1}function tL(e){e&&e.sanitize&&!e.silent&&console.warn(\"marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options\")}function XC(e,t){if(t<1)return\"\";let n=\"\";for(;t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function KC(e,t,n,a){const o=t.href,s=t.title?yr(t.title):null,c=e[1].replace(/\\\\([\\[\\]])/g,\"$1\");if(e[0].charAt(0)!==\"!\"){a.state.inLink=!0;const u={type:\"link\",raw:n,href:o,title:s,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,u}return{type:\"image\",raw:n,href:o,title:s,text:yr(c)}}function nL(e,t){const n=e.match(/^(\\s+)(?:```)/);if(n===null)return t;const a=n[1];return t.split(`\n`).map(o=>{const s=o.match(/^\\s+/);if(s===null)return o;const[c]=s;return c.length>=a.length?o.slice(a.length):o}).join(`\n`)}class Ub{constructor(t){this.options=t||cl}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:\"space\",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const a=n[0].replace(/^ {1,4}/gm,\"\");return{type:\"code\",raw:n[0],codeBlockStyle:\"indented\",text:this.options.pedantic?a:ih(a,`\n`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const a=n[0],o=nL(a,n[3]||\"\");return{type:\"code\",raw:a,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,\"$1\"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let a=n[2].trim();if(/#$/.test(a)){const o=ih(a,\"#\");(this.options.pedantic||!o||/ $/.test(o))&&(a=o.trim())}return{type:\"heading\",raw:n[0],depth:n[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:\"hr\",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const a=n[0].replace(/^ *>[ \\t]?/gm,\"\"),o=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(a);return this.lexer.state.top=o,{type:\"blockquote\",raw:n[0],tokens:s,text:a}}}list(t){let n=this.rules.block.list.exec(t);if(n){let a,o,s,c,u,f,m,v,y,x,w,S,C=n[1].trim();const R=C.length>1,_={type:\"list\",raw:\"\",ordered:R,start:R?+C.slice(0,-1):\"\",loose:!1,items:[]};C=R?`\\\\d{1,9}\\\\${C.slice(-1)}`:`\\\\${C}`,this.options.pedantic&&(C=R?C:\"[*+-]\");const E=new RegExp(`^( {0,3}${C})((?:[\t ][^\\\\n]*)?(?:\\\\n|$))`);for(;t&&(S=!1,!(!(n=E.exec(t))||this.rules.block.hr.test(t)));){if(a=n[0],t=t.substring(a.length),v=n[2].split(`\n`,1)[0].replace(/^\\t+/,A=>\" \".repeat(3*A.length)),y=t.split(`\n`,1)[0],this.options.pedantic?(c=2,w=v.trimLeft()):(c=n[2].search(/[^ ]/),c=c>4?1:c,w=v.slice(c),c+=n[1].length),f=!1,!v&&/^ *$/.test(y)&&(a+=y+`\n`,t=t.substring(y.length+1),S=!0),!S){const A=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\\\d{1,9}[.)])((?:[ \t][^\\\\n]*)?(?:\\\\n|$))`),D=new RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\\\* *){3,})(?:\\\\n+|$)`),z=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:\\`\\`\\`|~~~)`),O=new RegExp(`^ {0,${Math.min(3,c-1)}}#`);for(;t&&(x=t.split(`\n`,1)[0],y=x,this.options.pedantic&&(y=y.replace(/^ {1,4}(?=( {4})*[^ ])/g,\" \")),!(z.test(y)||O.test(y)||A.test(y)||D.test(t)));){if(y.search(/[^ ]/)>=c||!y.trim())w+=`\n`+y.slice(c);else{if(f||v.search(/[^ ]/)>=4||z.test(v)||O.test(v)||D.test(v))break;w+=`\n`+y}!f&&!y.trim()&&(f=!0),a+=x+`\n`,t=t.substring(x.length+1),v=y.slice(c)}}_.loose||(m?_.loose=!0:/\\n *\\n *$/.test(a)&&(m=!0)),this.options.gfm&&(o=/^\\[[ xX]\\] /.exec(w),o&&(s=o[0]!==\"[ ] \",w=w.replace(/^\\[[ xX]\\] +/,\"\"))),_.items.push({type:\"list_item\",raw:a,task:!!o,checked:s,loose:!1,text:w}),_.raw+=a}_.items[_.items.length-1].raw=a.trimRight(),_.items[_.items.length-1].text=w.trimRight(),_.raw=_.raw.trimRight();const T=_.items.length;for(u=0;u<T;u++)if(this.lexer.state.top=!1,_.items[u].tokens=this.lexer.blockTokens(_.items[u].text,[]),!_.loose){const A=_.items[u].tokens.filter(z=>z.type===\"space\"),D=A.length>0&&A.some(z=>/\\n.*\\n/.test(z.raw));_.loose=D}if(_.loose)for(u=0;u<T;u++)_.items[u].loose=!0;return _}}html(t){const n=this.rules.block.html.exec(t);if(n){const a={type:\"html\",raw:n[0],pre:!this.options.sanitizer&&(n[1]===\"pre\"||n[1]===\"script\"||n[1]===\"style\"),text:n[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(n[0]):yr(n[0]);a.type=\"paragraph\",a.text=o,a.tokens=this.lexer.inline(o)}return a}}def(t){const n=this.rules.block.def.exec(t);if(n){const a=n[1].toLowerCase().replace(/\\s+/g,\" \"),o=n[2]?n[2].replace(/^<(.*)>$/,\"$1\").replace(this.rules.inline._escapes,\"$1\"):\"\",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,\"$1\"):n[3];return{type:\"def\",tag:a,raw:n[0],href:o,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(n){const a={type:\"table\",header:YC(n[1]).map(o=>({text:o})),align:n[2].replace(/^ *|\\| *$/g,\"\").split(/ *\\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\\n[ \\t]*$/,\"\").split(`\n`):[]};if(a.header.length===a.align.length){a.raw=n[0];let o=a.align.length,s,c,u,f;for(s=0;s<o;s++)/^ *-+: *$/.test(a.align[s])?a.align[s]=\"right\":/^ *:-+: *$/.test(a.align[s])?a.align[s]=\"center\":/^ *:-+ *$/.test(a.align[s])?a.align[s]=\"left\":a.align[s]=null;for(o=a.rows.length,s=0;s<o;s++)a.rows[s]=YC(a.rows[s],a.header.length).map(m=>({text:m}));for(o=a.header.length,c=0;c<o;c++)a.header[c].tokens=this.lexer.inline(a.header[c].text);for(o=a.rows.length,c=0;c<o;c++)for(f=a.rows[c],u=0;u<f.length;u++)f[u].tokens=this.lexer.inline(f[u].text);return a}}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:\"heading\",raw:n[0],depth:n[2].charAt(0)===\"=\"?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const a=n[1].charAt(n[1].length-1)===`\n`?n[1].slice(0,-1):n[1];return{type:\"paragraph\",raw:n[0],text:a,tokens:this.lexer.inline(a)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:\"text\",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:\"escape\",raw:n[0],text:yr(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\\/(pre|code|kbd|script)(\\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?\"text\":\"html\",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):yr(n[0]):n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const a=n[2].trim();if(!this.options.pedantic&&/^</.test(a)){if(!/>$/.test(a))return;const c=ih(a.slice(0,-1),\"\\\\\");if((a.length-c.length)%2===0)return}else{const c=eL(n[2],\"()\");if(c>-1){const f=(n[0].indexOf(\"!\")===0?5:4)+n[1].length+c;n[2]=n[2].substring(0,c),n[0]=n[0].substring(0,f).trim(),n[3]=\"\"}}let o=n[2],s=\"\";if(this.options.pedantic){const c=/^([^'\"]*[^\\s])\\s+(['\"])(.*)\\2/.exec(o);c&&(o=c[1],s=c[3])}else s=n[3]?n[3].slice(1,-1):\"\";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(a)?o=o.slice(1):o=o.slice(1,-1)),KC(n,{href:o&&o.replace(this.rules.inline._escapes,\"$1\"),title:s&&s.replace(this.rules.inline._escapes,\"$1\")},n[0],this.lexer)}}reflink(t,n){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let o=(a[2]||a[1]).replace(/\\s+/g,\" \");if(o=n[o.toLowerCase()],!o){const s=a[0].charAt(0);return{type:\"text\",raw:s,text:s}}return KC(a,o,a[0],this.lexer)}}emStrong(t,n,a=\"\"){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&a.match(/[\\p{L}\\p{N}]/u))return;const s=o[1]||o[2]||\"\";if(!s||s&&(a===\"\"||this.rules.inline.punctuation.exec(a))){const c=o[0].length-1;let u,f,m=c,v=0;const y=o[0][0]===\"*\"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(y.lastIndex=0,n=n.slice(-1*t.length+c);(o=y.exec(n))!=null;){if(u=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!u)continue;if(f=u.length,o[3]||o[4]){m+=f;continue}else if((o[5]||o[6])&&c%3&&!((c+f)%3)){v+=f;continue}if(m-=f,m>0)continue;f=Math.min(f,f+m+v);const x=t.slice(0,c+o.index+(o[0].length-u.length)+f);if(Math.min(c,f)%2){const S=x.slice(1,-1);return{type:\"em\",raw:x,text:S,tokens:this.lexer.inlineTokens(S)}}const w=x.slice(2,-2);return{type:\"strong\",raw:x,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let a=n[2].replace(/\\n/g,\" \");const o=/[^ ]/.test(a),s=/^ /.test(a)&&/ $/.test(a);return o&&s&&(a=a.substring(1,a.length-1)),a=yr(a,!0),{type:\"codespan\",raw:n[0],text:a}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:\"br\",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:\"del\",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t,n){const a=this.rules.inline.autolink.exec(t);if(a){let o,s;return a[2]===\"@\"?(o=yr(this.options.mangle?n(a[1]):a[1]),s=\"mailto:\"+o):(o=yr(a[1]),s=o),{type:\"link\",raw:a[0],text:o,href:s,tokens:[{type:\"text\",raw:o,text:o}]}}}url(t,n){let a;if(a=this.rules.inline.url.exec(t)){let o,s;if(a[2]===\"@\")o=yr(this.options.mangle?n(a[0]):a[0]),s=\"mailto:\"+o;else{let c;do c=a[0],a[0]=this.rules.inline._backpedal.exec(a[0])[0];while(c!==a[0]);o=yr(a[0]),a[1]===\"www.\"?s=\"http://\"+a[0]:s=a[0]}return{type:\"link\",raw:a[0],text:o,href:s,tokens:[{type:\"text\",raw:o,text:o}]}}}inlineText(t,n){const a=this.rules.inline.text.exec(t);if(a){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):yr(a[0]):a[0]:o=yr(this.options.smartypants?n(a[0]):a[0]),{type:\"text\",raw:a[0],text:o}}}}const ot={newline:/^(?: *(?:\\n|$))+/,code:/^( {4}[^\\n]+(?:\\n(?: *(?:\\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\\n]*(?:\\n|$))|~{3,})([^\\n]*)(?:\\n|$)(?:|([\\s\\S]*?)(?:\\n|$))(?: {0,3}\\1[~`]* *(?=\\n|$)|$)/,hr:/^ {0,3}((?:-[\\t ]*){3,}|(?:_[ \\t]*){3,}|(?:\\*[ \\t]*){3,})(?:\\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\\s|$)(.*)(?:\\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\\n]*)(?:\\n|$))+/,list:/^( {0,3}bull)([ \\t][^\\n]+?)?(?:\\n|$)/,html:\"^ {0,3}(?:<(script|pre|style|textarea)[\\\\s>][\\\\s\\\\S]*?(?:</\\\\1>[^\\\\n]*\\\\n+|$)|comment[^\\\\n]*(\\\\n+|$)|<\\\\?[\\\\s\\\\S]*?(?:\\\\?>\\\\n*|$)|<![A-Z][\\\\s\\\\S]*?(?:>\\\\n*|$)|<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?(?:\\\\]\\\\]>\\\\n*|$)|</?(tag)(?: +|\\\\n|/?>)[\\\\s\\\\S]*?(?:(?:\\\\n *)+\\\\n|$)|<(?!script|pre|style|textarea)([a-z][\\\\w-]*)(?:attribute)*? */?>(?=[ \\\\t]*(?:\\\\n|$))[\\\\s\\\\S]*?(?:(?:\\\\n *)+\\\\n|$)|</(?!script|pre|style|textarea)[a-z][\\\\w-]*\\\\s*>(?=[ \\\\t]*(?:\\\\n|$))[\\\\s\\\\S]*?(?:(?:\\\\n *)+\\\\n|$))\",def:/^ {0,3}\\[(label)\\]: *(?:\\n *)?([^<\\s][^\\s]*|<.*?>)(?:(?: +(?:\\n *)?| *\\n *)(title))? *(?:\\n+|$)/,table:yh,lheading:/^((?:.|\\n(?!\\n))+?)\\n {0,3}(=+|-+) *(?:\\n+|$)/,_paragraph:/^([^\\n]+(?:\\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\\n)[^\\n]+)*)/,text:/^[^\\n]+/};ot._label=/(?!\\s*\\])(?:\\\\.|[^\\[\\]\\\\])+/;ot._title=/(?:\"(?:\\\\\"?|[^\"\\\\])*\"|'[^'\\n]*(?:\\n[^'\\n]+)*\\n?'|\\([^()]*\\))/;ot.def=ln(ot.def).replace(\"label\",ot._label).replace(\"title\",ot._title).getRegex();ot.bullet=/(?:[*+-]|\\d{1,9}[.)])/;ot.listItemStart=ln(/^( *)(bull) */).replace(\"bull\",ot.bullet).getRegex();ot.list=ln(ot.list).replace(/bull/g,ot.bullet).replace(\"hr\",\"\\\\n+(?=\\\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\\\* *){3,})(?:\\\\n+|$))\").replace(\"def\",\"\\\\n+(?=\"+ot.def.source+\")\").getRegex();ot._tag=\"address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul\";ot._comment=/<!--(?!-?>)[\\s\\S]*?(?:-->|$)/;ot.html=ln(ot.html,\"i\").replace(\"comment\",ot._comment).replace(\"tag\",ot._tag).replace(\"attribute\",/ +[a-zA-Z:_][\\w.:-]*(?: *= *\"[^\"\\n]*\"| *= *'[^'\\n]*'| *= *[^\\s\"'=<>`]+)?/).getRegex();ot.paragraph=ln(ot._paragraph).replace(\"hr\",ot.hr).replace(\"heading\",\" {0,3}#{1,6} \").replace(\"|lheading\",\"\").replace(\"|table\",\"\").replace(\"blockquote\",\" {0,3}>\").replace(\"fences\",\" {0,3}(?:`{3,}(?=[^`\\\\n]*\\\\n)|~{3,})[^\\\\n]*\\\\n\").replace(\"list\",\" {0,3}(?:[*+-]|1[.)]) \").replace(\"html\",\"</?(?:tag)(?: +|\\\\n|/?>)|<(?:script|pre|style|textarea|!--)\").replace(\"tag\",ot._tag).getRegex();ot.blockquote=ln(ot.blockquote).replace(\"paragraph\",ot.paragraph).getRegex();ot.normal={...ot};ot.gfm={...ot.normal,table:\"^ *([^\\\\n ].*\\\\|.*)\\\\n {0,3}(?:\\\\| *)?(:?-+:? *(?:\\\\| *:?-+:? *)*)(?:\\\\| *)?(?:\\\\n((?:(?! *\\\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\\\n|$))*)\\\\n*|$)\"};ot.gfm.table=ln(ot.gfm.table).replace(\"hr\",ot.hr).replace(\"heading\",\" {0,3}#{1,6} \").replace(\"blockquote\",\" {0,3}>\").replace(\"code\",\" {4}[^\\\\n]\").replace(\"fences\",\" {0,3}(?:`{3,}(?=[^`\\\\n]*\\\\n)|~{3,})[^\\\\n]*\\\\n\").replace(\"list\",\" {0,3}(?:[*+-]|1[.)]) \").replace(\"html\",\"</?(?:tag)(?: +|\\\\n|/?>)|<(?:script|pre|style|textarea|!--)\").replace(\"tag\",ot._tag).getRegex();ot.gfm.paragraph=ln(ot._paragraph).replace(\"hr\",ot.hr).replace(\"heading\",\" {0,3}#{1,6} \").replace(\"|lheading\",\"\").replace(\"table\",ot.gfm.table).replace(\"blockquote\",\" {0,3}>\").replace(\"fences\",\" {0,3}(?:`{3,}(?=[^`\\\\n]*\\\\n)|~{3,})[^\\\\n]*\\\\n\").replace(\"list\",\" {0,3}(?:[*+-]|1[.)]) \").replace(\"html\",\"</?(?:tag)(?: +|\\\\n|/?>)|<(?:script|pre|style|textarea|!--)\").replace(\"tag\",ot._tag).getRegex();ot.pedantic={...ot.normal,html:ln(`^ *(?:comment *(?:\\\\n|\\\\s*$)|<(tag)[\\\\s\\\\S]+?</\\\\1> *(?:\\\\n{2,}|\\\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\\\s[^'\"/>\\\\s]*)*?/?> *(?:\\\\n{2,}|\\\\s*$))`).replace(\"comment\",ot._comment).replace(/tag/g,\"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\\\b)\\\\w+(?!:|[^\\\\w\\\\s@]*@)\\\\b\").getRegex(),def:/^ *\\[([^\\]]+)\\]: *<?([^\\s>]+)>?(?: +([\"(][^\\n]+[\")]))? *(?:\\n+|$)/,heading:/^(#{1,6})(.*)(?:\\n+|$)/,fences:yh,lheading:/^(.+?)\\n {0,3}(=+|-+) *(?:\\n+|$)/,paragraph:ln(ot.normal._paragraph).replace(\"hr\",ot.hr).replace(\"heading\",` *#{1,6} *[^\n]`).replace(\"lheading\",ot.lheading).replace(\"blockquote\",\" {0,3}>\").replace(\"|fences\",\"\").replace(\"|list\",\"\").replace(\"|html\",\"\").getRegex()};const We={escape:/^\\\\([!\"#$%&'()*+,\\-./:;<=>?@\\[\\]\\\\^_`{|}~])/,autolink:/^<(scheme:[^\\s\\x00-\\x1f<>]*|email)>/,url:yh,tag:\"^comment|^</[a-zA-Z][\\\\w:-]*\\\\s*>|^<[a-zA-Z][\\\\w-]*(?:attribute)*?\\\\s*/?>|^<\\\\?[\\\\s\\\\S]*?\\\\?>|^<![a-zA-Z]+\\\\s[\\\\s\\\\S]*?>|^<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?\\\\]\\\\]>\",link:/^!?\\[(label)\\]\\(\\s*(href)(?:\\s+(title))?\\s*\\)/,reflink:/^!?\\[(label)\\]\\[(ref)\\]/,nolink:/^!?\\[(ref)\\](?:\\[\\])?/,reflinkSearch:\"reflink|nolink(?!\\\\()\",emStrong:{lDelim:/^(?:\\*+(?:([punct_])|[^\\s*]))|^_+(?:([punct*])|([^\\s_]))/,rDelimAst:/^(?:[^_*\\\\]|\\\\.)*?\\_\\_(?:[^_*\\\\]|\\\\.)*?\\*(?:[^_*\\\\]|\\\\.)*?(?=\\_\\_)|(?:[^*\\\\]|\\\\.)+(?=[^*])|[punct_](\\*+)(?=[\\s]|$)|(?:[^punct*_\\s\\\\]|\\\\.)(\\*+)(?=[punct_\\s]|$)|[punct_\\s](\\*+)(?=[^punct*_\\s])|[\\s](\\*+)(?=[punct_])|[punct_](\\*+)(?=[punct_])|(?:[^punct*_\\s\\\\]|\\\\.)(\\*+)(?=[^punct*_\\s])/,rDelimUnd:/^(?:[^_*\\\\]|\\\\.)*?\\*\\*(?:[^_*\\\\]|\\\\.)*?\\_(?:[^_*\\\\]|\\\\.)*?(?=\\*\\*)|(?:[^_\\\\]|\\\\.)+(?=[^_])|[punct*](\\_+)(?=[\\s]|$)|(?:[^punct*_\\s\\\\]|\\\\.)(\\_+)(?=[punct*\\s]|$)|[punct*\\s](\\_+)(?=[^punct*_\\s])|[\\s](\\_+)(?=[punct*])|[punct*](\\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\\s\\S]*?[^`])\\1(?!`)/,br:/^( {2,}|\\\\)\\n(?!\\s*$)/,del:yh,text:/^(`+|[^`])(?:(?= {2,}\\n)|[\\s\\S]*?(?:(?=[\\\\<!\\[`*_]|\\b_|$)|[^ ](?= {2,}\\n)))/,punctuation:/^([\\spunctuation])/};We._punctuation=\"!\\\"#$%&'()+\\\\-.,/:;<=>?@\\\\[\\\\]`^{|}~\";We.punctuation=ln(We.punctuation).replace(/punctuation/g,We._punctuation).getRegex();We.blockSkip=/\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>/g;We.escapedEmSt=/(?:^|[^\\\\])(?:\\\\\\\\)*\\\\[*_]/g;We._comment=ln(ot._comment).replace(\"(?:-->|$)\",\"-->\").getRegex();We.emStrong.lDelim=ln(We.emStrong.lDelim).replace(/punct/g,We._punctuation).getRegex();We.emStrong.rDelimAst=ln(We.emStrong.rDelimAst,\"g\").replace(/punct/g,We._punctuation).getRegex();We.emStrong.rDelimUnd=ln(We.emStrong.rDelimUnd,\"g\").replace(/punct/g,We._punctuation).getRegex();We._escapes=/\\\\([!\"#$%&'()*+,\\-./:;<=>?@\\[\\]\\\\^_`{|}~])/g;We._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;We._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;We.autolink=ln(We.autolink).replace(\"scheme\",We._scheme).replace(\"email\",We._email).getRegex();We._attribute=/\\s+[a-zA-Z:_][\\w.:-]*(?:\\s*=\\s*\"[^\"]*\"|\\s*=\\s*'[^']*'|\\s*=\\s*[^\\s\"'=<>`]+)?/;We.tag=ln(We.tag).replace(\"comment\",We._comment).replace(\"attribute\",We._attribute).getRegex();We._label=/(?:\\[(?:\\\\.|[^\\[\\]\\\\])*\\]|\\\\.|`[^`]*`|[^\\[\\]\\\\`])*?/;We._href=/<(?:\\\\.|[^\\n<>\\\\])+>|[^\\s\\x00-\\x1f]*/;We._title=/\"(?:\\\\\"?|[^\"\\\\])*\"|'(?:\\\\'?|[^'\\\\])*'|\\((?:\\\\\\)?|[^)\\\\])*\\)/;We.link=ln(We.link).replace(\"label\",We._label).replace(\"href\",We._href).replace(\"title\",We._title).getRegex();We.reflink=ln(We.reflink).replace(\"label\",We._label).replace(\"ref\",ot._label).getRegex();We.nolink=ln(We.nolink).replace(\"ref\",ot._label).getRegex();We.reflinkSearch=ln(We.reflinkSearch,\"g\").replace(\"reflink\",We.reflink).replace(\"nolink\",We.nolink).getRegex();We.normal={...We};We.pedantic={...We.normal,strong:{start:/^__|\\*\\*/,middle:/^__(?=\\S)([\\s\\S]*?\\S)__(?!_)|^\\*\\*(?=\\S)([\\s\\S]*?\\S)\\*\\*(?!\\*)/,endAst:/\\*\\*(?!\\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\\*/,middle:/^()\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)|^_(?=\\S)([\\s\\S]*?\\S)_(?!_)/,endAst:/\\*(?!\\*)/g,endUnd:/_(?!_)/g},link:ln(/^!?\\[(label)\\]\\((.*?)\\)/).replace(\"label\",We._label).getRegex(),reflink:ln(/^!?\\[(label)\\]\\s*\\[([^\\]]*)\\]/).replace(\"label\",We._label).getRegex()};We.gfm={...We.normal,escape:ln(We.escape).replace(\"])\",\"~|])\").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\\/\\/|www\\.)(?:[a-zA-Z0-9\\-]+\\.?)+[^\\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'\"~()&]+|\\([^)]*\\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'\"~)]+(?!$))+/,del:/^(~~?)(?=[^\\s~])([\\s\\S]*?[^\\s~])\\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\\n)|(?=[a-zA-Z0-9.!#$%&'*+\\/=?_`{\\|}~-]+@)|[\\s\\S]*?(?:(?=[\\\\<!\\[`*~_]|\\b_|https?:\\/\\/|ftp:\\/\\/|www\\.|$)|[^ ](?= {2,}\\n)|[^a-zA-Z0-9.!#$%&'*+\\/=?_`{\\|}~-](?=[a-zA-Z0-9.!#$%&'*+\\/=?_`{\\|}~-]+@)))/};We.gfm.url=ln(We.gfm.url,\"i\").replace(\"email\",We.gfm._extended_email).getRegex();We.breaks={...We.gfm,br:ln(We.br).replace(\"{2,}\",\"*\").getRegex(),text:ln(We.gfm.text).replace(\"\\\\b_\",\"\\\\b_| {2,}\\\\n\").replace(/\\{2,\\}/g,\"*\").getRegex()};function rL(e){return e.replace(/---/g,\"—\").replace(/--/g,\"–\").replace(/(^|[-\\u2014/(\\[{\"\\s])'/g,\"$1‘\").replace(/'/g,\"’\").replace(/(^|[-\\u2014/(\\[{\\u2018\\s])\"/g,\"$1“\").replace(/\"/g,\"”\").replace(/\\.{3}/g,\"…\")}function QC(e){let t=\"\",n,a;const o=e.length;for(n=0;n<o;n++)a=e.charCodeAt(n),Math.random()>.5&&(a=\"x\"+a.toString(16)),t+=\"&#\"+a+\";\";return t}class cs{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||cl,this.options.tokenizer=this.options.tokenizer||new Ub,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:ot.normal,inline:We.normal};this.options.pedantic?(n.block=ot.pedantic,n.inline=We.pedantic):this.options.gfm&&(n.block=ot.gfm,this.options.breaks?n.inline=We.breaks:n.inline=We.gfm),this.tokenizer.rules=n}static get rules(){return{block:ot,inline:We}}static lex(t,n){return new cs(n).lex(t)}static lexInline(t,n){return new cs(n).inlineTokens(t)}lex(t){t=t.replace(/\\r\\n|\\r/g,`\n`),this.blockTokens(t,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\\t/g,\" \").replace(/^ +$/gm,\"\"):t=t.replace(/^( *)(\\t+)/gm,(u,f,m)=>f+\" \".repeat(m.length));let a,o,s,c;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(a=u.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))){if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length),a.raw.length===1&&n.length>0?n[n.length-1].raw+=`\n`:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length),o=n[n.length-1],o&&(o.type===\"paragraph\"||o.type===\"text\")?(o.raw+=`\n`+a.raw,o.text+=`\n`+a.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length),o=n[n.length-1],o&&(o.type===\"paragraph\"||o.type===\"text\")?(o.raw+=`\n`+a.raw,o.text+=`\n`+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0;const f=t.slice(1);let m;this.options.extensions.startBlock.forEach(function(v){m=v.call({lexer:this},f),typeof m==\"number\"&&m>=0&&(u=Math.min(u,m))}),u<1/0&&u>=0&&(s=t.substring(0,u+1))}if(this.state.top&&(a=this.tokenizer.paragraph(s))){o=n[n.length-1],c&&o.type===\"paragraph\"?(o.raw+=`\n`+a.raw,o.text+=`\n`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a),c=s.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length),o=n[n.length-1],o&&o.type===\"text\"?(o.raw+=`\n`+a.raw,o.text+=`\n`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a);continue}if(t){const u=\"Infinite loop on byte: \"+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let a,o,s,c=t,u,f,m;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(c))!=null;)v.includes(u[0].slice(u[0].lastIndexOf(\"[\")+1,-1))&&(c=c.slice(0,u.index)+\"[\"+XC(\"a\",u[0].length-2)+\"]\"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(c))!=null;)c=c.slice(0,u.index)+\"[\"+XC(\"a\",u[0].length-2)+\"]\"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.escapedEmSt.exec(c))!=null;)c=c.slice(0,u.index+u[0].length-2)+\"++\"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(f||(m=\"\"),f=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(v=>(a=v.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))){if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),o=n[n.length-1],o&&a.type===\"text\"&&o.type===\"text\"?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length),o=n[n.length-1],o&&a.type===\"text\"&&o.type===\"text\"?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,c,m)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t,QC)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t,QC))){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let v=1/0;const y=t.slice(1);let x;this.options.extensions.startInline.forEach(function(w){x=w.call({lexer:this},y),typeof x==\"number\"&&x>=0&&(v=Math.min(v,x))}),v<1/0&&v>=0&&(s=t.substring(0,v+1))}if(a=this.tokenizer.inlineText(s,rL)){t=t.substring(a.raw.length),a.raw.slice(-1)!==\"_\"&&(m=a.raw.slice(-1)),f=!0,o=n[n.length-1],o&&o.type===\"text\"?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(t){const v=\"Infinite loop on byte: \"+t.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return n}}class Vb{constructor(t){this.options=t||cl}code(t,n,a){const o=(n||\"\").match(/\\S*/)[0];if(this.options.highlight){const s=this.options.highlight(t,o);s!=null&&s!==t&&(a=!0,t=s)}return t=t.replace(/\\n$/,\"\")+`\n`,o?'<pre><code class=\"'+this.options.langPrefix+yr(o)+'\">'+(a?t:yr(t,!0))+`</code></pre>\n`:\"<pre><code>\"+(a?t:yr(t,!0))+`</code></pre>\n`}blockquote(t){return`<blockquote>\n${t}</blockquote>\n`}html(t){return t}heading(t,n,a,o){if(this.options.headerIds){const s=this.options.headerPrefix+o.slug(a);return`<h${n} id=\"${s}\">${t}</h${n}>\n`}return`<h${n}>${t}</h${n}>\n`}hr(){return this.options.xhtml?`<hr/>\n`:`<hr>\n`}list(t,n,a){const o=n?\"ol\":\"ul\",s=n&&a!==1?' start=\"'+a+'\"':\"\";return\"<\"+o+s+`>\n`+t+\"</\"+o+`>\n`}listitem(t){return`<li>${t}</li>\n`}checkbox(t){return\"<input \"+(t?'checked=\"\" ':\"\")+'disabled=\"\" type=\"checkbox\"'+(this.options.xhtml?\" /\":\"\")+\"> \"}paragraph(t){return`<p>${t}</p>\n`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>\n<thead>\n`+t+`</thead>\n`+n+`</table>\n`}tablerow(t){return`<tr>\n${t}</tr>\n`}tablecell(t,n){const a=n.header?\"th\":\"td\";return(n.align?`<${a} align=\"${n.align}\">`:`<${a}>`)+t+`</${a}>\n`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?\"<br/>\":\"<br>\"}del(t){return`<del>${t}</del>`}link(t,n,a){if(t=GC(this.options.sanitize,this.options.baseUrl,t),t===null)return a;let o='<a href=\"'+t+'\"';return n&&(o+=' title=\"'+n+'\"'),o+=\">\"+a+\"</a>\",o}image(t,n,a){if(t=GC(this.options.sanitize,this.options.baseUrl,t),t===null)return a;let o=`<img src=\"${t}\" alt=\"${a}\"`;return n&&(o+=` title=\"${n}\"`),o+=this.options.xhtml?\"/>\":\">\",o}text(t){return t}}class UT{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,a){return\"\"+a}image(t,n,a){return\"\"+a}br(){return\"\"}}class VT{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\\/a-z].*?>/ig,\"\").replace(/[\\u2000-\\u206F\\u2E00-\\u2E7F\\\\'!\"#$%&()*+,./:;<=>?@[\\]^`{|}~]/g,\"\").replace(/\\s/g,\"-\")}getNextSafeSlug(t,n){let a=t,o=0;if(this.seen.hasOwnProperty(a)){o=this.seen[t];do o++,a=t+\"-\"+o;while(this.seen.hasOwnProperty(a))}return n||(this.seen[t]=o,this.seen[a]=0),a}slug(t,n={}){const a=this.serialize(t);return this.getNextSafeSlug(a,n.dryrun)}}class us{constructor(t){this.options=t||cl,this.options.renderer=this.options.renderer||new Vb,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new UT,this.slugger=new VT}static parse(t,n){return new us(n).parse(t)}static parseInline(t,n){return new us(n).parseInline(t)}parse(t,n=!0){let a=\"\",o,s,c,u,f,m,v,y,x,w,S,C,R,_,E,T,A,D,z;const O=t.length;for(o=0;o<O;o++){if(w=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[w.type]&&(z=this.options.extensions.renderers[w.type].call({parser:this},w),z!==!1||![\"space\",\"hr\",\"heading\",\"code\",\"table\",\"blockquote\",\"list\",\"html\",\"paragraph\",\"text\"].includes(w.type))){a+=z||\"\";continue}switch(w.type){case\"space\":continue;case\"hr\":{a+=this.renderer.hr();continue}case\"heading\":{a+=this.renderer.heading(this.parseInline(w.tokens),w.depth,BT(this.parseInline(w.tokens,this.textRenderer)),this.slugger);continue}case\"code\":{a+=this.renderer.code(w.text,w.lang,w.escaped);continue}case\"table\":{for(y=\"\",v=\"\",u=w.header.length,s=0;s<u;s++)v+=this.renderer.tablecell(this.parseInline(w.header[s].tokens),{header:!0,align:w.align[s]});for(y+=this.renderer.tablerow(v),x=\"\",u=w.rows.length,s=0;s<u;s++){for(m=w.rows[s],v=\"\",f=m.length,c=0;c<f;c++)v+=this.renderer.tablecell(this.parseInline(m[c].tokens),{header:!1,align:w.align[c]});x+=this.renderer.tablerow(v)}a+=this.renderer.table(y,x);continue}case\"blockquote\":{x=this.parse(w.tokens),a+=this.renderer.blockquote(x);continue}case\"list\":{for(S=w.ordered,C=w.start,R=w.loose,u=w.items.length,x=\"\",s=0;s<u;s++)E=w.items[s],T=E.checked,A=E.task,_=\"\",E.task&&(D=this.renderer.checkbox(T),R?E.tokens.length>0&&E.tokens[0].type===\"paragraph\"?(E.tokens[0].text=D+\" \"+E.tokens[0].text,E.tokens[0].tokens&&E.tokens[0].tokens.length>0&&E.tokens[0].tokens[0].type===\"text\"&&(E.tokens[0].tokens[0].text=D+\" \"+E.tokens[0].tokens[0].text)):E.tokens.unshift({type:\"text\",text:D}):_+=D),_+=this.parse(E.tokens,R),x+=this.renderer.listitem(_,A,T);a+=this.renderer.list(x,S,C);continue}case\"html\":{a+=this.renderer.html(w.text);continue}case\"paragraph\":{a+=this.renderer.paragraph(this.parseInline(w.tokens));continue}case\"text\":{for(x=w.tokens?this.parseInline(w.tokens):w.text;o+1<O&&t[o+1].type===\"text\";)w=t[++o],x+=`\n`+(w.tokens?this.parseInline(w.tokens):w.text);a+=n?this.renderer.paragraph(x):x;continue}default:{const H='Token with \"'+w.type+'\" type was not found.';if(this.options.silent){console.error(H);return}else throw new Error(H)}}}return a}parseInline(t,n){n=n||this.renderer;let a=\"\",o,s,c;const u=t.length;for(o=0;o<u;o++){if(s=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(c=this.options.extensions.renderers[s.type].call({parser:this},s),c!==!1||![\"escape\",\"html\",\"link\",\"image\",\"strong\",\"em\",\"codespan\",\"br\",\"del\",\"text\"].includes(s.type))){a+=c||\"\";continue}switch(s.type){case\"escape\":{a+=n.text(s.text);break}case\"html\":{a+=n.html(s.text);break}case\"link\":{a+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case\"image\":{a+=n.image(s.href,s.title,s.text);break}case\"strong\":{a+=n.strong(this.parseInline(s.tokens,n));break}case\"em\":{a+=n.em(this.parseInline(s.tokens,n));break}case\"codespan\":{a+=n.codespan(s.text);break}case\"br\":{a+=n.br();break}case\"del\":{a+=n.del(this.parseInline(s.tokens,n));break}case\"text\":{a+=n.text(s.text);break}default:{const f='Token with \"'+s.type+'\" type was not found.';if(this.options.silent){console.error(f);return}else throw new Error(f)}}}return a}}class Jy{constructor(t){this.options=t||cl}static passThroughHooks=new Set([\"preprocess\",\"postprocess\"]);preprocess(t){return t}postprocess(t){return t}}function aL(e,t,n){return a=>{if(a.message+=`\nPlease report this to https://github.com/markedjs/marked.`,e){const o=\"<p>An error occurred:</p><pre>\"+yr(a.message+\"\",!0)+\"</pre>\";if(t)return Promise.resolve(o);if(n){n(null,o);return}return o}if(t)return Promise.reject(a);if(n){n(a);return}throw a}}function WT(e,t){return(n,a,o)=>{typeof a==\"function\"&&(o=a,a=null);const s={...a};a={...lt.defaults,...s};const c=aL(a.silent,a.async,o);if(typeof n>\"u\"||n===null)return c(new Error(\"marked(): input parameter is undefined or null\"));if(typeof n!=\"string\")return c(new Error(\"marked(): input parameter is of type \"+Object.prototype.toString.call(n)+\", string expected\"));if(tL(a),a.hooks&&(a.hooks.options=a),o){const u=a.highlight;let f;try{a.hooks&&(n=a.hooks.preprocess(n)),f=e(n,a)}catch(y){return c(y)}const m=function(y){let x;if(!y)try{a.walkTokens&&lt.walkTokens(f,a.walkTokens),x=t(f,a),a.hooks&&(x=a.hooks.postprocess(x))}catch(w){y=w}return a.highlight=u,y?c(y):o(null,x)};if(!u||u.length<3||(delete a.highlight,!f.length))return m();let v=0;lt.walkTokens(f,function(y){y.type===\"code\"&&(v++,setTimeout(()=>{u(y.text,y.lang,function(x,w){if(x)return m(x);w!=null&&w!==y.text&&(y.text=w,y.escaped=!0),v--,v===0&&m()})},0))}),v===0&&m();return}if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(n):n).then(u=>e(u,a)).then(u=>a.walkTokens?Promise.all(lt.walkTokens(u,a.walkTokens)).then(()=>u):u).then(u=>t(u,a)).then(u=>a.hooks?a.hooks.postprocess(u):u).catch(c);try{a.hooks&&(n=a.hooks.preprocess(n));const u=e(n,a);a.walkTokens&&lt.walkTokens(u,a.walkTokens);let f=t(u,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(u){return c(u)}}}function lt(e,t,n){return WT(cs.lex,us.parse)(e,t,n)}lt.options=lt.setOptions=function(e){return lt.defaults={...lt.defaults,...e},FP(lt.defaults),lt};lt.getDefaults=qT;lt.defaults=cl;lt.use=function(...e){const t=lt.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(n=>{const a={...n};if(a.async=lt.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error(\"extension name required\");if(o.renderer){const s=t.renderers[o.name];s?t.renderers[o.name]=function(...c){let u=o.renderer.apply(this,c);return u===!1&&(u=s.apply(this,c)),u}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!==\"block\"&&o.level!==\"inline\")throw new Error(\"extension level must be 'block' or 'inline'\");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level===\"block\"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level===\"inline\"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),a.extensions=t),n.renderer){const o=lt.defaults.renderer||new Vb;for(const s in n.renderer){const c=o[s];o[s]=(...u)=>{let f=n.renderer[s].apply(o,u);return f===!1&&(f=c.apply(o,u)),f}}a.renderer=o}if(n.tokenizer){const o=lt.defaults.tokenizer||new Ub;for(const s in n.tokenizer){const c=o[s];o[s]=(...u)=>{let f=n.tokenizer[s].apply(o,u);return f===!1&&(f=c.apply(o,u)),f}}a.tokenizer=o}if(n.hooks){const o=lt.defaults.hooks||new Jy;for(const s in n.hooks){const c=o[s];Jy.passThroughHooks.has(s)?o[s]=u=>{if(lt.defaults.async)return Promise.resolve(n.hooks[s].call(o,u)).then(m=>c.call(o,m));const f=n.hooks[s].call(o,u);return c.call(o,f)}:o[s]=(...u)=>{let f=n.hooks[s].apply(o,u);return f===!1&&(f=c.apply(o,u)),f}}a.hooks=o}if(n.walkTokens){const o=lt.defaults.walkTokens;a.walkTokens=function(s){let c=[];return c.push(n.walkTokens.call(this,s)),o&&(c=c.concat(o.call(this,s))),c}}lt.setOptions(a)})};lt.walkTokens=function(e,t){let n=[];for(const a of e)switch(n=n.concat(t.call(lt,a)),a.type){case\"table\":{for(const o of a.header)n=n.concat(lt.walkTokens(o.tokens,t));for(const o of a.rows)for(const s of o)n=n.concat(lt.walkTokens(s.tokens,t));break}case\"list\":{n=n.concat(lt.walkTokens(a.items,t));break}default:lt.defaults.extensions&&lt.defaults.extensions.childTokens&&lt.defaults.extensions.childTokens[a.type]?lt.defaults.extensions.childTokens[a.type].forEach(function(o){n=n.concat(lt.walkTokens(a[o],t))}):a.tokens&&(n=n.concat(lt.walkTokens(a.tokens,t)))}return n};lt.parseInline=WT(cs.lexInline,us.parseInline);lt.Parser=us;lt.parser=us.parse;lt.Renderer=Vb;lt.TextRenderer=UT;lt.Lexer=cs;lt.lexer=cs.lex;lt.Tokenizer=Ub;lt.Slugger=VT;lt.Hooks=Jy;lt.parse=lt;lt.options;lt.setOptions;lt.use;lt.walkTokens;lt.parseInline;us.parse;cs.lex;const iL=Dr(\"div\")({name:\"MarkdownContainer\",class:\"gdg-mnuv029\",propsAsIs:!1});class oL extends Dt.PureComponent{targetElement=null;renderMarkdownIntoDiv(){const{targetElement:t,props:n}=this;if(t===null)return;const{contents:a,createNode:o}=n,s=lt(a),c=document.createRange();c.selectNodeContents(t),c.deleteContents();let u=o?.(s);if(u===void 0){const m=document.createElement(\"template\");m.innerHTML=s,u=m.content}t.append(u);const f=t.getElementsByTagName(\"a\");for(const m of f)m.target=\"_blank\",m.rel=\"noreferrer noopener\"}containerRefHook=t=>{this.targetElement=t,this.renderMarkdownIntoDiv()};render(){return this.renderMarkdownIntoDiv(),Dt.createElement(iL,{ref:this.containerRefHook})}}const sL=Dr(\"textarea\")({name:\"InputBox\",class:\"gdg-izpuzkl\",propsAsIs:!1}),lL=Dr(\"div\")({name:\"ShadowBox\",class:\"gdg-s69h75o\",propsAsIs:!1}),cL=Dr(\"div\")({name:\"GrowingEntryStyle\",class:\"gdg-g1y0xocz\",propsAsIs:!1});let ZC=0;const em=e=>{const{placeholder:t,value:n,onKeyDown:a,highlight:o,altNewline:s,validatedSelection:c,...u}=e,{onChange:f,className:m}=u,v=h.useRef(null),y=n??\"\";ma(f!==void 0,\"GrowingEntry must be a controlled input area\");const[x]=h.useState(()=>\"input-box-\"+(ZC=(ZC+1)%1e7));h.useEffect(()=>{const S=v.current;if(S===null||S.disabled)return;const C=y.toString().length;S.focus(),S.setSelectionRange(o?0:C,C)},[]),h.useLayoutEffect(()=>{if(c!==void 0){const S=typeof c==\"number\"?[c,null]:c;v.current?.setSelectionRange(S[0],S[1])}},[c]);const w=h.useCallback(S=>{S.key===\"Enter\"&&S.shiftKey&&s===!0||a?.(S)},[s,a]);return h.createElement(cL,{className:\"gdg-growing-entry\"},h.createElement(lL,{className:m},y+`\n`),h.createElement(sL,{...u,className:(m??\"\")+\" gdg-input\",id:x,ref:v,onKeyDown:w,value:y,placeholder:t,dir:\"auto\"}))},Lv={};let Wo=null;function uL(){const e=document.createElement(\"div\");return e.style.opacity=\"0\",e.style.pointerEvents=\"none\",e.style.position=\"fixed\",document.body.append(e),e}function eb(e){const t=e.toLowerCase().trim();if(Lv[t]!==void 0)return Lv[t];Wo=Wo||uL(),Wo.style.color=\"#000\",Wo.style.color=t;const n=getComputedStyle(Wo).color;Wo.style.color=\"#fff\",Wo.style.color=t;const a=getComputedStyle(Wo).color;if(a!==n)return[0,0,0,1];let o=a.replace(/[^\\d.,]/g,\"\").split(\",\").map(Number.parseFloat);return o.length<4&&o.push(1),o=o.map(s=>Number.isNaN(s)?0:s),Lv[t]=o,o}function al(e,t){const[n,a,o]=eb(e);return`rgba(${n}, ${a}, ${o}, ${t})`}const JC=new Map;function eR(e,t){const n=`${e}-${t}`,a=JC.get(n);if(a!==void 0)return a;const o=pa(e,t);return JC.set(n,o),o}function pa(e,t){if(t===void 0)return e;const[n,a,o,s]=eb(e);if(s===1)return e;const[c,u,f,m]=eb(t),v=s+m*(1-s),y=(s*n+m*c*(1-s))/v,x=(s*a+m*u*(1-s))/v,w=(s*o+m*f*(1-s))/v;return`rgba(${y}, ${x}, ${w}, ${v})`}var oc=new Map,cc=new Map,tb=new Map;function dL(){oc.clear(),tb.clear(),cc.clear()}function fL(e,t,n,a,o){var s,c,u;let f=0,m={};for(let y of e)f+=(s=n.get(y))!=null?s:o,m[y]=((c=m[y])!=null?c:0)+1;let v=t-f;for(let y of Object.keys(m)){let x=m[y],w=(u=n.get(y))!=null?u:o,S=w*x/f,C=v*S*a/x,R=w+C;n.set(y,R)}}function hL(e,t){var n;let a=new Map,o=0;for(let m of\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?\"){let v=e.measureText(m).width;a.set(m,v),o+=v}let s=o/a.size,c=3,u=(t/s+c)/(c+1),f=a.keys();for(let m of f)a.set(m,((n=a.get(m))!=null?n:s)*u);return a}function Vu(e,t,n,a){var o,s;let c=cc.get(n);if(a&&c!==void 0&&c.count>2e4){let m=tb.get(n);if(m===void 0&&(m=hL(e,c.size),tb.set(n,m)),c.count>5e5){let y=0;for(let x of t)y+=(o=m.get(x))!=null?o:c.size;return y*1.01}let v=e.measureText(t);return fL(t,v.width,m,Math.max(.05,1-c.count/2e5),c.size),cc.set(n,{count:c.count+t.length,size:c.size}),v.width}let u=e.measureText(t),f=u.width/t.length;if(((s=c?.count)!=null?s:0)>2e4)return u.width;if(c===void 0)cc.set(n,{count:t.length,size:f});else{let m=f-c.size,v=t.length/(c.count+t.length),y=c.size+m*v;cc.set(n,{count:c.count+t.length,size:y})}return u.width}function mL(e,t,n,a,o,s,c,u){if(t.length<=1)return t.length;if(o<n)return-1;let f=Math.floor(n/o*s),m=Vu(e,t.slice(0,Math.max(0,f)),a,c);if(m!==n)if(m<n){for(;m<n;)f++,m=Vu(e,t.slice(0,Math.max(0,f)),a,c);f--}else for(;m>n;){let v=t.lastIndexOf(\" \",f-1);v>0?f=v:f--,m=Vu(e,t.slice(0,Math.max(0,f)),a,c)}if(t[f]!==\" \"){let v=0;v=t.lastIndexOf(\" \",f),v>0&&(f=v)}return f}function pL(e,t,n,a,o,s){let c=`${t}_${n}_${a}px`,u=oc.get(c);if(u!==void 0)return u;if(a<=0)return[];let f=[],m=t.split(`\n`),v=cc.get(n),y=v===void 0?t.length:a/v.size*1.5,x=o&&v!==void 0&&v.count>2e4;for(let w of m){let S=Vu(e,w.slice(0,Math.max(0,y)),n,x),C=Math.min(w.length,y);if(S<=a)f.push(w);else{for(;S>a;){let R=mL(e,w,a,n,S,C,x),_=w.slice(0,Math.max(0,R));w=w.slice(_.length),f.push(_),S=Vu(e,w.slice(0,Math.max(0,y)),n,x),C=Math.min(w.length,y)}S>0&&f.push(w)}}return f=f.map((w,S)=>S===0?w.trimEnd():w.trim()),oc.set(c,f),oc.size>500&&oc.delete(oc.keys().next().value),f}function gL(e,t){return Dt.useMemo(()=>e.map((n,a)=>({group:n.group,grow:n.grow,hasMenu:n.hasMenu,icon:n.icon,id:n.id,menuIcon:n.menuIcon,overlayIcon:n.overlayIcon,sourceIndex:a,sticky:a<t,style:n.style,themeOverride:n.themeOverride,title:n.title,trailingRowOptions:n.trailingRowOptions,width:n.width,growOffset:n.growOffset,rowMarker:n.rowMarker,rowMarkerChecked:n.rowMarkerChecked})),[e,t])}function vL(e,t){const[n,a]=t;if(e.columns.hasIndex(n)||e.rows.hasIndex(a))return!0;if(e.current!==void 0){if(Wu(e.current.cell,t))return!0;const o=[e.current.range,...e.current.rangeStack];for(const s of o)if(n>=s.x&&n<s.x+s.width&&a>=s.y&&a<s.y+s.height)return!0}return!1}function rd(e,t){return(e??\"\")===(t??\"\")}function yL(e,t,n){return n.current===void 0||e[1]!==n.current.cell[1]?!1:t.span===void 0?n.current.cell[0]===e[0]:n.current.cell[0]>=t.span[0]&&n.current.cell[0]<=t.span[1]}function GT(e,t){const[n,a]=e;return n>=t.x&&n<t.x+t.width&&a>=t.y&&a<t.y+t.height}function Wu(e,t){return e?.[0]===t?.[0]&&e?.[1]===t?.[1]}function YT(e){return[e.x+e.width-1,e.y+e.height-1]}function tR(e,t,n){const a=n.x,o=n.x+n.width-1,s=n.y,c=n.y+n.height-1,[u,f]=e;if(f<s||f>c)return!1;if(t.span===void 0)return u>=a&&u<=o;const[m,v]=t.span;return m>=a&&m<=o||v>=a&&m<=o||m<a&&v>o}function bL(e,t,n,a){let o=0;if(n.current===void 0)return o;const s=n.current.range;(a||s.height*s.width>1)&&tR(e,t,s)&&o++;for(const c of n.current.rangeStack)tR(e,t,c)&&o++;return o}function XT(e,t){let n=e;if(t!==void 0){let a=[...e];const o=n[t.src];t.src>t.dest?(a.splice(t.src,1),a.splice(t.dest,0,o)):(a.splice(t.dest+1,0,o),a.splice(t.src,1)),a=a.map((s,c)=>({...s,sticky:e[c].sticky})),n=a}return n}function Ec(e,t){let n=0;const a=XT(e,t);for(let o=0;o<a.length;o++){const s=a[o];if(s.sticky)n+=s.width;else break}return n}function ul(e,t,n){if(typeof n==\"number\")return t*n;{let a=0;for(let o=e-t;o<e;o++)a+=n(o);return a}}function nb(e,t,n,a,o){const s=XT(e,a),c=[];for(const m of s)if(m.sticky)c.push(m);else break;if(c.length>0)for(const m of c)n-=m.width;let u=t,f=o??0;for(;f<=n&&u<s.length;)f+=s[u].width,u++;for(let m=t;m<u;m++){const v=s[m];v.sticky||c.push(v)}return c}function xL(e,t,n){let a=0;for(const o of t){const s=o.sticky?a:a+(n??0);if(e<=s+o.width)return o.sourceIndex;a+=o.width}return-1}function wL(e,t,n,a,o,s,c,u,f,m){const v=a+o;if(n&&e<=o)return-2;if(e<=v)return-1;let y=t;for(let S=0;S<m;S++){const C=s-1-S,R=typeof c==\"number\"?c:c(C);if(y-=R,e>=y)return C}const x=s-m,w=e-(f??0);if(typeof c==\"number\"){const S=Math.floor((w-v)/c)+u;return S>=x?void 0:S}else{let S=v;for(let C=u;C<x;C++){const R=c(C);if(w<=S+R)return C;S+=R}return}}let oh=0,Gu={};const SL=typeof window>\"u\";async function CL(){SL||document?.fonts?.ready===void 0||(await document.fonts.ready,oh=0,Gu={},dL())}CL();function KT(e,t,n,a){return`${e}_${a??t?.font}_${n}`}function xd(e,t,n,a=\"middle\"){const o=KT(e,t,a,n);let s=Gu[o];return s===void 0&&(s=t.measureText(e),Gu[o]=s,oh++),oh>1e4&&(Gu={},oh=0),s}function RL(e,t){const n=KT(e,void 0,\"middle\",t);return Gu[n]}function ms(e,t){return typeof t!=\"string\"&&(t=t.baseFontFull),EL(e,t)}function nR(e,t){const n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";e.save(),e.textBaseline=t;const a=e.measureText(n);return e.restore(),a}const rR=[];function EL(e,t){for(const s of rR)if(s.key===t)return s.val;const n=nR(e,\"alphabetic\"),o=-(nR(e,\"middle\").actualBoundingBoxDescent-n.actualBoundingBoxDescent)+n.actualBoundingBoxAscent/2;return rR.push({key:t,val:o}),o}function kL(e,t,n,a,o,s){const{ctx:c,rect:u,theme:f}=e;let m=Number.MAX_SAFE_INTEGER;const v=500;if(t!==void 0&&(m=n-t,m<v)){const y=1-m/v;c.globalAlpha=y,c.fillStyle=f.bgSearchResult,c.fillRect(u.x+1,u.y+1,u.width-(o?2:1),u.height-(s?2:1)),c.globalAlpha=1,a!==void 0&&(a.fillStyle=f.bgSearchResult)}return m<v}function wd(e,t,n){const{ctx:a,theme:o}=e,s=t??{},c=n??o.textDark;return c!==s.fillStyle&&(a.fillStyle=c,s.fillStyle=c),s}function QT(e,t,n,a,o,s,c,u,f){f===\"right\"?e.fillText(t,n+o-(u.cellHorizontalPadding+.5),a+s/2+c):f===\"center\"?e.fillText(t,n+o/2,a+s/2+c):e.fillText(t,n+u.cellHorizontalPadding+.5,a+s/2+c)}function ZT(e,t){const n=xd(\"ABCi09jgqpy\",e,t);return n.actualBoundingBoxAscent+n.actualBoundingBoxDescent}function _L(e,t){e.includes(`\n`)&&(e=e.split(/\\r?\\n/,1)[0]);const n=t/4;return e.length>n&&(e=e.slice(0,n)),e}function TL(e,t,n,a,o,s,c,u,f,m){const v=u.baseFontFull,y=pL(e,t,v,o-u.cellHorizontalPadding*2,m??!1),x=ZT(e,v),w=u.lineHeight*x,S=x+w*(y.length-1),C=S+u.cellVerticalPadding>s;C&&(e.save(),e.rect(n,a,o,s),e.clip());const R=a+s/2-S/2;let _=Math.max(a+u.cellVerticalPadding,R);for(const E of y)if(QT(e,E,n,_,o,x,c,u,f),_+=w,_>a+s)break;C&&e.restore()}function Zi(e,t,n,a,o){const{ctx:s,rect:c,theme:u}=e,{x:f,y:m,width:v,height:y}=c;a=a??!1,a||(t=_L(t,v));const x=ms(s,u),w=Bb(t)===\"rtl\";if(n===void 0&&w&&(n=\"right\"),w&&(s.direction=\"rtl\"),t.length>0){let S=!1;n===\"right\"?(s.textAlign=\"right\",S=!0):n!==void 0&&n!==\"left\"&&(s.textAlign=n,S=!0),a?TL(s,t,f,m,v,y,x,u,n,o):QT(s,t,f,m,v,y,x,u,n),S&&(s.textAlign=\"start\"),w&&(s.direction=\"inherit\")}}function fi(e,t,n,a,o,s){typeof s==\"number\"&&(s={tl:s,tr:s,br:s,bl:s}),s={tl:Math.max(0,Math.min(s.tl,o/2,a/2)),tr:Math.max(0,Math.min(s.tr,o/2,a/2)),bl:Math.max(0,Math.min(s.bl,o/2,a/2)),br:Math.max(0,Math.min(s.br,o/2,a/2))},e.moveTo(t+s.tl,n),e.arcTo(t+a,n,t+a,n+s.tr,s.tr),e.arcTo(t+a,n+o,t+a-s.br,n+o,s.br),e.arcTo(t,n+o,t,n+o-s.bl,s.bl),e.arcTo(t,n,t+s.tl,n,s.tl)}function ML(e,t,n){e.arc(t,n-1.25*3.5,1.25,0,2*Math.PI,!1),e.arc(t,n,1.25,0,2*Math.PI,!1),e.arc(t,n+1.25*3.5,1.25,0,2*Math.PI,!1)}function AL(e,t,n){const a=function(u,f){const m=f.x-u.x,v=f.y-u.y,y=Math.sqrt(m*m+v*v),x=m/y,w=v/y;return{x:m,y:f.y-u.y,len:y,nx:x,ny:w,ang:Math.atan2(w,x)}};let o;const s=t.length;let c=t[s-1];for(let u=0;u<s;u++){let f=t[u%s];const m=t[(u+1)%s],v=a(f,c),y=a(f,m),x=v.nx*y.ny-v.ny*y.nx,w=v.nx*y.nx-v.ny*-y.ny;let S=Math.asin(x<-1?-1:x>1?1:x),C=1,R=!1;w<0?S<0?S=Math.PI+S:(S=Math.PI-S,C=-1,R=!0):S>0&&(C=-1,R=!0),o=f.radius!==void 0?f.radius:n;const _=S/2;let E=Math.abs(Math.cos(_)*o/Math.sin(_)),T;E>Math.min(v.len/2,y.len/2)?(E=Math.min(v.len/2,y.len/2),T=Math.abs(E*Math.sin(_)/Math.cos(_))):T=o;let A=f.x+y.nx*E,D=f.y+y.ny*E;A+=-y.ny*T*C,D+=y.nx*T*C,e.arc(A,D,T,v.ang+Math.PI/2*C,y.ang-Math.PI/2*C,R),c=f,f=m}e.closePath()}function rb(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S){const C={x:0,y:s+m,width:0,height:0};if(e>=w.length||t>=v||t<-2||e<0)return C;const R=s-o;if(e>=y){const _=c>e?-1:1,E=Ec(w);C.x+=E+f;for(let T=c;T!==e;T+=_)C.x+=w[_===1?T:T-1].width*_}else for(let _=0;_<e;_++)C.x+=w[_].width;if(C.width=w[e].width+1,t===-1)C.y=o,C.height=R;else if(t===-2){C.y=0,C.height=o;let _=e;const E=w[e].group,T=w[e].sticky;for(;_>0&&rd(w[_-1].group,E)&&w[_-1].sticky===T;){const D=w[_-1];C.x-=D.width,C.width+=D.width,_--}let A=e;for(;A+1<w.length&&rd(w[A+1].group,E)&&w[A+1].sticky===T;){const D=w[A+1];C.width+=D.width,A++}if(!T){const D=Ec(w),z=C.x-D;z<0&&(C.x-=z,C.width+=z),C.x+C.width>n&&(C.width=n-C.x)}}else if(t>=v-x){let _=v-t;for(C.y=a;_>0;){const E=t+_-1;C.height=typeof S==\"number\"?S:S(E),C.y-=C.height,_--}C.height+=1}else{const _=u>t?-1:1;if(typeof S==\"number\"){const E=t-u;C.y+=E*S}else for(let E=u;E!==t;E+=_)C.y+=S(E)*_;C.height=(typeof S==\"number\"?S:S(t))+1}return C}const Wb=1<<21;function Ua(e,t){return(t+2)*Wb+e}function JT(e){return e%Wb}function Gb(e){return Math.floor(e/Wb)-2}function Yb(e){const t=JT(e),n=Gb(e);return[t,n]}class eM{visibleWindow={x:0,y:0,width:0,height:0};freezeCols=0;freezeRows=[];isInWindow=t=>{const n=JT(t),a=Gb(t),o=this.visibleWindow,s=n>=o.x&&n<=o.x+o.width||n<this.freezeCols,c=a>=o.y&&a<=o.y+o.height||this.freezeRows.includes(a);return s&&c};setWindow(t,n,a){this.visibleWindow.x===t.x&&this.visibleWindow.y===t.y&&this.visibleWindow.width===t.width&&this.visibleWindow.height===t.height&&this.freezeCols===n&&Rc(this.freezeRows,a)||(this.visibleWindow=t,this.freezeCols=n,this.freezeRows=a,this.clearOutOfWindow())}}class NL extends eM{cache=new Map;setValue=(t,n)=>{this.cache.set(Ua(t[0],t[1]),n)};getValue=t=>this.cache.get(Ua(t[0],t[1]));clearOutOfWindow=()=>{for(const[t]of this.cache.entries())this.isInWindow(t)||this.cache.delete(t)}}class Yu{cells;constructor(t=[]){this.cells=new Set(t.map(n=>Ua(n[0],n[1])))}add(t){this.cells.add(Ua(t[0],t[1]))}has(t){return t===void 0?!1:this.cells.has(Ua(t[0],t[1]))}remove(t){this.cells.delete(Ua(t[0],t[1]))}clear(){this.cells.clear()}get size(){return this.cells.size}hasHeader(){for(const t of this.cells)if(Gb(t)<0)return!0;return!1}hasItemInRectangle(t){for(let n=t.y;n<t.y+t.height;n++)for(let a=t.x;a<t.x+t.width;a++)if(this.cells.has(Ua(a,n)))return!0;return!1}hasItemInRegion(t){for(const n of t)if(this.hasItemInRectangle(n))return!0;return!1}*values(){for(const t of this.cells)yield Yb(t)}}function tM(e){return{\"--gdg-accent-color\":e.accentColor,\"--gdg-accent-fg\":e.accentFg,\"--gdg-accent-light\":e.accentLight,\"--gdg-text-dark\":e.textDark,\"--gdg-text-medium\":e.textMedium,\"--gdg-text-light\":e.textLight,\"--gdg-text-bubble\":e.textBubble,\"--gdg-bg-icon-header\":e.bgIconHeader,\"--gdg-fg-icon-header\":e.fgIconHeader,\"--gdg-text-header\":e.textHeader,\"--gdg-text-group-header\":e.textGroupHeader??e.textHeader,\"--gdg-text-header-selected\":e.textHeaderSelected,\"--gdg-bg-cell\":e.bgCell,\"--gdg-bg-cell-medium\":e.bgCellMedium,\"--gdg-bg-header\":e.bgHeader,\"--gdg-bg-header-has-focus\":e.bgHeaderHasFocus,\"--gdg-bg-header-hovered\":e.bgHeaderHovered,\"--gdg-bg-bubble\":e.bgBubble,\"--gdg-bg-bubble-selected\":e.bgBubbleSelected,\"--gdg-bg-search-result\":e.bgSearchResult,\"--gdg-border-color\":e.borderColor,\"--gdg-horizontal-border-color\":e.horizontalBorderColor??e.borderColor,\"--gdg-drilldown-border\":e.drilldownBorder,\"--gdg-link-color\":e.linkColor,\"--gdg-cell-horizontal-padding\":`${e.cellHorizontalPadding}px`,\"--gdg-cell-vertical-padding\":`${e.cellVerticalPadding}px`,\"--gdg-header-font-style\":e.headerFontStyle,\"--gdg-base-font-style\":e.baseFontStyle,\"--gdg-marker-font-style\":e.markerFontStyle,\"--gdg-font-family\":e.fontFamily,\"--gdg-editor-font-size\":e.editorFontSize,...e.resizeIndicatorColor===void 0?{}:{\"--gdg-resize-indicator-color\":e.resizeIndicatorColor},...e.headerBottomBorderColor===void 0?{}:{\"--gdg-header-bottom-border-color\":e.headerBottomBorderColor},...e.roundingRadius===void 0?{}:{\"--gdg-rounding-radius\":`${e.roundingRadius}px`}}}const nM={accentColor:\"#4F5DFF\",accentFg:\"#FFFFFF\",accentLight:\"rgba(62, 116, 253, 0.1)\",textDark:\"#313139\",textMedium:\"#737383\",textLight:\"#B2B2C0\",textBubble:\"#313139\",bgIconHeader:\"#737383\",fgIconHeader:\"#FFFFFF\",textHeader:\"#313139\",textGroupHeader:\"#313139BB\",textHeaderSelected:\"#FFFFFF\",bgCell:\"#FFFFFF\",bgCellMedium:\"#FAFAFB\",bgHeader:\"#F7F7F8\",bgHeaderHasFocus:\"#E9E9EB\",bgHeaderHovered:\"#EFEFF1\",bgBubble:\"#EDEDF3\",bgBubbleSelected:\"#FFFFFF\",bgSearchResult:\"#fff9e3\",borderColor:\"rgba(115, 116, 131, 0.16)\",drilldownBorder:\"rgba(0, 0, 0, 0)\",linkColor:\"#353fb5\",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:\"600 13px\",baseFontStyle:\"13px\",markerFontStyle:\"9px\",fontFamily:\"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif\",editorFontSize:\"13px\",lineHeight:1.4};function rM(){return nM}const aM=Dt.createContext(nM);function as(e,...t){const n={...e};for(const a of t)if(a!==void 0)for(const o in a)a.hasOwnProperty(o)&&(o===\"bgCell\"?n[o]=pa(a[o],n[o]):n[o]=a[o]);return(n.headerFontFull===void 0||e.fontFamily!==n.fontFamily||e.headerFontStyle!==n.headerFontStyle)&&(n.headerFontFull=`${n.headerFontStyle} ${n.fontFamily}`),(n.baseFontFull===void 0||e.fontFamily!==n.fontFamily||e.baseFontStyle!==n.baseFontStyle)&&(n.baseFontFull=`${n.baseFontStyle} ${n.fontFamily}`),(n.markerFontFull===void 0||e.fontFamily!==n.fontFamily||e.markerFontStyle!==n.markerFontStyle)&&(n.markerFontFull=`${n.markerFontStyle} ${n.fontFamily}`),n}const ab=150;function OL(e,t,n,a){return a(t)?.measure?.(e,t,n)??ab}function iM(e,t,n,a,o,s,c,u,f){let m=0;const v=o===void 0?[]:o.map(x=>{const w=OL(e,x[a],t,f);return m=Math.max(m,w),w});if(v.length>5&&u){m=0;let x=0;for(const S of v)x+=S;const w=x/v.length;for(let S=0;S<v.length;S++)v[S]>=w*2?v[S]=0:m=Math.max(m,v[S])}m=Math.max(m,e.measureText(n.title).width+16+(n.icon===void 0?0:28));const y=Math.max(Math.ceil(s),Math.min(Math.floor(c),Math.ceil(m)));return{...n,width:y}}function DL(e,t,n,a,o,s,c,u,f){const m=h.useRef(t),v=h.useRef(n),y=h.useRef(c);m.current=t,v.current=n,y.current=c;const[x,w]=h.useMemo(()=>{if(typeof window>\"u\")return[null,null];const E=document.createElement(\"canvas\");return E.style.display=\"none\",E.style.opacity=\"0\",E.style.position=\"fixed\",[E,E.getContext(\"2d\",{alpha:!1})]},[]);h.useLayoutEffect(()=>(x&&document.documentElement.append(x),()=>{x?.remove()}),[x]);const S=h.useRef({}),C=h.useRef(),[R,_]=h.useState();return h.useLayoutEffect(()=>{const E=v.current;if(E===void 0||e.every(Vf))return;let T=Math.max(1,10-Math.floor(e.length/1e4)),A=0;T<m.current&&T>1&&(T--,A=1);const D={x:0,y:0,width:e.length,height:Math.min(m.current,T)},z={x:0,y:m.current-1,width:e.length,height:1};(async()=>{const H=E(D,f.signal),$=A>0?E(z,f.signal):void 0;let V;typeof H==\"object\"?V=H:V=await bC(H),$!==void 0&&(typeof $==\"object\"?V=[...V,...$]:V=[...V,...await bC($)]),C.current=e,_(V)})()},[f.signal,e]),h.useMemo(()=>{let T=e.every(Vf)?e:w===null?e.map(O=>Vf(O)?O:{...O,width:ab}):(w.font=y.current.baseFontFull,e.map((O,H)=>{if(Vf(O))return O;if(S.current[O.id]!==void 0)return{...O,width:S.current[O.id]};if(R===void 0||C.current!==e||O.id===void 0)return{...O,width:ab};const $=iM(w,c,O,H,R,o,s,!0,u);return S.current[O.id]=$.width,$})),A=0,D=0;const z=[];for(const[O,H]of T.entries())A+=H.width,H.grow!==void 0&&H.grow>0&&(D+=H.grow,z.push(O));if(A<a&&z.length>0){const O=[...T],H=a-A;let $=H;for(let V=0;V<z.length;V++){const I=z[V],M=(T[I].grow??0)/D,q=V===z.length-1?$:Math.min($,Math.floor(H*M));O[I]={...T[I],growOffset:q,width:T[I].width+q},$-=q}T=O}return{sizedColumns:T,nonGrowWidth:A}},[a,e,w,R,c,o,s,u])}const jL=\"modulepreload\",zL=function(e){return\"/_dashboard/\"+e},aR={},oM=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let m=function(v){return Promise.all(v.map(y=>Promise.resolve(y).then(x=>({status:\"fulfilled\",value:x}),x=>({status:\"rejected\",reason:x}))))};var c=m;document.getElementsByTagName(\"link\");const u=document.querySelector(\"meta[property=csp-nonce]\"),f=u?.nonce||u?.getAttribute(\"nonce\");o=m(n.map(v=>{if(v=zL(v),v in aR)return;aR[v]=!0;const y=v.endsWith(\".css\"),x=y?'[rel=\"stylesheet\"]':\"\";if(document.querySelector(`link[href=\"${v}\"]${x}`))return;const w=document.createElement(\"link\");if(w.rel=y?\"stylesheet\":jL,y||(w.as=\"script\"),w.crossOrigin=\"\",w.href=v,f&&w.setAttribute(\"nonce\",f),document.head.appendChild(w),y)return new Promise((S,C)=>{w.addEventListener(\"load\",S),w.addEventListener(\"error\",()=>C(new Error(`Unable to preload CSS for ${v}`)))})}))}function s(u){const f=new Event(\"vite:preloadError\",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status===\"rejected\"&&s(f.reason);return t().catch(s)})};var Iv,iR;function PL(){if(iR)return Iv;iR=1;function e(t,n,a){return t===t&&(a!==void 0&&(t=t<=a?t:a),n!==void 0&&(t=t>=n?t:n)),t}return Iv=e,Iv}var Hv,oR;function LL(){if(oR)return Hv;oR=1;var e=PL(),t=$b();function n(a,o,s){return s===void 0&&(s=o,o=void 0),s!==void 0&&(s=t(s),s=s===s?s:0),o!==void 0&&(o=t(o),o=o===o?o:0),e(t(a),o,s)}return Hv=n,Hv}var IL=LL();const Ba=Ya(IL);var qv,sR;function HL(){if(sR)return qv;sR=1;var e=\"__lodash_hash_undefined__\";function t(n){return this.__data__.set(n,e),this}return qv=t,qv}var $v,lR;function qL(){if(lR)return $v;lR=1;function e(t){return this.__data__.has(t)}return $v=e,$v}var Fv,cR;function sM(){if(cR)return Fv;cR=1;var e=zb(),t=HL(),n=qL();function a(o){var s=-1,c=o==null?0:o.length;for(this.__data__=new e;++s<c;)this.add(o[s])}return a.prototype.add=a.prototype.push=t,a.prototype.has=n,Fv=a,Fv}var Bv,uR;function $L(){if(uR)return Bv;uR=1;function e(t,n,a,o){for(var s=t.length,c=a+(o?1:-1);o?c--:++c<s;)if(n(t[c],c,t))return c;return-1}return Bv=e,Bv}var Uv,dR;function FL(){if(dR)return Uv;dR=1;function e(t){return t!==t}return Uv=e,Uv}var Vv,fR;function BL(){if(fR)return Vv;fR=1;function e(t,n,a){for(var o=a-1,s=t.length;++o<s;)if(t[o]===n)return o;return-1}return Vv=e,Vv}var Wv,hR;function UL(){if(hR)return Wv;hR=1;var e=$L(),t=FL(),n=BL();function a(o,s,c){return s===s?n(o,s,c):e(o,t,c)}return Wv=a,Wv}var Gv,mR;function VL(){if(mR)return Gv;mR=1;var e=UL();function t(n,a){var o=n==null?0:n.length;return!!o&&e(n,a,0)>-1}return Gv=t,Gv}var Yv,pR;function WL(){if(pR)return Yv;pR=1;function e(t,n,a){for(var o=-1,s=t==null?0:t.length;++o<s;)if(a(n,t[o]))return!0;return!1}return Yv=e,Yv}var Xv,gR;function lM(){if(gR)return Xv;gR=1;function e(t,n){return t.has(n)}return Xv=e,Xv}var Kv,vR;function cM(){if(vR)return Kv;vR=1;var e=ll(),t=vi(),n=e(t,\"Set\");return Kv=n,Kv}var Qv,yR;function GL(){if(yR)return Qv;yR=1;function e(){}return Qv=e,Qv}var Zv,bR;function Xb(){if(bR)return Zv;bR=1;function e(t){var n=-1,a=Array(t.size);return t.forEach(function(o){a[++n]=o}),a}return Zv=e,Zv}var Jv,xR;function YL(){if(xR)return Jv;xR=1;var e=cM(),t=GL(),n=Xb(),a=1/0,o=e&&1/n(new e([,-0]))[1]==a?function(s){return new e(s)}:t;return Jv=o,Jv}var e0,wR;function XL(){if(wR)return e0;wR=1;var e=sM(),t=VL(),n=WL(),a=lM(),o=YL(),s=Xb(),c=200;function u(f,m,v){var y=-1,x=t,w=f.length,S=!0,C=[],R=C;if(v)S=!1,x=n;else if(w>=c){var _=m?null:o(f);if(_)return s(_);S=!1,x=a,R=new e}else R=m?[]:C;e:for(;++y<w;){var E=f[y],T=m?m(E):E;if(E=v||E!==0?E:0,S&&T===T){for(var A=R.length;A--;)if(R[A]===T)continue e;m&&R.push(T),C.push(E)}else x(R,T,v)||(R!==C&&R.push(T),C.push(E))}return C}return e0=u,e0}var t0,SR;function KL(){if(SR)return t0;SR=1;var e=XL();function t(n){return n&&n.length?e(n):[]}return t0=t,t0}var QL=KL();const ZL=Ya(QL);var n0,CR;function uM(){if(CR)return n0;CR=1;function e(t,n){for(var a=-1,o=n.length,s=t.length;++a<o;)t[s+a]=n[a];return t}return n0=e,n0}var r0,RR;function JL(){if(RR)return r0;RR=1;var e=vd(),t=Pb(),n=gi(),a=e?e.isConcatSpreadable:void 0;function o(s){return n(s)||t(s)||!!(a&&s&&s[a])}return r0=o,r0}var a0,ER;function eI(){if(ER)return a0;ER=1;var e=uM(),t=JL();function n(a,o,s,c,u){var f=-1,m=a.length;for(s||(s=t),u||(u=[]);++f<m;){var v=a[f];o>0&&s(v)?o>1?n(v,o-1,s,c,u):e(u,v):c||(u[u.length]=v)}return u}return a0=n,a0}var i0,kR;function tI(){if(kR)return i0;kR=1;var e=eI();function t(n){var a=n==null?0:n.length;return a?e(n,1):[]}return i0=t,i0}var nI=tI();const _R=Ya(nI);var o0,TR;function rI(){if(TR)return o0;TR=1;var e=Math.ceil,t=Math.max;function n(a,o,s,c){for(var u=-1,f=t(e((o-a)/(s||1)),0),m=Array(f);f--;)m[c?f:++u]=a,a+=s;return m}return o0=n,o0}var s0,MR;function Kb(){if(MR)return s0;MR=1;var e=ST(),t=Ib();function n(a){return a!=null&&t(a.length)&&!e(a)}return s0=n,s0}var l0,AR;function aI(){if(AR)return l0;AR=1;var e=Db(),t=Kb(),n=Lb(),a=sl();function o(s,c,u){if(!a(u))return!1;var f=typeof c;return(f==\"number\"?t(u)&&n(c,u.length):f==\"string\"&&c in u)?e(u[c],s):!1}return l0=o,l0}var c0,NR;function iI(){if(NR)return c0;NR=1;var e=$b(),t=1/0,n=17976931348623157e292;function a(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var s=o<0?-1:1;return s*n}return o===o?o:0}return c0=a,c0}var u0,OR;function oI(){if(OR)return u0;OR=1;var e=rI(),t=aI(),n=iI();function a(o){return function(s,c,u){return u&&typeof u!=\"number\"&&t(s,c,u)&&(c=u=void 0),s=n(s),c===void 0?(c=s,s=0):c=n(c),u=u===void 0?s<c?1:-1:n(u),e(s,c,u,o)}}return u0=a,u0}var d0,DR;function sI(){if(DR)return d0;DR=1;var e=oI(),t=e();return d0=t,d0}var lI=sI();const Ks=Ya(lI),fn='<svg width=\"20\" height=\"20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">',cI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}<rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/><path d=\"M15.75 4h-1.5a.25.25 0 0 0-.177.074L9.308 8.838a3.75 3.75 0 1 0 1.854 1.854l1.155-1.157.967.322a.5.5 0 0 0 .65-.55l-.18-1.208.363-.363.727.331a.5.5 0 0 0 .69-.59l-.254-.904.647-.647A.25.25 0 0 0 16 5.75v-1.5a.25.25 0 0 0-.25-.25zM7.5 13.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z\" fill=\"${t}\"/></svg>`},uI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}<rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"4\" fill=\"${n}\"/><path d=\"m12.223 13.314 3.052-2.826a.65.65 0 0 0 0-.984l-3.052-2.822c-.27-.25-.634-.242-.865.022-.232.263-.206.636.056.882l2.601 2.41-2.601 2.41c-.262.245-.288.619-.056.882.231.263.595.277.865.026Zm-4.444.005c.266.25.634.241.866-.027.231-.263.206-.636-.06-.882L5.983 10l2.602-2.405c.266-.25.291-.62.06-.887-.232-.263-.596-.272-.866-.022L4.723 9.51a.653.653 0 0 0 0 .983l3.056 2.827Z\" fill=\"${t}\"/></svg>`},dI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path d=\"M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z\" fill=\"${n}\"/>\n <path d=\"M6.52 12.78H5.51V8.74l-1.33.47v-.87l2.29-.83h.05v5.27zm5.2 0H8.15v-.69l1.7-1.83a6.38 6.38 0 0 0 .34-.4c.09-.11.16-.22.22-.32s.1-.19.12-.27a.9.9 0 0 0 0-.56.63.63 0 0 0-.15-.23.58.58 0 0 0-.22-.15.75.75 0 0 0-.29-.05c-.27 0-.48.08-.62.23a.95.95 0 0 0-.2.65H8.03c0-.24.04-.46.13-.67a1.67 1.67 0 0 1 .97-.91c.23-.1.49-.14.77-.14.26 0 .5.04.7.11.21.08.38.18.52.32.14.13.25.3.32.48a1.74 1.74 0 0 1 .03 1.13 2.05 2.05 0 0 1-.24.47 4.16 4.16 0 0 1-.35.47l-.47.5-1 1.05h2.32v.8zm1.8-3.08h.55c.28 0 .48-.06.61-.2a.76.76 0 0 0 .2-.55.8.8 0 0 0-.05-.28.56.56 0 0 0-.13-.22.6.6 0 0 0-.23-.15.93.93 0 0 0-.32-.05.92.92 0 0 0-.29.05.72.72 0 0 0-.23.12.57.57 0 0 0-.21.46H12.4a1.3 1.3 0 0 1 .5-1.04c.15-.13.33-.23.54-.3a2.48 2.48 0 0 1 1.4 0c.2.06.4.15.55.28.15.13.27.28.36.47.08.19.13.4.13.65a1.15 1.15 0 0 1-.2.65 1.36 1.36 0 0 1-.58.49c.15.05.28.12.38.2a1.14 1.14 0 0 1 .43.62c.03.13.05.26.05.4 0 .25-.05.47-.14.66a1.42 1.42 0 0 1-.4.49c-.16.13-.35.23-.58.3a2.51 2.51 0 0 1-.73.1c-.22 0-.44-.03-.65-.09a1.8 1.8 0 0 1-.57-.28 1.43 1.43 0 0 1-.4-.47 1.41 1.41 0 0 1-.15-.66h1a.66.66 0 0 0 .22.5.87.87 0 0 0 .58.2c.25 0 .45-.07.6-.2a.71.71 0 0 0 .21-.56.97.97 0 0 0-.06-.36.61.61 0 0 0-.18-.25.74.74 0 0 0-.28-.15 1.33 1.33 0 0 0-.37-.04h-.55V9.7z\" fill=\"${t}\"/>\n </svg>`},fI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path d=\"M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z\" fill=\"${n}\"/>\n <path d=\"M8.182 12.4h3.636l.655 1.6H14l-3.454-8H9.455L6 14h1.527l.655-1.6zM10 7.44l1.36 3.651H8.64L10 7.441z\" fill=\"${t}\"/>\n</svg>`},hI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path\n d=\"M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 17.9911 17.2 17.9911 16.2222L18 3.77778C18 2.8 17.2 2 16.2222 2Z\"\n fill=\"${n}\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z\"\n fill=\"${t}\"\n />\n</svg>`},dM=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n<path d=\"M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z\" fill=\"${n}\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10.29 4.947a3.368 3.368 0 014.723.04 3.375 3.375 0 01.041 4.729l-.009.009-1.596 1.597a3.367 3.367 0 01-5.081-.364.71.71 0 011.136-.85 1.95 1.95 0 002.942.21l1.591-1.593a1.954 1.954 0 00-.027-2.733 1.95 1.95 0 00-2.732-.027l-.91.907a.709.709 0 11-1.001-1.007l.915-.911.007-.007z\" fill=\"${t}\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6.55 8.678a3.368 3.368 0 015.082.364.71.71 0 01-1.136.85 1.95 1.95 0 00-2.942-.21l-1.591 1.593a1.954 1.954 0 00.027 2.733 1.95 1.95 0 002.73.028l.906-.906a.709.709 0 111.003 1.004l-.91.91-.008.01a3.368 3.368 0 01-4.724-.042 3.375 3.375 0 01-.041-4.728l.009-.009L6.55 8.678z\" fill=\"${t}\"/>\n</svg>\n `},mI=e=>{const t=e.bgColor;return`${fn}\n <path stroke=\"${t}\" stroke-width=\"2\" d=\"M12 3v14\"/>\n <path stroke=\"${t}\" stroke-width=\"2\" stroke-linecap=\"round\" d=\"M10 4h4m-4 12h4\"/>\n <path d=\"M11 14h4a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-4v2h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4v2ZM9.5 8H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h4.5v2H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h4.5v2Z\" fill=\"${t}\"/>\n </svg>\n`},pI=dM,gI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path d=\"M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z\" fill=\"${n}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 13.138a.5.5 0 00.748.434l5.492-3.138a.5.5 0 000-.868L7.748 6.427A.5.5 0 007 6.862v6.276z\" fill=\"${t}\"/>\n</svg>`},vI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <path d=\"M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 9.17A4.17 4.17 0 0 1 5.83 10 4.17 4.17 0 0 1 10 5.83 4.17 4.17 0 0 1 14.17 10 4.17 4.17 0 0 1 10 14.17z\" fill=\"${t}\"/>\n <path d=\"M8.33 8.21a.83.83 0 1 0-.03 1.67.83.83 0 0 0 .03-1.67zm3.34 0a.83.83 0 1 0-.04 1.67.83.83 0 0 0 .04-1.67z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.53 13.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z\" fill=\"${t}\"/>\n <path d=\"M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z\" fill=\"${n}\"/>\n <path d=\"M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 11a5 5 0 1 1 .01-10.01A5 5 0 0 1 10 15z\" fill=\"${t}\"/>\n <path d=\"M8 7.86a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2zm4 0a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.53 11.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z\" fill=\"${t}\"/>\n </svg>`},yI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path d=\"M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z\" fill=\"${n}\"/>\n <path opacity=\".5\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.499 10.801a.5.5 0 01.835 0l2.698 4.098a.5.5 0 01-.418.775H10.22a.5.5 0 01-.417-.775l2.697-4.098z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.07 8.934a.5.5 0 01.824 0l4.08 5.958a.5.5 0 01-.412.782h-8.16a.5.5 0 01-.413-.782l4.08-5.958zM13.75 8.333a2.083 2.083 0 100-4.166 2.083 2.083 0 000 4.166z\" fill=\"${t}\"/>\n</svg>`},bI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <path fill=\"${t}\" d=\"M3 3h14v14H3z\"/>\n <path d=\"M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2zm-7.24 9.78h1.23c.15 0 .27.06.36.18l.98 1.28a.43.43 0 0 1-.05.58l-1.2 1.21a.45.45 0 0 1-.6.04A6.72 6.72 0 0 1 7.33 10c0-.61.1-1.2.25-1.78a6.68 6.68 0 0 1 2.12-3.3.44.44 0 0 1 .6.04l1.2 1.2c.16.17.18.42.05.59l-.98 1.29a.43.43 0 0 1-.36.17H8.98A5.38 5.38 0 0 0 8.67 10c0 .62.11 1.23.3 1.79z\" fill=\"${n}\"/>\n </svg>`},xI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <path d=\"M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z\" fill=\"${n}\"/>\n <path d=\"m13.49 13.15-2.32-3.27h1.4V7h1.86v2.88h1.4l-2.34 3.27zM11 13H9v-3l-1.5 1.92L6 10v3H4V7h2l1.5 2L9 7h2v6z\" fill=\"${t}\"/>\n </svg>`},wI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path d=\"M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z\" fill=\"${n}\"/>\n <path d=\"M14.8 4.182h-.6V3H13v1.182H7V3H5.8v1.182h-.6c-.66 0-1.2.532-1.2 1.182v9.454C4 15.468 4.54 16 5.2 16h9.6c.66 0 1.2-.532 1.2-1.182V5.364c0-.65-.54-1.182-1.2-1.182zm0 10.636H5.2V7.136h9.6v7.682z\" fill=\"${t}\"/>\n</svg>`},SI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <path d=\"M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z\" fill=\"${n}\"/>\n <path d=\"M10 4a6 6 0 0 0-6 6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0-6-6zm0 10.8A4.8 4.8 0 0 1 5.2 10a4.8 4.8 0 1 1 4.8 4.8z\" fill=\"${t}\"/>\n <path d=\"M10 7H9v3.93L12.5 13l.5-.8-3-1.76V7z\" fill=\"${t}\"/>\n </svg>`},CI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 8.643a1.357 1.357 0 100 2.714 1.357 1.357 0 000-2.714zM7.357 10a2.643 2.643 0 115.286 0 2.643 2.643 0 01-5.286 0z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7.589 4.898A5.643 5.643 0 0115.643 10v.5a2.143 2.143 0 01-4.286 0V8a.643.643 0 011.286 0v2.5a.857.857 0 001.714 0V10a4.357 4.357 0 10-1.708 3.46.643.643 0 01.782 1.02 5.643 5.643 0 11-5.842-9.582z\" fill=\"${t}\"/>\n</svg>`},RI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <rect x=\"2\" y=\"8\" width=\"10\" height=\"8\" rx=\"2\" fill=\"${n}\"/>\n <rect x=\"8\" y=\"4\" width=\"10\" height=\"8\" rx=\"2\" fill=\"${n}\"/>\n <path d=\"M10.68 7.73V6l2.97 3.02-2.97 3.02v-1.77c-2.13 0-3.62.7-4.68 2.2.43-2.15 1.7-4.31 4.68-4.74z\" fill=\"${t}\"/>\n </svg>`},EI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path fill=\"${t}\" d=\"M4 3h12v14H4z\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.6 2A1.6 1.6 0 002 3.6v12.8A1.6 1.6 0 003.6 18h12.8a1.6 1.6 0 001.6-1.6V3.6A1.6 1.6 0 0016.4 2H3.6zm11.3 10.8a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7h-1.4a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.6-.693.117.117 0 00.1-.115V10.35a.117.117 0 00-.117-.116h-2.8a.117.117 0 00-.117.116v2.333c0 .064.053.117.117.117h.117a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7H9.3a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.117a.117.117 0 00.117-.117V10.35a.117.117 0 00-.117-.117h-2.8a.117.117 0 00-.117.117v2.342c0 .058.042.106.1.115a.7.7 0 01.6.693v1.4a.7.7 0 01-.7.7H5.1a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.35a.116.116 0 00.116-.117v-2.45c0-.515.418-.933.934-.933h2.917a.117.117 0 00.117-.117V6.85a.117.117 0 00-.117-.116h-2.45a.7.7 0 01-.7-.7V5.1a.7.7 0 01.7-.7h6.067a.7.7 0 01.7.7v.934a.7.7 0 01-.7.7h-2.45a.117.117 0 00-.118.116v2.333c0 .064.053.117.117.117H13.5c.516 0 .934.418.934.934v2.45c0 .063.052.116.116.116h.35z\" fill=\"${n}\"/>\n</svg>`},kI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path d=\"M9.98 13.33c.45 0 .74-.3.73-.75l-.01-.1-.16-1.67 1.45 1.05a.81.81 0 0 0 .5.18c.37 0 .72-.32.72-.76 0-.3-.17-.54-.49-.68l-1.63-.77 1.63-.77c.32-.14.49-.37.49-.67 0-.45-.34-.76-.71-.76a.81.81 0 0 0-.5.18l-1.47 1.03.16-1.74.01-.08c.01-.46-.27-.76-.72-.76-.46 0-.76.32-.75.76l.01.08.16 1.74-1.47-1.03a.77.77 0 0 0-.5-.18.74.74 0 0 0-.72.76c0 .3.17.53.49.67l1.63.77-1.62.77c-.32.14-.5.37-.5.68 0 .44.35.75.72.75a.78.78 0 0 0 .5-.17L9.4 10.8l-.16 1.68v.09c-.02.44.28.75.74.75z\" fill=\"${t}\"/>\n </svg>`},_I=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path d=\"M8 5.83H5.83a.83.83 0 0 0 0 1.67h1.69A4.55 4.55 0 0 1 8 5.83zm-.33 3.34H5.83a.83.83 0 0 0 0 1.66h2.72a4.57 4.57 0 0 1-.88-1.66zM5.83 12.5a.83.83 0 0 0 0 1.67h7.5a.83.83 0 1 0 0-1.67h-7.5zm8.8-2.9a3.02 3.02 0 0 0 .46-1.6c0-1.66-1.32-3-2.94-3C10.52 5 9.2 6.34 9.2 8s1.31 3 2.93 3c.58 0 1.11-.17 1.56-.47l2.04 2.08.93-.94-2.04-2.08zm-2.48.07c-.9 0-1.63-.75-1.63-1.67s.73-1.67 1.63-1.67c.9 0 1.63.75 1.63 1.67s-.73 1.67-1.63 1.67z\" fill=\"${t}\"/>\n </svg>`},TI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path d=\"M7.676 4.726V3l2.976 3.021-2.976 3.022v-1.77c-2.125 0-3.613.69-4.676 2.201.425-2.158 1.7-4.316 4.676-4.748zM10.182 14.4h3.636l.655 1.6H16l-3.454-8h-1.091L8 16h1.527l.655-1.6zM12 9.44l1.36 3.65h-2.72L12 9.44z\" fill=\"${t}\"/>\n</svg>`},MI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.167 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666H4.167z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7.083 4.167a.833.833 0 10-1.666 0v4.166a.833.833 0 101.666 0V4.167zM11.667 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666h-4.166zM5.367 11.688a.833.833 0 00-1.179 1.179l2.947 2.946a.833.833 0 001.178-1.178l-2.946-2.947z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.313 12.867a.833.833 0 10-1.178-1.179l-2.947 2.947a.833.833 0 101.179 1.178l2.946-2.946z\" fill=\"${t}\"/>\n <path d=\"M10.833 12.5c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833zM10.833 15c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833z\" fill=\"${t}\"/>\n</svg>`},AI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <path d=\"M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z\" fill=\"${n}\"/>\n <path d=\"M10 8.84a1.16 1.16 0 1 0 0 2.32 1.16 1.16 0 0 0 0-2.32zm3.02 3.61a3.92 3.92 0 0 0 .78-3.28.49.49 0 1 0-.95.2c.19.87-.02 1.78-.58 2.47a2.92 2.92 0 1 1-4.13-4.08 2.94 2.94 0 0 1 2.43-.62.49.49 0 1 0 .17-.96 3.89 3.89 0 1 0 2.28 6.27zM10 4.17a5.84 5.84 0 0 0-5.44 7.93.49.49 0 1 0 .9-.35 4.86 4.86 0 1 1 2.5 2.67.49.49 0 1 0-.4.88c.76.35 1.6.54 2.44.53a5.83 5.83 0 0 0 0-11.66zm3.02 3.5a.7.7 0 1 0-1.4 0 .7.7 0 0 0 1.4 0zm-6.97 5.35a.7.7 0 1 1 0 1.4.7.7 0 0 1 0-1.4z\" fill=\"${t}\"/>\n </svg>`},NI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path d=\"M12.4 13.565c1.865-.545 3.645-2.083 3.645-4.396 0-1.514-.787-2.604-2.071-2.604C12.69 6.565 12 7.63 12 8.939c1.114.072 1.865.726 1.865 1.683 0 .933-.8 1.647-1.84 2.023l.375.92zM4 5h6v2H4zM4 9h5v2H4zM4 13h4v2H4z\" fill=\"${t}\"/>\n</svg>`},OI=e=>{const t=e.fgColor,n=e.bgColor;return`\n ${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path d=\"M12.4 13.56c1.86-.54 3.65-2.08 3.65-4.4 0-1.5-.8-2.6-2.08-2.6S12 7.64 12 8.95c1.11.07 1.86.73 1.86 1.68 0 .94-.8 1.65-1.83 2.03l.37.91zM4 5h6v2H4zm0 4h5v2H4zm0 4h4v2H4z\" fill=\"${t}\"/>\n </svg>`},DI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <path d=\"M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z\" fill=\"${n}\"/>\n <path d=\"M10 7a1 1 0 100-2v2zm0 6a1 1 0 100 2v-2zm0-8H7v2h3V5zm-3 6h5V9H7v2zm5 2h-2v2h2v-2zm1-1a1 1 0 01-1 1v2a3 3 0 003-3h-2zm-1-1a1 1 0 011 1h2a3 3 0 00-3-3v2zM4 8a3 3 0 003 3V9a1 1 0 01-1-1H4zm3-3a3 3 0 00-3 3h2a1 1 0 011-1V5z\" fill=\"${t}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.856 12.014a.5.5 0 00-.712.702L5.409 14l-1.265 1.284a.5.5 0 00.712.702l1.255-1.274 1.255 1.274a.5.5 0 00.712-.702L6.813 14l1.265-1.284a.5.5 0 00-.712-.702L6.11 13.288l-1.255-1.274zM12.856 4.014a.5.5 0 00-.712.702L13.409 6l-1.265 1.284a.5.5 0 10.712.702l1.255-1.274 1.255 1.274a.5.5 0 10.712-.702L14.813 6l1.265-1.284a.5.5 0 00-.712-.702L14.11 5.288l-1.255-1.274z\" fill=\"${t}\"/>\n</svg>`},jI=e=>{const t=e.fgColor,n=e.bgColor;return`${fn}\n <rect x=\"2\" y=\"2\" width=\"16\" height=\"16\" rx=\"2\" fill=\"${n}\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.25 7.25a.75.75 0 000-1.5h-6.5a.75.75 0 100 1.5h6.5zM15 10a.75.75 0 01-.75.75h-6.5a.75.75 0 010-1.5h6.5A.75.75 0 0115 10zm-.75 4.25a.75.75 0 000-1.5h-6.5a.75.75 0 000 1.5h6.5zm-8.987-7a.75.75 0 100-1.5.75.75 0 000 1.5zm.75 2.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm-.75 4.25a.75.75 0 100-1.5.75.75 0 000 1.5z\" fill=\"${t}\"/>\n</svg>`},zI=e=>{const t=e.fgColor;return`\n <svg width=\"18\" height=\"18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2 15v1h14v-2.5c0-.87-.44-1.55-.98-2.04a6.19 6.19 0 0 0-1.9-1.14 12.1 12.1 0 0 0-2.48-.67A4 4 0 1 0 5 6a4 4 0 0 0 2.36 3.65c-.82.13-1.7.36-2.48.67-.69.28-1.37.65-1.9 1.13A2.8 2.8 0 0 0 2 13.5V15z\" fill=\"${e.bgColor}\" stroke=\"${t}\" stroke-width=\"2\"/>\n </svg>`},PI=e=>{const t=e.fgColor;return`\n <svg width=\"18\" height=\"18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.43 6.04v-.18a3.86 3.86 0 0 0-7.72 0v.18A2.15 2.15 0 0 0 3 8.14v5.72C3 15.04 3.96 16 5.14 16H12c1.18 0 2.14-.96 2.14-2.14V8.14c0-1.03-.73-1.9-1.71-2.1zM7.86 6v-.14a.71.71 0 1 1 1.43 0V6H7.86z\" fill=\"${e.bgColor}\" stroke=\"${t}\" stroke-width=\"2\"/>\n </svg>\n`},LI={headerRowID:cI,headerNumber:dI,headerCode:uI,headerString:fI,headerBoolean:hI,headerAudioUri:pI,headerVideoUri:gI,headerEmoji:vI,headerImage:yI,headerUri:dM,headerPhone:bI,headerMarkdown:xI,headerDate:wI,headerTime:SI,headerEmail:CI,headerReference:RI,headerIfThenElse:EI,headerSingleValue:kI,headerLookup:_I,headerTextTemplate:TI,headerMath:MI,headerRollup:AI,headerJoinStrings:NI,headerSplitString:OI,headerGeoDistance:DI,headerArray:jI,rowOwnerOverlay:zI,protectedColumnOverlay:PI,renameIcon:mI};function II(e,t){return e===\"normal\"?[t.bgIconHeader,t.fgIconHeader]:e===\"selected\"?[\"white\",t.accentColor]:[t.accentColor,t.bgHeader]}class HI{onSettled;spriteMap=new Map;headerIcons;inFlight=0;constructor(t,n){this.onSettled=n,this.headerIcons=t??{}}drawSprite(t,n,a,o,s,c,u,f=1){const[m,v]=II(n,u),y=c*Math.ceil(window.devicePixelRatio),x=`${m}_${v}_${y}_${t}`;let w=this.spriteMap.get(x);if(w===void 0){const S=this.headerIcons[t];if(S===void 0)return;w=document.createElement(\"canvas\");const C=w.getContext(\"2d\");if(C===null)return;const R=new Image;R.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(S({fgColor:v,bgColor:m}))}`,this.spriteMap.set(x,w);const _=R.decode();if(_===void 0)return;this.inFlight++,_.then(()=>{C.drawImage(R,0,0,y,y)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else f<1&&(a.globalAlpha=f),a.drawImage(w,0,0,y,y,o,s,c,c),f<1&&(a.globalAlpha=1)}}function fM(e){if(e.length===0)return;let t;for(const n of e)t=Math.min(t??n.y,n.y)}function tm(e,t,n,a,o,s,c,u,f){u=u??t;let m=t,v=e;const y=a-s;let x=!1;for(;m<n&&v<y;){const w=o(v);if(m+w>u&&f(m,v,w,!1,c&&v===a-1)===!0){x=!0;break}m+=w,v++}if(!x){m=n;for(let w=0;w<s;w++){v=a-1-w;const S=o(v);m-=S,f(m,v,S,!0,c&&v===a-1)}}}function ps(e,t,n,a,o,s){let c=0,u=0;const f=o+a;for(const m of e){const v=m.sticky?u:c+n;if(s(m,v,f,m.sticky?0:u,t)===!0)break;c+=m.width,u+=m.sticky?m.width:0}}function hM(e,t,n,a,o){let s=0,c=0;for(let u=0;u<e.length;u++){const f=e[u];let m=u+1,v=f.width;for(f.sticky&&(c+=v);m<e.length&&rd(e[m].group,f.group)&&e[m].sticky===e[u].sticky;){const C=e[m];v+=C.width,m++,u++,C.sticky&&(c+=C.width)}const y=f.sticky?0:n,x=s+y,w=f.sticky?0:Math.max(0,c-x),S=Math.min(v-w,t-(x+w));o([f.sourceIndex,e[m-1].sourceIndex],f.group??\"\",x+w,0,S,a),s+=v}}function mM(e,t,n,a,o,s,c){const[u,f]=e;let m,v;const y=c.find(x=>!x.sticky)?.sourceIndex??0;if(f>y){const x=Math.max(u,y);let w=t,S=a;for(let C=s.sourceIndex-1;C>=x;C--)w-=c[C].width,S+=c[C].width;for(let C=s.sourceIndex+1;C<=f;C++)S+=c[C].width;v={x:w,y:n,width:S,height:o}}if(y>u){const x=Math.min(f,y-1);let w=t,S=a;for(let C=s.sourceIndex-1;C>=u;C--)w-=c[C].width,S+=c[C].width;for(let C=s.sourceIndex+1;C<=x;C++)S+=c[C].width;m={x:w,y:n,width:S,height:o}}return[m,v]}function qI(e,t,n,a){if(a===\"any\")return pM(e,{x:t,y:n,width:1,height:1});if(a===\"vertical\"&&(t=e.x),a===\"horizontal\"&&(n=e.y),GT([t,n],e))return;const o=t-e.x,s=e.x+e.width-t,c=n-e.y+1,u=e.y+e.height-n,f=Math.min(a===\"vertical\"?Number.MAX_SAFE_INTEGER:o,a===\"vertical\"?Number.MAX_SAFE_INTEGER:s,a===\"horizontal\"?Number.MAX_SAFE_INTEGER:c,a===\"horizontal\"?Number.MAX_SAFE_INTEGER:u);return f===u?{x:e.x,y:e.y+e.height,width:e.width,height:n-e.y-e.height+1}:f===c?{x:e.x,y:n,width:e.width,height:e.y-n}:f===s?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function bh(e,t,n,a,o,s,c,u){return e<=o+c&&o<=e+n&&t<=s+u&&s<=t+a}function nm(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function pM(e,t){const n=Math.min(e.x,t.x),a=Math.min(e.y,t.y),o=Math.max(e.x+e.width,t.x+t.width)-n,s=Math.max(e.y+e.height,t.y+t.height)-a;return{x:n,y:a,width:o,height:s}}function $I(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function FI(e,t,n,a){if(e.x>t||e.y>n||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>n)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=n)return e;const o=-4,s=-4,c=t+4,u=n+4,f=o-e.x,m=e.x+e.width-c,v=s-e.y,y=e.y+e.height-u,x=f>0?e.x+Math.floor(f/a)*a:e.x,w=m>0?e.x+e.width-Math.floor(m/a)*a:e.x+e.width,S=v>0?e.y+Math.floor(v/a)*a:e.y,C=y>0?e.y+e.height-Math.floor(y/a)*a:e.y+e.height;return{x,y:S,width:w-x,height:C-S}}function BI(e,t,n,a,o){const[s,c,u,f]=t,[m,v,y,x]=o,{x:w,y:S,width:C,height:R}=e,_=[];if(C<=0||R<=0)return _;const E=w+C,T=S+R,A=w<s,D=S<c,z=w+C>u,O=S+R>f,H=w>=s&&w<u||E>s&&E<=u||w<s&&E>u,$=S>=c&&S<f||T>c&&T<=f||S<c&&T>f;if(H&&$){const I=Math.max(w,s),M=Math.max(S,c),q=Math.min(E,u),B=Math.min(T,f);_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:m,y:v,width:y-m+1,height:x-v+1}})}if(A&&D){const I=w,M=S,q=Math.min(E,s),B=Math.min(T,c);_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:0,y:0,width:m+1,height:v+1}})}if(D&&H){const I=Math.max(w,s),M=S,q=Math.min(E,u),B=Math.min(T,c);_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:m,y:0,width:y-m+1,height:v+1}})}if(D&&z){const I=Math.max(w,u),M=S,q=E,B=Math.min(T,c);_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:y,y:0,width:n-y+1,height:v+1}})}if(A&&$){const I=w,M=Math.max(S,c),q=Math.min(E,s),B=Math.min(T,f);_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:0,y:v,width:m+1,height:x-v+1}})}if(z&&$){const I=Math.max(w,u),M=Math.max(S,c),q=E,B=Math.min(T,f);_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:y,y:v,width:n-y+1,height:x-v+1}})}if(A&&O){const I=w,M=Math.max(S,f),q=Math.min(E,s),B=T;_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:0,y:x,width:m+1,height:a-x+1}})}if(O&&H){const I=Math.max(w,s),M=Math.max(S,f),q=Math.min(E,u),B=T;_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:m,y:x,width:y-m+1,height:a-x+1}})}if(z&&O){const I=Math.max(w,u),M=Math.max(S,f),q=E,B=T;_.push({rect:{x:I,y:M,width:q-I,height:B-M},clip:{x:y,y:x,width:n-y+1,height:a-x+1}})}return _}const UI={kind:Ie.Loading,allowOverlay:!1};function jR(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R,_,E,T,A,D,z,O,H,$,V,I,M,q,B,j,F,U,W){let ee=T?.size??Number.MAX_SAFE_INTEGER;const oe=performance.now();let P=q.baseFontFull;e.font=P;const Y={ctx:e},G=[0,0],K=R>0?ul(f,R,m):0;let te,fe;const ne=fM(E);return ps(t,u,s,c,o,(he,Ae,He,Ye,tt)=>{const ze=Math.max(0,Ye-Ae),Ke=Ae+ze,le=o+1,ke=he.width-ze,re=a-o-1;if(E.length>0){let et=!1;for(let ht=0;ht<E.length;ht++){const Ve=E[ht];if(bh(Ke,le,ke,re,Ve.x,Ve.y,Ve.width,Ve.height)){et=!0;break}}if(!et)return}const ie=()=>{e.save(),e.beginPath(),e.rect(Ke,le,ke,re),e.clip()},be=A.columns.hasIndex(he.sourceIndex),Ne=y(he.group??\"\").overrideTheme,qe=he.themeOverride===void 0&&Ne===void 0?q:as(q,Ne,he.themeOverride),Oe=qe.baseFontFull;Oe!==P&&(P=Oe,e.font=Oe),ie();let Be;return tm(tt,He,a,f,m,R,_,ne,(et,ht,Ve,Ht,mt)=>{if(ht<0||(G[0]=he.sourceIndex,G[1]=ht,T!==void 0&&!T.has(G)))return;if(E.length>0){let at=!1;for(let Wt=0;Wt<E.length;Wt++){const en=E[Wt];if(bh(Ae,et,he.width,Ve,en.x,en.y,en.width,en.height)){at=!0;break}}if(!at)return}const dt=A.rows.hasIndex(ht),Sn=w.hasIndex(ht),jt=ht<f?v(G):UI;let Mt=Ae,yt=he.width,Lt=!1,hn=!1;if(jt.span!==void 0){const[at,Wt]=jt.span,en=`${ht},${at},${Wt},${he.sticky}`;if(fe===void 0&&(fe=new Set),fe.has(en)){ee--;return}else{const Wr=mM(jt.span,Ae,et,he.width,Ve,he,n),Wn=he.sticky?Wr[0]:Wr[1];if(!he.sticky&&Wr[0]!==void 0&&(hn=!0),Wn!==void 0){Mt=Wn.x,yt=Wn.width,fe.add(en),e.restore(),Be=void 0,e.save(),e.beginPath();const Sr=Math.max(0,Ye-Wn.x);e.rect(Wn.x+Sr,et,Wn.width-Sr,Ve),te===void 0&&(te=[]),te.push({x:Wn.x+Sr,y:et,width:Wn.width-Sr,height:Ve}),e.clip(),Lt=!0}}}const cn=x?.(ht),Vr=mt&&he.trailingRowOptions?.themeOverride!==void 0?he.trailingRowOptions?.themeOverride:void 0,kn=jt.themeOverride===void 0&&cn===void 0&&Vr===void 0?qe:as(qe,cn,Vr,jt.themeOverride);e.beginPath();const xr=yL(G,jt,A);let In=bL(G,jt,A,C);const zr=jt.span!==void 0&&A.columns.some(at=>jt.span!==void 0&&at>=jt.span[0]&&at<=jt.span[1]);xr&&!S&&C?In=0:xr&&C&&(In=Math.max(In,1)),zr&&In++,xr||(dt&&In++,be&&!mt&&In++);const Pr=jt.kind===Ie.Protected?kn.bgCellMedium:kn.bgCell;let qt;if((Ht||Pr!==q.bgCell)&&(qt=pa(Pr,qt)),In>0||Sn){Sn&&(qt=pa(kn.bgHeader,qt));for(let at=0;at<In;at++)qt=pa(kn.accentLight,qt)}else if(D!==void 0){for(const at of D)if(at[0]===he.sourceIndex&&at[1]===ht){qt=pa(kn.bgSearchResult,qt);break}}if(z!==void 0)for(let at=0;at<z.length;at++){const Wt=z[at],en=Wt.range;Wt.style!==\"solid-outline\"&&en.x<=he.sourceIndex&&he.sourceIndex<en.x+en.width&&en.y<=ht&&ht<en.y+en.height&&(qt=pa(Wt.color,qt))}let kt=!1;if(T!==void 0){const at=et+1,en=(Ht?at+Ve-1:Math.min(at+Ve-1,a-K))-at;(en!==Ve-1||Mt+1<=Ye)&&(kt=!0,e.save(),e.beginPath(),e.rect(Mt+1,at,yt-1,en),e.clip()),qt=qt===void 0?kn.bgCell:pa(qt,kn.bgCell)}const Xt=he.sourceIndex===n.length-1,wr=ht===f-1;qt!==void 0&&(e.fillStyle=qt,Be!==void 0&&(Be.fillStyle=qt),T!==void 0?e.fillRect(Mt+1,et+1,yt-(Xt?2:1),Ve-(wr?2:1)):e.fillRect(Mt,et,yt,Ve)),jt.style===\"faded\"&&(e.globalAlpha=.6);let Vn;for(let at=0;at<$.length;at++){const Wt=$[at];if(Wt.item[0]===he.sourceIndex&&Wt.item[1]===ht){Vn=Wt;break}}if(yt>W&&!hn){const at=kn.baseFontFull;at!==P&&(e.font=at,P=at),Be=gM(e,jt,he.sourceIndex,ht,Xt,wr,Mt,et,yt,Ve,In>0,kn,qt??kn.bgCell,O,H,Vn?.hoverAmount??0,V,M,oe,I,Be,B,j,F,U)}return kt&&e.restore(),jt.style===\"faded\"&&(e.globalAlpha=1),ee--,Lt&&(e.restore(),Be?.deprep?.(Y),Be=void 0,ie(),P=Oe,e.font=Oe),ee<=0}),e.restore(),ee<=0}),te}const Mu=[0,0],Au={x:0,y:0,width:0,height:0},f0=[void 0,()=>{}];let ib=!1;function VI(){ib=!0}function gM(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R,_,E,T,A,D,z,O,H){let $,V;R!==void 0&&R[0][0]===n&&R[0][1]===a&&($=R[1][0],V=R[1][1]);let I;Mu[0]=n,Mu[1]=a,Au.x=c,Au.y=u,Au.width=f,Au.height=m,f0[0]=z.getValue(Mu),f0[1]=j=>z.setValue(Mu,j),ib=!1;const M={ctx:e,theme:y,col:n,row:a,cell:t,rect:Au,highlighted:v,cellFillColor:x,hoverAmount:C,frameTime:E,hoverX:$,drawState:f0,hoverY:V,imageLoader:w,spriteManager:S,hyperWrapping:_,overrideCursor:$!==void 0?H:void 0,requestAnimationFrame:VI},q=kL(M,t.lastUpdated,E,A,o,s),B=O(t);if(B!==void 0){A?.renderer!==B&&(A?.deprep?.(M),A=void 0);const j=B.drawPrep?.(M,A);T!==void 0&&!Zs(M.cell)?T(M,()=>B.draw(M,t)):B.draw(M,t),I=j===void 0?void 0:{deprep:j?.deprep,fillStyle:j?.fillStyle,font:j?.font,renderer:B}}return(q||ib)&&D?.(Mu),I}function Qb(e,t,n,a,o,s,c,u,f=-20,m=-20,v=32,y=\"center\",x=\"square\"){const w=Math.floor(o+c/2),S=x===\"circle\"?1e4:t.roundingRadius??4;let C=LT(v,c,t.cellVerticalPadding),R=C/2;const _=PT(y,a,s,t.cellHorizontalPadding,C),E=zT(_,w,C),T=IT(a+f,o+m,E);switch(n){case!0:{e.beginPath(),fi(e,_-C/2,w-C/2,C,C,S),x===\"circle\"&&(R*=.8,C*=.8),e.fillStyle=u?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(_-R+C/4.23,w-R+C/1.97),e.lineTo(_-R+C/2.42,w-R+C/1.44),e.lineTo(_-R+C/1.29,w-R+C/3.25),e.strokeStyle=t.bgCell,e.lineJoin=\"round\",e.lineCap=\"round\",e.lineWidth=1.9,e.stroke();break}case gh:case!1:{e.beginPath(),fi(e,_-C/2+.5,w-C/2+.5,C-1,C-1,S),e.lineWidth=1,e.strokeStyle=T?t.textDark:t.textMedium,e.stroke();break}case Hb:{e.beginPath(),fi(e,_-C/2,w-C/2,C,C,S),e.fillStyle=T?t.textMedium:t.textLight,e.fill(),x===\"circle\"&&(R*=.8,C*=.8),e.beginPath(),e.moveTo(_-C/3,w),e.lineTo(_+C/3,w),e.strokeStyle=t.bgCell,e.lineCap=\"round\",e.lineWidth=1.9,e.stroke();break}default:nd()}}function WI(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R,_,E){const T=c+u;if(T<=0)return;e.fillStyle=y.bgHeader,e.fillRect(0,0,o,T);const[A,D]=a?.[0]??[],z=y.headerFontFull;e.font=z,ps(t,0,s,0,T,(O,H,$,V)=>{if(R!==void 0&&!R.has([O.sourceIndex,-1]))return;const I=Math.max(0,V-H);e.save(),e.beginPath(),e.rect(H+I,u,O.width-I,c),e.clip();const M=C(O.group??\"\").overrideTheme,q=O.themeOverride===void 0&&M===void 0?y:as(y,M,O.themeOverride);q.bgHeader!==y.bgHeader&&(e.fillStyle=q.bgHeader,e.fill()),q!==y&&(e.font=q.baseFontFull);const B=v.columns.hasIndex(O.sourceIndex),j=f!==void 0||m,F=!j&&D===-1&&A===O.sourceIndex,U=j?0:w.find(Y=>Y.item[0]===O.sourceIndex&&Y.item[1]===-1)?.hoverAmount??0,W=v?.current!==void 0&&v.current.cell[0]===O.sourceIndex,ee=B?q.accentColor:W?q.bgHeaderHasFocus:q.bgHeader,oe=n?u:0,P=O.sourceIndex===0?0:1;B?(e.fillStyle=ee,e.fillRect(H+P,oe,O.width-P,c)):(W||U>0)&&(e.beginPath(),e.rect(H+P,oe,O.width-P,c),W&&(e.fillStyle=q.bgHeaderHasFocus,e.fill()),U>0&&(e.globalAlpha=U,e.fillStyle=q.bgHeaderHovered,e.fill(),e.globalAlpha=1)),bM(e,H,oe,O.width,c,O,B,q,F,W,U,x,_,E),e.restore()}),n&&GI(e,t,o,s,u,a,y,x,w,S,C,R)}function GI(e,t,n,a,o,s,c,u,f,m,v,y){const[w,S]=s?.[0]??[];let C=0;hM(t,n,a,o,(R,_,E,T,A,D)=>{if(y!==void 0&&!y.hasItemInRectangle({x:R[0],y:-2,width:R[1]-R[0]+1,height:1}))return;e.save(),e.beginPath(),e.rect(E,T,A,D),e.clip();const z=v(_),O=z?.overrideTheme===void 0?c:as(c,z.overrideTheme),H=S===-2&&w!==void 0&&w>=R[0]&&w<=R[1],$=H?O.bgHeaderHovered:O.bgHeader;if($!==c.bgHeader&&(e.fillStyle=$,e.fill()),e.fillStyle=O.textGroupHeader??O.textHeader,z!==void 0){let V=E;if(z.icon!==void 0&&(u.drawSprite(z.icon,\"normal\",e,V+8,(o-20)/2,20,O),V+=26),e.fillText(z.name,V+8,o/2+ms(e,c.headerFontFull)),z.actions!==void 0&&H){const I=yM({x:E,y:T,width:A,height:D},z.actions);e.beginPath();const M=I[0].x-10,q=E+A-M;e.rect(M,0,q,o);const B=e.createLinearGradient(M,0,M+q,0),j=al($,0);B.addColorStop(0,j),B.addColorStop(10/q,$),B.addColorStop(1,$),e.fillStyle=B,e.fill(),e.globalAlpha=.6;const[F,U]=s?.[1]??[-1,-1];for(let W=0;W<z.actions.length;W++){const ee=z.actions[W],oe=I[W],P=nm(oe,F+E,U);P&&(e.globalAlpha=1),u.drawSprite(ee.icon,\"normal\",e,oe.x+oe.width/2-10,oe.y+oe.height/2-10,20,O),P&&(e.globalAlpha=.6)}e.globalAlpha=1}}E!==0&&m(R[0])&&(e.beginPath(),e.moveTo(E+.5,0),e.lineTo(E+.5,o),e.strokeStyle=c.borderColor,e.lineWidth=1,e.stroke()),e.restore(),C=E+A}),e.beginPath(),e.moveTo(C+.5,0),e.lineTo(C+.5,o),e.moveTo(0,o+.5),e.lineTo(n,o+.5),e.strokeStyle=c.borderColor,e.lineWidth=1,e.stroke()}const rc=30;function vM(e,t,n,a,o){return o?{x:e,y:t,width:rc,height:Math.min(rc,a)}:{x:e+n-rc,y:Math.max(t,t+a/2-rc/2),width:rc,height:Math.min(rc,a)}}function yM(e,t){const n=[];let a=e.x+e.width-26*t.length;const o=e.y+e.height/2-13,s=26,c=26;for(let u=0;u<t.length;u++)n.push({x:a,y:o,width:c,height:s}),a+=26;return n}function zR(e,t,n,a,o,s,c,u,f,m,v,y,x,w){if(s.rowMarker!==void 0){const T=s.rowMarkerChecked;T!==!0&&(e.globalAlpha=m),Qb(e,u,T,t,n,a,o,!1,void 0,void 0,18,\"center\",s.rowMarker),T!==!0&&(e.globalAlpha=1);return}const S=u.cellHorizontalPadding,C=c?u.textHeaderSelected:u.textHeader,R=s.hasMenu===!0&&(f||y&&c),_=x?-1:1;let E=x?t+a-S:t+S;if(s.icon!==void 0){let T=c?\"selected\":\"normal\";s.style===\"highlight\"&&(T=c?\"selected\":\"special\");const A=u.headerIconSize;v.drawSprite(s.icon,T,e,x?E-A:E,n+(o-A)/2,A,u),s.overlayIcon!==void 0&&v.drawSprite(s.overlayIcon,c?\"selected\":\"special\",e,x?E-A+9:E+9,n+((o-18)/2+6),18,u),E+=Math.ceil(A*1.3)*_}if(R&&s.hasMenu===!0&&a>35){const A=x?35:a-35,D=x?35*.7:a-35*.7,z=A/a,O=D/a,H=e.createLinearGradient(t,0,t+a,0),$=al(C,0);H.addColorStop(x?1:0,C),H.addColorStop(z,C),H.addColorStop(O,$),H.addColorStop(x?0:1,$),e.fillStyle=H}else e.fillStyle=C;if(x&&(e.textAlign=\"right\"),e.fillText(s.title,E,n+o/2+ms(e,u.headerFontFull)),x&&(e.textAlign=\"left\"),R&&s.hasMenu===!0)if(s.menuIcon===void 0||s.menuIcon===vh.Triangle){e.beginPath();const T=w.x+w.width/2-5.5,A=w.y+w.height/2-3;AL(e,[{x:T,y:A},{x:T+11,y:A},{x:T+5.5,y:A+6}],1),e.fillStyle=C,e.fill()}else if(s.menuIcon===vh.Dots){e.beginPath();const T=w.x+w.width/2,A=w.y+w.height/2;ML(e,T,A),e.fillStyle=C,e.fill()}else{const T=w.x+(w.width-u.headerIconSize)/2,A=w.y+(w.height-u.headerIconSize)/2;v.drawSprite(s.menuIcon,\"normal\",e,T,A,u.headerIconSize,u)}}function bM(e,t,n,a,o,s,c,u,f,m,v,y,x,w){const S=Bb(s.title)===\"rtl\",C=vM(t,n,a,o,S);x!==void 0?x({ctx:e,theme:u,rect:{x:t,y:n,width:a,height:o},column:s,columnIndex:s.sourceIndex,isSelected:c,hoverAmount:v,isHovered:f,hasSelectedCell:m,spriteManager:y,menuBounds:C},()=>zR(e,t,n,a,o,s,c,u,f,v,y,w,S,C)):zR(e,t,n,a,o,s,c,u,f,v,y,w,S,C)}var h0,PR;function YI(){if(PR)return h0;PR=1;var e=ll(),t=function(){try{var n=e(Object,\"defineProperty\");return n({},\"\",{}),n}catch{}}();return h0=t,h0}var m0,LR;function XI(){if(LR)return m0;LR=1;var e=YI();function t(n,a,o){a==\"__proto__\"&&e?e(n,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[a]=o}return m0=t,m0}var p0,IR;function KI(){if(IR)return p0;IR=1;function e(t,n,a,o){for(var s=-1,c=t==null?0:t.length;++s<c;){var u=t[s];n(o,u,a(u),t)}return o}return p0=e,p0}var g0,HR;function QI(){if(HR)return g0;HR=1;function e(t){return function(n,a,o){for(var s=-1,c=Object(n),u=o(n),f=u.length;f--;){var m=u[t?f:++s];if(a(c[m],m,c)===!1)break}return n}}return g0=e,g0}var v0,qR;function ZI(){if(qR)return v0;qR=1;var e=QI(),t=e();return v0=t,v0}var y0,$R;function JI(){if($R)return y0;$R=1;function e(t,n){for(var a=-1,o=Array(t);++a<t;)o[a]=n(a);return o}return y0=e,y0}var Pu={exports:{}},b0,FR;function e9(){if(FR)return b0;FR=1;function e(){return!1}return b0=e,b0}Pu.exports;var BR;function xM(){return BR||(BR=1,function(e,t){var n=vi(),a=e9(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===o,u=c?n.Buffer:void 0,f=u?u.isBuffer:void 0,m=f||a;e.exports=m}(Pu,Pu.exports)),Pu.exports}var x0,UR;function t9(){if(UR)return x0;UR=1;var e=yd(),t=Ib(),n=bd(),a=\"[object Arguments]\",o=\"[object Array]\",s=\"[object Boolean]\",c=\"[object Date]\",u=\"[object Error]\",f=\"[object Function]\",m=\"[object Map]\",v=\"[object Number]\",y=\"[object Object]\",x=\"[object RegExp]\",w=\"[object Set]\",S=\"[object String]\",C=\"[object WeakMap]\",R=\"[object ArrayBuffer]\",_=\"[object DataView]\",E=\"[object Float32Array]\",T=\"[object Float64Array]\",A=\"[object Int8Array]\",D=\"[object Int16Array]\",z=\"[object Int32Array]\",O=\"[object Uint8Array]\",H=\"[object Uint8ClampedArray]\",$=\"[object Uint16Array]\",V=\"[object Uint32Array]\",I={};I[E]=I[T]=I[A]=I[D]=I[z]=I[O]=I[H]=I[$]=I[V]=!0,I[a]=I[o]=I[R]=I[s]=I[_]=I[c]=I[u]=I[f]=I[m]=I[v]=I[y]=I[x]=I[w]=I[S]=I[C]=!1;function M(q){return n(q)&&t(q.length)&&!!I[e(q)]}return x0=M,x0}var w0,VR;function n9(){if(VR)return w0;VR=1;function e(t){return function(n){return t(n)}}return w0=e,w0}var Lu={exports:{}};Lu.exports;var WR;function r9(){return WR||(WR=1,function(e,t){var n=wT(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,c=s&&n.process,u=function(){try{var f=o&&o.require&&o.require(\"util\").types;return f||c&&c.binding&&c.binding(\"util\")}catch{}}();e.exports=u}(Lu,Lu.exports)),Lu.exports}var S0,GR;function wM(){if(GR)return S0;GR=1;var e=t9(),t=n9(),n=r9(),a=n&&n.isTypedArray,o=a?t(a):e;return S0=o,S0}var C0,YR;function a9(){if(YR)return C0;YR=1;var e=JI(),t=Pb(),n=gi(),a=xM(),o=Lb(),s=wM(),c=Object.prototype,u=c.hasOwnProperty;function f(m,v){var y=n(m),x=!y&&t(m),w=!y&&!x&&a(m),S=!y&&!x&&!w&&s(m),C=y||x||w||S,R=C?e(m.length,String):[],_=R.length;for(var E in m)(v||u.call(m,E))&&!(C&&(E==\"length\"||w&&(E==\"offset\"||E==\"parent\")||S&&(E==\"buffer\"||E==\"byteLength\"||E==\"byteOffset\")||o(E,_)))&&R.push(E);return R}return C0=f,C0}var R0,XR;function i9(){if(XR)return R0;XR=1;var e=Object.prototype;function t(n){var a=n&&n.constructor,o=typeof a==\"function\"&&a.prototype||e;return n===o}return R0=t,R0}var E0,KR;function o9(){if(KR)return E0;KR=1;function e(t,n){return function(a){return t(n(a))}}return E0=e,E0}var k0,QR;function s9(){if(QR)return k0;QR=1;var e=o9(),t=e(Object.keys,Object);return k0=t,k0}var _0,ZR;function l9(){if(ZR)return _0;ZR=1;var e=i9(),t=s9(),n=Object.prototype,a=n.hasOwnProperty;function o(s){if(!e(s))return t(s);var c=[];for(var u in Object(s))a.call(s,u)&&u!=\"constructor\"&&c.push(u);return c}return _0=o,_0}var T0,JR;function Zb(){if(JR)return T0;JR=1;var e=a9(),t=l9(),n=Kb();function a(o){return n(o)?e(o):t(o)}return T0=a,T0}var M0,eE;function c9(){if(eE)return M0;eE=1;var e=ZI(),t=Zb();function n(a,o){return a&&e(a,o,t)}return M0=n,M0}var A0,tE;function u9(){if(tE)return A0;tE=1;var e=Kb();function t(n,a){return function(o,s){if(o==null)return o;if(!e(o))return n(o,s);for(var c=o.length,u=a?c:-1,f=Object(o);(a?u--:++u<c)&&s(f[u],u,f)!==!1;);return o}}return A0=t,A0}var N0,nE;function d9(){if(nE)return N0;nE=1;var e=c9(),t=u9(),n=t(e);return N0=n,N0}var O0,rE;function f9(){if(rE)return O0;rE=1;var e=d9();function t(n,a,o,s){return e(n,function(c,u,f){a(s,c,o(c),f)}),s}return O0=t,O0}var D0,aE;function h9(){if(aE)return D0;aE=1;var e=Qh();function t(){this.__data__=new e,this.size=0}return D0=t,D0}var j0,iE;function m9(){if(iE)return j0;iE=1;function e(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}return j0=e,j0}var z0,oE;function p9(){if(oE)return z0;oE=1;function e(t){return this.__data__.get(t)}return z0=e,z0}var P0,sE;function g9(){if(sE)return P0;sE=1;function e(t){return this.__data__.has(t)}return P0=e,P0}var L0,lE;function v9(){if(lE)return L0;lE=1;var e=Qh(),t=jb(),n=zb(),a=200;function o(s,c){var u=this.__data__;if(u instanceof e){var f=u.__data__;if(!t||f.length<a-1)return f.push([s,c]),this.size=++u.size,this;u=this.__data__=new n(f)}return u.set(s,c),this.size=u.size,this}return L0=o,L0}var I0,cE;function SM(){if(cE)return I0;cE=1;var e=Qh(),t=h9(),n=m9(),a=p9(),o=g9(),s=v9();function c(u){var f=this.__data__=new e(u);this.size=f.size}return c.prototype.clear=t,c.prototype.delete=n,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,I0=c,I0}var H0,uE;function y9(){if(uE)return H0;uE=1;function e(t,n){for(var a=-1,o=t==null?0:t.length;++a<o;)if(n(t[a],a,t))return!0;return!1}return H0=e,H0}var q0,dE;function CM(){if(dE)return q0;dE=1;var e=sM(),t=y9(),n=lM(),a=1,o=2;function s(c,u,f,m,v,y){var x=f&a,w=c.length,S=u.length;if(w!=S&&!(x&&S>w))return!1;var C=y.get(c),R=y.get(u);if(C&&R)return C==u&&R==c;var _=-1,E=!0,T=f&o?new e:void 0;for(y.set(c,u),y.set(u,c);++_<w;){var A=c[_],D=u[_];if(m)var z=x?m(D,A,_,u,c,y):m(A,D,_,c,u,y);if(z!==void 0){if(z)continue;E=!1;break}if(T){if(!t(u,function(O,H){if(!n(T,H)&&(A===O||v(A,O,f,m,y)))return T.push(H)})){E=!1;break}}else if(!(A===D||v(A,D,f,m,y))){E=!1;break}}return y.delete(c),y.delete(u),E}return q0=s,q0}var $0,fE;function b9(){if(fE)return $0;fE=1;var e=vi(),t=e.Uint8Array;return $0=t,$0}var F0,hE;function x9(){if(hE)return F0;hE=1;function e(t){var n=-1,a=Array(t.size);return t.forEach(function(o,s){a[++n]=[s,o]}),a}return F0=e,F0}var B0,mE;function w9(){if(mE)return B0;mE=1;var e=vd(),t=b9(),n=Db(),a=CM(),o=x9(),s=Xb(),c=1,u=2,f=\"[object Boolean]\",m=\"[object Date]\",v=\"[object Error]\",y=\"[object Map]\",x=\"[object Number]\",w=\"[object RegExp]\",S=\"[object Set]\",C=\"[object String]\",R=\"[object Symbol]\",_=\"[object ArrayBuffer]\",E=\"[object DataView]\",T=e?e.prototype:void 0,A=T?T.valueOf:void 0;function D(z,O,H,$,V,I,M){switch(H){case E:if(z.byteLength!=O.byteLength||z.byteOffset!=O.byteOffset)return!1;z=z.buffer,O=O.buffer;case _:return!(z.byteLength!=O.byteLength||!I(new t(z),new t(O)));case f:case m:case x:return n(+z,+O);case v:return z.name==O.name&&z.message==O.message;case w:case C:return z==O+\"\";case y:var q=o;case S:var B=$&c;if(q||(q=s),z.size!=O.size&&!B)return!1;var j=M.get(z);if(j)return j==O;$|=u,M.set(z,O);var F=a(q(z),q(O),$,V,I,M);return M.delete(z),F;case R:if(A)return A.call(z)==A.call(O)}return!1}return B0=D,B0}var U0,pE;function S9(){if(pE)return U0;pE=1;var e=uM(),t=gi();function n(a,o,s){var c=o(a);return t(a)?c:e(c,s(a))}return U0=n,U0}var V0,gE;function C9(){if(gE)return V0;gE=1;function e(t,n){for(var a=-1,o=t==null?0:t.length,s=0,c=[];++a<o;){var u=t[a];n(u,a,t)&&(c[s++]=u)}return c}return V0=e,V0}var W0,vE;function R9(){if(vE)return W0;vE=1;function e(){return[]}return W0=e,W0}var G0,yE;function E9(){if(yE)return G0;yE=1;var e=C9(),t=R9(),n=Object.prototype,a=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(c){return c==null?[]:(c=Object(c),e(o(c),function(u){return a.call(c,u)}))}:t;return G0=s,G0}var Y0,bE;function k9(){if(bE)return Y0;bE=1;var e=S9(),t=E9(),n=Zb();function a(o){return e(o,n,t)}return Y0=a,Y0}var X0,xE;function _9(){if(xE)return X0;xE=1;var e=k9(),t=1,n=Object.prototype,a=n.hasOwnProperty;function o(s,c,u,f,m,v){var y=u&t,x=e(s),w=x.length,S=e(c),C=S.length;if(w!=C&&!y)return!1;for(var R=w;R--;){var _=x[R];if(!(y?_ in c:a.call(c,_)))return!1}var E=v.get(s),T=v.get(c);if(E&&T)return E==c&&T==s;var A=!0;v.set(s,c),v.set(c,s);for(var D=y;++R<w;){_=x[R];var z=s[_],O=c[_];if(f)var H=y?f(O,z,_,c,s,v):f(z,O,_,s,c,v);if(!(H===void 0?z===O||m(z,O,u,f,v):H)){A=!1;break}D||(D=_==\"constructor\")}if(A&&!D){var $=s.constructor,V=c.constructor;$!=V&&\"constructor\"in s&&\"constructor\"in c&&!(typeof $==\"function\"&&$ instanceof $&&typeof V==\"function\"&&V instanceof V)&&(A=!1)}return v.delete(s),v.delete(c),A}return X0=o,X0}var K0,wE;function T9(){if(wE)return K0;wE=1;var e=ll(),t=vi(),n=e(t,\"DataView\");return K0=n,K0}var Q0,SE;function M9(){if(SE)return Q0;SE=1;var e=ll(),t=vi(),n=e(t,\"Promise\");return Q0=n,Q0}var Z0,CE;function A9(){if(CE)return Z0;CE=1;var e=ll(),t=vi(),n=e(t,\"WeakMap\");return Z0=n,Z0}var J0,RE;function N9(){if(RE)return J0;RE=1;var e=T9(),t=jb(),n=M9(),a=cM(),o=A9(),s=yd(),c=CT(),u=\"[object Map]\",f=\"[object Object]\",m=\"[object Promise]\",v=\"[object Set]\",y=\"[object WeakMap]\",x=\"[object DataView]\",w=c(e),S=c(t),C=c(n),R=c(a),_=c(o),E=s;return(e&&E(new e(new ArrayBuffer(1)))!=x||t&&E(new t)!=u||n&&E(n.resolve())!=m||a&&E(new a)!=v||o&&E(new o)!=y)&&(E=function(T){var A=s(T),D=A==f?T.constructor:void 0,z=D?c(D):\"\";if(z)switch(z){case w:return x;case S:return u;case C:return m;case R:return v;case _:return y}return A}),J0=E,J0}var ey,EE;function O9(){if(EE)return ey;EE=1;var e=SM(),t=CM(),n=w9(),a=_9(),o=N9(),s=gi(),c=xM(),u=wM(),f=1,m=\"[object Arguments]\",v=\"[object Array]\",y=\"[object Object]\",x=Object.prototype,w=x.hasOwnProperty;function S(C,R,_,E,T,A){var D=s(C),z=s(R),O=D?v:o(C),H=z?v:o(R);O=O==m?y:O,H=H==m?y:H;var $=O==y,V=H==y,I=O==H;if(I&&c(C)){if(!c(R))return!1;D=!0,$=!1}if(I&&!$)return A||(A=new e),D||u(C)?t(C,R,_,E,T,A):n(C,R,O,_,E,T,A);if(!(_&f)){var M=$&&w.call(C,\"__wrapped__\"),q=V&&w.call(R,\"__wrapped__\");if(M||q){var B=M?C.value():C,j=q?R.value():R;return A||(A=new e),T(B,j,_,E,A)}}return I?(A||(A=new e),a(C,R,_,E,T,A)):!1}return ey=S,ey}var ty,kE;function RM(){if(kE)return ty;kE=1;var e=O9(),t=bd();function n(a,o,s,c,u){return a===o?!0:a==null||o==null||!t(a)&&!t(o)?a!==a&&o!==o:e(a,o,s,c,n,u)}return ty=n,ty}var ny,_E;function D9(){if(_E)return ny;_E=1;var e=SM(),t=RM(),n=1,a=2;function o(s,c,u,f){var m=u.length,v=m,y=!f;if(s==null)return!v;for(s=Object(s);m--;){var x=u[m];if(y&&x[2]?x[1]!==s[x[0]]:!(x[0]in s))return!1}for(;++m<v;){x=u[m];var w=x[0],S=s[w],C=x[1];if(y&&x[2]){if(S===void 0&&!(w in s))return!1}else{var R=new e;if(f)var _=f(S,C,w,s,c,R);if(!(_===void 0?t(C,S,n|a,f,R):_))return!1}}return!0}return ny=o,ny}var ry,TE;function EM(){if(TE)return ry;TE=1;var e=sl();function t(n){return n===n&&!e(n)}return ry=t,ry}var ay,ME;function j9(){if(ME)return ay;ME=1;var e=EM(),t=Zb();function n(a){for(var o=t(a),s=o.length;s--;){var c=o[s],u=a[c];o[s]=[c,u,e(u)]}return o}return ay=n,ay}var iy,AE;function kM(){if(AE)return iy;AE=1;function e(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==void 0||t in Object(a))}}return iy=e,iy}var oy,NE;function z9(){if(NE)return oy;NE=1;var e=D9(),t=j9(),n=kM();function a(o){var s=t(o);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(c){return c===o||e(c,o,s)}}return oy=a,oy}var sy,OE;function _M(){if(OE)return sy;OE=1;var e=RT(),t=Jh();function n(a,o){o=e(o,a);for(var s=0,c=o.length;a!=null&&s<c;)a=a[t(o[s++])];return s&&s==c?a:void 0}return sy=n,sy}var ly,DE;function P9(){if(DE)return ly;DE=1;var e=_M();function t(n,a,o){var s=n==null?void 0:e(n,a);return s===void 0?o:s}return ly=t,ly}var cy,jE;function L9(){if(jE)return cy;jE=1;function e(t,n){return t!=null&&n in Object(t)}return cy=e,cy}var uy,zE;function I9(){if(zE)return uy;zE=1;var e=L9(),t=ET();function n(a,o){return a!=null&&t(a,o,e)}return uy=n,uy}var dy,PE;function H9(){if(PE)return dy;PE=1;var e=RM(),t=P9(),n=I9(),a=Ob(),o=EM(),s=kM(),c=Jh(),u=1,f=2;function m(v,y){return a(v)&&o(y)?s(c(v),y):function(x){var w=t(x,v);return w===void 0&&w===y?n(x,v):e(y,w,u|f)}}return dy=m,dy}var fy,LE;function q9(){if(LE)return fy;LE=1;function e(t){return t}return fy=e,fy}var hy,IE;function $9(){if(IE)return hy;IE=1;function e(t){return function(n){return n?.[t]}}return hy=e,hy}var my,HE;function F9(){if(HE)return my;HE=1;var e=_M();function t(n){return function(a){return e(a,n)}}return my=t,my}var py,qE;function B9(){if(qE)return py;qE=1;var e=$9(),t=F9(),n=Ob(),a=Jh();function o(s){return n(s)?e(a(s)):t(s)}return py=o,py}var gy,$E;function U9(){if($E)return gy;$E=1;var e=z9(),t=H9(),n=q9(),a=gi(),o=B9();function s(c){return typeof c==\"function\"?c:c==null?n:typeof c==\"object\"?a(c)?t(c[0],c[1]):e(c):o(c)}return gy=s,gy}var vy,FE;function V9(){if(FE)return vy;FE=1;var e=KI(),t=f9(),n=U9(),a=gi();function o(s,c){return function(u,f){var m=a(u)?e:t,v=c?c():{};return m(u,s,n(f,2),v)}}return vy=o,vy}var yy,BE;function W9(){if(BE)return yy;BE=1;var e=XI(),t=V9(),n=Object.prototype,a=n.hasOwnProperty,o=t(function(s,c,u){a.call(s,u)?s[u].push(c):e(s,u,[c])});return yy=o,yy}var G9=W9();const Y9=Ya(G9);function X9(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R,_,E){if(_!==void 0||t[t.length-1]!==n[t.length-1])return;const T=fM(R);ps(t,f,c,u,s,(A,D,z,O,H)=>{if(A!==t[t.length-1])return;D+=A.width;const $=Math.max(D,O);$>a||(e.save(),e.beginPath(),e.rect($,s+1,1e4,o-s-1),e.clip(),tm(H,z,o,m,v,S,C,T,(V,I,M,q)=>{if(!q&&R.length>0&&!R.some(W=>bh(D,V,1e4,M,W.x,W.y,W.width,W.height)))return;const B=x.hasIndex(I),j=w.hasIndex(I);e.beginPath();const F=y?.(I),U=F===void 0?E:as(E,F);U.bgCell!==E.bgCell&&(e.fillStyle=U.bgCell,e.fillRect(D,V,1e4,M)),j&&(e.fillStyle=U.bgHeader,e.fillRect(D,V,1e4,M)),B&&(e.fillStyle=U.accentLight,e.fillRect(D,V,1e4,M))}),e.restore())})}function K9(e,t,n,a,o,s,c,u,f){let m=!1;for(const S of t)if(!S.sticky){m=c(S.sourceIndex);break}const v=f.horizontalBorderColor??f.borderColor,y=f.borderColor,x=m?Ec(t):0;let w;if(x!==0&&(w=eR(y,f.bgCell),e.beginPath(),e.moveTo(x+.5,0),e.lineTo(x+.5,a),e.strokeStyle=w,e.stroke()),o>0){const S=y===v&&w!==void 0?w:eR(v,f.bgCell),C=ul(s,o,u);e.beginPath(),e.moveTo(0,a-C+.5),e.lineTo(n,a-C+.5),e.strokeStyle=S,e.stroke()}}const TM=(e,t,n)=>{let a=0,o=t,s=0,c=n;if(e!==void 0&&e.length>0){a=Number.MAX_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER;for(const u of e)a=Math.min(a,u.x-1),o=Math.max(o,u.x+u.width+1),s=Math.min(s,u.y-1),c=Math.max(c,u.y+u.height+1)}return{minX:a,maxX:o,minY:s,maxY:c}};function Q9(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S){const C=S.bgCell,{minX:R,maxX:_,minY:E,maxY:T}=TM(u,s,c),A=[],D=c-ul(w,x,m);let z=f,O=n,H=0;for(;z+o<D;){const M=z+o,q=m(O);if(M>=E&&M<=T-1){const j=v?.(O)?.bgCell;j!==void 0&&j!==C&&O>=w-x&&A.push({x:R,y:M,w:_-R,h:q,color:j})}z+=q,O<w-x&&(H=z),O++}let $=0;const V=Math.min(D,T)-H;if(V>0)for(let M=0;M<t.length;M++){const q=t[M];if(q.width===0)continue;const B=q.sticky?$:$+a,j=q.themeOverride?.bgCell;j!==void 0&&j!==C&&B>=R&&B<=_&&y(M+1)&&A.push({x:B,y:H,w:q.width,h:V,color:j}),$+=q.width}if(A.length===0)return;let I;e.beginPath();for(let M=A.length-1;M>=0;M--){const q=A[M];I===void 0?I=q.color:q.color!==I&&(e.fillStyle=I,e.fill(),e.beginPath(),I=q.color),e.rect(q.x,q.y,q.w,q.h)}I!==void 0&&(e.fillStyle=I,e.fill()),e.beginPath()}function UE(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R,_=!1){if(f!==void 0){e.beginPath(),e.save(),e.rect(0,0,s,c);for(const M of f)e.rect(M.x+1,M.y+1,M.width-1,M.height-1);e.clip(\"evenodd\")}const E=R.horizontalBorderColor??R.borderColor,T=R.borderColor,{minX:A,maxX:D,minY:z,maxY:O}=TM(u,s,c),H=[];e.beginPath();let $=.5;for(let M=0;M<t.length;M++){const q=t[M];if(q.width===0)continue;$+=q.width;const B=q.sticky?$:$+a;B>=A&&B<=D&&w(M+1)&&H.push({x1:B,y1:Math.max(m,z),x2:B,y2:Math.min(c,O),color:T})}let V=c+.5;for(let M=C-S;M<C;M++){const q=y(M);V-=q,H.push({x1:A,y1:V,x2:D,y2:V,color:E})}if(_!==!0){let M=v+.5,q=n;const B=V;for(;M+o<B;){const j=M+o;if(j>=z&&j<=O-1){const F=x?.(q);H.push({x1:A,y1:j,x2:D,y2:j,color:F?.horizontalBorderColor??F?.borderColor??E})}M+=y(q),q++}}const I=Y9(H,M=>M.color);for(const M of Object.keys(I)){e.strokeStyle=M;for(const q of I[M])e.moveTo(q.x1,q.y1),e.lineTo(q.x2,q.y2);e.stroke(),e.beginPath()}f!==void 0&&e.restore()}function Z9(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R,_,E){const T=[];e.imageSmoothingEnabled=!1;const A=Math.min(o.cellYOffset,c),D=Math.max(o.cellYOffset,c);let z=0;if(typeof _==\"number\")z+=(D-A)*_;else for(let B=A;B<D;B++)z+=_(B);c>o.cellYOffset&&(z=-z),z+=f-o.translateY;const O=Math.min(o.cellXOffset,s),H=Math.max(o.cellXOffset,s);let $=0;for(let B=O;B<H;B++)$+=C[B].width;s>o.cellXOffset&&($=-$),$+=u-o.translateX;const V=Ec(R);if($!==0&&z!==0)return{regions:[]};const I=m>0?ul(x,m,_):0,M=v-V-Math.abs($),q=y-w-I-Math.abs(z)-1;if(M>150&&q>150){const B={sx:0,sy:0,sw:v*S,sh:y*S,dx:0,dy:0,dw:v*S,dh:y*S};if(z>0?(B.sy=(w+1)*S,B.sh=q*S,B.dy=(z+w+1)*S,B.dh=q*S,T.push({x:0,y:w,width:v,height:z+1})):z<0&&(B.sy=(-z+w+1)*S,B.sh=q*S,B.dy=(w+1)*S,B.dh=q*S,T.push({x:0,y:y+z-I,width:v,height:-z+I})),$>0?(B.sx=V*S,B.sw=M*S,B.dx=($+V)*S,B.dw=M*S,T.push({x:V-1,y:0,width:$+2,height:y})):$<0&&(B.sx=(V-$)*S,B.sw=M*S,B.dx=V*S,B.dw=M*S,T.push({x:v+$,y:0,width:-$,height:y})),e.setTransform(1,0,0,1,0,0),E){if(V>0&&$!==0&&z===0&&(a===void 0||n?.[1]!==!1)){const j=V*S,F=y*S;e.drawImage(t,0,0,j,F,0,0,j,F)}if(I>0&&$===0&&z!==0&&(a===void 0||n?.[0]!==!1)){const j=(y-I)*S,F=v*S,U=I*S;e.drawImage(t,0,j,F,U,0,j,F,U)}}e.drawImage(t,B.sx,B.sy,B.sw,B.sh,B.dx,B.dy,B.dw,B.dh),e.scale(S,S)}return e.imageSmoothingEnabled=!0,{regions:T}}function J9(e,t,n,a,o,s,c,u,f,m){const v=[];return t!==e.cellXOffset||n!==e.cellYOffset||a!==e.translateX||o!==e.translateY||ps(f,n,a,o,u,(y,x,w,S)=>{if(y.sourceIndex===m){const C=Math.max(x,S)+1;return v.push({x:C,y:0,width:s-C,height:c}),!0}}),v}function eH(e,t){if(t===void 0||e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.freezeColumns!==t.freezeColumns||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.maxScaleFactor!==t.maxScaleFactor)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;let n;for(let a=0;a<e.mappedColumns.length;a++){const o=e.mappedColumns[a],s=t.mappedColumns[a];if(Rc(o,s))continue;if(n!==void 0||o.width===s.width)return!1;const{width:c,...u}=o,{width:f,...m}=s;if(!Rc(u,m))return!1;n=a}return n===void 0?!0:n}return!0}function VE(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C){const R=S?.filter(O=>O.style!==\"no-outline\");if(R===void 0||R.length===0)return;const _=Ec(u),E=ul(w,x,y),T=[f,0,u.length,w-x],A=[_,0,t,n-E],D=R.map(O=>{const H=O.range,$=O.style??\"dashed\";return BI(H,T,t,n,A).map(V=>{const I=V.rect,M=rb(I.x,I.y,t,n,v,m+v,a,o,s,c,w,f,x,u,y),q=I.width===1&&I.height===1?M:rb(I.x+I.width-1,I.y+I.height-1,t,n,v,m+v,a,o,s,c,w,f,x,u,y);return I.x+I.width>=u.length&&(q.width-=1),I.y+I.height>=w&&(q.height-=1),{color:O.color,style:$,clip:V.clip,rect:FI({x:M.x,y:M.y,width:q.x+q.width-M.x,height:q.y+q.height-M.y},t,n,8)}})}),z=()=>{e.lineWidth=1;let O=!1;for(const H of D)for(const $ of H)if($?.rect!==void 0&&bh(0,0,t,n,$.rect.x,$.rect.y,$.rect.width,$.rect.height)){const V=O,I=!$I($.clip,$.rect);I&&(e.save(),e.rect($.clip.x,$.clip.y,$.clip.width,$.clip.height),e.clip()),$.style===\"dashed\"&&!O?(e.setLineDash([5,3]),O=!0):($.style===\"solid\"||$.style===\"solid-outline\")&&O&&(e.setLineDash([]),O=!1),e.strokeStyle=$.style===\"solid-outline\"?pa(pa($.color,C.borderColor),C.bgCell):al($.color,1),e.strokeRect($.rect.x+.5,$.rect.y+.5,$.rect.width-1,$.rect.height-1),I&&(e.restore(),O=V)}O&&e.setLineDash([])};return z(),z}function WE(e,t,n,a,o){e.beginPath(),e.moveTo(t,n),e.lineTo(t,a),e.lineWidth=2,e.strokeStyle=o,e.stroke(),e.globalAlpha=1}function by(e,t,n,a,o,s,c,u,f,m,v,y,x,w,S,C,R){if(v.current===void 0)return;const _=v.current.range,E=v.current.cell,T=[_.x+_.width-1,_.y+_.height-1];if(E[1]>=R&&T[1]>=R||!c.some(B=>B.sourceIndex===E[0]||B.sourceIndex===T[0]))return;const[D,z]=v.current.cell,O=x(v.current.cell),H=O.span??[D,D],$=z>=R-w,V=w>0&&!$?ul(R,w,y)-1:0,I=T[1];let M;if(ps(c,a,o,s,m,(B,j,F,U,W)=>{if(B.sticky&&D>B.sourceIndex)return;const ee=B.sourceIndex<H[0],oe=B.sourceIndex>H[1],P=B.sourceIndex===T[0];if(!(!P&&(ee||oe)))return tm(W,F,n,R,y,w,S,void 0,(Y,G,K)=>{if(G!==z&&G!==I)return;let te=j,fe=B.width;if(O.span!==void 0){const he=mM(O.span,j,Y,B.width,K,B,u),Ae=B.sticky?he[0]:he[1];Ae!==void 0&&(te=Ae.x,fe=Ae.width)}return G===I&&P&&C&&(M=()=>{U>te&&!B.sticky&&(e.beginPath(),e.rect(U,0,t-U,n),e.clip()),e.beginPath(),e.rect(te+fe-4,Y+K-4,4,4),e.fillStyle=B.themeOverride?.accentColor??f.accentColor,e.fill()}),M!==void 0}),M!==void 0}),M===void 0)return;const q=()=>{e.save(),e.beginPath(),e.rect(0,m,t,n-m-V),e.clip(),M?.(),e.restore()};return q(),q}function tH(e,t,n,a,o,s,c,u,f){f===void 0||f.size===0||(e.beginPath(),hM(t,n,s,a,(m,v,y,x,w,S)=>{f.hasItemInRectangle({x:m[0],y:-2,width:m[1]-m[0]+1,height:1})&&e.rect(y,x,w,S)}),ps(t,u,s,c,o,(m,v,y,x)=>{const w=Math.max(0,x-v),S=v+w+1,C=m.width-w-1;f.has([m.sourceIndex,-1])&&e.rect(S,a,C,o-a)}),e.clip())}function nH(e,t,n,a,o,s,c,u,f,m){let v=0;return ps(e,s,a,o,n,(y,x,w,S,C)=>(tm(C,w,t,c,u,f,m,void 0,(R,_,E,T)=>{T||(v=Math.max(_,v))}),!0)),v}function GE(e,t){const{canvasCtx:n,headerCanvasCtx:a,width:o,height:s,cellXOffset:c,cellYOffset:u,translateX:f,translateY:m,mappedColumns:v,enableGroups:y,freezeColumns:x,dragAndDropState:w,theme:S,drawFocus:C,headerHeight:R,groupHeaderHeight:_,disabledRows:E,rowHeight:T,verticalBorder:A,overrideCursor:D,isResizing:z,selection:O,fillHandle:H,freezeTrailingRows:$,rows:V,getCellContent:I,getGroupDetails:M,getRowThemeOverride:q,isFocused:B,drawHeaderCallback:j,prelightCells:F,drawCellCallback:U,highlightRegions:W,resizeCol:ee,imageLoader:oe,lastBlitData:P,hoverValues:Y,hyperWrapping:G,hoverInfo:K,spriteManager:te,maxScaleFactor:fe,hasAppendRow:ne,touchMode:he,enqueue:Ae,renderStateProvider:He,getCellRenderer:Ye,renderStrategy:tt,bufferACtx:ze,bufferBCtx:Ke,damage:le,minimumCellWidth:ke}=e;if(o===0||s===0)return;const re=tt===\"double-buffer\",ie=Math.min(fe,Math.ceil(window.devicePixelRatio??1)),be=tt!==\"direct\"&&eH(e,t),Ne=n.canvas;(Ne.width!==o*ie||Ne.height!==s*ie)&&(Ne.width=o*ie,Ne.height=s*ie,Ne.style.width=o+\"px\",Ne.style.height=s+\"px\");const qe=a.canvas,Oe=y?_+R:R,Be=Oe+1;(qe.width!==o*ie||qe.height!==Be*ie)&&(qe.width=o*ie,qe.height=Be*ie,qe.style.width=o+\"px\",qe.style.height=Be+\"px\");const et=ze.canvas,ht=Ke.canvas;re&&(et.width!==o*ie||et.height!==s*ie)&&(et.width=o*ie,et.height=s*ie,P.current!==void 0&&(P.current.aBufferScroll=void 0)),re&&(ht.width!==o*ie||ht.height!==s*ie)&&(ht.width=o*ie,ht.height=s*ie,P.current!==void 0&&(P.current.bBufferScroll=void 0));const Ve=P.current;if(be===!0&&c===Ve?.cellXOffset&&u===Ve?.cellYOffset&&f===Ve?.translateX&&m===Ve?.translateY)return;let Ht=null;re&&(Ht=n);const mt=a;let dt;re?le!==void 0?dt=Ve?.lastBuffer===\"b\"?Ke:ze:dt=Ve?.lastBuffer===\"b\"?ze:Ke:dt=n;const Sn=dt.canvas,jt=re?Sn===et?ht:et:Ne,Mt=typeof T==\"number\"?()=>T:T;mt.save(),dt.save(),mt.beginPath(),dt.beginPath(),mt.textBaseline=\"middle\",dt.textBaseline=\"middle\",ie!==1&&(mt.scale(ie,ie),dt.scale(ie,ie));const yt=nb(v,c,o,w,f);let Lt=[];const hn=C&&O.current?.cell[1]===u&&m===0;let cn=!1;if(W!==void 0){for(const kt of W)if(kt.style!==\"no-outline\"&&kt.range.y===u&&m===0){cn=!0;break}}const Vr=()=>{WI(mt,yt,y,K,o,f,R,_,w,z,O,S,te,Y,A,M,le,j,he),UE(mt,yt,u,f,m,o,s,void 0,void 0,_,Oe,Mt,q,A,$,V,S,!0),mt.beginPath(),mt.moveTo(0,Be-.5),mt.lineTo(o,Be-.5),mt.strokeStyle=pa(S.headerBottomBorderColor??S.horizontalBorderColor??S.borderColor,S.bgHeader),mt.stroke(),cn&&VE(mt,o,s,c,u,f,m,v,x,R,_,T,$,V,W,S),hn&&by(mt,o,s,u,f,m,yt,v,S,Oe,O,Mt,I,$,ne,H,V)};if(le!==void 0){const kt=yt[yt.length-1].sourceIndex+1,Xt=le.hasItemInRegion([{x:c,y:-2,width:kt,height:2},{x:c,y:u,width:kt,height:300},{x:0,y:u,width:x,height:300},{x:0,y:-2,width:x,height:2},{x:c,y:V-$,width:kt,height:$,when:$>0}]),wr=Vn=>{jR(Vn,yt,v,s,Oe,f,m,u,V,Mt,I,M,q,E,B,C,$,ne,Lt,le,O,F,W,oe,te,Y,K,U,G,S,Ae,He,Ye,D,ke);const at=O.current;H&&C&&at!==void 0&&le.has(YT(at.range))&&by(Vn,o,s,u,f,m,yt,v,S,Oe,O,Mt,I,$,ne,H,V)};Xt&&(wr(dt),Ht!==null&&(Ht.save(),Ht.scale(ie,ie),Ht.textBaseline=\"middle\",wr(Ht),Ht.restore()),le.hasHeader()&&(tH(mt,yt,o,_,Oe,f,m,u,le),Vr())),dt.restore(),mt.restore();return}if((be!==!0||c!==Ve?.cellXOffset||f!==Ve?.translateX||hn!==Ve?.mustDrawFocusOnHeader||cn!==Ve?.mustDrawHighlightRingsOnHeader)&&Vr(),be===!0){ma(jt!==void 0&&Ve!==void 0);const{regions:kt}=Z9(dt,jt,jt===et?Ve.aBufferScroll:Ve.bBufferScroll,jt===et?Ve.bBufferScroll:Ve.aBufferScroll,Ve,c,u,f,m,$,o,s,V,Oe,ie,v,yt,T,re);Lt=kt}else be!==!1&&(ma(Ve!==void 0),Lt=J9(Ve,c,u,f,m,o,s,Oe,yt,be));K9(dt,yt,o,s,$,V,A,Mt,S);const kn=VE(dt,o,s,c,u,f,m,v,x,R,_,T,$,V,W,S),xr=C?by(dt,o,s,u,f,m,yt,v,S,Oe,O,Mt,I,$,ne,H,V):void 0;if(dt.fillStyle=S.bgCell,Lt.length>0){dt.beginPath();for(const kt of Lt)dt.rect(kt.x,kt.y,kt.width,kt.height);dt.clip(),dt.fill(),dt.beginPath()}else dt.fillRect(0,0,o,s);const In=jR(dt,yt,v,s,Oe,f,m,u,V,Mt,I,M,q,E,B,C,$,ne,Lt,le,O,F,W,oe,te,Y,K,U,G,S,Ae,He,Ye,D,ke);X9(dt,yt,v,o,s,Oe,f,m,u,V,Mt,q,O.rows,E,$,ne,Lt,le,S),Q9(dt,yt,u,f,m,o,s,Lt,Oe,Mt,q,A,$,V,S),UE(dt,yt,u,f,m,o,s,Lt,In,_,Oe,Mt,q,A,$,V,S),kn?.(),xr?.(),z&&ps(yt,0,f,0,Oe,(kt,Xt)=>kt.sourceIndex===ee?(WE(mt,Xt+kt.width,0,Oe+1,pa(S.resizeIndicatorColor??S.accentLight,S.bgHeader)),WE(dt,Xt+kt.width,Oe,s,pa(S.resizeIndicatorColor??S.accentLight,S.bgCell)),!0):!1),Ht!==null&&(Ht.fillStyle=S.bgCell,Ht.fillRect(0,0,o,s),Ht.drawImage(dt.canvas,0,0));const zr=nH(yt,s,Oe,f,m,u,V,Mt,$,ne);oe?.setWindow({x:c,y:u,width:yt.length,height:zr-u},x,Array.from({length:$},(kt,Xt)=>V-1-Xt));const Pr=Ve!==void 0&&(c!==Ve.cellXOffset||f!==Ve.translateX),qt=Ve!==void 0&&(u!==Ve.cellYOffset||m!==Ve.translateY);P.current={cellXOffset:c,cellYOffset:u,translateX:f,translateY:m,mustDrawFocusOnHeader:hn,mustDrawHighlightRingsOnHeader:cn,lastBuffer:re?Sn===et?\"a\":\"b\":void 0,aBufferScroll:Sn===et?[Pr,qt]:Ve?.aBufferScroll,bBufferScroll:Sn===ht?[Pr,qt]:Ve?.bBufferScroll},dt.restore(),mt.restore()}const rH=80;function aH(e){const t=e-1;return t*t*t+1}class iH{callback;constructor(t){this.callback=t}currentHoveredItem=void 0;leavingItems=[];lastAnimationTime;addToLeavingItems=t=>{this.leavingItems.some(a=>Wu(a.item,t.item))||this.leavingItems.push(t)};removeFromLeavingItems=t=>{const n=this.leavingItems.find(a=>Wu(a.item,t));return this.leavingItems=this.leavingItems.filter(a=>a!==n),n?.hoverAmount??0};cleanUpLeavingElements=()=>{this.leavingItems=this.leavingItems.filter(t=>t.hoverAmount>0)};shouldStep=()=>{const t=this.leavingItems.length>0,n=this.currentHoveredItem!==void 0&&this.currentHoveredItem.hoverAmount<1;return t||n};getAnimatingItems=()=>this.currentHoveredItem!==void 0?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map(t=>({...t,hoverAmount:aH(t.hoverAmount)}));step=t=>{if(this.lastAnimationTime===void 0)this.lastAnimationTime=t;else{const a=(t-this.lastAnimationTime)/rH;for(const s of this.leavingItems)s.hoverAmount=Ba(s.hoverAmount-a,0,1);this.currentHoveredItem!==void 0&&(this.currentHoveredItem.hoverAmount=Ba(this.currentHoveredItem.hoverAmount+a,0,1));const o=this.getAnimatingItems();this.callback(o),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=t,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0};setHovered=t=>{if(!Wu(this.currentHoveredItem?.item,t)){if(this.currentHoveredItem!==void 0&&this.addToLeavingItems(this.currentHoveredItem),t!==void 0){const n=this.removeFromLeavingItems(t);this.currentHoveredItem={item:t,hoverAmount:n}}else this.currentHoveredItem=void 0;this.lastAnimationTime===void 0&&window.requestAnimationFrame(this.step)}}}class oH{fn;val;constructor(t){this.fn=t}get value(){return this.val??(this.val=this.fn())}}function Jb(e){return new oH(e)}const sH=Jb(()=>window.navigator.userAgent.includes(\"Firefox\")),xh=Jb(()=>window.navigator.userAgent.includes(\"Mac OS\")&&window.navigator.userAgent.includes(\"Safari\")&&!window.navigator.userAgent.includes(\"Chrome\")),wh=Jb(()=>window.navigator.platform.toLowerCase().startsWith(\"mac\"));function lH(e){const t=h.useRef([]),n=h.useRef(0),a=h.useRef(e);a.current=e;const o=h.useCallback(()=>{const s=()=>window.requestAnimationFrame(c),c=()=>{const u=t.current.map(Yb);t.current=[],a.current(new Yu(u)),t.current.length>0?n.current++:n.current=0};window.requestAnimationFrame(n.current>600?s:c)},[]);return h.useCallback(s=>{t.current.length===0&&o();const c=Ua(s[0],s[1]);t.current.includes(c)||t.current.push(c)},[o])}const Ko=\"header\",fa=\"group-header\",Sh=\"out-of-bounds\";var uc;(function(e){e[e.Start=-2]=\"Start\",e[e.StartPadding=-1]=\"StartPadding\",e[e.Center=0]=\"Center\",e[e.EndPadding=1]=\"EndPadding\",e[e.End=2]=\"End\"})(uc||(uc={}));function MM(e,t){return e===t?!0:e?.kind===\"out-of-bounds\"?e?.kind===t?.kind&&e?.location[0]===t?.location[0]&&e?.location[1]===t?.location[1]&&e?.region[0]===t?.region[0]&&e?.region[1]===t?.region[1]:e?.kind===t?.kind&&e?.location[0]===t?.location[0]&&e?.location[1]===t?.location[1]}const YE=6,cH=(e,t)=>e.kind===Ie.Custom?e.copyData:t?.(e)?.getAccessibilityString(e)??\"\",uH=(e,t)=>{const{width:n,height:a,accessibilityHeight:o,columns:s,cellXOffset:c,cellYOffset:u,headerHeight:f,fillHandle:m=!1,groupHeaderHeight:v,rowHeight:y,rows:x,getCellContent:w,getRowThemeOverride:S,onHeaderMenuClick:C,enableGroups:R,isFilling:_,onCanvasFocused:E,onCanvasBlur:T,isFocused:A,selection:D,freezeColumns:z,onContextMenu:O,freezeTrailingRows:H,fixedShadowX:$=!0,fixedShadowY:V=!0,drawFocusRing:I,onMouseDown:M,onMouseUp:q,onMouseMoveRaw:B,onMouseMove:j,onItemHovered:F,dragAndDropState:U,firstColAccessible:W,onKeyDown:ee,onKeyUp:oe,highlightRegions:P,canvasRef:Y,onDragStart:G,onDragEnd:K,eventTargetRef:te,isResizing:fe,resizeColumn:ne,isDragging:he,isDraggable:Ae=!1,allowResize:He,disabledRows:Ye,hasAppendRow:tt,getGroupDetails:ze,theme:Ke,prelightCells:le,headerIcons:ke,verticalBorder:re,drawCell:ie,drawHeader:be,onCellFocused:Ne,onDragOverCell:qe,onDrop:Oe,onDragLeave:Be,imageWindowLoader:et,smoothScrollX:ht=!1,smoothScrollY:Ve=!1,experimental:Ht,getCellRenderer:mt}=e,dt=e.translateX??0,Sn=e.translateY??0,jt=Math.max(z,Math.min(s.length-1,c)),Mt=h.useRef(null),yt=et,Lt=h.useRef(),[hn,cn]=h.useState(!1),Vr=h.useRef([]),kn=h.useRef(),[xr,In]=h.useState(),[zr,Pr]=h.useState(),qt=h.useRef(null),[kt,Xt]=h.useState(),[wr,Vn]=h.useState(!1),at=h.useRef(wr);at.current=wr;const Wt=h.useMemo(()=>new HI(ke,()=>{dr.current=void 0,Kr.current()}),[ke]),en=R?v+f:f,Wr=h.useRef(-1),Wn=(Ht?.enableFirefoxRescaling??!1)&&sH.value,Sr=(Ht?.enableSafariRescaling??!1)&&xh.value;h.useLayoutEffect(()=>{window.devicePixelRatio===1||!Wn&&!Sr||(Wr.current!==-1&&cn(!0),window.clearTimeout(Wr.current),Wr.current=window.setTimeout(()=>{cn(!1),Wr.current=-1},200))},[u,jt,dt,Sn,Wn,Sr]);const mn=gL(s,z),Qa=$?Ec(mn,U):0,Cn=h.useCallback((se,_e,Pe)=>{const De=se.getBoundingClientRect();if(_e>=mn.length||Pe>=x)return;const Me=De.width/n,Le=rb(_e,Pe,n,a,v,en,jt,u,dt,Sn,x,z,H,mn,y);return Me!==1&&(Le.x*=Me,Le.y*=Me,Le.width*=Me,Le.height*=Me),Le.x+=De.x,Le.y+=De.y,Le},[n,a,v,en,jt,u,dt,Sn,x,z,H,mn,y]),_n=h.useCallback((se,_e,Pe,De)=>{const Me=se.getBoundingClientRect(),Le=Me.width/n,rt=(_e-Me.left)/Le,$e=(Pe-Me.top)/Le,Xe=5,ft=nb(mn,jt,n,void 0,dt);let tn=0,nn=0;De instanceof MouseEvent&&(tn=De.button,nn=De.buttons);const Ft=xL(rt,ft,dt),At=wL($e,a,R,f,v,x,y,u,Sn,H),dn=De?.shiftKey===!0,pt=De?.ctrlKey===!0,Kt=De?.metaKey===!0,Ri=De!==void 0&&!(De instanceof MouseEvent)||De?.pointerType===\"touch\",An=[rt<0?-1:n<rt?1:0,$e<en?-1:a<$e?1:0];let Ei;if(Ft===-1||$e<0||rt<0||At===void 0||rt>n||$e>a){const Bt=rt>n?1:rt<0?-1:0,Hn=$e>a?1:$e<0?-1:0;let pr=Bt*2,Ca=Hn*2;Bt===0&&(pr=Ft===-1?uc.EndPadding:uc.Center),Hn===0&&(Ca=At===void 0?uc.EndPadding:uc.Center);let Jr=!1;if(Ft===-1&&At===-1){const ki=Cn(se,mn.length-1,-1);ma(ki!==void 0),Jr=_e<ki.x+ki.width+Xe}const co=rt>n&&rt<n+Zy()||$e>a&&$e<a+Zy();Ei={kind:Sh,location:[Ft!==-1?Ft:rt<0?0:mn.length-1,At??x-1],region:[pr,Ca],shiftKey:dn,ctrlKey:pt,metaKey:Kt,isEdge:Jr,isTouch:Ri,button:tn,buttons:nn,scrollEdge:An,isMaybeScrollbar:co}}else if(At<=-1){let Bt=Cn(se,Ft,At);ma(Bt!==void 0);let Hn=Bt!==void 0&&Bt.x+Bt.width-_e<=Xe;const pr=Ft-1;_e-Bt.x<=Xe&&pr>=0?(Hn=!0,Bt=Cn(se,pr,At),ma(Bt!==void 0),Ei={kind:R&&At===-2?fa:Ko,location:[pr,At],bounds:Bt,group:mn[pr].group??\"\",isEdge:Hn,shiftKey:dn,ctrlKey:pt,metaKey:Kt,isTouch:Ri,localEventX:_e-Bt.x,localEventY:Pe-Bt.y,button:tn,buttons:nn,scrollEdge:An}):Ei={kind:R&&At===-2?fa:Ko,group:mn[Ft].group??\"\",location:[Ft,At],bounds:Bt,isEdge:Hn,shiftKey:dn,ctrlKey:pt,metaKey:Kt,isTouch:Ri,localEventX:_e-Bt.x,localEventY:Pe-Bt.y,button:tn,buttons:nn,scrollEdge:An}}else{const Bt=Cn(se,Ft,At);ma(Bt!==void 0);const Hn=Bt!==void 0&&Bt.x+Bt.width-_e<Xe;let pr=!1;if(m&&D.current!==void 0){const Ca=YT(D.current.range),Jr=Cn(se,Ca[0],Ca[1]);if(Jr!==void 0){const co=Jr.x+Jr.width-2,ki=Jr.y+Jr.height-2;pr=Math.abs(co-_e)<YE&&Math.abs(ki-Pe)<YE}}Ei={kind:\"cell\",location:[Ft,At],bounds:Bt,isEdge:Hn,shiftKey:dn,ctrlKey:pt,isFillHandle:pr,metaKey:Kt,isTouch:Ri,localEventX:_e-Bt.x,localEventY:Pe-Bt.y,button:tn,buttons:nn,scrollEdge:An}}return Ei},[n,mn,jt,dt,a,R,f,v,x,y,u,Sn,H,Cn,m,D,en]),[Rn]=xr??[],Tn=h.useRef(()=>{}),jn=h.useRef(xr);jn.current=xr;const[ur,Gr]=h.useMemo(()=>{const se=document.createElement(\"canvas\"),_e=document.createElement(\"canvas\");return se.style.display=\"none\",se.style.opacity=\"0\",se.style.position=\"fixed\",_e.style.display=\"none\",_e.style.opacity=\"0\",_e.style.position=\"fixed\",[se.getContext(\"2d\",{alpha:!1}),_e.getContext(\"2d\",{alpha:!1})]},[]);h.useLayoutEffect(()=>{if(!(ur===null||Gr===null))return document.documentElement.append(ur.canvas),document.documentElement.append(Gr.canvas),()=>{ur.canvas.remove(),Gr.canvas.remove()}},[ur,Gr]);const oo=h.useMemo(()=>new NL,[]),hl=Wn&&hn?1:Sr&&hn?2:5,gs=Ht?.disableMinimumCellWidth===!0?1:10,dr=h.useRef(),Za=h.useRef(null),Yr=h.useRef(null),Xr=h.useCallback(()=>{const se=Mt.current,_e=qt.current;if(se===null||_e===null||(Za.current===null&&(Za.current=se.getContext(\"2d\",{alpha:!1}),se.width=0,se.height=0),Yr.current===null&&(Yr.current=_e.getContext(\"2d\",{alpha:!1}),_e.width=0,_e.height=0),Za.current===null||Yr.current===null||ur===null||Gr===null))return;let Pe=!1;const De=rt=>{Pe=!0,Xt(rt)},Me=dr.current,Le={headerCanvasCtx:Yr.current,canvasCtx:Za.current,bufferACtx:ur,bufferBCtx:Gr,width:n,height:a,cellXOffset:jt,cellYOffset:u,translateX:Math.round(dt),translateY:Math.round(Sn),mappedColumns:mn,enableGroups:R,freezeColumns:z,dragAndDropState:U,theme:Ke,headerHeight:f,groupHeaderHeight:v,disabledRows:Ye??wt.empty(),rowHeight:y,verticalBorder:re,isResizing:fe,resizeCol:ne,isFocused:A,selection:D,fillHandle:m,drawCellCallback:ie,hasAppendRow:tt,overrideCursor:De,maxScaleFactor:hl,freezeTrailingRows:H,rows:x,drawFocus:I,getCellContent:w,getGroupDetails:ze??(rt=>({name:rt})),getRowThemeOverride:S,drawHeaderCallback:be,prelightCells:le,highlightRegions:P,imageLoader:yt,lastBlitData:kn,damage:Lt.current,hoverValues:Vr.current,hoverInfo:jn.current,spriteManager:Wt,scrolling:hn,hyperWrapping:Ht?.hyperWrapping??!1,touchMode:wr,enqueue:Tn.current,renderStateProvider:oo,renderStrategy:Ht?.renderStrategy??(xh.value?\"double-buffer\":\"single-buffer\"),getCellRenderer:mt,minimumCellWidth:gs};Le.damage===void 0?(dr.current=Le,GE(Le,Me)):GE(Le,void 0),!Pe&&(Le.damage===void 0||Le.damage.has(jn?.current?.[0]))&&Xt(void 0)},[ur,Gr,n,a,jt,u,dt,Sn,mn,R,z,U,Ke,f,v,Ye,y,re,fe,tt,ne,A,D,m,H,x,I,hl,w,ze,S,ie,be,le,P,yt,Wt,hn,Ht?.hyperWrapping,Ht?.renderStrategy,wr,oo,mt,gs]),Kr=h.useRef(Xr);h.useLayoutEffect(()=>{Xr(),Kr.current=Xr},[Xr]),h.useLayoutEffect(()=>{(async()=>{document?.fonts?.ready!==void 0&&(await document.fonts.ready,dr.current=void 0,Kr.current())})()},[]);const Cr=h.useCallback(se=>{Lt.current=se,Kr.current(),Lt.current=void 0},[]),En=lH(Cr);Tn.current=En;const vs=h.useCallback(se=>{Cr(new Yu(se.map(_e=>_e.cell)))},[Cr]);yt.setCallback(Cr);const[ml,Na]=h.useState(!1),[Qr,Oa]=Rn??[],pl=Qr!==void 0&&Oa===-1,gl=Qr!==void 0&&Oa===-2;let vl=!1,Da=!1,Rr=kt;if(Rr===void 0&&Qr!==void 0&&Oa!==void 0&&Oa>-1&&Oa<x){const se=w([Qr,Oa],!0);vl=se.kind===Ma.NewRow||se.kind===Ma.Marker&&se.markerKind!==\"number\",Da=se.kind===Ie.Boolean&&Qy(se),Rr=se.cursor}const tr=he?\"grabbing\":(zr??!1)||fe?\"col-resize\":ml||_?\"crosshair\":Rr!==void 0?Rr:pl||vl||Da||gl?\"pointer\":\"default\",yi=h.useMemo(()=>({contain:\"strict\",display:\"block\",cursor:tr}),[tr]),ys=h.useRef(\"default\"),ba=te?.current;ba!=null&&ys.current!==yi.cursor&&(ba.style.cursor=ys.current=yi.cursor);const fr=h.useCallback((se,_e,Pe,De)=>{if(ze===void 0)return;const Me=ze(se);if(Me.actions!==void 0){const Le=yM(_e,Me.actions);for(const[rt,$e]of Le.entries())if(nm($e,Pe+_e.x,De+$e.y))return Me.actions[rt]}},[ze]),hr=h.useCallback((se,_e,Pe,De)=>{const Me=s[_e];if(!he&&!fe&&Me.hasMenu===!0&&!(zr??!1)){const Le=Cn(se,_e,-1);ma(Le!==void 0);const rt=vM(Le.x,Le.y,Le.width,Le.height,Bb(Me.title)===\"rtl\");if(Pe>rt.x&&Pe<rt.x+rt.width&&De>rt.y&&De<rt.y+rt.height)return Le}},[s,Cn,zr,he,fe]),bs=h.useRef(0),zn=h.useRef(),bi=h.useRef(!1),Yn=h.useCallback(se=>{const _e=Mt.current,Pe=te?.current;if(_e===null||se.target!==_e&&se.target!==Pe)return;bi.current=!0;let De,Me;if(se instanceof MouseEvent?(De=se.clientX,Me=se.clientY):(De=se.touches[0].clientX,Me=se.touches[0].clientY),se.target===Pe&&Pe!==null){const rt=Pe.getBoundingClientRect();if(De>rt.right||Me>rt.bottom)return}const Le=_n(_e,De,Me,se);zn.current=Le.location,Le.isTouch&&(bs.current=Date.now()),at.current!==Le.isTouch&&Vn(Le.isTouch),!(Le.kind===Ko&&hr(_e,Le.location[0],De,Me)!==void 0)&&(Le.kind===fa&&fr(Le.group,Le.bounds,Le.localEventX,Le.localEventY)!==void 0||(M?.(Le),!Le.isTouch&&Ae!==!0&&Ae!==Le.kind&&Le.button<3&&Le.button!==1&&se.preventDefault()))},[te,Ae,_n,fr,hr,M]);cr(\"touchstart\",Yn,window,!1),cr(\"mousedown\",Yn,window,!1);const Ja=h.useRef(0),xa=h.useCallback(se=>{const _e=Ja.current;Ja.current=Date.now();const Pe=Mt.current;if(bi.current=!1,q===void 0||Pe===null)return;const De=te?.current,Me=se.target!==Pe&&se.target!==De;let Le,rt,$e=!0;if(se instanceof MouseEvent){if(Le=se.clientX,rt=se.clientY,$e=se.button<3,se.pointerType===\"touch\")return}else Le=se.changedTouches[0].clientX,rt=se.changedTouches[0].clientY;let Xe=_n(Pe,Le,rt,se);Xe.isTouch&&bs.current!==0&&Date.now()-bs.current>500&&(Xe={...Xe,isLongTouch:!0}),_e!==0&&Date.now()-_e<(Xe.isTouch?1e3:500)&&(Xe={...Xe,isDoubleClick:!0}),at.current!==Xe.isTouch&&Vn(Xe.isTouch),!Me&&se.cancelable&&$e&&se.preventDefault();const[ft]=Xe.location,tn=hr(Pe,ft,Le,rt);if(Xe.kind===Ko&&tn!==void 0){(Xe.button!==0||zn.current?.[0]!==ft||zn.current?.[1]!==-1)&&q(Xe,!0);return}else if(Xe.kind===fa){const nn=fr(Xe.group,Xe.bounds,Xe.localEventX,Xe.localEventY);if(nn!==void 0){Xe.button===0&&nn.onClick(Xe);return}}q(Xe,Me)},[q,te,_n,hr,fr]);cr(\"mouseup\",xa,window,!1),cr(\"touchend\",xa,window,!1);const xs=h.useCallback(se=>{const _e=Mt.current;if(_e===null)return;const Pe=te?.current,De=se.target!==_e&&se.target!==Pe;let Me,Le,rt=!0;se instanceof MouseEvent?(Me=se.clientX,Le=se.clientY,rt=se.button<3):(Me=se.changedTouches[0].clientX,Le=se.changedTouches[0].clientY);const $e=_n(_e,Me,Le,se);at.current!==$e.isTouch&&Vn($e.isTouch),!De&&se.cancelable&&rt&&se.preventDefault();const[Xe]=$e.location,ft=hr(_e,Xe,Me,Le);if($e.kind===Ko&&ft!==void 0)$e.button===0&&zn.current?.[0]===Xe&&zn.current?.[1]===-1&&C?.(Xe,ft);else if($e.kind===fa){const tn=fr($e.group,$e.bounds,$e.localEventX,$e.localEventY);tn!==void 0&&$e.button===0&&tn.onClick($e)}},[te,_n,hr,C,fr]);cr(\"click\",xs,window,!1);const yl=h.useCallback(se=>{const _e=Mt.current,Pe=te?.current;if(_e===null||se.target!==_e&&se.target!==Pe||O===void 0)return;const De=_n(_e,se.clientX,se.clientY,se);O(De,()=>{se.cancelable&&se.preventDefault()})},[te,_n,O]);cr(\"contextmenu\",yl,te?.current??null,!1);const ja=h.useCallback(se=>{Lt.current=new Yu(se.map(_e=>_e.item)),Vr.current=se,Kr.current(),Lt.current=void 0},[]),Zr=h.useMemo(()=>new iH(ja),[ja]),wa=h.useRef(Zr);wa.current=Zr,h.useLayoutEffect(()=>{const se=wa.current;if(Rn===void 0||Rn[1]<0){se.setHovered(Rn);return}const _e=w(Rn,!0),Pe=mt(_e),De=Pe===void 0&&_e.kind===Ie.Custom||Pe?.needsHover!==void 0&&(typeof Pe.needsHover==\"boolean\"?Pe.needsHover:Pe.needsHover(_e));se.setHovered(De?Rn:void 0)},[w,mt,Rn]);const mr=h.useRef(),ve=h.useCallback(se=>{const _e=Mt.current;if(_e===null)return;const Pe=te?.current,De=se.target!==_e&&se.target!==Pe,Me=_n(_e,se.clientX,se.clientY,se);if(Me.kind!==\"out-of-bounds\"&&De&&!bi.current&&!Me.isTouch)return;const Le=($e,Xe)=>{In(ft=>ft===$e||ft?.[0][0]===$e?.[0][0]&&ft?.[0][1]===$e?.[0][1]&&(ft?.[1][0]===$e?.[1][0]&&ft?.[1][1]===$e?.[1][1]||!Xe)?ft:$e)};if(!MM(Me,mr.current))Xt(void 0),F?.(Me),Le(Me.kind===Sh?void 0:[Me.location,[Me.localEventX,Me.localEventY]],!0),mr.current=Me;else if(Me.kind===\"cell\"||Me.kind===Ko||Me.kind===fa){let $e=!1,Xe=!0;if(Me.kind===\"cell\"){const tn=w(Me.location);Xe=mt(tn)?.needsHoverPosition??tn.kind===Ie.Custom,$e=Xe}else Me.kind===fa&&($e=!0);const ft=[Me.location,[Me.localEventX,Me.localEventY]];Le(ft,Xe),jn.current=ft,$e&&Cr(new Yu([Me.location]))}const rt=Me.location[0]>=(W?0:1);Pr(Me.kind===Ko&&Me.isEdge&&rt&&He===!0),Na(Me.kind===\"cell\"&&Me.isFillHandle),B?.(se),j(Me)},[te,_n,W,He,B,j,F,w,mt,Cr]);cr(\"mousemove\",ve,window,!0);const un=h.useCallback(se=>{const _e=Mt.current;if(_e===null)return;let Pe,De;D.current!==void 0&&(Pe=Cn(_e,D.current.cell[0],D.current.cell[1]),De=D.current.cell),ee?.({bounds:Pe,stopPropagation:()=>se.stopPropagation(),preventDefault:()=>se.preventDefault(),cancel:()=>{},ctrlKey:se.ctrlKey,metaKey:se.metaKey,shiftKey:se.shiftKey,altKey:se.altKey,key:se.key,keyCode:se.keyCode,rawEvent:se,location:De})},[ee,D,Cn]),xi=h.useCallback(se=>{const _e=Mt.current;if(_e===null)return;let Pe,De;D.current!==void 0&&(Pe=Cn(_e,D.current.cell[0],D.current.cell[1]),De=D.current.cell),oe?.({bounds:Pe,stopPropagation:()=>se.stopPropagation(),preventDefault:()=>se.preventDefault(),cancel:()=>{},ctrlKey:se.ctrlKey,metaKey:se.metaKey,shiftKey:se.shiftKey,altKey:se.altKey,key:se.key,keyCode:se.keyCode,rawEvent:se,location:De})},[oe,D,Cn]),so=h.useCallback(se=>{Mt.current=se,Y!==void 0&&(Y.current=se)},[Y]),Lr=h.useCallback(se=>{const _e=Mt.current;if(_e===null||Ae===!1||fe){se.preventDefault();return}let Pe,De;const Me=_n(_e,se.clientX,se.clientY);if(Ae!==!0&&Me.kind!==Ae){se.preventDefault();return}const Le=(nn,Ft)=>{Pe=nn,De=Ft};let rt,$e,Xe;const ft=(nn,Ft,At)=>{rt=nn,$e=Ft,Xe=At};let tn=!1;if(G?.({...Me,setData:Le,setDragImage:ft,preventDefault:()=>tn=!0,defaultPrevented:()=>tn}),!tn&&Pe!==void 0&&De!==void 0&&se.dataTransfer!==null)if(se.dataTransfer.setData(Pe,De),se.dataTransfer.effectAllowed=\"copyLink\",rt!==void 0&&$e!==void 0&&Xe!==void 0)se.dataTransfer.setDragImage(rt,$e,Xe);else{const[nn,Ft]=Me.location;if(Ft!==void 0){const At=document.createElement(\"canvas\"),dn=Cn(_e,nn,Ft);ma(dn!==void 0);const pt=Math.ceil(window.devicePixelRatio??1);At.width=dn.width*pt,At.height=dn.height*pt;const Kt=At.getContext(\"2d\");Kt!==null&&(Kt.scale(pt,pt),Kt.textBaseline=\"middle\",Ft===-1?(Kt.font=Ke.headerFontFull,Kt.fillStyle=Ke.bgHeader,Kt.fillRect(0,0,At.width,At.height),bM(Kt,0,0,dn.width,dn.height,mn[nn],!1,Ke,!1,!1,0,Wt,be,!1)):(Kt.font=Ke.baseFontFull,Kt.fillStyle=Ke.bgCell,Kt.fillRect(0,0,At.width,At.height),gM(Kt,w([nn,Ft]),0,Ft,!1,!1,0,0,dn.width,dn.height,!1,Ke,Ke.bgCell,yt,Wt,1,void 0,!1,0,void 0,void 0,void 0,oo,mt,()=>{}))),At.style.left=\"-100%\",At.style.position=\"absolute\",At.style.width=`${dn.width}px`,At.style.height=`${dn.height}px`,document.body.append(At),se.dataTransfer.setDragImage(At,dn.width/2,dn.height/2),window.setTimeout(()=>{At.remove()},0)}}else se.preventDefault()},[Ae,fe,_n,G,Cn,Ke,mn,Wt,be,w,yt,oo,mt]);cr(\"dragstart\",Lr,te?.current??null,!1,!1);const wi=h.useRef(),ws=h.useCallback(se=>{const _e=Mt.current;if(Oe!==void 0&&se.preventDefault(),_e===null||qe===void 0)return;const Pe=_n(_e,se.clientX,se.clientY),[De,Me]=Pe.location,Le=De-(W?0:1),[rt,$e]=wi.current??[];(rt!==Le||$e!==Me)&&(wi.current=[Le,Me],qe([Le,Me],se.dataTransfer))},[W,_n,qe,Oe]);cr(\"dragover\",ws,te?.current??null,!1,!1);const Si=h.useCallback(()=>{wi.current=void 0,K?.()},[K]);cr(\"dragend\",Si,te?.current??null,!1,!1);const Se=h.useCallback(se=>{const _e=Mt.current;if(_e===null||Oe===void 0)return;se.preventDefault();const Pe=_n(_e,se.clientX,se.clientY),[De,Me]=Pe.location,Le=De-(W?0:1);Oe([Le,Me],se.dataTransfer)},[W,_n,Oe]);cr(\"drop\",Se,te?.current??null,!1,!1);const nr=h.useCallback(()=>{Be?.()},[Be]);cr(\"dragleave\",nr,te?.current??null,!1,!1);const yn=h.useRef(D);yn.current=D;const Ci=h.useRef(null),za=h.useCallback(se=>{Mt.current===null||!Mt.current.contains(document.activeElement)||(se===null&&yn.current.current!==void 0?Y?.current?.focus({preventScroll:!0}):se!==null&&se.focus({preventScroll:!0}),Ci.current=se)},[Y]);h.useImperativeHandle(t,()=>({focus:()=>{const se=Ci.current;se===null||!document.contains(se)?Y?.current?.focus({preventScroll:!0}):se.focus({preventScroll:!0})},getBounds:(se,_e)=>{if(!(Y===void 0||Y.current===null))return Cn(Y.current,se??0,_e??-1)},damage:vs}),[Y,vs,Cn]);const Xn=h.useRef(),Kn=zP(()=>{if(n<50||Ht?.disableAccessibilityTree===!0)return null;let se=nb(mn,jt,n,U,dt);const _e=W?0:-1;!W&&se[0]?.sourceIndex===0&&(se=se.slice(1));const[Pe,De]=D.current?.cell??[],Me=D.current?.range,Le=se.map($e=>$e.sourceIndex),rt=Ks(u,Math.min(x,u+o));return Pe!==void 0&&De!==void 0&&!(Le.includes(Pe)&&rt.includes(De))&&za(null),h.createElement(\"table\",{key:\"access-tree\",role:\"grid\",\"aria-rowcount\":x+1,\"aria-multiselectable\":\"true\",\"aria-colcount\":mn.length+_e},h.createElement(\"thead\",{role:\"rowgroup\"},h.createElement(\"tr\",{role:\"row\",\"aria-rowindex\":1},se.map($e=>h.createElement(\"th\",{role:\"columnheader\",\"aria-selected\":D.columns.hasIndex($e.sourceIndex),\"aria-colindex\":$e.sourceIndex+1+_e,tabIndex:-1,onFocus:Xe=>{if(Xe.target!==Ci.current)return Ne?.([$e.sourceIndex,-1])},key:$e.sourceIndex},$e.title)))),h.createElement(\"tbody\",{role:\"rowgroup\"},rt.map($e=>h.createElement(\"tr\",{role:\"row\",\"aria-selected\":D.rows.hasIndex($e),key:$e,\"aria-rowindex\":$e+2},se.map(Xe=>{const ft=Xe.sourceIndex,tn=Ua(ft,$e),nn=Pe===ft&&De===$e,Ft=Me!==void 0&&ft>=Me.x&&ft<Me.x+Me.width&&$e>=Me.y&&$e<Me.y+Me.height,At=`glide-cell-${ft}-${$e}`,dn=[ft,$e],pt=w(dn,!0);return h.createElement(\"td\",{key:tn,role:\"gridcell\",\"aria-colindex\":ft+1+_e,\"aria-selected\":Ft,\"aria-readonly\":Zs(pt)||!zu(pt),id:At,\"data-testid\":At,onClick:()=>{const Kt=Y?.current;if(Kt!=null)return ee?.({bounds:Cn(Kt,ft,$e),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:\"Enter\",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:dn})},onFocusCapture:Kt=>{if(!(Kt.target===Ci.current||Xn.current?.[0]===ft&&Xn.current?.[1]===$e))return Xn.current=dn,Ne?.(dn)},ref:nn?za:void 0,tabIndex:-1},cH(pt,mt))})))))},[n,mn,jt,U,dt,x,u,o,D,za,w,Y,ee,Cn,Ne],200),Er=z===0||!$?0:jt>z?1:Ba(-dt/100,0,1),Sa=-u*32+Sn,ei=V?Ba(-Sa/100,0,1):0,lo=h.useMemo(()=>{if(!Er&&!ei)return null;const se={position:\"absolute\",top:0,left:Qa,width:n-Qa,height:a,opacity:Er,pointerEvents:\"none\",transition:ht?void 0:\"opacity 0.2s\",boxShadow:\"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)\"},_e={position:\"absolute\",top:en,left:0,width:n,height:a,opacity:ei,pointerEvents:\"none\",transition:Ve?void 0:\"opacity 0.2s\",boxShadow:\"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)\"};return h.createElement(h.Fragment,null,Er>0&&h.createElement(\"div\",{id:\"shadow-x\",style:se}),ei>0&&h.createElement(\"div\",{id:\"shadow-y\",style:_e}))},[Er,ei,Qa,n,ht,en,a,Ve]),bl=h.useMemo(()=>({position:\"absolute\",top:0,left:0}),[]);return h.createElement(h.Fragment,null,h.createElement(\"canvas\",{\"data-testid\":\"data-grid-canvas\",tabIndex:0,onKeyDown:un,onKeyUp:xi,onFocus:E,onBlur:T,ref:so,style:yi},Kn),h.createElement(\"canvas\",{ref:qt,style:bl}),lo)},dH=h.memo(h.forwardRef(uH));function Nu(e,t,n,a){return Ba(Math.round(t-(e.growOffset??0)),Math.ceil(n),Math.floor(a))}const fH=e=>{const[t,n]=h.useState(),[a,o]=h.useState(),[s,c]=h.useState(),[u,f]=h.useState(),[m,v]=h.useState(!1),[y,x]=h.useState(),[w,S]=h.useState(),[C,R]=h.useState(),[_,E]=h.useState(!1),[T,A]=h.useState(),{onHeaderMenuClick:D,getCellContent:z,onColumnMoved:O,onColumnResize:H,onColumnResizeStart:$,onColumnResizeEnd:V,gridRef:I,maxColumnWidth:M,minColumnWidth:q,onRowMoved:B,lockColumns:j,onColumnProposeMove:F,onMouseDown:U,onMouseUp:W,onItemHovered:ee,onDragStart:oe,canvasRef:P}=e,Y=(H??V??$)!==void 0,{columns:G,selection:K}=e,te=K.columns,fe=h.useCallback(re=>{const[ie,be]=re.location;s!==void 0&&u!==ie&&ie>=j?(v(!0),f(ie)):w!==void 0&&be!==void 0?(E(!0),R(Math.max(0,be))):a===void 0&&!m&&!_&&ee?.(re)},[s,w,u,ee,j,a,m,_]),ne=O!==void 0,he=h.useCallback(re=>{if(re.button===0){const[ie,be]=re.location;if(re.kind===\"out-of-bounds\"&&re.isEdge&&Y){const Ne=I?.current?.getBounds(G.length-1,-1);Ne!==void 0&&(n(Ne.x),o(G.length-1))}else if(re.kind===\"header\"&&ie>=j){const Ne=P?.current;if(re.isEdge&&Y&&Ne){n(re.bounds.x),o(ie);const Oe=Ne.getBoundingClientRect().width/Ne.offsetWidth,Be=re.bounds.width/Oe;$?.(G[ie],Be,ie,Be+(G[ie].growOffset??0))}else re.kind===\"header\"&&ne&&(x(re.bounds.x),c(ie))}else re.kind===\"cell\"&&j>0&&ie===0&&be!==void 0&&B!==void 0&&(A(re.bounds.y),S(be))}U?.(re)},[U,Y,j,B,I,G,ne,$,P]),Ae=h.useCallback((re,ie)=>{m||_||D?.(re,ie)},[m,_,D]),He=h.useRef(-1),Ye=h.useCallback(()=>{He.current=-1,S(void 0),R(void 0),A(void 0),E(!1),c(void 0),f(void 0),x(void 0),v(!1),o(void 0),n(void 0)},[]),tt=h.useCallback((re,ie)=>{if(re.button===0){if(a!==void 0){if(te?.hasIndex(a)===!0)for(const Ne of te){if(Ne===a)continue;const qe=G[Ne],Oe=Nu(qe,He.current,q,M);H?.(qe,Oe,Ne,Oe+(qe.growOffset??0))}const be=Nu(G[a],He.current,q,M);if(V?.(G[a],be,a,be+(G[a].growOffset??0)),te.hasIndex(a))for(const Ne of te){if(Ne===a)continue;const qe=G[Ne],Oe=Nu(qe,He.current,q,M);V?.(qe,Oe,Ne,Oe+(qe.growOffset??0))}}Ye(),s!==void 0&&u!==void 0&&O?.(s,u),w!==void 0&&C!==void 0&&B?.(w,C)}W?.(re,ie)},[W,a,s,u,w,C,te,V,G,q,M,H,O,B,Ye]),ze=h.useMemo(()=>{if(!(s===void 0||u===void 0)&&s!==u&&F?.(s,u)!==!1)return{src:s,dest:u}},[s,u,F]),Ke=h.useCallback(re=>{const ie=P?.current;if(s!==void 0&&y!==void 0)Math.abs(re.clientX-y)>20&&v(!0);else if(w!==void 0&&T!==void 0)Math.abs(re.clientY-T)>20&&E(!0);else if(a!==void 0&&t!==void 0&&ie){const Ne=ie.getBoundingClientRect().width/ie.offsetWidth,qe=(re.clientX-t)/Ne,Oe=G[a],Be=Nu(Oe,qe,q,M);if(H?.(Oe,Be,a,Be+(Oe.growOffset??0)),He.current=qe,te?.first()===a)for(const et of te){if(et===a)continue;const ht=G[et],Ve=Nu(ht,He.current,q,M);H?.(ht,Ve,et,Ve+(ht.growOffset??0))}}},[s,y,w,T,a,t,G,q,M,H,te,P]),le=h.useCallback((re,ie)=>{if(w===void 0||C===void 0)return z(re,ie);let[be,Ne]=re;return Ne===C?Ne=w:(Ne>C&&(Ne-=1),Ne>=w&&(Ne+=1)),z([be,Ne],ie)},[w,C,z]),ke=h.useCallback(re=>{oe?.(re),re.defaultPrevented()||Ye()},[Ye,oe]);return h.createElement(dH,{accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,drawCell:e.drawCell,enableGroups:e.enableGroups,eventTargetRef:e.eventTargetRef,experimental:e.experimental,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,headerIcons:e.headerIcons,height:e.height,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,resizeColumn:a,isDraggable:e.isDraggable,isFilling:e.isFilling,isFocused:e.isFocused,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDrop:e.onDrop,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,width:e.width,getCellContent:le,isResizing:a!==void 0,onHeaderMenuClick:Ae,isDragging:m,onItemHovered:fe,onDragStart:ke,onMouseDown:he,allowResize:Y,onMouseUp:tt,dragAndDropState:ze,onMouseMoveRaw:Ke,ref:I})};function hH(e){const t=h.useRef(null),[n,a]=h.useState({width:e?.[0],height:e?.[1]});return h.useLayoutEffect(()=>{const o=c=>{for(const u of c){const{width:f,height:m}=u&&u.contentRect||{};a(v=>v.width===f&&v.height===m?v:{width:f,height:m})}},s=new window.ResizeObserver(o);return t.current&&s.observe(t.current,void 0),()=>{s.disconnect()}},[t.current]),{ref:t,...n}}const mH=(e,t,n)=>{const a=h.useRef(null),o=h.useRef(null),s=h.useRef(null),c=h.useRef(0),u=h.useRef(t);u.current=t;const f=n.current;h.useEffect(()=>{const m=()=>{if(o.current===!1&&f!==null){const x=[f.scrollLeft,f.scrollTop];if(s.current?.[0]===x[0]&&s.current?.[1]===x[1])if(c.current>10){s.current=null,o.current=null;return}else c.current++;else c.current=0,u.current(x[0],x[1]),s.current=x;a.current=window.setTimeout(m,8.333333333333334)}},v=()=>{o.current=!0,s.current=null,a.current!==null&&(window.clearTimeout(a.current),a.current=null)},y=x=>{x.touches.length===0&&(o.current=!1,c.current=0,a.current=window.setTimeout(m,8.333333333333334))};if(e&&f!==null){const x=f;return x.addEventListener(\"touchstart\",v),x.addEventListener(\"touchend\",y),()=>{x.removeEventListener(\"touchstart\",v),x.removeEventListener(\"touchend\",y),a.current!==null&&window.clearTimeout(a.current)}}},[e,f])},pH=()=>e=>e.isSafari?\"scroll\":\"auto\",gH=Dr(\"div\")({name:\"ScrollRegionStyle\",class:\"gdg-s1dgczr6\",propsAsIs:!1,vars:{\"s1dgczr6-0\":[pH()]}});function vH(e){const[t,n]=h.useState(!1),a=typeof window>\"u\"?null:window,o=h.useRef(0);return cr(\"touchstart\",h.useCallback(()=>{window.clearTimeout(o.current),n(!0)},[]),a,!0,!1),cr(\"touchend\",h.useCallback(s=>{s.touches.length===0&&(o.current=window.setTimeout(()=>n(!1),e))},[e]),a,!0,!1),t}const yH=e=>{const{children:t,clientHeight:n,scrollHeight:a,scrollWidth:o,update:s,draggable:c,className:u,preventDiagonalScrolling:f=!1,paddingBottom:m=0,paddingRight:v=0,rightElement:y,rightElementProps:x,kineticScrollPerfHack:w=!1,scrollRef:S,initialSize:C}=e,R=[],_=x?.sticky??!1,E=x?.fill??!1,T=h.useRef(0),A=h.useRef(0),D=h.useRef(null),z=typeof window>\"u\"?1:window.devicePixelRatio,O=h.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),H=h.useRef(null),$=vH(200),[V,I]=h.useState(!0),M=h.useRef(0);h.useLayoutEffect(()=>{if(!V||$||O.current.lockDirection===void 0)return;const G=D.current;if(G===null)return;const[K,te]=O.current.lockDirection;K!==void 0?G.scrollLeft=K:te!==void 0&&(G.scrollTop=te),O.current.lockDirection=void 0},[$,V]);const q=h.useCallback((G,K)=>{const te=D.current;if(te===null)return;K=K??te.scrollTop,G=G??te.scrollLeft;const fe=O.current.scrollTop,ne=O.current.scrollLeft,he=G-ne,Ae=K-fe;$&&he!==0&&Ae!==0&&(Math.abs(he)>3||Math.abs(Ae)>3)&&f&&O.current.lockDirection===void 0&&(O.current.lockDirection=Math.abs(he)<Math.abs(Ae)?[ne,void 0]:[void 0,fe]);const He=O.current.lockDirection;G=He?.[0]??G,K=He?.[1]??K,O.current.scrollLeft=G,O.current.scrollTop=K;const Ye=te.clientWidth,tt=te.clientHeight,ze=K,Ke=A.current-ze,le=te.scrollHeight-tt;if(A.current=ze,le>0&&(Math.abs(Ke)>2e3||ze===0||ze===le)&&a>te.scrollHeight+5){const ke=ze/le,re=(a-tt)*ke;T.current=re-ze}He!==void 0&&(window.clearTimeout(M.current),I(!1),M.current=window.setTimeout(()=>I(!0),200)),s({x:G,y:ze+T.current,width:Ye-v,height:tt-m,paddingRight:H.current?.clientWidth??0})},[m,v,a,s,f,$]);mH(w&&xh.value,q,D);const B=h.useRef(q);B.current=q;const j=h.useRef(),F=h.useRef(!1);h.useLayoutEffect(()=>{F.current?q():F.current=!0},[q,m,v]);const U=h.useCallback(G=>{D.current=G,S!==void 0&&(S.current=G)},[S]);let W=0,ee=0;for(R.push(h.createElement(\"div\",{key:W++,style:{width:o,height:0}}));ee<a;){const G=Math.min(5e6,a-ee);R.push(h.createElement(\"div\",{key:W++,style:{width:0,height:G}})),ee+=G}const{ref:oe,width:P,height:Y}=hH(C);return typeof window<\"u\"&&(j.current?.height!==Y||j.current?.width!==P)&&(window.setTimeout(()=>B.current(),0),j.current={width:P,height:Y}),(P??0)===0||(Y??0)===0?h.createElement(\"div\",{ref:oe}):h.createElement(\"div\",{ref:oe},h.createElement(gH,{isSafari:xh.value},h.createElement(\"div\",{className:\"dvn-underlay\"},t),h.createElement(\"div\",{ref:U,style:j.current,draggable:c,onDragStart:G=>{c||(G.stopPropagation(),G.preventDefault())},className:\"dvn-scroller \"+(u??\"\"),onScroll:()=>q()},h.createElement(\"div\",{className:\"dvn-scroll-inner\"+(y===void 0?\" dvn-hidden\":\"\")},h.createElement(\"div\",{className:\"dvn-stack\"},R),y!==void 0&&h.createElement(h.Fragment,null,!E&&h.createElement(\"div\",{className:\"dvn-spacer\"}),h.createElement(\"div\",{ref:H,style:{height:Y,maxHeight:n-Math.ceil(z%1),position:\"sticky\",top:0,paddingLeft:1,marginBottom:-40,marginRight:v,flexGrow:E?1:void 0,right:_?v??0:void 0,pointerEvents:\"auto\"}},y))))))},bH=e=>{const{columns:t,rows:n,rowHeight:a,headerHeight:o,groupHeaderHeight:s,enableGroups:c,freezeColumns:u,experimental:f,nonGrowWidth:m,clientSize:v,className:y,onVisibleRegionChanged:x,scrollRef:w,preventDiagonalScrolling:S,rightElement:C,rightElementProps:R,overscrollX:_,overscrollY:E,initialSize:T,smoothScrollX:A=!1,smoothScrollY:D=!1,isDraggable:z}=e,{paddingRight:O,paddingBottom:H}=f??{},[$,V]=v,I=h.useRef(),M=h.useRef(),q=h.useRef(),B=h.useRef(),j=m+Math.max(0,_??0);let F=c?o+s:o;if(typeof a==\"number\")F+=n*a;else for(let oe=0;oe<n;oe++)F+=a(oe);E!==void 0&&(F+=E);const U=h.useRef(),W=h.useCallback(()=>{if(U.current===void 0)return;const oe={...U.current};let P=0,Y=oe.x<0?-oe.x:0,G=0,K=0;oe.x=oe.x<0?0:oe.x;let te=0;for(let Ye=0;Ye<u;Ye++)te+=t[Ye].width;for(const Ye of t){const tt=P-te;if(oe.x>=tt+Ye.width)P+=Ye.width,K++,G++;else if(oe.x>tt)P+=Ye.width,A?Y+=tt-oe.x:K++,G++;else if(oe.x+oe.width>tt)P+=Ye.width,G++;else break}let fe=0,ne=0,he=0;if(typeof a==\"number\")D?(ne=Math.floor(oe.y/a),fe=ne*a-oe.y):ne=Math.ceil(oe.y/a),he=Math.ceil(oe.height/a)+ne,fe<0&&he++;else{let Ye=0;for(let tt=0;tt<n;tt++){const ze=a(tt),Ke=Ye+(D?0:ze/2);if(oe.y>=Ye+ze)Ye+=ze,ne++,he++;else if(oe.y>Ke)Ye+=ze,D?fe+=Ke-oe.y:ne++,he++;else if(oe.y+oe.height>ze/2+Ye)Ye+=ze,he++;else break}}const Ae={x:K,y:ne,width:G-K,height:he-ne},He=I.current;(He===void 0||He.y!==Ae.y||He.x!==Ae.x||He.height!==Ae.height||He.width!==Ae.width||M.current!==Y||q.current!==fe||oe.width!==B.current?.[0]||oe.height!==B.current?.[1])&&(x?.({x:K,y:ne,width:G-K,height:he-ne},oe.width,oe.height,oe.paddingRight??0,Y,fe),I.current=Ae,M.current=Y,q.current=fe,B.current=[oe.width,oe.height])},[t,a,n,x,u,A,D]),ee=h.useCallback(oe=>{U.current=oe,W()},[W]);return h.useEffect(()=>{W()},[W]),h.createElement(yH,{scrollRef:w,className:y,kineticScrollPerfHack:f?.kineticScrollPerfHack,preventDiagonalScrolling:S,draggable:z===!0||typeof z==\"string\",scrollWidth:j+(O??0),scrollHeight:F+(H??0),clientHeight:V,rightElement:C,paddingBottom:H,paddingRight:O,rightElementProps:R,update:ee,initialSize:T},h.createElement(fH,{eventTargetRef:w,width:$,height:V,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,onColumnProposeMove:e.onColumnProposeMove,verticalBorder:e.verticalBorder,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,drawCell:e.drawCell,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}))},xH=Dr(\"div\")({name:\"SearchWrapper\",class:\"gdg-seveqep\",propsAsIs:!1}),wH=h.createElement(\"svg\",{className:\"button-icon\",viewBox:\"0 0 512 512\"},h.createElement(\"path\",{fill:\"none\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:\"48\",d:\"M112 244l144-144 144 144M256 120v292\"})),SH=h.createElement(\"svg\",{className:\"button-icon\",viewBox:\"0 0 512 512\"},h.createElement(\"path\",{fill:\"none\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:\"48\",d:\"M112 268l144 144 144-144M256 392V100\"})),CH=h.createElement(\"svg\",{className:\"button-icon\",viewBox:\"0 0 512 512\"},h.createElement(\"path\",{fill:\"none\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:\"32\",d:\"M368 368L144 144M368 144L144 368\"})),RH=10,EH=e=>{const{canvasRef:t,cellYOffset:n,rows:a,columns:o,searchInputRef:s,searchValue:c,searchResults:u,onSearchValueChange:f,getCellsForSelection:m,onSearchResultsChanged:v,showSearch:y=!1,onSearchClose:x}=e,[w]=h.useState(()=>\"search-box-\"+Math.round(Math.random()*1e3)),[S,C]=h.useState(\"\"),R=c??S,_=h.useCallback(P=>{C(P),f?.(P)},[f]),[E,T]=h.useState(),A=h.useRef(E);A.current=E,h.useEffect(()=>{u!==void 0&&(u.length>0?T(P=>({rowsSearched:a,results:u.length,selectedIndex:P?.selectedIndex??-1})):T(void 0))},[a,u]);const D=h.useRef();D.current===void 0&&(D.current=new AbortController);const z=h.useRef(),[O,H]=h.useState([]),$=u??O,V=h.useCallback(()=>{z.current!==void 0&&(window.cancelAnimationFrame(z.current),z.current=void 0,D.current.abort())},[]),I=h.useRef(n);I.current=n;const M=h.useCallback(P=>{const Y=new RegExp(P.replace(/([$()*+.?[\\\\\\]^{|}-])/g,\"\\\\$1\"),\"i\");let G=I.current,K=Math.min(10,a),te=0;T(void 0),H([]);const fe=[],ne=async()=>{if(m===void 0)return;const he=performance.now(),Ae=a-te;let He=m({x:0,y:G,width:o.length,height:Math.min(K,Ae,a-G)},D.current.signal);typeof He==\"function\"&&(He=await He());let Ye=!1;for(const[re,ie]of He.entries())for(const[be,Ne]of ie.entries()){let qe;switch(Ne.kind){case Ie.Text:case Ie.Number:qe=Ne.displayData;break;case Ie.Uri:case Ie.Markdown:qe=Ne.data;break;case Ie.Boolean:qe=typeof Ne.data==\"boolean\"?Ne.data.toString():void 0;break;case Ie.Image:case Ie.Bubble:qe=Ne.data.join(\"🐳\");break;case Ie.Custom:qe=Ne.copyData;break}qe!==void 0&&Y.test(qe)&&(fe.push([be,re+G]),Ye=!0)}const tt=performance.now();Ye&&H([...fe]),te+=He.length,ma(te<=a);const ze=A.current?.selectedIndex??-1;T({results:fe.length,rowsSearched:te,selectedIndex:ze}),v?.(fe,ze),G+K>=a?G=0:G+=K;const Ke=tt-he,le=Math.max(Ke,1),ke=RH/le;K=Math.ceil(K*ke),te<a&&fe.length<1e3&&(z.current=window.requestAnimationFrame(ne))};V(),z.current=window.requestAnimationFrame(ne)},[V,o.length,m,v,a]),q=h.useCallback(()=>{x?.(),T(void 0),H([]),v?.([],-1),V(),t?.current?.focus()},[V,t,x,v]),B=h.useCallback(P=>{_(P.target.value),u===void 0&&(P.target.value===\"\"?(T(void 0),H([]),V()):M(P.target.value))},[M,V,_,u]);h.useEffect(()=>{y&&s.current!==null&&(_(\"\"),s.current.focus({preventScroll:!0}))},[y,s,_]);const j=h.useCallback(P=>{if(P?.stopPropagation?.(),E===void 0)return;const Y=(E.selectedIndex+1)%E.results;T({...E,selectedIndex:Y}),v?.($,Y)},[E,v,$]),F=h.useCallback(P=>{if(P?.stopPropagation?.(),E===void 0)return;let Y=(E.selectedIndex-1)%E.results;Y<0&&(Y+=E.results),T({...E,selectedIndex:Y}),v?.($,Y)},[v,$,E]),U=h.useCallback(P=>{(P.ctrlKey||P.metaKey)&&P.nativeEvent.code===\"KeyF\"||P.key===\"Escape\"?(q(),P.stopPropagation(),P.preventDefault()):P.key===\"Enter\"&&(P.shiftKey?F():j())},[q,j,F]);h.useEffect(()=>()=>{V()},[V]);const[W,ee]=h.useState(!1);h.useEffect(()=>{if(y)ee(!0);else{const P=setTimeout(()=>ee(!1),150);return()=>clearTimeout(P)}},[y]);const oe=h.useMemo(()=>{if(!y&&!W)return null;let P;E!==void 0&&(P=E.results>=1e3?\"over 1000\":`${E.results} result${E.results!==1?\"s\":\"\"}`,E.selectedIndex>=0&&(P=`${E.selectedIndex+1} of ${P}`));const Y=te=>{te.stopPropagation()},K={width:`${Math.floor((E?.rowsSearched??0)/a*100)}%`};return h.createElement(xH,{className:y?\"\":\"out\",onMouseDown:Y,onMouseMove:Y,onMouseUp:Y,onClick:Y},h.createElement(\"div\",{className:\"gdg-search-bar-inner\"},h.createElement(\"input\",{id:w,\"aria-hidden\":!y,\"data-testid\":\"search-input\",ref:s,onChange:B,value:R,tabIndex:y?void 0:-1,onKeyDownCapture:U}),h.createElement(\"button\",{\"aria-label\":\"Previous Result\",\"aria-hidden\":!y,tabIndex:y?void 0:-1,onClick:F,disabled:(E?.results??0)===0},wH),h.createElement(\"button\",{\"aria-label\":\"Next Result\",\"aria-hidden\":!y,tabIndex:y?void 0:-1,onClick:j,disabled:(E?.results??0)===0},SH),x!==void 0&&h.createElement(\"button\",{\"aria-label\":\"Close Search\",\"aria-hidden\":!y,\"data-testid\":\"search-close-button\",tabIndex:y?void 0:-1,onClick:q},CH)),E!==void 0?h.createElement(h.Fragment,null,h.createElement(\"div\",{className:\"gdg-search-status\"},h.createElement(\"div\",{\"data-testid\":\"search-result-area\"},P)),h.createElement(\"div\",{className:\"gdg-search-progress\",style:K})):h.createElement(\"div\",{className:\"gdg-search-status\"},h.createElement(\"label\",{htmlFor:w},\"Type to search\")))},[y,W,E,a,w,s,B,R,U,F,j,x,q]);return h.createElement(h.Fragment,null,h.createElement(bH,{prelightCells:$,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,className:e.className,clientSize:e.clientSize,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,nonGrowWidth:e.nonGrowWidth,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,initialSize:e.initialSize,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,onVisibleRegionChanged:e.onVisibleRegionChanged,overscrollX:e.overscrollX,overscrollY:e.overscrollY,preventDiagonalScrolling:e.preventDiagonalScrolling,rightElement:e.rightElement,rightElementProps:e.rightElementProps,rowHeight:e.rowHeight,rows:e.rows,scrollRef:e.scrollRef,selection:e.selection,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,onColumnProposeMove:e.onColumnProposeMove,drawFocusRing:e.drawFocusRing,drawCell:e.drawCell,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}),oe)};class AM extends h.PureComponent{wrapperRef=h.createRef();componentDidMount(){document.addEventListener(\"touchend\",this.clickOutside,!0),document.addEventListener(\"mousedown\",this.clickOutside,!0),document.addEventListener(\"contextmenu\",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener(\"touchend\",this.clickOutside,!0),document.removeEventListener(\"mousedown\",this.clickOutside,!0),document.removeEventListener(\"contextmenu\",this.clickOutside,!0)}clickOutside=t=>{if(!(this.props.isOutsideClick&&!this.props.isOutsideClick(t))&&this.wrapperRef.current!==null&&!this.wrapperRef.current.contains(t.target)){let n=t.target;for(;n!==null;){if(n.classList.contains(\"click-outside-ignore\"))return;n=n.parentElement}this.props.onClickOutside()}};render(){const{onClickOutside:t,isOutsideClick:n,...a}=this.props;return h.createElement(\"div\",{...a,ref:this.wrapperRef},this.props.children)}}const kH=()=>e=>Math.max(16,e.targetHeight-10),_H=Dr(\"input\")({name:\"RenameInput\",class:\"gdg-r17m35ur\",propsAsIs:!1,vars:{\"r17m35ur-0\":[kH(),\"px\"]}}),TH=e=>{const{bounds:t,group:n,onClose:a,canvasBounds:o,onFinish:s}=e,[c,u]=Dt.useState(n);return Dt.createElement(AM,{style:{position:\"absolute\",left:t.x-o.left+1,top:t.y-o.top,width:t.width-2,height:t.height},className:\"gdg-c1tqibwd\",onClickOutside:a},Dt.createElement(_H,{targetHeight:t.height,\"data-testid\":\"group-rename-input\",value:c,onBlur:a,onFocus:f=>f.target.setSelectionRange(0,c.length),onChange:f=>u(f.target.value),onKeyDown:f=>{f.key===\"Enter\"?s(c):f.key===\"Escape\"&&a()},autoFocus:!0}))};function MH(e,t){return e===void 0?!1:e.length>1&&e.startsWith(\"_\")?Number.parseInt(e.slice(1))===t.keyCode:e.length===1&&e>=\"a\"&&e<=\"z\"?e.toUpperCase().codePointAt(0)===t.keyCode:e===t.key}function Rt(e,t,n){const a=NM(e,t);return a&&(n.didMatch=!0),a}function NM(e,t){if(e.length===0)return!1;if(e.includes(\"|\")){const f=e.split(\"|\");for(const m of f)if(NM(m,t))return!0;return!1}let n=!1,a=!1,o=!1,s=!1;const c=e.split(\"+\"),u=c.pop();if(!MH(u,t))return!1;if(c[0]===\"any\")return!0;for(const f of c)switch(f){case\"ctrl\":n=!0;break;case\"shift\":a=!0;break;case\"alt\":o=!0;break;case\"meta\":s=!0;break;case\"primary\":wh.value?s=!0:n=!0;break}return t.altKey===o&&t.ctrlKey===n&&t.shiftKey===a&&t.metaKey===s}function AH(e,t,n,a,o,s){const c=Dt.useCallback((m,v,y,x)=>{(s===\"cell\"||s===\"multi-cell\")&&m!==void 0&&(m={...m,range:{x:m.cell[0],y:m.cell[1],width:1,height:1}});const w=n===\"mixed\"&&(y||x===\"drag\"),S=a===\"mixed\"&&w,C=o===\"mixed\"&&w;let R={current:m===void 0?void 0:{...m,rangeStack:x===\"drag\"?e.current?.rangeStack??[]:[]},columns:S?e.columns:wt.empty(),rows:C?e.rows:wt.empty()};y&&(s===\"multi-rect\"||s===\"multi-cell\")&&R.current!==void 0&&e.current!==void 0&&(R={...R,current:{...R.current,rangeStack:[...e.current.rangeStack,e.current.range]}}),t(R,v)},[a,e,n,s,o,t]),u=Dt.useCallback((m,v,y)=>{m=m??e.rows,v!==void 0&&(m=m.add(v));let x;if(o===\"exclusive\"&&m.length>0)x={current:void 0,columns:wt.empty(),rows:m};else{const w=y&&n===\"mixed\",S=y&&a===\"mixed\";x={current:w?e.current:void 0,columns:S?e.columns:wt.empty(),rows:m}}t(x,!1)},[a,e,n,o,t]),f=Dt.useCallback((m,v,y)=>{m=m??e.columns,v!==void 0&&(m=m.add(v));let x;if(a===\"exclusive\"&&m.length>0)x={current:void 0,rows:wt.empty(),columns:m};else{const w=y&&n===\"mixed\",S=y&&o===\"mixed\";x={current:w?e.current:void 0,rows:S?e.rows:wt.empty(),columns:m}}t(x,!1)},[a,e,n,o,t]);return[c,u,f]}function NH(e,t,n,a,o){const s=h.useCallback(m=>{if(e===!0){const v=[];for(let y=m.y;y<m.y+m.height;y++){const x=[];for(let w=m.x;w<m.x+m.width;w++)w<0||y>=o?x.push({kind:Ie.Loading,allowOverlay:!1}):x.push(t([w,y]));v.push(x)}return v}return e?.(m,a.signal)??[]},[a.signal,t,e,o]),c=e!==void 0?s:void 0,u=h.useCallback(m=>{if(c===void 0)return[];const v={...m,x:m.x-n};if(v.x<0){v.x=0,v.width--;const y=c(v,a.signal);return typeof y==\"function\"?async()=>(await y()).map(x=>[{kind:Ie.Loading,allowOverlay:!1},...x]):y.map(x=>[{kind:Ie.Loading,allowOverlay:!1},...x])}return c(v,a.signal)},[a.signal,c,n]);return[e!==void 0?u:void 0,c]}function OH(e){if(e.copyData!==void 0)return{formatted:e.copyData,rawValue:e.copyData,format:\"string\"};switch(e.kind){case Ie.Boolean:return{formatted:e.data===!0?\"TRUE\":e.data===!1?\"FALSE\":e.data===Hb?\"INDETERMINATE\":\"\",rawValue:e.data,format:\"boolean\"};case Ie.Custom:return{formatted:e.copyData,rawValue:e.copyData,format:\"string\"};case Ie.Image:case Ie.Bubble:return{formatted:e.data,rawValue:e.data,format:\"string-array\"};case Ie.Drilldown:return{formatted:e.data.map(t=>t.text),rawValue:e.data.map(t=>t.text),format:\"string-array\"};case Ie.Text:return{formatted:e.displayData??e.data,rawValue:e.data,format:\"string\"};case Ie.Uri:return{formatted:e.displayData??e.data,rawValue:e.data,format:\"url\"};case Ie.Markdown:case Ie.RowID:return{formatted:e.data,rawValue:e.data,format:\"string\"};case Ie.Number:return{formatted:e.displayData,rawValue:e.data,format:\"number\"};case Ie.Loading:return{formatted:\"#LOADING\",rawValue:\"\",format:\"string\"};case Ie.Protected:return{formatted:\"************\",rawValue:\"\",format:\"string\"};default:nd()}}function DH(e,t){return e.map((a,o)=>{const s=t[o];return a.map(c=>c.span!==void 0&&c.span[0]!==s?{formatted:\"\",rawValue:\"\",format:\"string\"}:OH(c))})}function XE(e,t){return(t?/[\\t\\n\",]/:/[\\t\\n\"]/).test(e)&&(e=`\"${e.replace(/\"/g,'\"\"')}\"`),e}function jH(e){const t=[];for(const n of e){const a=[];for(const o of n)o.format===\"url\"?a.push(o.rawValue?.toString()??\"\"):o.format===\"string-array\"?a.push(o.formatted.map(s=>XE(s,!0)).join(\",\")):a.push(XE(o.formatted,!1));t.push(a.join(\"\t\"))}return t.join(`\n`)}function xy(e){return e.replace(/\\t/g,\" \").replace(/ {2,}/g,t=>\"<span> </span>\".repeat(t.length))}function KE(e){return'\"'+e.replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")+'\"'}function zH(e){return e.replace(/&quot;/g,'\"').replace(/&lt;/g,\"<\").replace(/&gt;/g,\">\").replace(/&amp;/g,\"&\")}function PH(e){const t=[];t.push('<style type=\"text/css\"><!--br {mso-data-placement:same-cell;}--></style>',\"<table><tbody>\");for(const n of e){t.push(\"<tr>\");for(const a of n){const o=`gdg-format=\"${a.format}\"`;a.format===\"url\"?t.push(`<td ${o}><a href=\"${a.rawValue}\">${xy(a.formatted)}</a></td>`):a.format===\"string-array\"?t.push(`<td ${o}><ol>${a.formatted.map((s,c)=>`<li gdg-raw-value=${KE(a.rawValue[c])}>`+xy(s)+\"</li>\").join(\"\")}</ol></td>`):t.push(`<td gdg-raw-value=${KE(a.rawValue?.toString()??\"\")} ${o}>${xy(a.formatted)}</td>`)}t.push(\"</tr>\")}return t.push(\"</tbody></table>\"),t.join(\"\")}function LH(e,t){const n=DH(e,t),a=jH(n),o=PH(n);return{textPlain:a,textHtml:o}}function QE(e){const t=document.createElement(\"html\");t.innerHTML=e.replace(/&nbsp;/g,\" \");const n=t.querySelector(\"table\");if(n===null)return;const a=[n],o=[];let s;for(;a.length>0;){const c=a.pop();if(c===void 0)break;if(c instanceof HTMLTableElement||c.nodeName===\"TBODY\")a.push(...[...c.children].reverse());else if(c instanceof HTMLTableRowElement)s!==void 0&&o.push(s),s=[],a.push(...[...c.children].reverse());else if(c instanceof HTMLTableCellElement){const u=c.cloneNode(!0),m=u.children.length===1&&u.children[0].nodeName===\"P\"?u.children[0]:null,v=m?.children.length===1&&m.children[0].nodeName===\"FONT\",y=u.querySelectorAll(\"br\");for(const S of y)S.replaceWith(`\n`);const x=u.getAttribute(\"gdg-raw-value\"),w=u.getAttribute(\"gdg-format\")??\"string\";if(u.querySelector(\"a\")!==null)s?.push({rawValue:u.querySelector(\"a\")?.getAttribute(\"href\")??\"\",formatted:u.textContent??\"\",format:w});else if(u.querySelector(\"ol\")!==null){const S=u.querySelectorAll(\"li\");s?.push({rawValue:[...S].map(C=>C.getAttribute(\"gdg-raw-value\")??\"\"),formatted:[...S].map(C=>C.textContent??\"\"),format:\"string-array\"})}else if(x!==null)s?.push({rawValue:zH(x),formatted:u.textContent??\"\",format:w});else{let S=u.textContent??\"\";v&&(S=S.replace(/\\n(?!\\n)/g,\"\")),s?.push({rawValue:S??\"\",formatted:S??\"\",format:w})}}}return s!==void 0&&o.push(s),o}function IH(e,t,n,a,o){const s=e;if(a===\"allowPartial\"||e.current===void 0||t===void 0)return e;let c=!1;do{if(e?.current===void 0)break;const u=e.current?.range,f=[];if(u.width>2){const y=t({x:u.x,y:u.y,width:1,height:u.height},o.signal);if(typeof y==\"function\")return s;f.push(...y);const x=t({x:u.x+u.width-1,y:u.y,width:1,height:u.height},o.signal);if(typeof x==\"function\")return s;f.push(...x)}else{const y=t({x:u.x,y:u.y,width:u.width,height:u.height},o.signal);if(typeof y==\"function\")return s;f.push(...y)}let m=u.x-n,v=u.x+u.width-1-n;for(const y of f)for(const x of y)x.span!==void 0&&(m=Math.min(x.span[0],m),v=Math.max(x.span[1],v));m===u.x-n&&v===u.x+u.width-1-n?c=!0:e={current:{cell:e.current.cell??[0,0],range:{x:m+n,y:u.y,width:v-m+1,height:u.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!c);return e}function ZE(e){return e.startsWith('\"')&&e.endsWith('\"')&&(e=e.slice(1,-1).replace(/\"\"/g,'\"')),e}function HH(e){let t;(function(u){u[u.None=0]=\"None\",u[u.inString=1]=\"inString\",u[u.inStringPostQuote=2]=\"inStringPostQuote\"})(t||(t={}));const n=[];let a=[],o=0,s=t.None;e=e.replace(/\\r\\n/g,`\n`);let c=0;for(const u of e){switch(s){case t.None:u===\"\t\"||u===`\n`?(a.push(e.slice(o,c)),o=c+1,u===`\n`&&(n.push(a),a=[])):u==='\"'&&(s=t.inString);break;case t.inString:u==='\"'&&(s=t.inStringPostQuote);break;case t.inStringPostQuote:u==='\"'?s=t.inString:((u===\"\t\"||u===`\n`)&&(a.push(ZE(e.slice(o,c))),o=c+1,u===`\n`&&(n.push(a),a=[])),s=t.None);break}c++}return o<e.length&&a.push(ZE(e.slice(o,e.length))),n.push(a),n.map(u=>u.map(f=>({rawValue:f,formatted:f,format:\"string\"})))}function JE(e,t,n){const a=LH(e,t),o=u=>{window.navigator.clipboard?.writeText(u)},s=(u,f)=>window.navigator.clipboard?.write===void 0?!1:(window.navigator.clipboard.write([new ClipboardItem({\"text/plain\":new Blob([u],{type:\"text/plain\"}),\"text/html\":new Blob([f],{type:\"text/html\"})})]),!0),c=(u,f)=>{try{if(n===void 0||n.clipboardData===null)throw new Error(\"No clipboard data\");n?.clipboardData?.setData(\"text/plain\",u),n?.clipboardData?.setData(\"text/html\",f)}catch{s(u,f)||o(u)}};window.navigator.clipboard?.write!==void 0||n?.clipboardData!==void 0?c(a.textPlain,a.textHtml):o(a.textPlain),n?.preventDefault()}function OM(e){return e!==!0}function ek(e){return typeof e==\"string\"?e:`${e}px`}const qH=()=>e=>e.innerWidth,$H=()=>e=>e.innerHeight,FH=Dr(\"div\")({name:\"Wrapper\",class:\"gdg-wmyidgi\",propsAsIs:!1,vars:{\"wmyidgi-0\":[qH()],\"wmyidgi-1\":[$H()]}}),BH=e=>{const{inWidth:t,inHeight:n,children:a,...o}=e;return h.createElement(FH,{innerHeight:ek(n),innerWidth:ek(t),...o},a)},UH=2,VH=1300;function WH(e,t,n){const a=Dt.useRef(0),[o,s]=e??[0,0];Dt.useEffect(()=>{if(o===0&&s===0){a.current=0;return}let c=!1,u=0;const f=m=>{if(!c){if(u===0)u=m;else{const v=m-u;a.current=Math.min(1,a.current+v/VH);const y=a.current**1.618*v*UH;t.current?.scrollBy(o*y,s*y),u=m,n?.()}window.requestAnimationFrame(f)}};return window.requestAnimationFrame(f),()=>{c=!0}},[t,o,s,n])}function GH({rowHeight:e,headerHeight:t,groupHeaderHeight:n,theme:a,overscrollX:o,overscrollY:s,scaleToRem:c,remSize:u}){const[f,m,v,y,x,w]=Dt.useMemo(()=>{if(!c||u===16)return[e,t,n,a,o,s];const S=u/16,C=e,R=rM();return[typeof C==\"number\"?C*S:_=>Math.ceil(C(_)*S),Math.ceil(t*S),Math.ceil(n*S),{...a,headerIconSize:(a?.headerIconSize??R.headerIconSize)*S,cellHorizontalPadding:(a?.cellHorizontalPadding??R.cellHorizontalPadding)*S,cellVerticalPadding:(a?.cellVerticalPadding??R.cellVerticalPadding)*S},Math.ceil((o??0)*S),Math.ceil((s??0)*S)]},[n,t,o,s,u,e,c,a]);return{rowHeight:f,headerHeight:m,groupHeaderHeight:v,theme:y,overscrollX:x,overscrollY:w}}const Go={downFill:!1,rightFill:!1,clear:!0,closeOverlay:!0,acceptOverlayDown:!0,acceptOverlayUp:!0,acceptOverlayLeft:!0,acceptOverlayRight:!0,copy:!0,paste:!0,cut:!0,search:!1,delete:!0,activateCell:!0,scrollToSelectedCell:!0,goToFirstCell:!0,goToFirstColumn:!0,goToFirstRow:!0,goToLastCell:!0,goToLastColumn:!0,goToLastRow:!0,goToNextPage:!0,goToPreviousPage:!0,selectToFirstCell:!0,selectToFirstColumn:!0,selectToFirstRow:!0,selectToLastCell:!0,selectToLastColumn:!0,selectToLastRow:!0,selectAll:!0,selectRow:!0,selectColumn:!0,goUpCell:!0,goRightCell:!0,goDownCell:!0,goLeftCell:!0,goUpCellRetainSelection:!0,goRightCellRetainSelection:!0,goDownCellRetainSelection:!0,goLeftCellRetainSelection:!0,selectGrowUp:!0,selectGrowRight:!0,selectGrowDown:!0,selectGrowLeft:!0};function Et(e,t){return e===!0?t:e===!1?\"\":e}function tk(e){const t=wh.value;return{activateCell:Et(e.activateCell,\" |Enter|shift+Enter\"),clear:Et(e.clear,\"any+Escape\"),closeOverlay:Et(e.closeOverlay,\"any+Escape\"),acceptOverlayDown:Et(e.acceptOverlayDown,\"Enter\"),acceptOverlayUp:Et(e.acceptOverlayUp,\"shift+Enter\"),acceptOverlayLeft:Et(e.acceptOverlayLeft,\"shift+Tab\"),acceptOverlayRight:Et(e.acceptOverlayRight,\"Tab\"),copy:e.copy,cut:e.cut,delete:Et(e.delete,t?\"Backspace|Delete\":\"Delete\"),downFill:Et(e.downFill,\"primary+_68\"),scrollToSelectedCell:Et(e.scrollToSelectedCell,\"primary+Enter\"),goDownCell:Et(e.goDownCell,\"ArrowDown\"),goDownCellRetainSelection:Et(e.goDownCellRetainSelection,\"alt+ArrowDown\"),goLeftCell:Et(e.goLeftCell,\"ArrowLeft|shift+Tab\"),goLeftCellRetainSelection:Et(e.goLeftCellRetainSelection,\"alt+ArrowLeft\"),goRightCell:Et(e.goRightCell,\"ArrowRight|Tab\"),goRightCellRetainSelection:Et(e.goRightCellRetainSelection,\"alt+ArrowRight\"),goUpCell:Et(e.goUpCell,\"ArrowUp\"),goUpCellRetainSelection:Et(e.goUpCellRetainSelection,\"alt+ArrowUp\"),goToFirstCell:Et(e.goToFirstCell,\"primary+Home\"),goToFirstColumn:Et(e.goToFirstColumn,\"Home|primary+ArrowLeft\"),goToFirstRow:Et(e.goToFirstRow,\"primary+ArrowUp\"),goToLastCell:Et(e.goToLastCell,\"primary+End\"),goToLastColumn:Et(e.goToLastColumn,\"End|primary+ArrowRight\"),goToLastRow:Et(e.goToLastRow,\"primary+ArrowDown\"),goToNextPage:Et(e.goToNextPage,\"PageDown\"),goToPreviousPage:Et(e.goToPreviousPage,\"PageUp\"),paste:e.paste,rightFill:Et(e.rightFill,\"primary+_82\"),search:Et(e.search,\"primary+f\"),selectAll:Et(e.selectAll,\"primary+a\"),selectColumn:Et(e.selectColumn,\"ctrl+ \"),selectGrowDown:Et(e.selectGrowDown,\"shift+ArrowDown\"),selectGrowLeft:Et(e.selectGrowLeft,\"shift+ArrowLeft\"),selectGrowRight:Et(e.selectGrowRight,\"shift+ArrowRight\"),selectGrowUp:Et(e.selectGrowUp,\"shift+ArrowUp\"),selectRow:Et(e.selectRow,\"shift+ \"),selectToFirstCell:Et(e.selectToFirstCell,\"primary+shift+Home\"),selectToFirstColumn:Et(e.selectToFirstColumn,\"primary+shift+ArrowLeft\"),selectToFirstRow:Et(e.selectToFirstRow,\"primary+shift+ArrowUp\"),selectToLastCell:Et(e.selectToLastCell,\"primary+shift+End\"),selectToLastColumn:Et(e.selectToLastColumn,\"primary+shift+ArrowRight\"),selectToLastRow:Et(e.selectToLastRow,\"primary+shift+ArrowDown\")}}function YH(e){const t=qP(e);return Dt.useMemo(()=>{if(t===void 0)return tk(Go);const n={...t,goToNextPage:t?.goToNextPage??t?.pageDown??Go.goToNextPage,goToPreviousPage:t?.goToPreviousPage??t?.pageUp??Go.goToPreviousPage,goToFirstCell:t?.goToFirstCell??t?.first??Go.goToFirstCell,goToLastCell:t?.goToLastCell??t?.last??Go.goToLastCell,selectToFirstCell:t?.selectToFirstCell??t?.first??Go.selectToFirstCell,selectToLastCell:t?.selectToLastCell??t?.last??Go.selectToLastCell};return tk({...Go,...n})},[t])}const XH=h.lazy(async()=>await oM(()=>Promise.resolve().then(()=>CW),void 0));let KH=0;function QH(e){return ZL(_R(_R(e).filter(t=>t.span!==void 0).map(t=>Ks((t.span?.[0]??0)+1,(t.span?.[1]??0)+1))))}function Kf(e,t){return e===void 0||t===0||e.columns.length===0&&e.current===void 0?e:{current:e.current===void 0?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:{...e.current.range,x:e.current.range.x+t},rangeStack:e.current.rangeStack.map(n=>({...n,x:n.x+t}))},rows:e.rows,columns:e.columns.offset(t)}}const wy={kind:Ie.Loading,allowOverlay:!1},Qf={columns:wt.empty(),rows:wt.empty(),current:void 0},ZH=(e,t)=>{const[n,a]=h.useState(Qf),[o,s]=h.useState(),c=h.useRef(null),u=h.useRef(null),[f,m]=h.useState(),v=h.useRef(null),y=h.useRef(),x=typeof window>\"u\"?null:window,{imageEditorOverride:w,getRowThemeOverride:S,markdownDivCreateNode:C,width:R,height:_,columns:E,rows:T,getCellContent:A,onCellClicked:D,onCellActivated:z,onFillPattern:O,onFinishedEditing:H,coercePasteValue:$,drawHeader:V,drawCell:I,editorBloom:M,onHeaderClicked:q,onColumnProposeMove:B,spanRangeBehavior:j=\"default\",onGroupHeaderClicked:F,onCellContextMenu:U,className:W,onHeaderContextMenu:ee,getCellsForSelection:oe,onGroupHeaderContextMenu:P,onGroupHeaderRenamed:Y,onCellEdited:G,onCellsEdited:K,onSearchResultsChanged:te,searchResults:fe,onSearchValueChange:ne,searchValue:he,onKeyDown:Ae,onKeyUp:He,keybindings:Ye,editOnType:tt=!0,onRowAppended:ze,onColumnMoved:Ke,validateCell:le,highlightRegions:ke,rangeSelect:re=\"rect\",columnSelect:ie=\"multi\",rowSelect:be=\"multi\",rangeSelectionBlending:Ne=\"exclusive\",columnSelectionBlending:qe=\"exclusive\",rowSelectionBlending:Oe=\"exclusive\",onDelete:Be,onDragStart:et,onMouseMove:ht,onPaste:Ve,copyHeaders:Ht=!1,freezeColumns:mt=0,cellActivationBehavior:dt=\"second-click\",rowSelectionMode:Sn=\"auto\",onHeaderMenuClick:jt,getGroupDetails:Mt,onSearchClose:yt,onItemHovered:Lt,onSelectionCleared:hn,showSearch:cn,onVisibleRegionChanged:Vr,gridSelection:kn,onGridSelectionChange:xr,minColumnWidth:In=50,maxColumnWidth:zr=500,maxColumnAutoWidth:Pr,provideEditor:qt,trailingRowOptions:kt,freezeTrailingRows:Xt=0,allowedFillDirections:wr=\"orthogonal\",scrollOffsetX:Vn,scrollOffsetY:at,verticalBorder:Wt,onDragOverCell:en,onDrop:Wr,onColumnResize:Wn,onColumnResizeEnd:Sr,onColumnResizeStart:mn,customRenderers:Qa,fillHandle:Cn,drawFocusRing:_n=!0,experimental:Rn,fixedShadowX:Tn,fixedShadowY:jn,headerIcons:ur,imageWindowLoader:Gr,initialSize:oo,isDraggable:hl,onDragLeave:gs,onRowMoved:dr,overscrollX:Za,overscrollY:Yr,preventDiagonalScrolling:Xr,rightElement:Kr,rightElementProps:Cr,trapFocus:En=!1,smoothScrollX:vs,smoothScrollY:ml,scaleToRem:Na=!1,rowHeight:Qr=34,headerHeight:Oa=36,groupHeaderHeight:pl=Oa,theme:gl,isOutsideClick:vl,renderers:Da}=e,Rr=typeof e.rowMarkers==\"string\"?void 0:e.rowMarkers,Mn=Rr?.kind??e.rowMarkers??\"none\",tr=Rr?.width??e.rowMarkerWidth,yi=Rr?.startIndex??e.rowMarkerStartIndex??1,ys=Rr?.theme??e.rowMarkerTheme,ba=Rr?.checkboxStyle??\"square\",fr=Math.max(In,20),hr=Math.max(zr,fr),bs=Math.max(Pr??hr,fr),zn=h.useMemo(()=>typeof window>\"u\"?{fontSize:\"16px\"}:window.getComputedStyle(document.documentElement),[]),bi=h.useMemo(()=>Number.parseFloat(zn.fontSize),[zn]),{rowHeight:Yn,headerHeight:Ja,groupHeaderHeight:xa,theme:xs,overscrollX:yl,overscrollY:ja}=GH({groupHeaderHeight:pl,headerHeight:Oa,overscrollX:Za,overscrollY:Yr,remSize:bi,rowHeight:Qr,scaleToRem:Na,theme:gl}),Zr=YH(Ye),wa=tr??(T>1e4?48:T>1e3?44:T>100?36:32),mr=Mn!==\"none\",ve=mr?1:0,un=ze!==void 0,xi=kt?.sticky===!0,[so,Lr]=h.useState(!1),wi=cn??so,ws=h.useCallback(()=>{yt!==void 0?yt():Lr(!1)},[yt]),Se=h.useMemo(()=>kn===void 0?void 0:Kf(kn,ve),[kn,ve])??n,nr=h.useRef();nr.current===void 0&&(nr.current=new AbortController),h.useEffect(()=>()=>nr?.current.abort(),[]);const[yn,Ci]=NH(oe,A,ve,nr.current,T),za=h.useCallback((N,J,Z)=>{if(le===void 0)return!0;const ye=[N[0]-ve,N[1]];return le?.(ye,J,Z)},[ve,le]),Xn=h.useRef(kn),Kn=h.useCallback((N,J)=>{J&&(N=IH(N,yn,ve,j,nr.current)),xr!==void 0?(Xn.current=Kf(N,-ve),xr(Xn.current)):a(N)},[xr,yn,ve,j]),Er=nc(Wn,h.useCallback((N,J,Z,ye)=>{Wn?.(E[Z-ve],J,Z-ve,ye)},[Wn,ve,E])),Sa=nc(Sr,h.useCallback((N,J,Z,ye)=>{Sr?.(E[Z-ve],J,Z-ve,ye)},[Sr,ve,E])),ei=nc(mn,h.useCallback((N,J,Z,ye)=>{mn?.(E[Z-ve],J,Z-ve,ye)},[mn,ve,E])),lo=nc(V,h.useCallback((N,J)=>V?.({...N,columnIndex:N.columnIndex-ve},J)??!1,[V,ve])),bl=nc(I,h.useCallback((N,J)=>I?.({...N,col:N.col-ve},J)??!1,[I,ve])),se=h.useCallback(N=>{if(Be!==void 0){const J=Be(Kf(N,-ve));return typeof J==\"boolean\"?J:Kf(J,ve)}return!0},[Be,ve]),[_e,Pe,De]=AH(Se,Kn,Ne,qe,Oe,re),Me=h.useMemo(()=>as(rM(),xs),[xs]),[Le,rt]=h.useState([0,0,0]),$e=h.useMemo(()=>{if(Da===void 0)return{};const N={};for(const J of Da)N[J.kind]=J;return N},[Da]),Xe=h.useCallback(N=>N.kind!==Ie.Custom?$e[N.kind]:Qa?.find(J=>J.isMatch(N)),[Qa,$e]);let{sizedColumns:ft,nonGrowWidth:tn}=DL(E,T,Ci,Le[0]-(ve===0?0:wa)-Le[2],fr,bs,Me,Xe,nr.current);Mn!==\"none\"&&(tn+=wa);const nn=h.useMemo(()=>ft.some(N=>N.group!==void 0),[ft]),Ft=nn?Ja+xa:Ja,At=Se.rows.length,dn=Mn===\"none\"?void 0:At===0?!1:At===T?!0:void 0,pt=h.useMemo(()=>Mn===\"none\"?ft:[{title:\"\",width:wa,icon:void 0,hasMenu:!1,style:\"normal\",themeOverride:ys,rowMarker:ba,rowMarkerChecked:dn},...ft],[Mn,ft,wa,ys,ba,dn]),[Kt,Ri]=h.useMemo(()=>[at!==void 0&&typeof Yn==\"number\"?Math.floor(at/Yn):0,at!==void 0&&typeof Yn==\"number\"?-(at%Yn):0],[at,Yn]),An=h.useRef({height:1,width:1,x:0,y:0}),Ei=h.useMemo(()=>({x:An.current.x,y:Kt,width:An.current.width??1,height:An.current.height??1,ty:Ri}),[Ri,Kt]),Bt=h.useRef(!1),[Hn,pr,Ca]=HP(Ei);An.current=Hn;const Jr=(Hn.height??1)>1;h.useLayoutEffect(()=>{if(at!==void 0&&v.current!==null&&Jr){if(v.current.scrollTop===at)return;v.current.scrollTop=at,v.current.scrollTop!==at&&Ca(),Bt.current=!0}},[at,Jr,Ca]);const co=(Hn.width??1)>1;h.useLayoutEffect(()=>{if(Vn!==void 0&&v.current!==null&&co){if(v.current.scrollLeft===Vn)return;v.current.scrollLeft=Vn,v.current.scrollLeft!==Vn&&Ca(),Bt.current=!0}},[Vn,co,Ca]);const ki=Hn.x+ve,uo=Hn.y,gr=h.useRef(null),rr=h.useCallback(N=>{N===!0?gr.current?.focus():window.requestAnimationFrame(()=>{gr.current?.focus()})},[]),Qn=un?T+1:T,kr=h.useCallback(N=>{const J=ve===0?N:N.map(ye=>({...ye,location:[ye.location[0]-ve,ye.location[1]]})),Z=K?.(J);if(Z!==!0)for(const ye of J)G?.(ye.location,ye.value);return Z},[G,K,ve]),[_i,Oc]=h.useState(),xl=Se.current!==void 0&&Se.current.range.width*Se.current.range.height>1?Se.current.range:void 0,Td=_n?Se.current?.cell:void 0,wl=Td?.[0],Sl=Td?.[1],pm=h.useMemo(()=>{if((ke===void 0||ke.length===0)&&(xl??wl??Sl??_i)===void 0)return;const N=[];if(ke!==void 0)for(const J of ke){const Z=pt.length-J.range.x-ve;Z>0&&N.push({color:J.color,range:{...J.range,x:J.range.x+ve,width:Math.min(Z,J.range.width)},style:J.style})}return _i!==void 0&&N.push({color:al(Me.accentColor,0),range:_i,style:\"dashed\"}),xl!==void 0&&N.push({color:al(Me.accentColor,.5),range:xl,style:\"solid-outline\"}),wl!==void 0&&Sl!==void 0&&N.push({color:Me.accentColor,range:{x:wl,y:Sl,width:1,height:1},style:\"solid-outline\"}),N.length>0?N:void 0},[_i,xl,wl,Sl,ke,pt.length,Me.accentColor,ve]),Md=h.useRef(pt);Md.current=pt;const _r=h.useCallback(([N,J],Z=!1)=>{const ye=un&&J===Qn-1;if(N===0&&mr)return ye?wy:{kind:Ma.Marker,allowOverlay:!1,checkboxStyle:ba,checked:Se?.rows.hasIndex(J)===!0,markerKind:Mn===\"clickable-number\"?\"number\":Mn,row:yi+J,drawHandle:dr!==void 0,cursor:Mn===\"clickable-number\"?\"pointer\":void 0};if(ye){const ce=N===ve?kt?.hint??\"\":\"\",pe=Md.current[N];if(pe?.trailingRowOptions?.disabled===!0)return wy;{const Te=pe?.trailingRowOptions?.hint??ce,je=pe?.trailingRowOptions?.addIcon??kt?.addIcon;return{kind:Ma.NewRow,hint:Te,allowOverlay:!1,icon:je}}}else{const Re=N-ve;if(Z||Rn?.strict===!0){const pe=An.current,Te=pe.x>Re||Re>pe.x+pe.width||pe.y>J||J>pe.y+pe.height||J>=Cl.current,je=Re===pe.extras?.selected?.[0]&&J===pe.extras?.selected[1];let Ue=!1;if(pe.extras?.freezeRegions!==void 0){for(const ut of pe.extras.freezeRegions)if(nm(ut,Re,J)){Ue=!0;break}}if(Te&&!je&&!Ue)return wy}let ce=A([Re,J]);return ve!==0&&ce.span!==void 0&&(ce={...ce,span:[ce.span[0]+ve,ce.span[1]+ve]}),ce}},[un,Qn,mr,ba,Se?.rows,Mn,yi,dr,ve,kt?.hint,kt?.addIcon,Rn?.strict,A]),Ss=h.useCallback(N=>{let J=Mt?.(N)??{name:N};return Y!==void 0&&N!==\"\"&&(J={icon:J.icon,name:J.name,overrideTheme:J.overrideTheme,actions:[...J.actions??[],{title:\"Rename\",icon:\"renameIcon\",onClick:Z=>Cs({group:J.name,bounds:Z.bounds})}]}),J},[Mt,Y]),ti=h.useCallback(N=>{const[J,Z]=N.cell,ye=pt[J],xe=ye?.group!==void 0?Ss(ye.group)?.overrideTheme:void 0,Re=ye?.themeOverride,ce=S?.(Z);s({...N,theme:as(Me,xe,Re,ce,N.content.themeOverride)})},[S,pt,Ss,Me]),fo=h.useCallback((N,J,Z)=>{if(Se.current===void 0)return;const[ye,xe]=Se.current.cell,Re=_r([ye,xe]);if(Re.kind!==Ie.Boolean&&Re.allowOverlay){let ce=Re;if(Z!==void 0)switch(ce.kind){case Ie.Number:{const pe=kz(()=>Z===\"-\"?-0:Number.parseFloat(Z),0);ce={...ce,data:Number.isNaN(pe)?0:pe};break}case Ie.Text:case Ie.Markdown:case Ie.Uri:ce={...ce,data:Z};break}ti({target:N,content:ce,initialValue:Z,cell:[ye,xe],highlight:Z===void 0,forceEditMode:Z!==void 0})}else Re.kind===Ie.Boolean&&J&&Re.readonly!==!0&&(kr([{location:Se.current.cell,value:{...Re,data:OM(Re.data)}}]),gr.current?.damage([{cell:Se.current.cell}]))},[_r,Se,kr,ti]),Dc=h.useCallback((N,J)=>{const Z=gr.current?.getBounds(N,J);if(Z===void 0||v.current===null)return;const ye=_r([N,J]);ye.allowOverlay&&ti({target:Z,content:ye,initialValue:void 0,highlight:!0,cell:[N,J],forceEditMode:!0})},[_r,ti]),bn=h.useCallback((N,J,Z=\"both\",ye=0,xe=0,Re=void 0)=>{if(v.current!==null){const ce=gr.current,pe=u.current,Te=typeof N!=\"number\"?N.unit===\"cell\"?N.amount:void 0:N,je=typeof J!=\"number\"?J.unit===\"cell\"?J.amount:void 0:J,Ue=typeof N!=\"number\"&&N.unit===\"px\"?N.amount:void 0,ut=typeof J!=\"number\"&&J.unit===\"px\"?J.amount:void 0;if(ce!==null&&pe!==null){let Qe={x:0,y:0,width:0,height:0},Ze=0,gt=0;if((Te!==void 0||je!==void 0)&&(Qe=ce.getBounds((Te??0)+ve,je??0)??Qe,Qe.width===0||Qe.height===0))return;const Tt=pe.getBoundingClientRect(),Yt=Tt.width/pe.offsetWidth;if(Ue!==void 0&&(Qe={...Qe,x:Ue-Tt.left-v.current.scrollLeft,width:1}),ut!==void 0&&(Qe={...Qe,y:ut+Tt.top-v.current.scrollTop,height:1}),Qe!==void 0){const It={x:Qe.x-ye,y:Qe.y-xe,width:Qe.width+2*ye,height:Qe.height+2*xe};let Oi=0;for(let js=0;js<mt;js++)Oi+=ft[js].width;let Di=0;const ji=Xt+(xi?1:0);ji>0&&(Di=ul(Qn,ji,Yn));let na=Oi*Yt+Tt.left+ve*wa*Yt,xn=Tt.right,$t=Tt.top+Ft*Yt,bt=Tt.bottom-Di*Yt;const ra=Qe.width+ye*2;switch(Re?.hAlign){case\"start\":xn=na+ra;break;case\"end\":na=xn-ra;break;case\"center\":na=Math.floor((na+xn)/2)-ra/2,xn=na+ra;break}const ar=Qe.height+xe*2;switch(Re?.vAlign){case\"start\":bt=$t+ar;break;case\"end\":$t=bt-ar;break;case\"center\":$t=Math.floor(($t+bt)/2)-ar/2,bt=$t+ar;break}na>It.x?Ze=It.x-na:xn<It.x+It.width&&(Ze=It.x+It.width-xn),$t>It.y?gt=It.y-$t:bt<It.y+It.height&&(gt=It.y+It.height-bt),Z===\"vertical\"||typeof N==\"number\"&&N<mt?Ze=0:(Z===\"horizontal\"||typeof J==\"number\"&&J>=Qn-ji)&&(gt=0),(Ze!==0||gt!==0)&&(Yt!==1&&(Ze/=Yt,gt/=Yt),v.current.scrollTo(Ze+v.current.scrollLeft,gt+v.current.scrollTop))}}}},[ve,Xt,wa,Ft,mt,ft,Qn,xi,Yn]),jc=h.useRef(Dc),zc=h.useRef(A),Cl=h.useRef(T);jc.current=Dc,zc.current=A,Cl.current=T;const ea=h.useCallback(async(N,J=!0)=>{if(pt[N]?.trailingRowOptions?.disabled===!0)return;const ye=ze?.();let xe,Re=!0;ye!==void 0&&(xe=await ye,xe===\"top\"&&(Re=!1),typeof xe==\"number\"&&(Re=!1));let ce=0;const pe=()=>{if(Cl.current<=T){ce<500&&window.setTimeout(pe,ce),ce=50+ce*2;return}const Te=typeof xe==\"number\"?xe:Re?T:0;xo.current(N-ve,Te),_e({cell:[N,Te],range:{x:N,y:Te,width:1,height:1}},!1,!1,\"edit\");const je=zc.current([N-ve,Te]);je.allowOverlay&&zu(je)&&je.readonly!==!0&&J&&window.setTimeout(()=>{jc.current(N,Te)},0)};pe()},[pt,ze,ve,T,_e]),Rl=h.useCallback(N=>{const J=ft[N]?.trailingRowOptions?.targetColumn??kt?.targetColumn;if(typeof J==\"number\")return J+(mr?1:0);if(typeof J==\"object\"){const Z=E.indexOf(J);if(Z>=0)return Z+(mr?1:0)}},[ft,E,mr,kt?.targetColumn]),ni=h.useRef(),ho=h.useRef(),mo=h.useCallback((N,J)=>{const[Z,ye]=J;return as(Me,pt[Z]?.themeOverride,S?.(ye),N.themeOverride)},[S,pt,Me]),po=h.useCallback(N=>{const J=wh.value?N.metaKey:N.ctrlKey,Z=J&&be===\"multi\",ye=J&&ie===\"multi\",[xe,Re]=N.location,ce=Se.columns,pe=Se.rows,[Te,je]=Se.current?.cell??[];if(N.kind===\"cell\"){if(ho.current=void 0,ta.current=[xe,Re],xe===0&&mr){if(un===!0&&Re===T||Mn===\"number\"||be===\"none\")return;const Ue=_r(N.location);if(Ue.kind!==Ma.Marker)return;if(dr!==void 0){const Ze=Xe(Ue);ma(Ze?.kind===Ma.Marker);const gt=Ze?.onClick?.({...N,cell:Ue,posX:N.localEventX,posY:N.localEventY,bounds:N.bounds,theme:mo(Ue,N.location),preventDefault:()=>{}});if(gt===void 0||gt.checked===Ue.checked)return}s(void 0),rr();const ut=pe.hasIndex(Re),Qe=ni.current;if(be===\"multi\"&&(N.shiftKey||N.isLongTouch===!0)&&Qe!==void 0&&pe.hasIndex(Qe)){const Ze=[Math.min(Qe,Re),Math.max(Qe,Re)+1];Z||Sn===\"multi\"?Pe(void 0,Ze,!0):Pe(wt.fromSingleSelection(Ze),void 0,Z)}else Z||N.isTouch||Sn===\"multi\"?ut?Pe(pe.remove(Re),void 0,!0):(Pe(void 0,Re,!0),ni.current=Re):ut&&pe.length===1?Pe(wt.empty(),void 0,J):(Pe(wt.fromSingleSelection(Re),void 0,J),ni.current=Re)}else if(xe>=ve&&un&&Re===T){const Ue=Rl(xe);ea(Ue??xe)}else if(Te!==xe||je!==Re){const Ue=_r(N.location),ut=Xe(Ue);if(ut?.onSelect!==void 0){let gt=!1;if(ut.onSelect({...N,cell:Ue,posX:N.localEventX,posY:N.localEventY,bounds:N.bounds,preventDefault:()=>gt=!0,theme:mo(Ue,N.location)}),gt)return}const Qe=xi&&Re===T,Ze=xi&&Se!==void 0&&Se.current?.cell[1]===T;if((N.shiftKey||N.isLongTouch===!0)&&Te!==void 0&&je!==void 0&&Se.current!==void 0&&!Ze){if(Qe)return;const gt=Math.min(xe,Te),Tt=Math.max(xe,Te),Yt=Math.min(Re,je),It=Math.max(Re,je);_e({...Se.current,range:{x:gt,y:Yt,width:Tt-gt+1,height:It-Yt+1}},!0,J,\"click\"),ni.current=void 0,rr()}else _e({cell:[xe,Re],range:{x:xe,y:Re,width:1,height:1}},!0,J,\"click\"),ni.current=void 0,s(void 0),rr()}}else if(N.kind===\"header\")if(ta.current=[xe,Re],s(void 0),mr&&xe===0)ni.current=void 0,ho.current=void 0,be===\"multi\"&&(pe.length!==T?Pe(wt.fromSingleSelection([0,T]),void 0,J):Pe(wt.empty(),void 0,J),rr());else{const Ue=ho.current;if(ie===\"multi\"&&(N.shiftKey||N.isLongTouch===!0)&&Ue!==void 0&&ce.hasIndex(Ue)){const ut=[Math.min(Ue,xe),Math.max(Ue,xe)+1];ye?De(void 0,ut,J):De(wt.fromSingleSelection(ut),void 0,J)}else ye?(ce.hasIndex(xe)?De(ce.remove(xe),void 0,J):De(void 0,xe,J),ho.current=xe):ie!==\"none\"&&(De(wt.fromSingleSelection(xe),void 0,J),ho.current=xe);ni.current=void 0,rr()}else N.kind===fa?ta.current=[xe,Re]:N.kind===Sh&&!N.isMaybeScrollbar&&(Kn(Qf,!1),s(void 0),rr(),hn?.(),ni.current=void 0,ho.current=void 0)},[ea,ie,rr,Xe,Rl,_r,Se,mr,xi,hn,dr,ve,Mn,be,Sn,T,_e,Kn,De,Pe,un,mo]),Pa=h.useRef(!1),ta=h.useRef(),Ad=h.useRef(Hn),Tr=h.useRef(),Nd=h.useCallback(N=>{if(Ti.current=!1,Ad.current=An.current,N.button!==0&&N.button!==1){Tr.current=void 0;return}const J=performance.now();Tr.current={button:N.button,time:J,location:N.location},N?.kind===\"header\"&&(Pa.current=!0);const Z=N.kind===\"cell\"&&N.isFillHandle;!Z&&N.kind!==\"cell\"&&N.isEdge||(m({previousSelection:Se,fillHandle:Z}),ta.current=void 0,!N.isTouch&&N.button===0&&!Z?po(N):!N.isTouch&&N.button===1&&(ta.current=N.location))},[Se,po]),[El,Cs]=h.useState(),kl=h.useCallback(N=>{if(N.kind!==fa||ie!==\"multi\")return;const J=wh.value?N.metaKey:N.ctrlKey,[Z]=N.location,ye=Se.columns;if(Z<ve)return;const xe=pt[Z];let Re=Z,ce=Z;for(let pe=Z-1;pe>=ve&&rd(xe.group,pt[pe].group);pe--)Re--;for(let pe=Z+1;pe<pt.length&&rd(xe.group,pt[pe].group);pe++)ce++;if(rr(),J)if(ye.hasAll([Re,ce+1])){let pe=ye;for(let Te=Re;Te<=ce;Te++)pe=pe.remove(Te);De(pe,void 0,J)}else De(void 0,[Re,ce+1],J);else De(wt.fromSingleSelection([Re,ce+1]),void 0,J)},[ie,rr,Se.columns,pt,ve,De]),Ti=h.useRef(!1),Rs=h.useCallback(async N=>{if(yn!==void 0&&Er!==void 0){const J=An.current.y,Z=An.current.height;let ye=yn({x:N,y:J,width:1,height:Math.min(Z,T-J)},nr.current.signal);typeof ye!=\"object\"&&(ye=await ye());const xe=ft[N-ve],ce=document.createElement(\"canvas\").getContext(\"2d\",{alpha:!1});if(ce!==null){ce.font=Me.baseFontFull;const pe=iM(ce,Me,xe,0,ye,fr,hr,!1,Xe);Er?.(xe,pe.width,N,pe.width)}}},[ft,yn,hr,Me,fr,Er,ve,T,Xe]),[Od,Pc]=h.useState(),go=h.useCallback(async(N,J)=>{const Z=N.current?.range;if(Z===void 0||yn===void 0||J.current===void 0)return;const ye=J.current.range;if(O!==void 0){let pe=!1;if(O({fillDestination:{...ye,x:ye.x-ve},patternSource:{...Z,x:Z.x-ve},preventDefault:()=>pe=!0}),pe)return}let xe=yn(Z,nr.current.signal);typeof xe!=\"object\"&&(xe=await xe());const Re=xe,ce=[];for(let pe=0;pe<ye.width;pe++)for(let Te=0;Te<ye.height;Te++){const je=[ye.x+pe,ye.y+Te];if(GT(je,Z))continue;const Ue=Re[Te%Z.height][pe%Z.width];Zs(Ue)||!zu(Ue)||ce.push({location:je,value:{...Ue}})}kr(ce),gr.current?.damage(ce.map(pe=>({cell:pe.location})))},[yn,kr,O,ve]),Dd=h.useCallback(()=>{if(Se.current===void 0||Se.current.range.width<=1)return;const N={...Se,current:{...Se.current,range:{...Se.current.range,width:1}}};go(N,Se)},[go,Se]),jd=h.useCallback(()=>{if(Se.current===void 0||Se.current.range.height<=1)return;const N={...Se,current:{...Se.current,range:{...Se.current.range,height:1}}};go(N,Se)},[go,Se]),gm=h.useCallback((N,J)=>{const Z=f;if(m(void 0),Oc(void 0),Pc(void 0),Pa.current=!1,J)return;if(Z?.fillHandle===!0&&Se.current!==void 0&&Z.previousSelection?.current!==void 0){if(_i===void 0)return;const Ue={...Se,current:{...Se.current,range:pM(Z.previousSelection.current.range,_i)}};go(Z.previousSelection,Ue),Kn(Ue,!0);return}const[ye,xe]=N.location,[Re,ce]=ta.current??[],pe=()=>{Ti.current=!0},Te=Ue=>{const ut=Ue.isTouch||Re===ye&&ce===xe;if(ut&&D?.([ye-ve,xe],{...Ue,preventDefault:pe}),Ue.button===1)return!Ti.current;if(!Ti.current){const Qe=_r(N.location),Ze=Xe(Qe);if(Ze!==void 0&&Ze.onClick!==void 0&&ut){const Tt=Ze.onClick({...Ue,cell:Qe,posX:Ue.localEventX,posY:Ue.localEventY,bounds:Ue.bounds,theme:mo(Qe,N.location),preventDefault:pe});Tt!==void 0&&!Zs(Tt)&&Qi(Tt)&&(kr([{location:Ue.location,value:Tt}]),gr.current?.damage([{cell:Ue.location}]))}if(Ti.current||Se.current===void 0)return!1;let gt=!1;switch(Qe.activationBehaviorOverride??dt){case\"double-click\":case\"second-click\":{if(Z?.previousSelection?.current?.cell===void 0)break;const[Tt,Yt]=Se.current.cell,[It,Oi]=Z.previousSelection.current.cell;gt=ye===Tt&&ye===It&&xe===Yt&&xe===Oi&&(Ue.isDoubleClick===!0||dt===\"second-click\");break}case\"single-click\":{gt=!0;break}}if(gt)return z?.([ye-ve,xe]),fo(Ue.bounds,!1),!0}return!1},je=N.location[0]-ve;if(N.isTouch){const Ue=An.current,ut=Ad.current;if(Ue.x!==ut.x||Ue.y!==ut.y)return;if(N.isLongTouch===!0){if(N.kind===\"cell\"&&Wu(Se.current?.cell,N.location)){U?.([je,N.location[1]],{...N,preventDefault:pe});return}else if(N.kind===\"header\"&&Se.columns.hasIndex(ye)){ee?.(je,{...N,preventDefault:pe});return}else if(N.kind===fa){if(je<0)return;P?.(je,{...N,preventDefault:pe});return}}N.kind===\"cell\"?Te(N)||po(N):N.kind===fa?F?.(je,{...N,preventDefault:pe}):(N.kind===Ko&&q?.(je,{...N,preventDefault:pe}),po(N));return}if(N.kind===\"header\"){if(je<0)return;N.isEdge?N.isDoubleClick===!0&&Rs(ye):N.button===0&&ye===Re&&xe===ce&&q?.(je,{...N,preventDefault:pe})}if(N.kind===fa){if(je<0)return;N.button===0&&ye===Re&&xe===ce&&(F?.(je,{...N,preventDefault:pe}),Ti.current||kl(N))}N.kind===\"cell\"&&(N.button===0||N.button===1)&&Te(N),ta.current=void 0},[f,Se,ve,_i,go,Kn,D,_r,Xe,dt,mo,kr,z,fo,U,ee,P,po,F,q,Rs,kl]),Mr=h.useCallback(N=>{const J={...N,location:[N.location[0]-ve,N.location[1]]};ht?.(J),f!==void 0&&N.buttons===0&&(m(void 0),Oc(void 0),Pc(void 0),Pa.current=!1),Pc(Z=>Pa.current?[N.scrollEdge[0],0]:N.scrollEdge[0]===Z?.[0]&&N.scrollEdge[1]===Z[1]?Z:f===void 0||(Tr.current?.location[0]??0)<ve?void 0:N.scrollEdge)},[f,ht,ve]),Es=h.useCallback((N,J)=>{jt?.(N-ve,J)},[jt,ve]),Mi=Se?.current?.cell,zd=h.useCallback((N,J,Z,ye,xe,Re)=>{Bt.current=!1;let ce=Mi;ce!==void 0&&(ce=[ce[0]-ve,ce[1]]);const pe=mt===0?void 0:{x:0,y:N.y,width:mt,height:N.height},Te=[];pe!==void 0&&Te.push(pe),Xt>0&&(Te.push({x:N.x-ve,y:T-Xt,width:N.width,height:Xt}),mt>0&&Te.push({x:0,y:T-Xt,width:mt,height:Xt}));const je={x:N.x-ve,y:N.y,width:N.width,height:un&&N.y+N.height>=T?N.height-1:N.height,tx:xe,ty:Re,extras:{selected:ce,freezeRegion:pe,freezeRegions:Te}};An.current=je,pr(je),rt([J,Z,ye]),Vr?.(je,je.tx,je.ty,je.extras)},[Mi,ve,un,T,mt,Xt,pr,Vr]),Pd=nc(Ke,h.useCallback((N,J)=>{Ke?.(N-ve,J-ve),ie!==\"none\"&&De(wt.fromSingleSelection(J),void 0,!0)},[ie,Ke,ve,De])),_l=h.useRef(!1),Lc=h.useCallback(N=>{if(N.location[0]===0&&ve>0){N.preventDefault();return}et?.({...N,location:[N.location[0]-ve,N.location[1]]}),N.defaultPrevented()||(_l.current=!0),m(void 0)},[et,ve]),vm=h.useCallback(()=>{_l.current=!1},[]),ri=h.useRef(),ks=h.useCallback(N=>{if(!MM(N,ri.current)&&(ri.current=N,!(Tr?.current?.button!==void 0&&Tr.current.button>=1))){if(N.buttons!==0&&f!==void 0&&Tr.current?.location[0]===0&&N.location[0]===0&&ve===1&&be===\"multi\"&&f.previousSelection&&!f.previousSelection.rows.hasIndex(Tr.current.location[1])&&Se.rows.hasIndex(Tr.current.location[1])){const J=Math.min(Tr.current.location[1],N.location[1]),Z=Math.max(Tr.current.location[1],N.location[1])+1;Pe(wt.fromSingleSelection([J,Z]),void 0,!1)}if(N.buttons!==0&&f!==void 0&&Se.current!==void 0&&!_l.current&&!Pa.current&&(re===\"rect\"||re===\"multi-rect\")){const[J,Z]=Se.current.cell;let[ye,xe]=N.location;if(xe<0&&(xe=An.current.y),f.fillHandle===!0&&f.previousSelection?.current!==void 0){const Re=f.previousSelection.current.range;xe=Math.min(xe,un?T-1:T);const ce=qI(Re,ye,xe,wr);Oc(ce)}else{if(un&&Z===T)return;if(un&&xe===T)if(N.kind===Sh)xe--;else return;ye=Math.max(ye,ve);const pe=ye-J,Te=xe-Z,je={x:pe>=0?J:ye,y:Te>=0?Z:xe,width:Math.abs(pe)+1,height:Math.abs(Te)+1};_e({...Se.current,range:je},!0,!1,\"drag\")}}Lt?.({...N,location:[N.location[0]-ve,N.location[1]]})}},[wr,f,ve,be,Se,re,Lt,Pe,un,T,_e]),_s=h.useCallback(()=>{const N=ri.current;if(N===void 0)return;const[J,Z]=N.scrollEdge;let[ye,xe]=N.location;const Re=An.current;J===-1?ye=Re.extras?.freezeRegion?.x??Re.x:J===1&&(ye=Re.x+Re.width),Z===-1?xe=Math.max(0,Re.y):Z===1&&(xe=Math.min(T-1,Re.y+Re.height)),ye=Ba(ye,0,pt.length-1),xe=Ba(xe,0,T-1),ks({...N,location:[ye,xe]})},[pt.length,ks,T]);WH(Od,v,_s);const Ar=h.useCallback(N=>{if(Se.current===void 0)return;const[J,Z]=N,[ye,xe]=Se.current.cell,Re=Se.current.range;let ce=Re.x,pe=Re.x+Re.width,Te=Re.y,je=Re.y+Re.height;if(Z!==0)switch(Z){case 2:{je=T,Te=xe,bn(0,je,\"vertical\");break}case-2:{Te=0,je=xe+1,bn(0,Te,\"vertical\");break}case 1:{Te<xe?(Te++,bn(0,Te,\"vertical\")):(je=Math.min(T,je+1),bn(0,je,\"vertical\"));break}case-1:{je>xe+1?(je--,bn(0,je,\"vertical\")):(Te=Math.max(0,Te-1),bn(0,Te,\"vertical\"));break}default:nd()}if(J!==0)if(J===2)pe=pt.length,ce=ye,bn(pe-1-ve,0,\"horizontal\");else if(J===-2)ce=ve,pe=ye+1,bn(ce-ve,0,\"horizontal\");else{let Ue=[];if(yn!==void 0){const ut=yn({x:ce,y:Te,width:pe-ce-ve,height:je-Te},nr.current.signal);typeof ut==\"object\"&&(Ue=QH(ut))}if(J===1){let ut=!1;if(ce<ye){if(Ue.length>0){const Qe=Ks(ce+1,ye+1).find(Ze=>!Ue.includes(Ze-ve));Qe!==void 0&&(ce=Qe,ut=!0)}else ce++,ut=!0;ut&&bn(ce,0,\"horizontal\")}ut||(pe=Math.min(pt.length,pe+1),bn(pe-1-ve,0,\"horizontal\"))}else if(J===-1){let ut=!1;if(pe>ye+1){if(Ue.length>0){const Qe=Ks(pe-1,ye,-1).find(Ze=>!Ue.includes(Ze-ve));Qe!==void 0&&(pe=Qe,ut=!0)}else pe--,ut=!0;ut&&bn(pe-ve,0,\"horizontal\")}ut||(ce=Math.max(ve,ce-1),bn(ce-ve,0,\"horizontal\"))}else nd()}_e({cell:Se.current.cell,range:{x:ce,y:Te,width:pe-ce,height:je-Te}},!0,!1,\"keyboard-select\")},[yn,Se,pt.length,ve,T,bn,_e]),La=h.useCallback((N,J,Z,ye)=>{const xe=Qn-(Z?0:1);if(N=Ba(N,ve,ft.length-1+ve),J=Ba(J,0,xe),N===Mi?.[0]&&J===Mi?.[1])return!1;if(ye&&Se.current!==void 0){const Re=[...Se.current.rangeStack];(Se.current.range.width>1||Se.current.range.height>1)&&Re.push(Se.current.range),Kn({...Se,current:{cell:[N,J],range:{x:N,y:J,width:1,height:1},rangeStack:Re}},!0)}else _e({cell:[N,J],range:{x:N,y:J,width:1,height:1}},!0,!1,\"keyboard-nav\");return y.current!==void 0&&y.current[0]===N&&y.current[1]===J&&(y.current=void 0),bn(N-ve,J),!0},[Qn,ve,ft.length,Mi,Se,bn,Kn,_e]),Ai=h.useCallback((N,J)=>{o?.cell!==void 0&&N!==void 0&&Qi(N)&&(kr([{location:o.cell,value:N}]),window.requestAnimationFrame(()=>{gr.current?.damage([{cell:o.cell}])})),rr(!0),s(void 0);const[Z,ye]=J;if(Se.current!==void 0&&(Z!==0||ye!==0)){const xe=Se.current.cell[1]===Qn-1&&N!==void 0;La(Ba(Se.current.cell[0]+Z,0,pt.length-1),Ba(Se.current.cell[1]+ye,0,Qn-1),xe,!1)}H?.(N,J)},[o?.cell,rr,Se,H,kr,Qn,La,pt.length]),vo=h.useMemo(()=>`gdg-overlay-${KH++}`,[]),Ia=h.useCallback(N=>{rr();const J=[];for(let Z=N.x;Z<N.x+N.width;Z++)for(let ye=N.y;ye<N.y+N.height;ye++){const xe=A([Z-ve,ye]);if(!xe.allowOverlay&&xe.kind!==Ie.Boolean)continue;let Re;if(xe.kind===Ie.Custom){const ce=Xe(xe),pe=ce?.provideEditor?.(xe);ce?.onDelete!==void 0?Re=ce.onDelete(xe):kT(pe)&&(Re=pe?.deletedValue?.(xe))}else(Qi(xe)&&xe.allowOverlay||xe.kind===Ie.Boolean)&&(Re=Xe(xe)?.onDelete?.(xe));Re!==void 0&&!Zs(Re)&&Qi(Re)&&J.push({location:[Z,ye],value:Re})}kr(J),gr.current?.damage(J.map(Z=>({cell:Z.location})))},[rr,A,Xe,kr,ve]),yo=o!==void 0,ai=h.useCallback(N=>{const J=()=>{N.stopPropagation(),N.preventDefault()},Z={didMatch:!1},{bounds:ye}=N,xe=Se.columns,Re=Se.rows,ce=Zr;if(!yo&&Rt(ce.clear,N,Z))Kn(Qf,!1),hn?.();else if(!yo&&Rt(ce.selectAll,N,Z))Kn({columns:wt.empty(),rows:wt.empty(),current:{cell:Se.current?.cell??[ve,0],range:{x:ve,y:0,width:E.length,height:T},rangeStack:[]}},!1);else if(Rt(ce.search,N,Z))c?.current?.focus({preventScroll:!0}),Lr(!0);else if(Rt(ce.delete,N,Z)){const Ze=se?.(Se)??!0;if(Ze!==!1){const gt=Ze===!0?Se:Ze;if(gt.current!==void 0){Ia(gt.current.range);for(const Tt of gt.current.rangeStack)Ia(Tt)}for(const Tt of gt.rows)Ia({x:ve,y:Tt,width:E.length,height:1});for(const Tt of gt.columns)Ia({x:Tt,y:0,width:1,height:T})}}if(Z.didMatch)return J(),!0;if(Se.current===void 0)return!1;let[pe,Te]=Se.current.cell,je=!1,Ue=!1;Rt(ce.scrollToSelectedCell,N,Z)?xo.current(pe-ve,Te):ie!==\"none\"&&Rt(ce.selectColumn,N,Z)?xe.hasIndex(pe)?De(xe.remove(pe),void 0,!0):ie===\"single\"?De(wt.fromSingleSelection(pe),void 0,!0):De(void 0,pe,!0):be!==\"none\"&&Rt(ce.selectRow,N,Z)?Re.hasIndex(Te)?Pe(Re.remove(Te),void 0,!0):be===\"single\"?Pe(wt.fromSingleSelection(Te),void 0,!0):Pe(void 0,Te,!0):!yo&&ye!==void 0&&Rt(ce.activateCell,N,Z)?Te===T&&un?window.setTimeout(()=>{const Ze=Rl(pe);ea(Ze??pe)},0):(z?.([pe-ve,Te]),fo(ye,!0)):Se.current.range.height>1&&Rt(ce.downFill,N,Z)?jd():Se.current.range.width>1&&Rt(ce.rightFill,N,Z)?Dd():Rt(ce.goToNextPage,N,Z)?Te+=Math.max(1,An.current.height-4):Rt(ce.goToPreviousPage,N,Z)?Te-=Math.max(1,An.current.height-4):Rt(ce.goToFirstCell,N,Z)?(s(void 0),Te=0,pe=0):Rt(ce.goToLastCell,N,Z)?(s(void 0),Te=Number.MAX_SAFE_INTEGER,pe=Number.MAX_SAFE_INTEGER):Rt(ce.selectToFirstCell,N,Z)?(s(void 0),Ar([-2,-2])):Rt(ce.selectToLastCell,N,Z)?(s(void 0),Ar([2,2])):yo?(Rt(ce.closeOverlay,N,Z)&&s(void 0),Rt(ce.acceptOverlayDown,N,Z)&&(s(void 0),Te++),Rt(ce.acceptOverlayUp,N,Z)&&(s(void 0),Te--),Rt(ce.acceptOverlayLeft,N,Z)&&(s(void 0),pe--),Rt(ce.acceptOverlayRight,N,Z)&&(s(void 0),pe++)):(Rt(ce.goDownCell,N,Z)?Te+=1:Rt(ce.goUpCell,N,Z)?Te-=1:Rt(ce.goRightCell,N,Z)?pe+=1:Rt(ce.goLeftCell,N,Z)?pe-=1:Rt(ce.goDownCellRetainSelection,N,Z)?(Te+=1,je=!0):Rt(ce.goUpCellRetainSelection,N,Z)?(Te-=1,je=!0):Rt(ce.goRightCellRetainSelection,N,Z)?(pe+=1,je=!0):Rt(ce.goLeftCellRetainSelection,N,Z)?(pe-=1,je=!0):Rt(ce.goToLastRow,N,Z)?Te=T-1:Rt(ce.goToFirstRow,N,Z)?Te=Number.MIN_SAFE_INTEGER:Rt(ce.goToLastColumn,N,Z)?pe=Number.MAX_SAFE_INTEGER:Rt(ce.goToFirstColumn,N,Z)?pe=Number.MIN_SAFE_INTEGER:(re===\"rect\"||re===\"multi-rect\")&&(Rt(ce.selectGrowDown,N,Z)?Ar([0,1]):Rt(ce.selectGrowUp,N,Z)?Ar([0,-1]):Rt(ce.selectGrowRight,N,Z)?Ar([1,0]):Rt(ce.selectGrowLeft,N,Z)?Ar([-1,0]):Rt(ce.selectToLastRow,N,Z)?Ar([0,2]):Rt(ce.selectToFirstRow,N,Z)?Ar([0,-2]):Rt(ce.selectToLastColumn,N,Z)?Ar([2,0]):Rt(ce.selectToFirstColumn,N,Z)&&Ar([-2,0])),Ue=Z.didMatch);const ut=La(pe,Te,!1,je),Qe=Z.didMatch;return Qe&&(ut||!Ue||En)&&J(),Qe},[yo,Se,Zr,ie,be,re,ve,T,La,Kn,hn,E.length,se,En,Ia,De,Pe,un,Rl,ea,z,fo,jd,Dd,Ar]),bo=h.useCallback(N=>{let J=!1;if(Ae!==void 0&&Ae({...N,cancel:()=>{J=!0}}),J||ai(N)||Se.current===void 0)return;const[Z,ye]=Se.current.cell,xe=An.current;if(tt&&!N.metaKey&&!N.ctrlKey&&Se.current!==void 0&&N.key.length===1&&/[ -~]/g.test(N.key)&&N.bounds!==void 0&&zu(A([Z-ve,Math.max(0,Math.min(ye,T-1))]))){if((!un||ye!==T)&&(xe.y>ye||ye>xe.y+xe.height||xe.x>Z||Z>xe.x+xe.width))return;fo(N.bounds,!0,N.key),N.stopPropagation(),N.preventDefault()}},[tt,Ae,ai,Se,A,ve,T,un,fo]),Ld=h.useCallback((N,J)=>{const Z=N.location[0]-ve;if(N.kind===\"header\"&&ee?.(Z,{...N,preventDefault:J}),N.kind===fa){if(Z<0)return;P?.(Z,{...N,preventDefault:J})}if(N.kind===\"cell\"){const[ye,xe]=N.location;U?.([Z,xe],{...N,preventDefault:J}),vL(Se,N.location)||La(ye,xe,!1,!1)}},[Se,U,P,ee,ve,La]),Tl=h.useCallback(async N=>{if(!Zr.paste)return;function J(ce,pe,Te,je){const Ue=typeof Te==\"object\"?Te?.join(`\n`)??\"\":Te?.toString()??\"\";if(!Zs(ce)&&zu(ce)&&ce.readonly!==!0){const ut=$?.(Ue,ce);if(ut!==void 0&&Qi(ut))return{location:pe,value:ut};const Qe=Xe(ce);if(Qe===void 0)return;if(Qe.kind===Ie.Custom){ma(ce.kind===Ie.Custom);const Ze=Qe.onPaste?.(Ue,ce.data);return Ze===void 0?void 0:{location:pe,value:{...ce,data:Ze}}}else{const Ze=Qe.onPaste?.(Ue,ce,{formatted:je,formattedString:typeof je==\"string\"?je:je?.join(`\n`),rawValue:Te});return Ze===void 0?void 0:(ma(Ze.kind===ce.kind),{location:pe,value:Ze})}}}const Z=Se.columns,ye=Se.rows,xe=v.current?.contains(document.activeElement)===!0||u.current?.contains(document.activeElement)===!0;let Re;if(Se.current!==void 0?Re=[Se.current.range.x,Se.current.range.y]:Z.length===1?Re=[Z.first()??0,0]:ye.length===1&&(Re=[ve,ye.first()??0]),xe&&Re!==void 0){let ce,pe;const Te=\"text/plain\",je=\"text/html\";if(navigator.clipboard.read!==void 0){const Ze=await navigator.clipboard.read();for(const gt of Ze){if(gt.types.includes(je)){const Yt=await(await gt.getType(je)).text(),It=QE(Yt);if(It!==void 0){ce=It;break}}gt.types.includes(Te)&&(pe=await(await gt.getType(Te)).text())}}else if(navigator.clipboard.readText!==void 0)pe=await navigator.clipboard.readText();else if(N!==void 0&&N?.clipboardData!==null){if(N.clipboardData.types.includes(je)){const Ze=N.clipboardData.getData(je);ce=QE(Ze)}ce===void 0&&N.clipboardData.types.includes(Te)&&(pe=N.clipboardData.getData(Te))}else return;const[Ue,ut]=Re,Qe=[];do{if(Ve===void 0){const Ze=_r(Re),gt=pe??ce?.map(Yt=>Yt.map(It=>It.rawValue).join(\"\t\")).join(\"\t\")??\"\",Tt=J(Ze,Re,gt,void 0);Tt!==void 0&&Qe.push(Tt);break}if(ce===void 0){if(pe===void 0)return;ce=HH(pe)}if(Ve===!1||typeof Ve==\"function\"&&Ve?.([Re[0]-ve,Re[1]],ce.map(Ze=>Ze.map(gt=>gt.rawValue?.toString()??\"\")))!==!0)return;for(const[Ze,gt]of ce.entries()){if(Ze+ut>=T)break;for(const[Tt,Yt]of gt.entries()){const It=[Tt+Ue,Ze+ut],[Oi,Di]=It;if(Oi>=pt.length||Di>=Qn)continue;const ji=_r(It),na=J(ji,It,Yt.rawValue,Yt.formatted);na!==void 0&&Qe.push(na)}}}while(!1);kr(Qe),gr.current?.damage(Qe.map(Ze=>({cell:Ze.location})))}},[$,Xe,_r,Se,Zr.paste,pt.length,kr,Qn,Ve,ve,T]);cr(\"paste\",Tl,x,!1,!0);const Ts=h.useCallback(async(N,J)=>{if(!Zr.copy)return;const Z=J===!0||v.current?.contains(document.activeElement)===!0||u.current?.contains(document.activeElement)===!0,ye=Se.columns,xe=Se.rows,Re=(ce,pe)=>{if(!Ht)JE(ce,pe,N);else{const Te=pe.map(je=>({kind:Ie.Text,data:E[je].title,displayData:E[je].title,allowOverlay:!1}));JE([Te,...ce],pe,N)}};if(Z&&yn!==void 0){if(Se.current!==void 0){let ce=yn(Se.current.range,nr.current.signal);typeof ce!=\"object\"&&(ce=await ce()),Re(ce,Ks(Se.current.range.x-ve,Se.current.range.x+Se.current.range.width-ve))}else if(xe!==void 0&&xe.length>0){const pe=[...xe].map(Te=>{const je=yn({x:ve,y:Te,width:E.length,height:1},nr.current.signal);return typeof je==\"object\"?je[0]:je().then(Ue=>Ue[0])});if(pe.some(Te=>Te instanceof Promise)){const Te=await Promise.all(pe);Re(Te,Ks(E.length))}else Re(pe,Ks(E.length))}else if(ye.length>0){const ce=[],pe=[];for(const Te of ye){let je=yn({x:Te,y:0,width:1,height:T},nr.current.signal);typeof je!=\"object\"&&(je=await je()),ce.push(je),pe.push(Te-ve)}if(ce.length===1)Re(ce[0],pe);else{const Te=ce.reduce((je,Ue)=>je.map((ut,Qe)=>[...ut,...Ue[Qe]]));Re(Te,pe)}}}},[E,yn,Se,Zr.copy,ve,T,Ht]);cr(\"copy\",Ts,x,!1,!1);const ym=h.useCallback(async N=>{if(!(!Zr.cut||!(v.current?.contains(document.activeElement)===!0||u.current?.contains(document.activeElement)===!0))&&(await Ts(N),Se.current!==void 0)){let Z={current:{cell:Se.current.cell,range:Se.current.range,rangeStack:[]},rows:wt.empty(),columns:wt.empty()};const ye=se?.(Z);if(ye===!1||(Z=ye===!0?Z:ye,Z.current===void 0))return;Ia(Z.current.range)}},[Ia,Se,Zr.cut,Ts,se]);cr(\"cut\",ym,x,!1,!1);const bm=h.useCallback((N,J)=>{if(te!==void 0){ve!==0&&(N=N.map(xe=>[xe[0]-ve,xe[1]])),te(N,J);return}if(N.length===0||J===-1)return;const[Z,ye]=N[J];y.current!==void 0&&y.current[0]===Z&&y.current[1]===ye||(y.current=[Z,ye],La(Z,ye,!1,!1))},[te,ve,La]),[Ms,As]=kn?.current?.cell??[],xo=h.useRef(bn);xo.current=bn,h.useLayoutEffect(()=>{!Bt.current&&Ms!==void 0&&As!==void 0&&(Ms!==Xn.current?.current?.cell[0]||As!==Xn.current?.current?.cell[1])&&xo.current(Ms,As),Bt.current=!1},[Ms,As]);const Ir=Se.current!==void 0&&(Se.current.cell[0]>=pt.length||Se.current.cell[1]>=Qn);h.useLayoutEffect(()=>{Ir&&Kn(Qf,!1)},[Ir,Kn]);const Ml=h.useMemo(()=>un===!0&&kt?.tint===!0?wt.fromSingleSelection(Qn-1):wt.empty(),[Qn,un,kt?.tint]),Hr=h.useCallback(N=>typeof Wt==\"boolean\"?Wt:Wt?.(N-ve)??!0,[ve,Wt]),wo=h.useMemo(()=>{if(El===void 0||u.current===null)return null;const{bounds:N,group:J}=El,Z=u.current.getBoundingClientRect();return h.createElement(TH,{bounds:N,group:J,canvasBounds:Z,onClose:()=>Cs(void 0),onFinish:ye=>{Cs(void 0),Y?.(J,ye)}})},[Y,El]),Ic=Math.min(pt.length,mt+(mr?1:0));h.useImperativeHandle(t,()=>({appendRow:(N,J)=>ea(N+ve,J),updateCells:N=>(ve!==0&&(N=N.map(J=>({cell:[J.cell[0]+ve,J.cell[1]]}))),gr.current?.damage(N)),getBounds:(N,J)=>{if(!(u?.current===null||v?.current===null)){if(N===void 0&&J===void 0){const Z=u.current.getBoundingClientRect(),ye=Z.width/v.current.clientWidth;return{x:Z.x-v.current.scrollLeft*ye,y:Z.y-v.current.scrollTop*ye,width:v.current.scrollWidth*ye,height:v.current.scrollHeight*ye}}return gr.current?.getBounds((N??0)+ve,J)}},focus:()=>gr.current?.focus(),emit:async N=>{switch(N){case\"delete\":bo({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:\"Delete\",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case\"fill-right\":bo({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:\"r\",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case\"fill-down\":bo({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:\"d\",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case\"copy\":await Ts(void 0,!0);break;case\"paste\":await Tl();break}},scrollTo:bn,remeasureColumns:N=>{for(const J of N)Rs(J+ve)}}),[ea,Rs,Ts,bo,Tl,ve,bn]);const[Ns,Os]=Mi??[],Hc=h.useCallback(N=>{const[J,Z]=N;if(Z===-1){ie!==\"none\"&&(De(wt.fromSingleSelection(J),void 0,!1),rr());return}Ns===J&&Os===Z||(_e({cell:N,range:{x:J,y:Z,width:1,height:1}},!0,!1,\"keyboard-nav\"),bn(J,Z))},[ie,rr,bn,Ns,Os,_e,De]),[Ni,Id]=h.useState(!1),Ds=h.useRef(jT(N=>{Id(N)},5)),So=h.useCallback(()=>{Ds.current(!0),Se.current===void 0&&Se.columns.length===0&&Se.rows.length===0&&f===void 0&&_e({cell:[ve,uo],range:{x:ve,y:uo,width:1,height:1}},!0,!1,\"keyboard-select\")},[uo,Se,f,ve,_e]),xm=h.useCallback(()=>{Ds.current(!1)},[]),[Nr,qc]=h.useMemo(()=>{let N;const J=Rn?.scrollbarWidthOverride??Zy(),Z=T+(un?1:0);if(typeof Yn==\"number\")N=Ft+Z*Yn;else{let xe=0;const Re=Math.min(Z,10);for(let ce=0;ce<Re;ce++)xe+=Yn(ce);xe=Math.floor(xe/Re),N=Ft+Z*xe}N+=J;const ye=pt.reduce((xe,Re)=>Re.width+xe,0)+J;return[`${Math.min(1e5,ye)}px`,`${Math.min(1e5,N)}px`]},[pt,Rn?.scrollbarWidthOverride,Yn,T,un,Ft]),Ha=h.useMemo(()=>tM(Me),[Me]);return h.createElement(aM.Provider,{value:Me},h.createElement(BH,{style:Ha,className:W,inWidth:R??Nr,inHeight:_??qc},h.createElement(EH,{fillHandle:Cn,drawFocusRing:_n,experimental:Rn,fixedShadowX:Tn,fixedShadowY:jn,getRowThemeOverride:S,headerIcons:ur,imageWindowLoader:Gr,initialSize:oo,isDraggable:hl,onDragLeave:gs,onRowMoved:dr,overscrollX:yl,overscrollY:ja,preventDiagonalScrolling:Xr,rightElement:Kr,rightElementProps:Cr,smoothScrollX:vs,smoothScrollY:ml,className:W,enableGroups:nn,onCanvasFocused:So,onCanvasBlur:xm,canvasRef:u,onContextMenu:Ld,theme:Me,cellXOffset:ki,cellYOffset:uo,accessibilityHeight:Hn.height,onDragEnd:vm,columns:pt,nonGrowWidth:tn,drawHeader:lo,onColumnProposeMove:B,drawCell:bl,disabledRows:Ml,freezeColumns:Ic,lockColumns:ve,firstColAccessible:ve===0,getCellContent:_r,minColumnWidth:fr,maxColumnWidth:hr,searchInputRef:c,showSearch:wi,onSearchClose:ws,highlightRegions:pm,getCellsForSelection:yn,getGroupDetails:Ss,headerHeight:Ja,isFocused:Ni,groupHeaderHeight:nn?xa:0,freezeTrailingRows:Xt+(un&&kt?.sticky===!0?1:0),hasAppendRow:un,onColumnResize:Er,onColumnResizeEnd:Sa,onColumnResizeStart:ei,onCellFocused:Hc,onColumnMoved:Pd,onDragStart:Lc,onHeaderMenuClick:Es,onItemHovered:ks,isFilling:f?.fillHandle===!0,onMouseMove:Mr,onKeyDown:bo,onKeyUp:He,onMouseDown:Nd,onMouseUp:gm,onDragOverCell:en,onDrop:Wr,onSearchResultsChanged:bm,onVisibleRegionChanged:zd,clientSize:Le,rowHeight:Yn,searchResults:fe,searchValue:he,onSearchValueChange:ne,rows:Qn,scrollRef:v,selection:Se,translateX:Hn.tx,translateY:Hn.ty,verticalBorder:Hr,gridRef:gr,getCellRenderer:Xe}),wo,o!==void 0&&h.createElement(h.Suspense,{fallback:null},h.createElement(XH,{...o,validateCell:za,bloom:M,id:vo,getCellRenderer:Xe,className:Rn?.isSubGrid===!0?\"click-outside-ignore\":void 0,provideEditor:qt,imageEditorOverride:w,onFinishEditing:Ai,markdownDivCreateNode:C,isOutsideClick:vl}))))},JH=h.forwardRef(ZH),nk=20,eq={getAccessibilityString:e=>e.data?.toString()??\"false\",kind:Ie.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:e=>tq(e,e.cell.data,Qy(e.cell),e.cell.maxSize??nk),onDelete:e=>({...e,data:!1}),onClick:e=>{const{cell:t,posX:n,posY:a,bounds:o,theme:s}=e,{width:c,height:u,x:f,y:m}=o,v=t.maxSize??nk,y=Math.floor(o.y+u/2),x=LT(v,u,s.cellVerticalPadding),w=PT(t.contentAlign??\"center\",f,c,s.cellHorizontalPadding,x),S=zT(w,y,x),C=IT(f+n,m+a,S);if(Qy(t)&&C)return{...t,data:OM(t.data)}},onPaste:(e,t)=>{let n=gh;return e.toLowerCase()===\"true\"?n=!0:e.toLowerCase()===\"false\"?n=!1:e.toLowerCase()===\"indeterminate\"&&(n=Hb),n===t.data?void 0:{...t,data:n}}};function tq(e,t,n,a){if(!n&&t===gh)return;const{ctx:o,hoverAmount:s,theme:c,rect:u,highlighted:f,hoverX:m,hoverY:v,cell:{contentAlign:y}}=e,{x,y:w,width:S,height:C}=u,R=.35;let _=n?1-R+R*s:.4;t===gh&&(_*=s),_!==0&&(o.globalAlpha=_,Qb(o,c,t,x,w,S,C,f,m,v,a,y),o.globalAlpha=1)}const nq=Dr(\"div\")({name:\"BubblesOverlayEditorStyle\",class:\"gdg-b1ygi5by\",propsAsIs:!1}),rq=e=>{const{bubbles:t}=e;return h.createElement(nq,null,t.map((n,a)=>h.createElement(\"div\",{key:a,className:\"boe-bubble\"},n)),h.createElement(\"textarea\",{className:\"gdg-input\",autoFocus:!0}))},aq={getAccessibilityString:e=>HT(e.data),kind:Ie.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,n)=>t.data.reduce((a,o)=>e.measureText(o).width+a+20,0)+2*n.cellHorizontalPadding-4,draw:e=>oq(e,e.cell.data),provideEditor:()=>e=>{const{value:t}=e;return h.createElement(rq,{bubbles:t.data})},onPaste:()=>{}},iq=4;function oq(e,t){const{rect:n,theme:a,ctx:o,highlighted:s}=e,{x:c,y:u,width:f,height:m}=n,v=20,y=8,x=iq;let w=c+a.cellHorizontalPadding;const S=[];for(const C of t){if(w>c+f)break;const R=xd(C,o,a.baseFontFull).width;S.push({x:w,width:R}),w+=R+y*2+x}o.beginPath();for(const C of S)fi(o,C.x,u+(m-v)/2,C.width+y*2,v,a.roundingRadius??v/2);o.fillStyle=s?a.bgBubbleSelected:a.bgBubble,o.fill();for(const[C,R]of S.entries())o.beginPath(),o.fillStyle=a.textBubble,o.fillText(t[C],R.x+y,u+m/2+ms(o,a))}const sq=Dr(\"div\")({name:\"DrilldownOverlayEditorStyle\",class:\"gdg-d4zsq0x\",propsAsIs:!1}),lq=e=>{const{drilldowns:t}=e;return h.createElement(sq,null,t.map((n,a)=>h.createElement(\"div\",{key:a,className:\"doe-bubble\"},n.img!==void 0&&h.createElement(\"img\",{src:n.img}),h.createElement(\"div\",null,n.text))))},cq={getAccessibilityString:e=>HT(e.data.map(t=>t.text)),kind:Ie.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,n)=>t.data.reduce((a,o)=>e.measureText(o.text).width+a+20+(o.img!==void 0?18:0),0)+2*n.cellHorizontalPadding-4,draw:e=>fq(e,e.cell.data),provideEditor:()=>e=>{const{value:t}=e;return h.createElement(lq,{drilldowns:t.data})},onPaste:()=>{}},uq=4,Sy={};function dq(e,t,n,a){const o=Math.ceil(window.devicePixelRatio),s=5,c=n-s*2,u=4,f=n*o,m=a+s,v=a*3,y=(v+s*2)*o,x=`${e},${t},${o},${n}`;if(Sy[x]!==void 0)return{el:Sy[x],height:f,width:y,middleWidth:u*o,sideWidth:m*o,padding:s*o,dpr:o};const w=document.createElement(\"canvas\"),S=w.getContext(\"2d\");return S===null?null:(w.width=y,w.height=f,S.scale(o,o),Sy[x]=w,S.beginPath(),fi(S,s,s,v,c,a),S.shadowColor=\"rgba(24, 25, 34, 0.4)\",S.shadowBlur=1,S.fillStyle=e,S.fill(),S.shadowColor=\"rgba(24, 25, 34, 0.3)\",S.shadowOffsetY=1,S.shadowBlur=5,S.fillStyle=e,S.fill(),S.shadowOffsetY=0,S.shadowBlur=0,S.shadowBlur=0,S.beginPath(),fi(S,s+.5,s+.5,v,c,a),S.strokeStyle=t,S.lineWidth=1,S.stroke(),{el:w,height:f,width:y,sideWidth:m*o,middleWidth:a*o,padding:s*o,dpr:o})}function fq(e,t){const{rect:n,theme:a,ctx:o,imageLoader:s,col:c,row:u}=e,{x:f,width:m}=n,v=a.baseFontFull,y=ZT(o,v),x=Math.min(n.height,Math.max(16,Math.ceil(y*a.lineHeight)*2)),w=Math.floor(n.y+(n.height-x)/2),S=x-10,C=8,R=uq;let _=f+a.cellHorizontalPadding;const E=a.roundingRadius??6,T=dq(a.bgCell,a.drilldownBorder,x,E),A=[];for(const D of t){if(_>f+m)break;const O=xd(D.text,o,v).width;let H=0;D.img!==void 0&&s.loadOrGetImage(D.img,c,u)!==void 0&&(H=S-8+4);const $=O+H+C*2;A.push({x:_,width:$}),_+=$+R}if(T!==null){const{el:D,height:z,middleWidth:O,sideWidth:H,width:$,dpr:V,padding:I}=T,M=H/V,q=I/V;for(const B of A){const j=Math.floor(B.x),F=Math.floor(B.width),U=F-(M-q)*2;o.imageSmoothingEnabled=!1,o.drawImage(D,0,0,H,z,j-q,w,M,x),U>0&&o.drawImage(D,H,0,O,z,j+(M-q),w,U,x),o.drawImage(D,$-H,0,H,z,j+F-(M-q),w,M,x),o.imageSmoothingEnabled=!0}}o.beginPath();for(const[D,z]of A.entries()){const O=t[D];let H=z.x+C;if(O.img!==void 0){const $=s.loadOrGetImage(O.img,c,u);if($!==void 0){const V=S-8;let I=0,M=0,q=$.width,B=$.height;q>B?(I+=(q-B)/2,q=B):B>q&&(M+=(B-q)/2,B=q),o.beginPath(),fi(o,H,w+x/2-V/2,V,V,a.roundingRadius??3),o.save(),o.clip(),o.drawImage($,I,M,q,B,H,w+x/2-V/2,V,V),o.restore(),H+=V+4}}o.beginPath(),o.fillStyle=a.textBubble,o.fillText(O.text,H,w+x/2+ms(o,a))}}const hq={getAccessibilityString:e=>e.data.join(\", \"),kind:Ie.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:e=>mq(e,e.cell.displayData??e.cell.data,e.cell.rounding??e.theme.roundingRadius??4,e.cell.contentAlign),measure:(e,t)=>t.data.length*50,onDelete:e=>({...e,data:[]}),provideEditor:()=>e=>{const{value:t,onFinishedEditing:n,imageEditorOverride:a}=e,o=a??$P;return h.createElement(o,{urls:t.data,canWrite:t.readonly!==!1,onCancel:n,onChange:s=>{n({...t,data:[s]})}})},onPaste:(e,t)=>{e=e.trim();const a=e.split(\",\").map(o=>{try{return new URL(o),o}catch{return}}).filter(o=>o!==void 0);if(!(a.length===t.data.length&&a.every((o,s)=>o===t.data[s])))return{...t,data:a}}},Cy=4;function mq(e,t,n,a){const{rect:o,col:s,row:c,theme:u,ctx:f,imageLoader:m}=e,{x:v,y,height:x,width:w}=o,S=x-u.cellVerticalPadding*2,C=[];let R=0;for(let E=0;E<t.length;E++){const T=t[E];if(T.length===0)continue;const A=m.loadOrGetImage(T,s,c);if(A!==void 0){C[E]=A;const D=A.width*(S/A.height);R+=D+Cy}}if(R===0)return;R-=Cy;let _=v+u.cellHorizontalPadding;a===\"right\"?_=Math.floor(v+w-u.cellHorizontalPadding-R):a===\"center\"&&(_=Math.floor(v+w/2-R/2));for(const E of C){if(E===void 0)continue;const T=E.width*(S/E.height);n>0&&(f.beginPath(),fi(f,_,y+u.cellVerticalPadding,T,S,n),f.save(),f.clip()),f.drawImage(E,_,y+u.cellVerticalPadding,T,S),n>0&&f.restore(),_+=T+Cy}}function pq(e,t){let n=e*49632+t*325176;return n^=n<<13,n^=n>>17,n^=n<<5,n/4294967295*2}const gq={getAccessibilityString:()=>\"\",kind:Ie.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:e=>{const{cell:t,col:n,row:a,ctx:o,rect:s,theme:c}=e;if(t.skeletonWidth===void 0||t.skeletonWidth===0)return;let u=t.skeletonWidth;t.skeletonWidthVariability!==void 0&&t.skeletonWidthVariability>0&&(u+=Math.round(pq(n,a)*t.skeletonWidthVariability));const f=c.cellHorizontalPadding,m=t.skeletonHeight??Math.min(18,s.height-2*c.cellVerticalPadding);fi(o,s.x+f,s.y+(s.height-m)/2,u,m,c.roundingRadius??3),o.fillStyle=al(c.textDark,.1),o.fill()},onPaste:()=>{}},vq=()=>e=>e.targetWidth,rk=Dr(\"div\")({name:\"MarkdownOverlayEditorStyle\",class:\"gdg-m1pnx84e\",propsAsIs:!1,vars:{\"m1pnx84e-0\":[vq(),\"px\"]}}),yq=e=>{const{value:t,onChange:n,forceEditMode:a,createNode:o,targetRect:s,onFinish:c,validatedSelection:u}=e,f=t.data,m=t.readonly===!0,[v,y]=h.useState(f===\"\"||a),x=h.useCallback(()=>{y(S=>!S)},[]),w=f?\"gdg-ml-6\":\"\";return v?h.createElement(rk,{targetWidth:s.width-20},h.createElement(em,{autoFocus:!0,highlight:!1,validatedSelection:u,value:f,onKeyDown:S=>{S.key===\"Enter\"&&S.stopPropagation()},onChange:n}),h.createElement(\"div\",{className:`gdg-edit-icon gdg-checkmark-hover ${w}`,onClick:()=>c(t)},h.createElement(jP,null))):h.createElement(rk,{targetWidth:s.width},h.createElement(oL,{contents:f,createNode:o}),!m&&h.createElement(h.Fragment,null,h.createElement(\"div\",{className:\"spacer\"}),h.createElement(\"div\",{className:`gdg-edit-icon gdg-edit-hover ${w}`,onClick:x},h.createElement(Fb,null))),h.createElement(\"textarea\",{className:\"gdg-md-edit-textarea gdg-input\",autoFocus:!0}))},bq={getAccessibilityString:e=>e.data?.toString()??\"\",kind:Ie.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:wd,measure:(e,t,n)=>{const a=t.data.split(`\n`)[0];return e.measureText(a).width+2*n.cellHorizontalPadding},draw:e=>Zi(e,e.cell.data,e.cell.contentAlign),onDelete:e=>({...e,data:\"\"}),provideEditor:()=>e=>{const{onChange:t,value:n,target:a,onFinishedEditing:o,markdownDivCreateNode:s,forceEditMode:c,validatedSelection:u}=e;return h.createElement(yq,{onFinish:o,targetRect:a,value:n,validatedSelection:u,onChange:f=>t({...n,data:f.target.value}),forceEditMode:c,createNode:s})},onPaste:(e,t)=>e===t.data?void 0:{...t,data:e}},xq={getAccessibilityString:e=>e.row.toString(),kind:Ma.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:wq,measure:()=>44,draw:e=>Cq(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle,e.cell.checkboxStyle),onClick:e=>{const{bounds:t,cell:n,posX:a,posY:o}=e,{width:s,height:c}=t,u=n.drawHandle?7+(s-7)/2:s/2,f=c/2;if(Math.abs(a-u)<=10&&Math.abs(o-f)<=10)return{...n,checked:!n.checked}},onPaste:()=>{}};function wq(e,t){const{ctx:n,theme:a}=e,o=a.markerFontFull,s=t??{};return s?.font!==o&&(n.font=o,s.font=o),s.deprep=Sq,n.textAlign=\"center\",s}function Sq(e){const{ctx:t}=e;t.textAlign=\"start\"}function Cq(e,t,n,a,o,s){const{ctx:c,rect:u,hoverAmount:f,theme:m}=e,{x:v,y,width:x,height:w}=u,S=n?1:a===\"checkbox-visible\"?.6+.4*f:f;if(a!==\"number\"&&S>0){c.globalAlpha=S;const C=7*(n?f:1);if(Qb(c,m,n,o?v+C:v,y,o?x-C:x,w,!0,void 0,void 0,18,\"center\",s),o){c.globalAlpha=f,c.beginPath();for(const R of[3,6])for(const _ of[-5,-1,3])c.rect(v+R,y+w/2+_,2,2);c.fillStyle=m.textLight,c.fill(),c.beginPath()}c.globalAlpha=1}if(a===\"number\"||a===\"both\"&&!n){const C=t.toString(),R=m.markerFontFull,_=v+x/2;a===\"both\"&&f!==0&&(c.globalAlpha=1-f),c.fillStyle=m.textLight,c.font=R,c.fillText(C,_,y+w/2+ms(c,R)),f!==0&&(c.globalAlpha=1)}}const Rq={getAccessibilityString:()=>\"\",kind:Ma.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:e=>Eq(e,e.cell.hint,e.cell.icon),onPaste:()=>{}};function Eq(e,t,n){const{ctx:a,rect:o,hoverAmount:s,theme:c,spriteManager:u}=e,{x:f,y:m,width:v,height:y}=o;a.beginPath(),a.globalAlpha=s,a.rect(f+1,m+1,v,y-2),a.fillStyle=c.bgHeaderHovered,a.fill(),a.globalAlpha=1,a.beginPath();const x=t!==\"\";let w=0;if(n!==void 0){const C=y-8,R=f+8/2,_=m+8/2;u.drawSprite(n,\"normal\",a,R,_,C,c,x?1:s),w=C}else{w=24;const S=12,C=x?S:s*S,R=x?0:(1-s)*S*.5,_=c.cellHorizontalPadding+4;C>0&&(a.moveTo(f+_+R,m+y/2),a.lineTo(f+_+R+C,m+y/2),a.moveTo(f+_+R+C*.5,m+y/2-C*.5),a.lineTo(f+_+R+C*.5,m+y/2+C*.5),a.lineWidth=2,a.strokeStyle=c.bgIconHeader,a.lineCap=\"round\",a.stroke())}a.fillStyle=c.textMedium,a.fillText(t,w+f+c.cellHorizontalPadding+.5,m+y/2+ms(a,c)),a.beginPath()}const kq=h.lazy(async()=>await oM(()=>Promise.resolve().then(()=>QW),void 0)),_q={getAccessibilityString:e=>e.data?.toString()??\"\",kind:Ie.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:wd,draw:e=>Zi(e,e.cell.displayData,e.cell.contentAlign),measure:(e,t,n)=>e.measureText(t.displayData).width+n.cellHorizontalPadding*2,onDelete:e=>({...e,data:void 0}),provideEditor:()=>e=>{const{isHighlighted:t,onChange:n,value:a,validatedSelection:o}=e;return h.createElement(h.Suspense,{fallback:null},h.createElement(kq,{highlight:t,disabled:a.readonly===!0,value:a.data,fixedDecimals:a.fixedDecimals,allowNegative:a.allowNegative,thousandSeparator:a.thousandSeparator,decimalSeparator:a.decimalSeparator,validatedSelection:o,onChange:s=>n({...a,data:Number.isNaN(s.floatValue??0)?0:s.floatValue})}))},onPaste:(e,t,n)=>{const a=typeof n.rawValue==\"number\"?n.rawValue:Number.parseFloat(typeof n.rawValue==\"string\"?n.rawValue:e);if(!(Number.isNaN(a)||t.data===a))return{...t,data:a,displayData:n.formattedString??t.displayData}}},Tq={getAccessibilityString:()=>\"\",measure:()=>108,kind:Ie.Protected,needsHover:!1,needsHoverPosition:!1,draw:Mq,onPaste:()=>{}};function Mq(e){const{ctx:t,theme:n,rect:a}=e,{x:o,y:s,height:c}=a;t.beginPath();const u=2.5;let f=o+n.cellHorizontalPadding+u;const m=s+c/2,v=Math.cos(VC(30))*u,y=Math.sin(VC(30))*u;for(let x=0;x<12;x++)t.moveTo(f,m-u),t.lineTo(f,m+u),t.moveTo(f+v,m-y),t.lineTo(f-v,m+y),t.moveTo(f-v,m-y),t.lineTo(f+v,m+y),f+=8;t.lineWidth=1.1,t.lineCap=\"square\",t.strokeStyle=n.textLight,t.stroke()}const Aq={getAccessibilityString:e=>e.data?.toString()??\"\",kind:Ie.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(e,t)=>wd(e,t,e.theme.textLight),draw:e=>Zi(e,e.cell.data,e.cell.contentAlign),measure:(e,t,n)=>e.measureText(t.data).width+n.cellHorizontalPadding*2,provideEditor:()=>e=>{const{isHighlighted:t,onChange:n,value:a,validatedSelection:o}=e;return Dt.createElement(em,{highlight:t,autoFocus:a.readonly!==!0,disabled:a.readonly!==!1,value:a.data,validatedSelection:o,onChange:s=>n({...a,data:s.target.value})})},onPaste:()=>{}},Nq={getAccessibilityString:e=>e.data?.toString()??\"\",kind:Ie.Text,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!1,drawPrep:wd,useLabel:!0,draw:e=>{const{cell:t,hoverAmount:n,hyperWrapping:a,ctx:o,rect:s,theme:c,overrideCursor:u}=e,{displayData:f,contentAlign:m,hoverEffect:v,allowWrapping:y}=t;if(v===!0&&n>0){o.textBaseline=\"alphabetic\";const x=c.cellHorizontalPadding,w=c.cellVerticalPadding,S=xd(f,o,c.baseFontFull,\"alphabetic\"),C=s.height-w,R=Math.min(C,S.actualBoundingBoxAscent*2.5);o.beginPath(),fi(o,s.x+x/2,s.y+(s.height-R)/2+1,S.width+x*3,R-1,c.roundingRadius??4),o.globalAlpha=n,o.fillStyle=al(c.textDark,.1),o.fill(),o.globalAlpha=1,o.fillStyle=c.textDark,o.textBaseline=\"middle\",u?.(\"text\")}Zi(e,f,m,y,a)},measure:(e,t,n)=>{const a=t.displayData.split(`\n`,t.allowWrapping===!0?void 0:1);let o=0;for(const s of a)o=Math.max(o,e.measureText(s).width);return o+2*n.cellHorizontalPadding},onDelete:e=>({...e,data:\"\"}),provideEditor:e=>({disablePadding:e.allowWrapping===!0,editor:t=>{const{isHighlighted:n,onChange:a,value:o,validatedSelection:s}=t;return h.createElement(em,{style:e.allowWrapping===!0?{padding:\"3px 8.5px\"}:void 0,highlight:n,autoFocus:o.readonly!==!0,disabled:o.readonly===!0,altNewline:!0,value:o.data,validatedSelection:s,onChange:c=>a({...o,data:c.target.value})})}}),onPaste:(e,t,n)=>e===t.data?void 0:{...t,data:e,displayData:n.formattedString??t.displayData}},Oq=Dr(\"div\")({name:\"UriOverlayEditorStyle\",class:\"gdg-u1rrojo\",propsAsIs:!1}),Dq=e=>{const{uri:t,onChange:n,forceEditMode:a,readonly:o,validatedSelection:s,preview:c}=e,[u,f]=h.useState(!o&&(t===\"\"||a)),m=h.useCallback(()=>{f(!0)},[]);return u?h.createElement(em,{validatedSelection:s,highlight:!0,autoFocus:!0,value:t,onChange:n}):h.createElement(Oq,null,h.createElement(\"a\",{className:\"gdg-link-area\",href:t,target:\"_blank\",rel:\"noopener noreferrer\"},c),!o&&h.createElement(\"div\",{className:\"gdg-edit-icon\",onClick:m},h.createElement(Fb,null)),h.createElement(\"textarea\",{className:\"gdg-input\",autoFocus:!0}))};function ak(e,t,n,a){let o=n.cellHorizontalPadding;const s=t.height/2-e.actualBoundingBoxAscent/2,c=e.width,u=e.actualBoundingBoxAscent;return a===\"right\"?o=t.width-c-n.cellHorizontalPadding:a===\"center\"&&(o=t.width/2-c/2),{x:o,y:s,width:c,height:u}}const jq={getAccessibilityString:e=>e.data?.toString()??\"\",kind:Ie.Uri,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!0,useLabel:!0,drawPrep:wd,draw:e=>{const{cell:t,theme:n,overrideCursor:a,hoverX:o,hoverY:s,rect:c,ctx:u}=e,f=t.displayData??t.data,m=t.hoverEffect===!0;if(a!==void 0&&m&&o!==void 0&&s!==void 0){const v=xd(f,u,n.baseFontFull),y=ak(v,c,n,t.contentAlign),{x,y:w,width:S,height:C}=y;if(o>=x-4&&o<=x-4+S+8&&s>=w-4&&s<=w-4+C+8){const R=ms(u,n.baseFontFull);a(\"pointer\");const _=5,E=w-R;u.beginPath(),u.moveTo(c.x+x,Math.floor(c.y+E+C+_)+.5),u.lineTo(c.x+x+S,Math.floor(c.y+E+C+_)+.5),u.strokeStyle=n.linkColor,u.stroke(),u.save(),u.fillStyle=e.cellFillColor,Zi({...e,rect:{...c,x:c.x-1}},f,t.contentAlign),Zi({...e,rect:{...c,x:c.x-2}},f,t.contentAlign),Zi({...e,rect:{...c,x:c.x+1}},f,t.contentAlign),Zi({...e,rect:{...c,x:c.x+2}},f,t.contentAlign),u.restore()}}u.fillStyle=m?n.linkColor:n.textDark,Zi(e,f,t.contentAlign)},onClick:e=>{const{cell:t,bounds:n,posX:a,posY:o,theme:s}=e,c=t.displayData??t.data;if(t.hoverEffect!==!0||t.onClickUri===void 0)return;const u=RL(c,s.baseFontFull);if(u===void 0)return;const f=ak(u,n,s,t.contentAlign);nm({x:f.x-4,y:f.y-4,width:f.width+8,height:f.height+8},a,o)&&t.onClickUri(e)},measure:(e,t,n)=>e.measureText(t.displayData??t.data).width+n.cellHorizontalPadding*2,onDelete:e=>({...e,data:\"\"}),provideEditor:e=>t=>{const{onChange:n,value:a,forceEditMode:o,validatedSelection:s}=t;return h.createElement(Dq,{forceEditMode:a.readonly!==!0&&(o||e.hoverEffect===!0&&e.onClickUri!==void 0),uri:a.data,preview:a.displayData??a.data,validatedSelection:s,readonly:a.readonly===!0,onChange:c=>n({...a,data:c.target.value})})},onPaste:(e,t,n)=>e===t.data?void 0:{...t,data:e,displayData:n.formattedString??t.displayData}},zq=[xq,Rq,eq,aq,cq,hq,gq,bq,_q,Tq,Aq,Nq,jq];var Ry,ik;function Pq(){if(ik)return Ry;ik=1;var e=DT(),t=sl(),n=\"Expected a function\";function a(o,s,c){var u=!0,f=!0;if(typeof o!=\"function\")throw new TypeError(n);return t(c)&&(u=\"leading\"in c?!!c.leading:u,f=\"trailing\"in c?!!c.trailing:f),e(o,s,{leading:u,maxWait:s,trailing:f})}return Ry=a,Ry}var Lq=Pq();const Iq=Ya(Lq),Ey=[];class Hq extends eM{imageLoaded=()=>{};loadedLocations=[];cache={};setCallback(t){this.imageLoaded=t}sendLoaded=Iq(()=>{this.imageLoaded(new Yu(this.loadedLocations)),this.loadedLocations=[]},20);clearOutOfWindow=()=>{const t=Object.keys(this.cache);for(const n of t){const a=this.cache[n];let o=!1;for(let s=0;s<a.cells.length;s++){const c=a.cells[s];if(this.isInWindow(c)){o=!0;break}}o?a.cells=a.cells.filter(this.isInWindow):(a.cancel(),delete this.cache[n])}};loadImage(t,n,a,o){let s=!1;const c=Ey.pop()??new Image;let u=!1;const f={img:void 0,cells:[Ua(n,a)],url:t,cancel:()=>{u||(u=!0,Ey.length<12?Ey.unshift(c):s||(c.src=\"\"))}},m=new Promise(v=>c.addEventListener(\"load\",()=>v(null)));requestAnimationFrame(async()=>{try{c.src=t,await m,await c.decode();const v=this.cache[o];if(v!==void 0&&!u){v.img=c;for(const y of v.cells)this.loadedLocations.push(Yb(y));s=!0,this.sendLoaded()}}catch{f.cancel()}}),this.cache[o]=f}loadOrGetImage(t,n,a){const o=t,s=this.cache[o];if(s!==void 0){const c=Ua(n,a);return s.cells.includes(c)||s.cells.push(c),s.img}else this.loadImage(t,n,a,o)}}const qq=(e,t)=>{const n=h.useMemo(()=>({...LI,...e.headerIcons}),[e.headerIcons]),a=h.useMemo(()=>e.imageWindowLoader??new Hq,[e.imageWindowLoader]);return h.createElement(JH,{...e,renderers:zq,headerIcons:n,ref:t,imageWindowLoader:a})},$q=h.forwardRef(qq);function Fq(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,Bq(o,...t)]}function Bq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Uq(e){const t=Vq(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(Gq);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Vq(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=Xq(o),u=Yq(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wq=Symbol(\"radix.slottable\");function Gq(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===Wq}function Yq(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function Xq(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kq=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],Qq=Kq.reduce((e,t)=>{const n=Uq(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Zq(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,Jq(o,...t)]}function Jq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function ok(e){const t=e$(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(n$);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function e$(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=a$(o),u=r$(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t$=Symbol(\"radix.slottable\");function n$(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===t$}function r$(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function a$(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function DM(e){const t=e+\"CollectionProvider\",[n,a]=Zq(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=C=>{const{scope:R,children:_}=C,E=Dt.useRef(null),T=Dt.useRef(new Map).current;return g.jsx(o,{scope:R,itemMap:T,collectionRef:E,children:_})};c.displayName=t;const u=e+\"CollectionSlot\",f=ok(u),m=Dt.forwardRef((C,R)=>{const{scope:_,children:E}=C,T=s(u,_),A=vn(R,T.collectionRef);return g.jsx(f,{ref:A,children:E})});m.displayName=u;const v=e+\"CollectionItemSlot\",y=\"data-radix-collection-item\",x=ok(v),w=Dt.forwardRef((C,R)=>{const{scope:_,children:E,...T}=C,A=Dt.useRef(null),D=vn(R,A),z=s(v,_);return Dt.useEffect(()=>(z.itemMap.set(A,{ref:A,...T}),()=>void z.itemMap.delete(A))),g.jsx(x,{[y]:\"\",ref:D,children:E})});w.displayName=v;function S(C){const R=s(e+\"CollectionConsumer\",C);return Dt.useCallback(()=>{const E=R.collectionRef.current;if(!E)return[];const T=Array.from(E.querySelectorAll(`[${y}]`));return Array.from(R.itemMap.values()).sort((z,O)=>T.indexOf(z.ref.current)-T.indexOf(O.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:c,Slot:m,ItemSlot:w},S,a]}function i$(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,o$(o,...t)]}function o$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var s$=h.createContext(void 0);function jM(e){const t=h.useContext(s$);return e||t||\"ltr\"}function zM(e){const t=l$(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(u$);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function l$(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=f$(o),u=d$(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c$=Symbol(\"radix.slottable\");function u$(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===c$}function d$(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function f$(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h$=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],Sd=h$.reduce((e,t)=>{const n=zM(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function m$(e,t){e&&hd.flushSync(()=>e.dispatchEvent(t))}function p$(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,g$(o,...t)]}function g$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function v$(e){const t=y$(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(x$);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function y$(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=S$(o),u=w$(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var b$=Symbol(\"radix.slottable\");function x$(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===b$}function w$(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function S$(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C$=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],PM=C$.reduce((e,t)=>{const n=v$(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),ky=\"rovingFocusGroup.onEntryFocus\",R$={bubbles:!1,cancelable:!0},Cd=\"RovingFocusGroup\",[ob,LM,E$]=DM(Cd),[k$,IM]=p$(Cd,[E$]),[_$,T$]=k$(Cd),HM=h.forwardRef((e,t)=>g.jsx(ob.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(ob.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(M$,{...e,ref:t})})}));HM.displayName=Cd;var M$=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...y}=e,x=h.useRef(null),w=vn(t,x),S=jM(s),[C,R]=Nc({prop:c,defaultProp:u??null,onChange:f,caller:Cd}),[_,E]=h.useState(!1),T=to(m),A=LM(n),D=h.useRef(!1),[z,O]=h.useState(0);return h.useEffect(()=>{const H=x.current;if(H)return H.addEventListener(ky,T),()=>H.removeEventListener(ky,T)},[T]),g.jsx(_$,{scope:n,orientation:a,dir:S,loop:o,currentTabStopId:C,onItemFocus:h.useCallback(H=>R(H),[R]),onItemShiftTab:h.useCallback(()=>E(!0),[]),onFocusableItemAdd:h.useCallback(()=>O(H=>H+1),[]),onFocusableItemRemove:h.useCallback(()=>O(H=>H-1),[]),children:g.jsx(PM.div,{tabIndex:_||z===0?-1:0,\"data-orientation\":a,...y,ref:w,style:{outline:\"none\",...e.style},onMouseDown:it(e.onMouseDown,()=>{D.current=!0}),onFocus:it(e.onFocus,H=>{const $=!D.current;if(H.target===H.currentTarget&&$&&!_){const V=new CustomEvent(ky,R$);if(H.currentTarget.dispatchEvent(V),!V.defaultPrevented){const I=A().filter(F=>F.focusable),M=I.find(F=>F.active),q=I.find(F=>F.id===C),j=[M,q,...I].filter(Boolean).map(F=>F.ref.current);FM(j,v)}}D.current=!1}),onBlur:it(e.onBlur,()=>E(!1))})})}),qM=\"RovingFocusGroupItem\",$M=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:s,children:c,...u}=e,f=rs(),m=s||f,v=T$(qM,n),y=v.currentTabStopId===m,x=LM(n),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:C}=v;return h.useEffect(()=>{if(a)return w(),()=>S()},[a,w,S]),g.jsx(ob.ItemSlot,{scope:n,id:m,focusable:a,active:o,children:g.jsx(PM.span,{tabIndex:y?0:-1,\"data-orientation\":v.orientation,...u,ref:t,onMouseDown:it(e.onMouseDown,R=>{a?v.onItemFocus(m):R.preventDefault()}),onFocus:it(e.onFocus,()=>v.onItemFocus(m)),onKeyDown:it(e.onKeyDown,R=>{if(R.key===\"Tab\"&&R.shiftKey){v.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const _=O$(R,v.orientation,v.dir);if(_!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let T=x().filter(A=>A.focusable).map(A=>A.ref.current);if(_===\"last\")T.reverse();else if(_===\"prev\"||_===\"next\"){_===\"prev\"&&T.reverse();const A=T.indexOf(R.currentTarget);T=v.loop?D$(T,A+1):T.slice(A+1)}setTimeout(()=>FM(T))}}),children:typeof c==\"function\"?c({isCurrentTabStop:y,hasTabStop:C!=null}):c})})});$M.displayName=qM;var A$={ArrowLeft:\"prev\",ArrowUp:\"prev\",ArrowRight:\"next\",ArrowDown:\"next\",PageUp:\"first\",Home:\"first\",PageDown:\"last\",End:\"last\"};function N$(e,t){return t!==\"rtl\"?e:e===\"ArrowLeft\"?\"ArrowRight\":e===\"ArrowRight\"?\"ArrowLeft\":e}function O$(e,t,n){const a=N$(e.key,n);if(!(t===\"vertical\"&&[\"ArrowLeft\",\"ArrowRight\"].includes(a))&&!(t===\"horizontal\"&&[\"ArrowUp\",\"ArrowDown\"].includes(a)))return A$[a]}function FM(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function D$(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var j$=HM,z$=$M,sb=[\"Enter\",\" \"],P$=[\"ArrowDown\",\"PageUp\",\"Home\"],BM=[\"ArrowUp\",\"PageDown\",\"End\"],L$=[...P$,...BM],I$={ltr:[...sb,\"ArrowRight\"],rtl:[...sb,\"ArrowLeft\"]},H$={ltr:[\"ArrowLeft\"],rtl:[\"ArrowRight\"]},Rd=\"Menu\",[ad,q$,$$]=DM(Rd),[dl,UM]=i$(Rd,[$$,Ac,IM]),rm=Ac(),VM=IM(),[F$,fl]=dl(Rd),[B$,Ed]=dl(Rd),WM=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:s,modal:c=!0}=e,u=rm(t),[f,m]=h.useState(null),v=h.useRef(!1),y=to(s),x=jM(o);return h.useEffect(()=>{const w=()=>{v.current=!0,document.addEventListener(\"pointerdown\",S,{capture:!0,once:!0}),document.addEventListener(\"pointermove\",S,{capture:!0,once:!0})},S=()=>v.current=!1;return document.addEventListener(\"keydown\",w,{capture:!0}),()=>{document.removeEventListener(\"keydown\",w,{capture:!0}),document.removeEventListener(\"pointerdown\",S,{capture:!0}),document.removeEventListener(\"pointermove\",S,{capture:!0})}},[]),g.jsx(Eb,{...u,children:g.jsx(F$,{scope:t,open:n,onOpenChange:y,content:f,onContentChange:m,children:g.jsx(B$,{scope:t,onClose:h.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:v,dir:x,modal:c,children:a})})})};WM.displayName=Rd;var U$=\"MenuAnchor\",e1=h.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=rm(n);return g.jsx(Hh,{...o,...a,ref:t})});e1.displayName=U$;var t1=\"MenuPortal\",[V$,GM]=dl(t1,{forceMount:void 0}),YM=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,s=fl(t1,t);return g.jsx(V$,{scope:t,forceMount:n,children:g.jsx(Xa,{present:n||s.open,children:g.jsx(qh,{asChild:!0,container:o,children:a})})})};YM.displayName=t1;var Aa=\"MenuContent\",[W$,n1]=dl(Aa),XM=h.forwardRef((e,t)=>{const n=GM(Aa,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=fl(Aa,e.__scopeMenu),c=Ed(Aa,e.__scopeMenu);return g.jsx(ad.Provider,{scope:e.__scopeMenu,children:g.jsx(Xa,{present:a||s.open,children:g.jsx(ad.Slot,{scope:e.__scopeMenu,children:c.modal?g.jsx(G$,{...o,ref:t}):g.jsx(Y$,{...o,ref:t})})})})}),G$=h.forwardRef((e,t)=>{const n=fl(Aa,e.__scopeMenu),a=h.useRef(null),o=vn(t,a);return h.useEffect(()=>{const s=a.current;if(s)return Ab(s)},[]),g.jsx(r1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:it(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Y$=h.forwardRef((e,t)=>{const n=fl(Aa,e.__scopeMenu);return g.jsx(r1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),X$=zM(\"MenuContent.ScrollLock\"),r1=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:x,onDismiss:w,disableOutsideScroll:S,...C}=e,R=fl(Aa,n),_=Ed(Aa,n),E=rm(n),T=VM(n),A=q$(n),[D,z]=h.useState(null),O=h.useRef(null),H=vn(t,O,R.onContentChange),$=h.useRef(0),V=h.useRef(\"\"),I=h.useRef(0),M=h.useRef(null),q=h.useRef(\"right\"),B=h.useRef(0),j=S?Wh:h.Fragment,F=S?{as:X$,allowPinchZoom:!0}:void 0,U=ee=>{const oe=V.current+ee,P=A().filter(ne=>!ne.disabled),Y=document.activeElement,G=P.find(ne=>ne.ref.current===Y)?.textValue,K=P.map(ne=>ne.textValue),te=sF(K,oe,G),fe=P.find(ne=>ne.textValue===te)?.ref.current;(function ne(he){V.current=he,window.clearTimeout($.current),he!==\"\"&&($.current=window.setTimeout(()=>ne(\"\"),1e3))})(oe),fe&&setTimeout(()=>fe.focus())};h.useEffect(()=>()=>window.clearTimeout($.current),[]),Mb();const W=h.useCallback(ee=>q.current===M.current?.side&&cF(ee,M.current?.area),[]);return g.jsx(W$,{scope:n,searchRef:V,onItemEnter:h.useCallback(ee=>{W(ee)&&ee.preventDefault()},[W]),onItemLeave:h.useCallback(ee=>{W(ee)||(O.current?.focus(),z(null))},[W]),onTriggerLeave:h.useCallback(ee=>{W(ee)&&ee.preventDefault()},[W]),pointerGraceTimerRef:I,onPointerGraceIntentChange:h.useCallback(ee=>{M.current=ee},[]),children:g.jsx(j,{...F,children:g.jsx(Uh,{asChild:!0,trapped:o,onMountAutoFocus:it(s,ee=>{ee.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:g.jsx(md,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:x,onDismiss:w,children:g.jsx(j$,{asChild:!0,...T,dir:_.dir,orientation:\"vertical\",loop:a,currentTabStopId:D,onCurrentTabStopIdChange:z,onEntryFocus:it(f,ee=>{_.isUsingKeyboardRef.current||ee.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(kb,{role:\"menu\",\"aria-orientation\":\"vertical\",\"data-state\":dA(R.open),\"data-radix-menu-content\":\"\",dir:_.dir,...E,...C,ref:H,style:{outline:\"none\",...C.style},onKeyDown:it(C.onKeyDown,ee=>{const P=ee.target.closest(\"[data-radix-menu-content]\")===ee.currentTarget,Y=ee.ctrlKey||ee.altKey||ee.metaKey,G=ee.key.length===1;P&&(ee.key===\"Tab\"&&ee.preventDefault(),!Y&&G&&U(ee.key));const K=O.current;if(ee.target!==K||!L$.includes(ee.key))return;ee.preventDefault();const fe=A().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);BM.includes(ee.key)&&fe.reverse(),iF(fe)}),onBlur:it(e.onBlur,ee=>{ee.currentTarget.contains(ee.target)||(window.clearTimeout($.current),V.current=\"\")}),onPointerMove:it(e.onPointerMove,id(ee=>{const oe=ee.target,P=B.current!==ee.clientX;if(ee.currentTarget.contains(oe)&&P){const Y=ee.clientX>B.current?\"right\":\"left\";q.current=Y,B.current=ee.clientX}}))})})})})})})});XM.displayName=Aa;var K$=\"MenuGroup\",a1=h.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return g.jsx(Sd.div,{role:\"group\",...a,ref:t})});a1.displayName=K$;var Q$=\"MenuLabel\",KM=h.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return g.jsx(Sd.div,{...a,ref:t})});KM.displayName=Q$;var Ch=\"MenuItem\",sk=\"menu.itemSelect\",am=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...o}=e,s=h.useRef(null),c=Ed(Ch,e.__scopeMenu),u=n1(Ch,e.__scopeMenu),f=vn(t,s),m=h.useRef(!1),v=()=>{const y=s.current;if(!n&&y){const x=new CustomEvent(sk,{bubbles:!0,cancelable:!0});y.addEventListener(sk,w=>a?.(w),{once:!0}),m$(y,x),x.defaultPrevented?m.current=!1:c.onClose()}};return g.jsx(QM,{...o,ref:f,disabled:n,onClick:it(e.onClick,v),onPointerDown:y=>{e.onPointerDown?.(y),m.current=!0},onPointerUp:it(e.onPointerUp,y=>{m.current||y.currentTarget?.click()}),onKeyDown:it(e.onKeyDown,y=>{const x=u.searchRef.current!==\"\";n||x&&y.key===\" \"||sb.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});am.displayName=Ch;var QM=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:o,...s}=e,c=n1(Ch,n),u=VM(n),f=h.useRef(null),m=vn(t,f),[v,y]=h.useState(!1),[x,w]=h.useState(\"\");return h.useEffect(()=>{const S=f.current;S&&w((S.textContent??\"\").trim())},[s.children]),g.jsx(ad.ItemSlot,{scope:n,disabled:a,textValue:o??x,children:g.jsx(z$,{asChild:!0,...u,focusable:!a,children:g.jsx(Sd.div,{role:\"menuitem\",\"data-highlighted\":v?\"\":void 0,\"aria-disabled\":a||void 0,\"data-disabled\":a?\"\":void 0,...s,ref:m,onPointerMove:it(e.onPointerMove,id(S=>{a?c.onItemLeave(S):(c.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:it(e.onPointerLeave,id(S=>c.onItemLeave(S))),onFocus:it(e.onFocus,()=>y(!0)),onBlur:it(e.onBlur,()=>y(!1))})})})}),Z$=\"MenuCheckboxItem\",ZM=h.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...o}=e;return g.jsx(rA,{scope:e.__scopeMenu,checked:n,children:g.jsx(am,{role:\"menuitemcheckbox\",\"aria-checked\":Rh(n)?\"mixed\":n,...o,ref:t,\"data-state\":o1(n),onSelect:it(o.onSelect,()=>a?.(Rh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ZM.displayName=Z$;var JM=\"MenuRadioGroup\",[J$,eF]=dl(JM,{value:void 0,onValueChange:()=>{}}),eA=h.forwardRef((e,t)=>{const{value:n,onValueChange:a,...o}=e,s=to(a);return g.jsx(J$,{scope:e.__scopeMenu,value:n,onValueChange:s,children:g.jsx(a1,{...o,ref:t})})});eA.displayName=JM;var tA=\"MenuRadioItem\",nA=h.forwardRef((e,t)=>{const{value:n,...a}=e,o=eF(tA,e.__scopeMenu),s=n===o.value;return g.jsx(rA,{scope:e.__scopeMenu,checked:s,children:g.jsx(am,{role:\"menuitemradio\",\"aria-checked\":s,...a,ref:t,\"data-state\":o1(s),onSelect:it(a.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});nA.displayName=tA;var i1=\"MenuItemIndicator\",[rA,tF]=dl(i1,{checked:!1}),aA=h.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...o}=e,s=tF(i1,n);return g.jsx(Xa,{present:a||Rh(s.checked)||s.checked===!0,children:g.jsx(Sd.span,{...o,ref:t,\"data-state\":o1(s.checked)})})});aA.displayName=i1;var nF=\"MenuSeparator\",iA=h.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return g.jsx(Sd.div,{role:\"separator\",\"aria-orientation\":\"horizontal\",...a,ref:t})});iA.displayName=nF;var rF=\"MenuArrow\",oA=h.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=rm(n);return g.jsx(_b,{...o,...a,ref:t})});oA.displayName=rF;var aF=\"MenuSub\",[tG,sA]=dl(aF),Iu=\"MenuSubTrigger\",lA=h.forwardRef((e,t)=>{const n=fl(Iu,e.__scopeMenu),a=Ed(Iu,e.__scopeMenu),o=sA(Iu,e.__scopeMenu),s=n1(Iu,e.__scopeMenu),c=h.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=s,m={__scopeMenu:e.__scopeMenu},v=h.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return h.useEffect(()=>v,[v]),h.useEffect(()=>{const y=u.current;return()=>{window.clearTimeout(y),f(null)}},[u,f]),g.jsx(e1,{asChild:!0,...m,children:g.jsx(QM,{id:o.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":n.open,\"aria-controls\":o.contentId,\"data-state\":dA(n.open),...e,ref:er(t,o.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:it(e.onPointerMove,id(y=>{s.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:it(e.onPointerLeave,id(y=>{v();const x=n.content?.getBoundingClientRect();if(x){const w=n.content?.dataset.side,S=w===\"right\",C=S?-5:5,R=x[S?\"left\":\"right\"],_=x[S?\"right\":\"left\"];s.onPointerGraceIntentChange({area:[{x:y.clientX+C,y:y.clientY},{x:R,y:x.top},{x:_,y:x.top},{x:_,y:x.bottom},{x:R,y:x.bottom}],side:w}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(y),y.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:it(e.onKeyDown,y=>{const x=s.searchRef.current!==\"\";e.disabled||x&&y.key===\" \"||I$[a.dir].includes(y.key)&&(n.onOpenChange(!0),n.content?.focus(),y.preventDefault())})})})});lA.displayName=Iu;var cA=\"MenuSubContent\",uA=h.forwardRef((e,t)=>{const n=GM(Aa,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=fl(Aa,e.__scopeMenu),c=Ed(Aa,e.__scopeMenu),u=sA(cA,e.__scopeMenu),f=h.useRef(null),m=vn(t,f);return g.jsx(ad.Provider,{scope:e.__scopeMenu,children:g.jsx(Xa,{present:a||s.open,children:g.jsx(ad.Slot,{scope:e.__scopeMenu,children:g.jsx(r1,{id:u.contentId,\"aria-labelledby\":u.triggerId,...o,ref:m,align:\"start\",side:c.dir===\"rtl\"?\"left\":\"right\",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{c.isUsingKeyboardRef.current&&f.current?.focus(),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:it(e.onFocusOutside,v=>{v.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:it(e.onEscapeKeyDown,v=>{c.onClose(),v.preventDefault()}),onKeyDown:it(e.onKeyDown,v=>{const y=v.currentTarget.contains(v.target),x=H$[c.dir].includes(v.key);y&&x&&(s.onOpenChange(!1),u.trigger?.focus(),v.preventDefault())})})})})})});uA.displayName=cA;function dA(e){return e?\"open\":\"closed\"}function Rh(e){return e===\"indeterminate\"}function o1(e){return Rh(e)?\"indeterminate\":e?\"checked\":\"unchecked\"}function iF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function oF(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function sF(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=oF(e,Math.max(s,0));o.length===1&&(c=c.filter(m=>m!==n));const f=c.find(m=>m.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function lF(e,t){const{x:n,y:a}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const u=t[s],f=t[c],m=u.x,v=u.y,y=f.x,x=f.y;v>a!=x>a&&n<(y-m)*(a-v)/(x-v)+m&&(o=!o)}return o}function cF(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lF(n,t)}function id(e){return t=>t.pointerType===\"mouse\"?e(t):void 0}var uF=WM,dF=e1,fF=YM,hF=XM,mF=a1,pF=KM,gF=am,vF=ZM,yF=eA,bF=nA,xF=aA,wF=iA,SF=oA,CF=lA,RF=uA,im=\"DropdownMenu\",[EF,nG]=Fq(im,[UM]),jr=UM(),[kF,fA]=EF(im),hA=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:o,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,f=jr(t),m=h.useRef(null),[v,y]=Nc({prop:o,defaultProp:s??!1,onChange:c,caller:im});return g.jsx(kF,{scope:t,triggerId:rs(),triggerRef:m,contentId:rs(),open:v,onOpenChange:y,onOpenToggle:h.useCallback(()=>y(x=>!x),[y]),modal:u,children:g.jsx(uF,{...f,open:v,onOpenChange:y,dir:a,modal:u,children:n})})};hA.displayName=im;var mA=\"DropdownMenuTrigger\",pA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,s=fA(mA,n),c=jr(n);return g.jsx(dF,{asChild:!0,...c,children:g.jsx(Qq.button,{type:\"button\",id:s.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":s.open,\"aria-controls\":s.open?s.contentId:void 0,\"data-state\":s.open?\"open\":\"closed\",\"data-disabled\":a?\"\":void 0,disabled:a,...o,ref:er(t,s.triggerRef),onPointerDown:it(e.onPointerDown,u=>{!a&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:it(e.onKeyDown,u=>{a||([\"Enter\",\" \"].includes(u.key)&&s.onOpenToggle(),u.key===\"ArrowDown\"&&s.onOpenChange(!0),[\"Enter\",\" \",\"ArrowDown\"].includes(u.key)&&u.preventDefault())})})})});pA.displayName=mA;var _F=\"DropdownMenuPortal\",gA=e=>{const{__scopeDropdownMenu:t,...n}=e,a=jr(t);return g.jsx(fF,{...a,...n})};gA.displayName=_F;var vA=\"DropdownMenuContent\",yA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=fA(vA,n),s=jr(n),c=h.useRef(!1);return g.jsx(hF,{id:o.contentId,\"aria-labelledby\":o.triggerId,...s,...a,ref:t,onCloseAutoFocus:it(e.onCloseAutoFocus,u=>{c.current||o.triggerRef.current?.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:it(e.onInteractOutside,u=>{const f=u.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,v=f.button===2||m;(!o.modal||v)&&(c.current=!0)}),style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});yA.displayName=vA;var TF=\"DropdownMenuGroup\",MF=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(mF,{...o,...a,ref:t})});MF.displayName=TF;var AF=\"DropdownMenuLabel\",bA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(pF,{...o,...a,ref:t})});bA.displayName=AF;var NF=\"DropdownMenuItem\",xA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(gF,{...o,...a,ref:t})});xA.displayName=NF;var OF=\"DropdownMenuCheckboxItem\",wA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(vF,{...o,...a,ref:t})});wA.displayName=OF;var DF=\"DropdownMenuRadioGroup\",jF=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(yF,{...o,...a,ref:t})});jF.displayName=DF;var zF=\"DropdownMenuRadioItem\",SA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(bF,{...o,...a,ref:t})});SA.displayName=zF;var PF=\"DropdownMenuItemIndicator\",CA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(xF,{...o,...a,ref:t})});CA.displayName=PF;var LF=\"DropdownMenuSeparator\",RA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(wF,{...o,...a,ref:t})});RA.displayName=LF;var IF=\"DropdownMenuArrow\",HF=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(SF,{...o,...a,ref:t})});HF.displayName=IF;var qF=\"DropdownMenuSubTrigger\",EA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(CF,{...o,...a,ref:t})});EA.displayName=qF;var $F=\"DropdownMenuSubContent\",kA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=jr(n);return g.jsx(RF,{...o,...a,ref:t,style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});kA.displayName=$F;var FF=hA,BF=pA,UF=gA,_A=yA,TA=bA,MA=xA,AA=wA,NA=SA,OA=CA,DA=RA,jA=EA,zA=kA;const Hu=FF,qu=BF,VF=h.forwardRef(({className:e,inset:t,children:n,...a},o)=>g.jsxs(jA,{ref:o,className:Fe(\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-stone-100 dark:focus:bg-[#2a2a2b] data-[state=open]:bg-stone-100 dark:data-[state=open]:bg-[#2a2a2b]\",t&&\"pl-8\",e),...a,children:[n,g.jsx(dd,{className:\"ml-auto h-4 w-4\"})]}));VF.displayName=jA.displayName;const WF=h.forwardRef(({className:e,...t},n)=>g.jsx(zA,{ref:n,className:Fe(\"z-50 min-w-[8rem] overflow-hidden rounded-md border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] p-1 text-stone-950 dark:text-[#cccccc] shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",e),...t}));WF.displayName=zA.displayName;const dc=h.forwardRef(({className:e,sideOffset:t=4,...n},a)=>g.jsx(UF,{children:g.jsx(_A,{ref:a,sideOffset:t,className:Fe(\"z-50 min-w-[8rem] overflow-hidden rounded-md border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] p-1 text-stone-950 dark:text-[#cccccc] shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",e),...n})}));dc.displayName=_A.displayName;const Ji=h.forwardRef(({className:e,inset:t,...n},a)=>g.jsx(MA,{ref:a,className:Fe(\"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-stone-100 dark:focus:bg-[#2a2a2b] focus:text-stone-900 dark:focus:text-[#cccccc] data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",t&&\"pl-8\",e),...n}));Ji.displayName=MA.displayName;const PA=h.forwardRef(({className:e,children:t,checked:n,...a},o)=>g.jsxs(AA,{ref:o,className:Fe(\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-stone-100 dark:focus:bg-[#2a2a2b] focus:text-stone-900 dark:focus:text-[#cccccc] data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",e),checked:n,...a,children:[g.jsx(\"span\",{className:\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\",children:g.jsx(OA,{children:g.jsx(e_,{className:\"h-4 w-4\"})})}),t]}));PA.displayName=AA.displayName;const GF=h.forwardRef(({className:e,children:t,...n},a)=>g.jsxs(NA,{ref:a,className:Fe(\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-stone-100 dark:focus:bg-[#2a2a2b] focus:text-stone-900 dark:focus:text-[#cccccc] data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",e),...n,children:[g.jsx(\"span\",{className:\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\",children:g.jsx(OA,{children:g.jsx(ID,{className:\"h-2 w-2 fill-current\"})})}),t]}));GF.displayName=NA.displayName;const sh=h.forwardRef(({className:e,inset:t,...n},a)=>g.jsx(TA,{ref:a,className:Fe(\"px-2 py-1.5 text-sm font-semibold\",t&&\"pl-8\",e),...n}));sh.displayName=TA.displayName;const Xi=h.forwardRef(({className:e,...t},n)=>g.jsx(DA,{ref:n,className:Fe(\"-mx-1 my-1 h-px bg-stone-100 dark:bg-[#3e3e42]\",e),...t}));Xi.displayName=DA.displayName;const Eh=h.forwardRef(({className:e,type:t,...n},a)=>g.jsx(\"input\",{type:t,className:Fe(\"flex h-9 w-full rounded-md border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#1e1e1e] px-3 py-1 text-sm text-stone-900 dark:text-[#cccccc] shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-stone-500 dark:placeholder:text-[#6a6a6a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 dark:focus-visible:ring-[#569cd6] focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50\",e),ref:a,...n}));Eh.displayName=\"Input\";var YF=Symbol.for(\"react.lazy\"),kh=Oh[\" use \".trim().toString()];function XF(e){return typeof e==\"object\"&&e!==null&&\"then\"in e}function LA(e){return e!=null&&typeof e==\"object\"&&\"$$typeof\"in e&&e.$$typeof===YF&&\"_payload\"in e&&XF(e._payload)}function KF(e){const t=QF(e),n=h.forwardRef((a,o)=>{let{children:s,...c}=a;LA(s)&&typeof kh==\"function\"&&(s=kh(s._payload));const u=h.Children.toArray(s),f=u.find(JF);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function QF(e){const t=h.forwardRef((n,a)=>{let{children:o,...s}=n;if(LA(o)&&typeof kh==\"function\"&&(o=kh(o._payload)),h.isValidElement(o)){const c=tB(o),u=eB(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ZF=Symbol(\"radix.slottable\");function JF(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===ZF}function eB(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function tB(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nB=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],rB=nB.reduce((e,t)=>{const n=KF(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),aB=\"Label\",IA=h.forwardRef((e,t)=>g.jsx(rB.label,{...e,ref:t,onMouseDown:n=>{n.target.closest(\"button, input, select, textarea\")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));IA.displayName=aB;var HA=IA;const lk=e=>typeof e==\"boolean\"?`${e}`:e===0?\"0\":e,ck=o_,qA=(e,t)=>n=>{var a;if(t?.variants==null)return ck(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,c=Object.keys(o).map(m=>{const v=n?.[m],y=s?.[m];if(v===null)return null;const x=lk(v)||lk(y);return o[m][x]}),u=n&&Object.entries(n).reduce((m,v)=>{let[y,x]=v;return x===void 0||(m[y]=x),m},{}),f=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((m,v)=>{let{class:y,className:x,...w}=v;return Object.entries(w).every(S=>{let[C,R]=S;return Array.isArray(R)?R.includes({...s,...u}[C]):{...s,...u}[C]===R})?[...m,y,x]:m},[]);return ck(e,c,f,n?.class,n?.className)},iB=qA(\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"),ns=h.forwardRef(({className:e,...t},n)=>g.jsx(HA,{ref:n,className:Fe(iB(),\"text-stone-700 dark:text-[#cccccc]\",e),...t}));ns.displayName=HA.displayName;const Xu=h.forwardRef(({className:e,...t},n)=>g.jsx(\"textarea\",{className:Fe(\"flex min-h-[80px] w-full rounded-md border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#1e1e1e] px-3 py-2 text-sm text-stone-900 dark:text-[#cccccc] ring-offset-white placeholder:text-stone-500 dark:placeholder:text-[#6a6a6a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 dark:focus-visible:ring-[#569cd6] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:ring-offset-[#1e1e1e]\",e),ref:n,...t}));Xu.displayName=\"Textarea\";function oB(e,t){const n=h.createContext(t),a=s=>{const{children:c,...u}=s,f=h.useMemo(()=>u,Object.values(u));return g.jsx(n.Provider,{value:f,children:c})};a.displayName=e+\"Provider\";function o(s){const c=h.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\\`${s}\\` must be used within \\`${e}\\``)}return[a,o]}function sB(e,t=[]){let n=[];function a(s,c){const u=h.createContext(c),f=n.length;n=[...n,c];const m=y=>{const{scope:x,children:w,...S}=y,C=x?.[e]?.[f]||u,R=h.useMemo(()=>S,Object.values(S));return g.jsx(C.Provider,{value:R,children:w})};m.displayName=s+\"Provider\";function v(y,x){const w=x?.[e]?.[f]||u,S=h.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\\`${y}\\` must be used within \\`${s}\\``)}return[m,v]}const o=()=>{const s=n.map(c=>h.createContext(c));return function(u){const f=u?.[e]||s;return h.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[a,lB(o,...t)]}function lB(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((u,{useScope:f,scopeName:m})=>{const y=f(s)[`__scope${m}`];return{...u,...y}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function $A(e){const t=cB(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(dB);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function cB(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=hB(o),u=fB(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uB=Symbol(\"radix.slottable\");function dB(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===uB}function fB(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function hB(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mB=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],kd=mB.reduce((e,t)=>{const n=$A(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),om=\"Dialog\",[FA,BA]=sB(om),[pB,Ka]=FA(om),UA=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,u=h.useRef(null),f=h.useRef(null),[m,v]=Nc({prop:a,defaultProp:o??!1,onChange:s,caller:om});return g.jsx(pB,{scope:t,triggerRef:u,contentRef:f,contentId:rs(),titleId:rs(),descriptionId:rs(),open:m,onOpenChange:v,onOpenToggle:h.useCallback(()=>v(y=>!y),[v]),modal:c,children:n})};UA.displayName=om;var VA=\"DialogTrigger\",WA=h.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=Ka(VA,n),s=vn(t,o.triggerRef);return g.jsx(kd.button,{type:\"button\",\"aria-haspopup\":\"dialog\",\"aria-expanded\":o.open,\"aria-controls\":o.contentId,\"data-state\":c1(o.open),...a,ref:s,onClick:it(e.onClick,o.onOpenToggle)})});WA.displayName=VA;var s1=\"DialogPortal\",[gB,GA]=FA(s1,{forceMount:void 0}),YA=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:o}=e,s=Ka(s1,t);return g.jsx(gB,{scope:t,forceMount:n,children:h.Children.map(a,c=>g.jsx(Xa,{present:n||s.open,children:g.jsx(qh,{asChild:!0,container:o,children:c})}))})};YA.displayName=s1;var _h=\"DialogOverlay\",XA=h.forwardRef((e,t)=>{const n=GA(_h,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,s=Ka(_h,e.__scopeDialog);return s.modal?g.jsx(Xa,{present:a||s.open,children:g.jsx(yB,{...o,ref:t})}):null});XA.displayName=_h;var vB=$A(\"DialogOverlay.RemoveScroll\"),yB=h.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=Ka(_h,n);return g.jsx(Wh,{as:vB,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(kd.div,{\"data-state\":c1(o.open),...a,ref:t,style:{pointerEvents:\"auto\",...a.style}})})}),il=\"DialogContent\",KA=h.forwardRef((e,t)=>{const n=GA(il,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,s=Ka(il,e.__scopeDialog);return g.jsx(Xa,{present:a||s.open,children:s.modal?g.jsx(bB,{...o,ref:t}):g.jsx(xB,{...o,ref:t})})});KA.displayName=il;var bB=h.forwardRef((e,t)=>{const n=Ka(il,e.__scopeDialog),a=h.useRef(null),o=vn(t,n.contentRef,a);return h.useEffect(()=>{const s=a.current;if(s)return Ab(s)},[]),g.jsx(QA,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:it(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:it(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&s.preventDefault()}),onFocusOutside:it(e.onFocusOutside,s=>s.preventDefault())})}),xB=h.forwardRef((e,t)=>{const n=Ka(il,e.__scopeDialog),a=h.useRef(!1),o=h.useRef(!1);return g.jsx(QA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(a.current||n.triggerRef.current?.focus(),s.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type===\"pointerdown\"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type===\"focusin\"&&o.current&&s.preventDefault()}})}),QA=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,u=Ka(il,n),f=h.useRef(null),m=vn(t,f);return Mb(),g.jsxs(g.Fragment,{children:[g.jsx(Uh,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:s,children:g.jsx(md,{role:\"dialog\",id:u.contentId,\"aria-describedby\":u.descriptionId,\"aria-labelledby\":u.titleId,\"data-state\":c1(u.open),...c,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(SB,{titleId:u.titleId}),g.jsx(RB,{contentRef:f,descriptionId:u.descriptionId})]})]})}),l1=\"DialogTitle\",ZA=h.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=Ka(l1,n);return g.jsx(kd.h2,{id:o.titleId,...a,ref:t})});ZA.displayName=l1;var JA=\"DialogDescription\",e3=h.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=Ka(JA,n);return g.jsx(kd.p,{id:o.descriptionId,...a,ref:t})});e3.displayName=JA;var t3=\"DialogClose\",n3=h.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=Ka(t3,n);return g.jsx(kd.button,{type:\"button\",...a,ref:t,onClick:it(e.onClick,()=>o.onOpenChange(!1))})});n3.displayName=t3;function c1(e){return e?\"open\":\"closed\"}var r3=\"DialogTitleWarning\",[wB,a3]=oB(r3,{contentName:il,titleName:l1,docsSlug:\"dialog\"}),SB=({titleId:e})=>{const t=a3(r3),n=`\\`${t.contentName}\\` requires a \\`${t.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${t.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},CB=\"DialogDescriptionWarning\",RB=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${a3(CB).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute(\"aria-describedby\");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},i3=UA,EB=WA,o3=YA,u1=XA,d1=KA,f1=ZA,h1=e3,sm=n3;const kB=i3,_B=sm,TB=o3,s3=h.forwardRef(({className:e,...t},n)=>g.jsx(u1,{className:Fe(\"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",e),...t,ref:n}));s3.displayName=u1.displayName;const MB={top:\"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",bottom:\"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",left:\"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",right:\"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\"},l3=h.forwardRef(({side:e=\"right\",className:t,children:n,...a},o)=>g.jsxs(TB,{children:[g.jsx(s3,{}),g.jsxs(d1,{ref:o,className:Fe(\"fixed z-50 gap-4 bg-white dark:bg-[#252526] p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",MB[e],t),...a,children:[n,g.jsxs(sm,{className:\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-stone-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-stone-100 dark:ring-offset-stone-950 dark:focus:ring-stone-300 dark:data-[state=open]:bg-stone-800\",children:[g.jsx(a5,{className:\"h-4 w-4\"}),g.jsx(\"span\",{className:\"sr-only\",children:\"Close\"})]})]})]}));l3.displayName=d1.displayName;const c3=({className:e,...t})=>g.jsx(\"div\",{className:Fe(\"flex flex-col space-y-2 text-center sm:text-left\",e),...t});c3.displayName=\"SheetHeader\";const u3=({className:e,...t})=>g.jsx(\"div\",{className:Fe(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",e),...t});u3.displayName=\"SheetFooter\";const d3=h.forwardRef(({className:e,...t},n)=>g.jsx(f1,{ref:n,className:Fe(\"text-lg font-semibold text-stone-950 dark:text-stone-50\",e),...t}));d3.displayName=f1.displayName;const AB=h.forwardRef(({className:e,...t},n)=>g.jsx(h1,{ref:n,className:Fe(\"text-sm text-stone-500 dark:text-stone-400\",e),...t}));AB.displayName=h1.displayName;const m1=qA(\"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",{variants:{variant:{default:\"bg-orange-600 dark:bg-[#569cd6] text-white shadow hover:bg-orange-700 dark:hover:bg-[#4a8cc7]\",destructive:\"bg-red-600 dark:bg-[#f48771] text-white dark:text-[#1e1e1e] shadow-sm hover:bg-red-700 dark:hover:bg-[#f5917e]\",outline:\"border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] shadow-sm hover:bg-stone-50 dark:hover:bg-[#2a2a2b] hover:text-stone-900 dark:hover:text-[#cccccc] text-stone-900 dark:text-[#cccccc]\",secondary:\"bg-stone-100 dark:bg-[#2d2d30] text-stone-900 dark:text-[#cccccc] shadow-sm hover:bg-stone-200 dark:hover:bg-[#37373d]\",ghost:\"hover:bg-stone-100 dark:hover:bg-[#2a2a2b] hover:text-stone-900 dark:hover:text-[#cccccc] text-stone-700 dark:text-[#cccccc]\",link:\"text-orange-600 dark:text-[#569cd6] underline-offset-4 hover:underline\"},size:{default:\"h-9 px-4 py-2\",sm:\"h-8 rounded-md px-3 text-xs\",lg:\"h-10 rounded-md px-8\",icon:\"h-9 w-9\"}},defaultVariants:{variant:\"default\",size:\"default\"}}),br=h.forwardRef(({className:e,variant:t,size:n,...a},o)=>g.jsx(\"button\",{className:Fe(m1({variant:t,size:n,className:e})),ref:o,...a}));br.displayName=\"Button\";const NB=e=>[/^(active|inactive|pending|completed|draft)$/i,/^(high|medium|low)$/i,/^(success|error|warning|info)$/i,/^(commercial|informational|transactional)$/i,/^(yes|no)$/i].some(n=>n.test(e));function OB({selectedTable:e,componentPath:t}){const{theme:n}=h_(),a=h.useRef(null),[o,s]=h.useState(new Set),[c,u]=h.useState(null),[f,m]=h.useState(null),[v,y]=h.useState(!1),[x,w]=h.useState({current:void 0,columns:wt.empty(),rows:wt.empty()}),[S,C]=h.useState(null),[R,_]=h.useState(null),[E,T]=h.useState({}),[A,D]=h.useState(!1),[z,O]=h.useState(`{\n \n}`),H=fs(q5,e?{tableName:e,componentPath:t,page:1,pageSize:1e3}:\"skip\"),$=ts(B5),V=ts($5),I=ts(U5),M=ts(F5),q=e?H===void 0:!1;let B=H?.data||[];const j=B.length>0?Object.keys(B[0]):[],F=j.filter(le=>!o.has(le)),U=Object.entries(E).filter(([le,ke])=>ke.trim()!==\"\");U.length>0&&(B=B.filter(le=>U.every(([ke,re])=>{const ie=le[ke];return ie==null?!1:String(ie).toLowerCase().includes(re.toLowerCase())}))),c&&(B=[...B].sort((le,ke)=>{const re=le[c.field],ie=ke[c.field];if(re===ie)return 0;if(re==null)return 1;if(ie==null)return-1;const be=re<ie?-1:1;return c.direction===\"asc\"?be:-be}));const W=B,ee=()=>{if(!W.length||!j.length)return;const le=Oe=>{if(Oe==null)return\"\";const Be=typeof Oe==\"object\"?JSON.stringify(Oe):String(Oe);return Be.includes(\",\")||Be.includes('\"')||Be.includes(`\n`)?`\"${Be.replace(/\"/g,'\"\"')}\"`:Be},ke=j.map(le).join(\",\"),re=W.map(Oe=>j.map(Be=>le(Oe[Be])).join(\",\")),ie=[ke,...re].join(`\n`),be=new Blob([ie],{type:\"text/csv;charset=utf-8;\"}),Ne=URL.createObjectURL(be),qe=document.createElement(\"a\");qe.href=Ne,qe.download=`${e}.csv`,qe.click(),URL.revokeObjectURL(Ne),m({type:\"success\",message:`Exported ${W.length} rows as CSV`}),setTimeout(()=>m(null),2e3)},oe=()=>{if(!W.length)return;const le=JSON.stringify(W,null,2),ke=new Blob([le],{type:\"application/json;charset=utf-8;\"}),re=URL.createObjectURL(ke),ie=document.createElement(\"a\");ie.href=re,ie.download=`${e}.json`,ie.click(),URL.revokeObjectURL(re),m({type:\"success\",message:`Exported ${W.length} rows as JSON`}),setTimeout(()=>m(null),2e3)},P=async()=>{if(e&&B.length&&confirm(`Are you sure you want to delete all ${B.length} records from \"${e}\"?`))try{const le=await M({tableName:e,componentPath:t});m({type:\"success\",message:`Cleared ${le.deleted} records`}),w({current:void 0,columns:wt.empty(),rows:wt.empty()})}catch(le){console.error(\"Failed to clear table:\",le),m({type:\"error\",message:le instanceof Error?le.message:\"Failed to clear table\"})}finally{setTimeout(()=>m(null),3e3)}},Y=(le,ke)=>{const re=W[le],ie=tt[ke]?.id;if(!re||!ie)return;const be=re[ie],Ne=be==null?\"\":typeof be==\"object\"?JSON.stringify(be):String(be);navigator.clipboard.writeText(Ne).then(()=>{m({type:\"success\",message:\"Copied to clipboard\"}),setTimeout(()=>m(null),2e3)}).catch(()=>{m({type:\"error\",message:\"Failed to copy\"}),setTimeout(()=>m(null),2e3)}),_(null)},G=h.useCallback(()=>{const le=[],ke=x.rows;for(let re=0;re<W.length;re++)ke.hasIndex(re)&&le.push(re);return le},[x.rows,W.length]),K=le=>le,te=h.useCallback(le=>{const ke=W[le];if(!ke)return;const re=JSON.stringify(K(ke),null,2);navigator.clipboard.writeText(re).then(()=>{m({type:\"success\",message:\"Row copied as JSON\"}),setTimeout(()=>m(null),2e3)}).catch(()=>{m({type:\"error\",message:\"Failed to copy\"}),setTimeout(()=>m(null),2e3)}),_(null)},[W]),fe=h.useCallback(()=>{const le=G();if(le.length===0){m({type:\"error\",message:\"No rows selected\"}),setTimeout(()=>m(null),2e3);return}const ke=le.map(ie=>K(W[ie])),re=JSON.stringify(ke.length===1?ke[0]:ke,null,2);navigator.clipboard.writeText(re).then(()=>{m({type:\"success\",message:`Copied ${le.length} row${le.length>1?\"s\":\"\"} as JSON`}),setTimeout(()=>m(null),2e3)}).catch(()=>{m({type:\"error\",message:\"Failed to copy\"}),setTimeout(()=>m(null),2e3)}),_(null)},[G,W]),ne=h.useCallback(async()=>{if(!e)return;const le=G();if(le.length!==0&&confirm(`Delete ${le.length} selected record${le.length>1?\"s\":\"\"}?`))try{for(const ke of le){const re=W[ke];re?._id&&await V({tableName:e,documentId:re._id})}m({type:\"success\",message:`Deleted ${le.length} record${le.length>1?\"s\":\"\"}`}),w({current:void 0,columns:wt.empty(),rows:wt.empty()})}catch(ke){console.error(\"Failed to delete records:\",ke),m({type:\"error\",message:ke instanceof Error?ke.message:\"Failed to delete records\"})}finally{_(null),setTimeout(()=>m(null),3e3)}},[e,G,W,V]),he=(le,ke)=>{_(null);const re=tt[ke]?.id;if(re){if(re===\"_id\"||re===\"_creationTime\"){m({type:\"error\",message:\"Cannot edit system fields\"}),setTimeout(()=>m(null),2e3);return}w({current:{cell:[ke,le],range:{x:ke,y:le,width:1,height:1},rangeStack:[]},columns:wt.empty(),rows:wt.empty()}),C([ke,le])}};h.useEffect(()=>{S&&(C(null),requestAnimationFrame(()=>{requestAnimationFrame(()=>{const le=document.querySelector(\"[data-testid='data-grid-canvas']\");le&&(le.focus(),le.dispatchEvent(new KeyboardEvent(\"keydown\",{key:\"Enter\",code:\"Enter\",keyCode:13,bubbles:!0})))})}))},[S]);const Ae=async le=>{if(!e)return;const ke=B[le];if(ke?._id&&confirm(\"Are you sure you want to delete this record?\"))try{await V({tableName:e,documentId:ke._id}),m({type:\"success\",message:\"Record deleted\"})}catch(re){console.error(\"Failed to delete record:\",re),m({type:\"error\",message:re instanceof Error?re.message:\"Failed to delete record\"})}finally{_(null),setTimeout(()=>m(null),3e3)}},He=async le=>{if(!e)return;const ke=B[le];if(!ke)return;const{_id:re,_creationTime:ie,...be}=ke;try{await I({tableName:e,data:be}),m({type:\"success\",message:\"Record duplicated\"})}catch(Ne){console.error(\"Failed to duplicate record:\",Ne),m({type:\"error\",message:Ne instanceof Error?Ne.message:\"Failed to duplicate record\"})}finally{_(null),setTimeout(()=>m(null),3e3)}};h.useEffect(()=>{const le=ke=>{if(ke.key===\"Escape\"){_(null);return}if((ke.metaKey||ke.ctrlKey)&&ke.key===\"c\"&&G().length>0){ke.preventDefault(),fe();return}if((ke.key===\"Delete\"||ke.key===\"Backspace\")&&G().length>0&&document.activeElement?.tagName!==\"INPUT\"&&document.activeElement?.tagName!==\"TEXTAREA\"){ke.preventDefault(),ne();return}};return document.addEventListener(\"keydown\",le),()=>document.removeEventListener(\"keydown\",le)},[G,fe,ne]);const Ye=le=>!c||c.field!==le?null:c.direction===\"asc\"?\"↑\":\"↓\",tt=F.map(le=>{const ke=Ye(le);return{title:`${le}${ke||\"\"}`,id:le,width:le===\"_id\"?220:le===\"_creationTime\"?200:180,group:\"\"}}),ze=h.useCallback(([le,ke])=>{const re=W[ke],ie=tt[le]?.id,be=re?.[ie];if(be==null)return{kind:Ie.Text,data:\"\",displayData:\"\",allowOverlay:!1,contentAlign:\"left\"};if(typeof be==\"boolean\")return{kind:Ie.Boolean,data:be,allowOverlay:!1};if(typeof be==\"number\")return ie===\"_creationTime\"?{kind:Ie.Text,data:new Date(be).toLocaleString(),displayData:new Date(be).toLocaleString(),allowOverlay:!0}:{kind:Ie.Number,data:be,displayData:String(be),allowOverlay:!0};if(typeof be==\"object\")return{kind:Ie.Text,data:JSON.stringify(be),displayData:JSON.stringify(be),allowOverlay:!0};const Ne=String(be);return NB(Ne)?{kind:Ie.Bubble,data:[Ne],allowOverlay:!1}:{kind:Ie.Text,data:Ne,displayData:Ne,allowOverlay:!0}},[W,tt]),Ke=le=>{const ke=new Set(o);ke.has(le)?ke.delete(le):ke.add(le),s(ke)};return g.jsxs(\"div\",{className:\"h-full flex flex-col bg-slate-50 dark:bg-[#1e1e1e]\",children:[g.jsx(\"div\",{className:\"bg-white dark:bg-[#252526] border-b border-stone-200 dark:border-[#3e3e42] dark:border-[#3e3e42] px-4 py-3\",children:g.jsxs(\"div\",{className:\"flex items-center justify-between\",children:[g.jsxs(\"div\",{className:\"flex items-center gap-4\",children:[g.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[g.jsxs(\"span\",{className:\"text-sm text-stone-600 dark:text-[#cccccc] font-medium\",children:[B.length,\" records\"]}),G().length>0&&g.jsxs(\"div\",{className:\"flex items-center gap-1.5 ml-2\",children:[g.jsxs(\"span\",{className:\"text-xs text-blue-600 dark:text-[#569cd6] font-medium\",children:[G().length,\" selected\"]}),g.jsx(\"button\",{onClick:fe,className:\"p-1 text-stone-500 dark:text-[#969696] hover:text-blue-600 dark:hover:text-[#569cd6] rounded transition-colors\",title:\"Copy selected rows as JSON\",children:g.jsx(HS,{className:\"h-3.5 w-3.5\"})}),g.jsx(\"button\",{onClick:ne,className:\"p-1 text-stone-500 dark:text-[#969696] hover:text-red-600 dark:hover:text-[#f48771] rounded transition-colors\",title:\"Delete selected rows\",children:g.jsx(es,{className:\"h-3.5 w-3.5\"})})]})]}),f&&g.jsxs(\"div\",{className:Fe(\"flex items-center gap-1.5 px-2 py-1 text-xs rounded-full\",f.type===\"success\"?\"bg-green-100 dark:bg-[#3e3e42] text-green-700 dark:text-[#4ec9b0]\":\"bg-red-100 dark:bg-[#3e3e42] text-red-700 dark:text-[#f48771]\"),children:[f.type===\"success\"?g.jsx(Dh,{className:\"h-3.5 w-3.5\"}):g.jsx(Iy,{className:\"h-3.5 w-3.5\"}),g.jsx(\"span\",{children:f.message})]}),v&&!f&&g.jsxs(\"div\",{className:\"flex items-center gap-1.5 px-2 py-1 text-xs bg-blue-100 dark:bg-[#3e3e42] text-blue-700 dark:text-[#569cd6] rounded-full\",children:[g.jsx(hi,{className:\"h-3.5 w-3.5 animate-spin\"}),g.jsx(\"span\",{children:\"Saving...\"})]})]}),g.jsxs(\"div\",{className:\"flex items-center gap-1\",children:[g.jsxs(\"button\",{onClick:()=>{e&&(O(`{\n \n}`),D(!0))},className:\"flex items-center gap-1.5 px-2 py-1 text-xs bg-blue-600 text-white hover:bg-blue-700 rounded transition-colors mr-2\",children:[g.jsx(ZD,{className:\"h-4 w-4\"}),g.jsx(\"span\",{className:\"font-medium\",children:\"Add\"})]}),g.jsxs(Hu,{children:[g.jsx(qu,{asChild:!0,children:g.jsxs(\"button\",{className:Fe(\"flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors\",o.size>0?\"bg-blue-600 text-white hover:bg-blue-700\":\"text-stone-600 dark:text-[#cccccc] hover:bg-stone-50 dark:hover:bg-[#2a2a2b] hover:text-stone-700\"),children:[g.jsx($D,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Fields\"}),o.size>0&&g.jsxs(\"span\",{className:\"ml-1\",children:[\"(\",o.size,\")\"]}),g.jsx(el,{className:\"h-3.5 w-3.5\"})]})}),g.jsxs(dc,{align:\"end\",className:\"min-w-[220px] max-h-[400px] overflow-y-auto\",children:[g.jsxs(sh,{className:\"text-xs\",children:[g.jsx(\"div\",{children:\"Toggle fields\"}),g.jsxs(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] font-normal mt-1\",children:[j.length-o.size,\" of \",j.length,\" visible\"]})]}),g.jsx(Xi,{}),j.map(le=>g.jsx(PA,{checked:!o.has(le),onCheckedChange:()=>Ke(le),onSelect:ke=>ke.preventDefault(),className:\"text-xs\",children:le},le))]})]}),g.jsxs(Hu,{children:[g.jsx(qu,{asChild:!0,children:g.jsxs(\"button\",{className:Fe(\"flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors\",U.length>0?\"bg-green-600 text-white hover:bg-green-700\":\"text-stone-600 dark:text-[#cccccc] hover:bg-stone-50 dark:hover:bg-[#2a2a2b] hover:text-stone-700\"),children:[g.jsx(UD,{className:\"h-4 w-4\"}),U.length>0&&g.jsx(\"span\",{className:\"ml-1 text-[10px] font-bold\",children:U.length}),g.jsx(el,{className:\"h-3.5 w-3.5\"})]})}),g.jsxs(dc,{align:\"end\",className:\"min-w-[320px]\",children:[g.jsxs(sh,{className:\"text-xs\",children:[g.jsx(\"div\",{children:\"Filter by field\"}),g.jsxs(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] font-normal mt-1\",children:[U.length,\" filter\",U.length!==1?\"s\":\"\",\" active\"]})]}),g.jsx(Xi,{}),g.jsxs(\"div\",{className:\"p-3 max-h-80 overflow-y-auto space-y-3\",children:[g.jsxs(\"div\",{children:[g.jsx(ns,{htmlFor:\"global-filter\",className:\"text-xs mb-1\",children:\"Search all fields\"}),g.jsx(Eh,{id:\"global-filter\",type:\"text\",value:Object.values(E).some(le=>le.trim())&&Object.values(E).find(le=>le.trim())||\"\",onChange:le=>{if(le.target.value.trim()){const ke={...E};F.forEach(re=>{ke[re]=le.target.value}),T(ke)}else T({})},placeholder:\"Search all fields...\",className:\"h-8 text-xs\"})]}),g.jsxs(\"div\",{className:\"space-y-2\",children:[g.jsx(ns,{className:\"text-xs\",children:\"Filter by specific field\"}),F.map(le=>g.jsxs(\"div\",{className:\"flex gap-2 items-center\",children:[g.jsx(\"span\",{className:\"text-xs text-stone-600 dark:text-[#cccccc] min-w-[80px] truncate\",children:le}),g.jsx(Eh,{type:\"text\",value:E[le]||\"\",onChange:ke=>{const re={...E};ke.target.value.trim()?re[le]=ke.target.value:delete re[le],T(re)},placeholder:`Filter ${le}...`,className:\"flex-1 h-7 text-xs\"}),E[le]&&g.jsx(\"button\",{onClick:()=>{const ke={...E};delete ke[le],T(ke)},className:\"text-stone-400 dark:text-[#969696] hover:text-stone-600 dark:hover:text-[#cccccc] p-0.5\",children:g.jsx(Iy,{className:\"h-3 w-3\"})})]},le))]}),U.length>0&&g.jsxs(g.Fragment,{children:[g.jsx(Xi,{}),g.jsx(br,{variant:\"outline\",size:\"sm\",onClick:()=>T({}),className:\"w-full text-xs text-red-600 dark:text-[#f48771] hover:text-red-700 dark:hover:text-[#f48771] hover:bg-red-50 dark:hover:bg-[#3e3e42] h-7\",children:\"Clear all filters\"})]})]})]})]}),g.jsxs(Hu,{children:[g.jsx(qu,{asChild:!0,children:g.jsxs(\"button\",{className:Fe(\"flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors\",c?\"bg-orange-600 text-white hover:bg-orange-700\":\"text-stone-600 dark:text-[#cccccc] hover:bg-stone-50 dark:hover:bg-[#2a2a2b] hover:text-stone-700\"),children:[g.jsx(DD,{className:\"h-4 w-4\"}),c&&g.jsx(\"span\",{className:\"ml-1 text-[10px] font-bold\",children:\"1\"}),g.jsx(el,{className:\"h-3.5 w-3.5\"})]})}),g.jsxs(dc,{align:\"end\",className:\"min-w-[220px] max-h-[400px] overflow-y-auto\",children:[g.jsx(sh,{className:\"text-xs\",children:\"Sort by field\"}),g.jsx(Xi,{}),j.map(le=>g.jsxs(\"div\",{className:\"flex gap-1 px-1\",children:[g.jsxs(\"button\",{onClick:()=>u({field:le,direction:\"asc\"}),className:Fe(\"flex-1 text-left px-3 py-1.5 text-xs hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded transition-colors\",c?.field===le&&c.direction===\"asc\"?\"bg-orange-50 dark:bg-[#3e3e42] text-orange-700 dark:text-[#ce9178] font-medium\":\"text-stone-700 dark:text-[#cccccc]\"),children:[le,\" ↑\"]}),g.jsxs(\"button\",{onClick:()=>u({field:le,direction:\"desc\"}),className:Fe(\"flex-1 text-left px-3 py-1.5 text-xs hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded transition-colors\",c?.field===le&&c.direction===\"desc\"?\"bg-orange-50 dark:bg-[#3e3e42] text-orange-700 dark:text-[#ce9178] font-medium\":\"text-stone-700 dark:text-[#cccccc]\"),children:[le,\" ↓\"]})]},le)),c&&g.jsxs(g.Fragment,{children:[g.jsx(Xi,{}),g.jsx(Ji,{onClick:()=>u(null),className:\"text-xs text-red-600 dark:text-[#f48771] hover:bg-red-50 dark:hover:bg-[#3e3e42]\",children:\"Clear sort\"})]})]})]}),g.jsxs(Hu,{children:[g.jsx(qu,{asChild:!0,children:g.jsx(\"button\",{className:\"flex items-center gap-1.5 px-2 py-1 text-xs text-stone-600 dark:text-[#cccccc] hover:bg-stone-50 dark:hover:bg-[#2a2a2b] hover:text-stone-700 dark:hover:text-[#cccccc] rounded transition-colors\",children:g.jsx(n_,{className:\"h-4 w-4\"})})}),g.jsxs(dc,{align:\"end\",className:\"min-w-[180px]\",children:[g.jsxs(Ji,{className:\"text-xs\",onClick:ee,disabled:!W.length,children:[g.jsx(qy,{className:\"h-4 w-4 mr-2\"}),g.jsx(\"span\",{children:\"Export CSV\"})]}),g.jsxs(Ji,{className:\"text-xs\",onClick:oe,disabled:!W.length,children:[g.jsx(BD,{className:\"h-4 w-4 mr-2\"}),g.jsx(\"span\",{children:\"Export JSON\"})]}),g.jsx(Xi,{}),g.jsxs(Ji,{className:\"text-xs\",onClick:P,disabled:!W.length,children:[g.jsx(qD,{className:\"h-4 w-4 mr-2\"}),g.jsx(\"span\",{children:\"Clear Table\"})]}),g.jsxs(Ji,{className:\"text-xs text-red-600 dark:text-[#f48771]\",onClick:P,disabled:!W.length,children:[g.jsx(es,{className:\"h-4 w-4 mr-2\"}),g.jsx(\"span\",{children:\"Delete Table\"})]}),g.jsx(Xi,{}),g.jsxs(\"div\",{className:\"px-2 py-2 text-xs text-stone-500 dark:text-[#969696]\",children:[g.jsx(\"div\",{className:\"font-medium mb-1.5\",children:\"Keyboard shortcuts:\"}),g.jsxs(\"div\",{className:\"space-y-1\",children:[g.jsxs(\"div\",{children:[g.jsx(\"kbd\",{className:\"px-1 py-0.5 bg-stone-100 dark:bg-[#2d2d30] rounded text-xs\",children:\"Enter\"}),\" Edit cell\"]}),g.jsxs(\"div\",{children:[g.jsx(\"kbd\",{className:\"px-1 py-0.5 bg-stone-100 dark:bg-[#2d2d30] rounded text-xs\",children:\"Esc\"}),\" Cancel\"]}),g.jsxs(\"div\",{children:[g.jsx(\"kbd\",{className:\"px-1 py-0.5 bg-stone-100 dark:bg-[#2d2d30] rounded text-xs\",children:\"⌘C\"}),\" Copy selected rows\"]}),g.jsxs(\"div\",{children:[g.jsx(\"kbd\",{className:\"px-1 py-0.5 bg-stone-100 dark:bg-[#2d2d30] rounded text-xs\",children:\"⌫\"}),\" Delete selected rows\"]})]})]})]})]})]})]})}),g.jsx(\"div\",{className:\"flex-1 overflow-auto\",children:q?g.jsx(\"div\",{className:\"flex items-center justify-center h-full bg-white dark:bg-[#252526]\",children:g.jsx(hi,{className:\"h-6 w-6 animate-spin text-stone-400 dark:text-[#969696]\"})}):B.length>0?g.jsx(\"div\",{className:\"w-full h-full\",children:g.jsx($q,{ref:a,columns:tt,rows:B.length,getCellContent:ze,gridSelection:x,onGridSelectionChange:w,onCellEdited:async(le,ke)=>{const[re,ie]=le,be=tt[re]?.id;if(!be)return;const Ne=B[ie],qe=Ne._id;if(!qe){m({type:\"error\",message:\"Cannot edit: No document ID\"}),setTimeout(()=>m(null),3e3);return}let Oe;typeof ke==\"object\"&&\"data\"in ke?Oe=ke.data:Oe=ke;const Be=Ne[be];typeof Be==\"number\"&&typeof Oe==\"string\"?Oe=parseFloat(Oe)||0:typeof Be==\"boolean\"&&(Oe=!!Oe),y(!0);try{if(!e)throw new Error(\"No table selected\");await $({tableName:e,documentId:qe,data:{[be]:Oe}}),m({type:\"success\",message:`Updated ${be}`})}catch(et){console.error(\"Failed to update cell:\",et),m({type:\"error\",message:et instanceof Error?et.message:\"Update failed\"})}finally{y(!1),setTimeout(()=>m(null),3e3)}},onCellContextMenu:(le,ke)=>{ke.preventDefault();const[re,ie]=le,be=ke,Ne=be.bounds?be.bounds.x+be.localEventX:0,qe=be.bounds?be.bounds.y+be.localEventY:0;_({position:{x:Ne,y:qe},type:\"cell\",row:ie,column:re})},rowMarkers:\"both\",rowSelect:\"multi\",smoothScrollX:!0,smoothScrollY:!0,height:\"100%\",getCellsForSelection:!0,theme:n===\"dark\"?{accentColor:\"#569cd6\",accentLight:\"#264f78\",textDark:\"#cccccc\",textMedium:\"#969696\",textLight:\"#6a6a6a\",textBubble:\"#cccccc\",bgCell:\"#1e1e1e\",bgCellMedium:\"#252526\",bgHeader:\"#252526\",bgHeaderHasFocus:\"#2a2a2b\",bgHeaderHovered:\"#2a2a2b\",borderColor:\"#3e3e42\",horizontalBorderColor:\"#3e3e42\",bgIconHeader:\"#569cd6\",fgIconHeader:\"#ffffff\",textHeader:\"#cccccc\",textHeaderSelected:\"#569cd6\",textGroupHeader:\"#969696\",bgBubble:\"#264f78\",bgBubbleSelected:\"#1e3a5f\",fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',baseFontStyle:\"14px\",headerFontStyle:\"600 14px\"}:{accentColor:\"#2563eb\",accentLight:\"#dbeafe\",textDark:\"#111827\",textMedium:\"#4b5563\",textLight:\"#9ca3af\",textBubble:\"#111827\",bgCell:\"#ffffff\",bgCellMedium:\"#f9fafb\",bgHeader:\"#f8fafc\",bgHeaderHasFocus:\"#f1f5f9\",bgHeaderHovered:\"#f1f5f9\",borderColor:\"#e2e8f0\",horizontalBorderColor:\"#f1f5f9\",bgIconHeader:\"#64748b\",fgIconHeader:\"#ffffff\",textHeader:\"#1e293b\",textHeaderSelected:\"#2563eb\",textGroupHeader:\"#475569\",bgBubble:\"#dbeafe\",bgBubbleSelected:\"#bfdbfe\",fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',baseFontStyle:\"14px\",headerFontStyle:\"600 14px\"}})}):e?g.jsx(\"div\",{className:\"flex flex-col items-center justify-center h-full text-sm text-stone-500 dark:text-[#969696] bg-white dark:bg-[#252526]\",children:g.jsxs(\"div\",{className:\"text-center\",children:[g.jsx(\"div\",{className:\"text-lg mb-2\",children:\"📭\"}),g.jsx(\"div\",{className:\"font-medium text-stone-700 dark:text-[#cccccc] mb-1\",children:\"No records found\"}),g.jsx(\"div\",{className:\"text-stone-500 dark:text-[#969696]\",children:\"This table appears to be empty\"})]})}):g.jsx(\"div\",{className:\"flex flex-col items-center justify-center h-full text-sm text-stone-500 dark:text-[#969696] bg-white dark:bg-[#252526]\",children:g.jsxs(\"div\",{className:\"text-center\",children:[g.jsx(\"div\",{className:\"text-lg mb-2\",children:\"📊\"}),g.jsx(\"div\",{className:\"font-medium text-stone-700 dark:text-[#cccccc] mb-1\",children:\"Select a table to view data\"}),g.jsx(\"div\",{className:\"text-stone-500 dark:text-[#969696]\",children:\"Choose a table from the dropdown above to get started\"})]})})}),R&&g.jsxs(\"div\",{ref:le=>{if(!le)return;const ke=le.getBoundingClientRect(),re=8;let ie=R.position.x,be=R.position.y;ie+ke.width>window.innerWidth-re&&(ie=Math.max(re,window.innerWidth-ke.width-re)),be+ke.height>window.innerHeight-re&&(be=Math.max(re,window.innerHeight-ke.height-re)),(le.style.left!==`${ie}px`||le.style.top!==`${be}px`)&&(le.style.left=`${ie}px`,le.style.top=`${be}px`)},className:\"fixed bg-white dark:bg-[#252526] border border-stone-200 dark:border-[#3e3e42] rounded-lg shadow-lg z-[9999] min-w-[160px]\",style:{left:R.position.x,top:R.position.y},children:[g.jsxs(\"div\",{className:\"p-1\",children:[g.jsxs(\"button\",{onClick:()=>R.row!==void 0&&R.column!==void 0&&he(R.row,R.column),className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded\",children:[g.jsx(QD,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Edit cell\"})]}),g.jsxs(\"button\",{onClick:()=>R.row!==void 0&&R.column!==void 0&&Y(R.row,R.column),className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded\",children:[g.jsx(tl,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Copy cell\"})]})]}),g.jsx(\"div\",{className:\"h-px bg-stone-200 dark:bg-[#3e3e42] my-1\"}),g.jsxs(\"div\",{className:\"p-1\",children:[R.row!==void 0&&g.jsxs(\"button\",{onClick:()=>te(R.row),className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded\",children:[g.jsx(HD,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Copy row as JSON\"})]}),G().length>1&&g.jsxs(\"button\",{onClick:fe,className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded\",children:[g.jsx(HS,{className:\"h-4 w-4\"}),g.jsxs(\"span\",{children:[\"Copy \",G().length,\" rows as JSON\"]})]})]}),g.jsx(\"div\",{className:\"h-px bg-stone-200 dark:bg-[#3e3e42] my-1\"}),g.jsx(\"div\",{className:\"p-1\",children:(R.type===\"row\"||R.type===\"cell\")&&g.jsxs(g.Fragment,{children:[g.jsxs(\"button\",{onClick:()=>R.row!==void 0&&He(R.row),className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] rounded\",children:[g.jsx(tl,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Duplicate record\"})]}),g.jsxs(\"button\",{onClick:()=>R.row!==void 0&&Ae(R.row),className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left text-red-600 dark:text-[#f48771] hover:bg-red-50 dark:hover:bg-[#5a1d1d] rounded\",children:[g.jsx(es,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Delete record\"})]}),G().length>1&&g.jsxs(\"button\",{onClick:ne,className:\"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left text-red-600 dark:text-[#f48771] hover:bg-red-50 dark:hover:bg-[#5a1d1d] rounded\",children:[g.jsx(es,{className:\"h-4 w-4\"}),g.jsxs(\"span\",{children:[\"Delete \",G().length,\" selected\"]})]})]})})]}),R&&g.jsx(\"div\",{className:\"fixed inset-0 z-[9998]\",onClick:()=>_(null)}),g.jsx(kB,{open:A,onOpenChange:D,children:g.jsxs(l3,{className:\"w-[500px] sm:max-w-[500px] overflow-y-auto\",children:[g.jsx(c3,{children:g.jsxs(d3,{children:[\"Add Record to \",e]})}),g.jsx(\"div\",{className:\"mt-6 space-y-4\",children:g.jsxs(\"div\",{className:\"space-y-2\",children:[g.jsx(ns,{children:\"Document JSON\"}),g.jsx(Xu,{value:z,onChange:le=>O(le.target.value),className:\"font-mono text-xs h-[400px]\",placeholder:\"{ ... }\"}),g.jsx(\"p\",{className:\"text-xs text-stone-500 dark:text-[#969696]\",children:\"Enter the document data as JSON. Keys do not need quotes (relaxed JSON).\"})]})}),g.jsxs(u3,{className:\"mt-6\",children:[g.jsx(_B,{asChild:!0,children:g.jsx(br,{variant:\"outline\",className:\"mr-2\",children:\"Cancel\"})}),g.jsx(br,{onClick:()=>{try{let le;try{le=new Function(\"return \"+z)()}catch{le=JSON.parse(z)}if(typeof le!=\"object\"||le===null)throw new Error(\"Input must be an object\");I({tableName:e,data:le}),D(!1),m({type:\"success\",message:\"Added new record\"}),setTimeout(()=>m(null),3e3)}catch(le){alert(\"Invalid JSON: \"+(le instanceof Error?le.message:String(le)))}},children:\"Add Record\"})]})]})})]})}const lm=h.createContext(null);lm.displayName=\"PanelGroupContext\";const Dn={group:\"data-panel-group\",groupDirection:\"data-panel-group-direction\",groupId:\"data-panel-group-id\",panel:\"data-panel\",panelCollapsible:\"data-panel-collapsible\",panelId:\"data-panel-id\",panelSize:\"data-panel-size\",resizeHandle:\"data-resize-handle\",resizeHandleActive:\"data-resize-handle-active\",resizeHandleEnabled:\"data-panel-resize-handle-enabled\",resizeHandleId:\"data-panel-resize-handle-id\",resizeHandleState:\"data-resize-handle-state\"},p1=10,nl=h.useLayoutEffect,uk=Oh.useId,DB=typeof uk==\"function\"?uk:()=>null;let jB=0;function g1(e=null){const t=DB(),n=h.useRef(e||t||null);return n.current===null&&(n.current=\"\"+jB++),e??n.current}function f3({children:e,className:t=\"\",collapsedSize:n,collapsible:a,defaultSize:o,forwardedRef:s,id:c,maxSize:u,minSize:f,onCollapse:m,onExpand:v,onResize:y,order:x,style:w,tagName:S=\"div\",...C}){const R=h.useContext(lm);if(R===null)throw Error(\"Panel components must be rendered within a PanelGroup container\");const{collapsePanel:_,expandPanel:E,getPanelSize:T,getPanelStyle:A,groupId:D,isPanelCollapsed:z,reevaluatePanelConstraints:O,registerPanel:H,resizePanel:$,unregisterPanel:V}=R,I=g1(c),M=h.useRef({callbacks:{onCollapse:m,onExpand:v,onResize:y},constraints:{collapsedSize:n,collapsible:a,defaultSize:o,maxSize:u,minSize:f},id:I,idIsFromProps:c!==void 0,order:x});h.useRef({didLogMissingDefaultSizeWarning:!1}),nl(()=>{const{callbacks:B,constraints:j}=M.current,F={...j};M.current.id=I,M.current.idIsFromProps=c!==void 0,M.current.order=x,B.onCollapse=m,B.onExpand=v,B.onResize=y,j.collapsedSize=n,j.collapsible=a,j.defaultSize=o,j.maxSize=u,j.minSize=f,(F.collapsedSize!==j.collapsedSize||F.collapsible!==j.collapsible||F.maxSize!==j.maxSize||F.minSize!==j.minSize)&&O(M.current,F)}),nl(()=>{const B=M.current;return H(B),()=>{V(B)}},[x,I,H,V]),h.useImperativeHandle(s,()=>({collapse:()=>{_(M.current)},expand:B=>{E(M.current,B)},getId(){return I},getSize(){return T(M.current)},isCollapsed(){return z(M.current)},isExpanded(){return!z(M.current)},resize:B=>{$(M.current,B)}}),[_,E,T,z,I,$]);const q=A(M.current,o);return h.createElement(S,{...C,children:e,className:t,id:I,style:{...q,...w},[Dn.groupId]:D,[Dn.panel]:\"\",[Dn.panelCollapsible]:a||void 0,[Dn.panelId]:I,[Dn.panelSize]:parseFloat(\"\"+q.flexGrow).toFixed(1)})}const h3=h.forwardRef((e,t)=>h.createElement(f3,{...e,forwardedRef:t}));f3.displayName=\"Panel\";h3.displayName=\"forwardRef(Panel)\";let lb=null,lh=-1,Qo=null;function zB(e,t,n){const a=(t&y3)!==0,o=(t&b3)!==0,s=(t&x3)!==0,c=(t&w3)!==0;if(t){if(a)return s?\"se-resize\":c?\"ne-resize\":\"e-resize\";if(o)return s?\"sw-resize\":c?\"nw-resize\":\"w-resize\";if(s)return\"s-resize\";if(c)return\"n-resize\"}switch(e){case\"horizontal\":return\"ew-resize\";case\"intersection\":return\"move\";case\"vertical\":return\"ns-resize\"}}function PB(){Qo!==null&&(document.head.removeChild(Qo),lb=null,Qo=null,lh=-1)}function _y(e,t,n){var a,o;const s=zB(e,t);if(lb!==s){if(lb=s,Qo===null&&(Qo=document.createElement(\"style\"),document.head.appendChild(Qo)),lh>=0){var c;(c=Qo.sheet)===null||c===void 0||c.removeRule(lh)}lh=(a=(o=Qo.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${s} !important;}`))!==null&&a!==void 0?a:-1}}function m3(e){return e.type===\"keydown\"}function p3(e){return e.type.startsWith(\"pointer\")}function g3(e){return e.type.startsWith(\"mouse\")}function cm(e){if(p3(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(g3(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function LB(){if(typeof matchMedia==\"function\")return matchMedia(\"(pointer:coarse)\").matches?\"coarse\":\"fine\"}function IB(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function HB(e,t){if(e===t)throw new Error(\"Cannot compare node with itself\");const n={a:hk(e),b:hk(t)};let a;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),a=e;_t(a,\"Stacking order can only be calculated for elements with a common ancestor\");const o={a:fk(dk(n.a)),b:fk(dk(n.b))};if(o.a===o.b){const s=a.childNodes,c={a:n.a.at(-1),b:n.b.at(-1)};let u=s.length;for(;u--;){const f=s[u];if(f===c.a)return 1;if(f===c.b)return-1}}return Math.sign(o.a-o.b)}const qB=/\\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\\b/;function $B(e){var t;const n=getComputedStyle((t=v3(e))!==null&&t!==void 0?t:e).display;return n===\"flex\"||n===\"inline-flex\"}function FB(e){const t=getComputedStyle(e);return!!(t.position===\"fixed\"||t.zIndex!==\"auto\"&&(t.position!==\"static\"||$B(e))||+t.opacity<1||\"transform\"in t&&t.transform!==\"none\"||\"webkitTransform\"in t&&t.webkitTransform!==\"none\"||\"mixBlendMode\"in t&&t.mixBlendMode!==\"normal\"||\"filter\"in t&&t.filter!==\"none\"||\"webkitFilter\"in t&&t.webkitFilter!==\"none\"||\"isolation\"in t&&t.isolation===\"isolate\"||qB.test(t.willChange)||t.webkitOverflowScrolling===\"touch\")}function dk(e){let t=e.length;for(;t--;){const n=e[t];if(_t(n,\"Missing node\"),FB(n))return n}return null}function fk(e){return e&&Number(getComputedStyle(e).zIndex)||0}function hk(e){const t=[];for(;e;)t.push(e),e=v3(e);return t}function v3(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const y3=1,b3=2,x3=4,w3=8,BB=LB()===\"coarse\";let Va=[],gc=!1,Zo=new Map,um=new Map;const od=new Set;function UB(e,t,n,a,o){var s;const{ownerDocument:c}=t,u={direction:n,element:t,hitAreaMargins:a,setResizeHandlerState:o},f=(s=Zo.get(c))!==null&&s!==void 0?s:0;return Zo.set(c,f+1),od.add(u),Th(),function(){var v;um.delete(e),od.delete(u);const y=(v=Zo.get(c))!==null&&v!==void 0?v:1;if(Zo.set(c,y-1),Th(),y===1&&Zo.delete(c),Va.includes(u)){const x=Va.indexOf(u);x>=0&&Va.splice(x,1),dm(),o(\"up\",!0,null)}}}function VB(e){const{target:t}=e,{x:n,y:a}=cm(e);gc=!0,v1({target:t,x:n,y:a}),Th(),Va.length>0&&(Mh(\"down\",e),dm(),e.preventDefault(),S3(t)||e.stopImmediatePropagation())}function Ty(e){const{x:t,y:n}=cm(e);if(gc&&e.type!==\"pointerleave\"&&e.buttons===0&&(gc=!1,Mh(\"up\",e)),!gc){const{target:a}=e;v1({target:a,x:t,y:n})}Mh(\"move\",e),dm(),Va.length>0&&e.preventDefault()}function My(e){const{target:t}=e,{x:n,y:a}=cm(e);um.clear(),gc=!1,Va.length>0&&(e.preventDefault(),S3(t)||e.stopImmediatePropagation()),Mh(\"up\",e),v1({target:t,x:n,y:a}),dm(),Th()}function S3(e){let t=e;for(;t;){if(t.hasAttribute(Dn.resizeHandle))return!0;t=t.parentElement}return!1}function v1({target:e,x:t,y:n}){Va.splice(0);let a=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(a=e),od.forEach(o=>{const{element:s,hitAreaMargins:c}=o,u=s.getBoundingClientRect(),{bottom:f,left:m,right:v,top:y}=u,x=BB?c.coarse:c.fine;if(t>=m-x&&t<=v+x&&n>=y-x&&n<=f+x){if(a!==null&&document.contains(a)&&s!==a&&!s.contains(a)&&!a.contains(s)&&HB(a,s)>0){let S=a,C=!1;for(;S&&!S.contains(s);){if(IB(S.getBoundingClientRect(),u)){C=!0;break}S=S.parentElement}if(C)return}Va.push(o)}})}function Ay(e,t){um.set(e,t)}function dm(){let e=!1,t=!1;Va.forEach(a=>{const{direction:o}=a;o===\"horizontal\"?e=!0:t=!0});let n=0;um.forEach(a=>{n|=a}),e&&t?_y(\"intersection\",n):e?_y(\"horizontal\",n):t?_y(\"vertical\",n):PB()}let Ny;function Th(){var e;(e=Ny)===null||e===void 0||e.abort(),Ny=new AbortController;const t={capture:!0,signal:Ny.signal};od.size&&(gc?(Va.length>0&&Zo.forEach((n,a)=>{const{body:o}=a;n>0&&(o.addEventListener(\"contextmenu\",My,t),o.addEventListener(\"pointerleave\",Ty,t),o.addEventListener(\"pointermove\",Ty,t))}),Zo.forEach((n,a)=>{const{body:o}=a;o.addEventListener(\"pointerup\",My,t),o.addEventListener(\"pointercancel\",My,t)})):Zo.forEach((n,a)=>{const{body:o}=a;n>0&&(o.addEventListener(\"pointerdown\",VB,t),o.addEventListener(\"pointermove\",Ty,t))}))}function Mh(e,t){od.forEach(n=>{const{setResizeHandlerState:a}=n,o=Va.includes(n);a(e,o,t)})}function WB(){const[e,t]=h.useState(0);return h.useCallback(()=>t(n=>n+1),[])}function _t(e,t){if(!e)throw console.error(t),Error(t)}function ol(e,t,n=p1){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function eo(e,t,n=p1){return ol(e,t,n)===0}function da(e,t,n){return ol(e,t,n)===0}function GB(e,t,n){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const o=e[a],s=t[a];if(!da(o,s,n))return!1}return!0}function fc({panelConstraints:e,panelIndex:t,size:n}){const a=e[t];_t(a!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:s,maxSize:c=100,minSize:u=0}=a;if(ol(n,u)<0)if(s){const f=(o+u)/2;ol(n,f)<0?n=o:n=u}else n=u;return n=Math.min(c,n),n=parseFloat(n.toFixed(p1)),n}function $u({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:a,prevLayout:o,trigger:s}){if(da(e,0))return t;const c=[...t],[u,f]=a;_t(u!=null,\"Invalid first pivot index\"),_t(f!=null,\"Invalid second pivot index\");let m=0;if(s===\"keyboard\"){{const y=e<0?f:u,x=n[y];_t(x,`Panel constraints not found for index ${y}`);const{collapsedSize:w=0,collapsible:S,minSize:C=0}=x;if(S){const R=t[y];if(_t(R!=null,`Previous layout not found for panel index ${y}`),da(R,w)){const _=C-R;ol(_,Math.abs(e))>0&&(e=e<0?0-_:_)}}}{const y=e<0?u:f,x=n[y];_t(x,`No panel constraints found for index ${y}`);const{collapsedSize:w=0,collapsible:S,minSize:C=0}=x;if(S){const R=t[y];if(_t(R!=null,`Previous layout not found for panel index ${y}`),da(R,C)){const _=R-w;ol(_,Math.abs(e))>0&&(e=e<0?0-_:_)}}}}{const y=e<0?1:-1;let x=e<0?f:u,w=0;for(;;){const C=t[x];_t(C!=null,`Previous layout not found for panel index ${x}`);const _=fc({panelConstraints:n,panelIndex:x,size:100})-C;if(w+=_,x+=y,x<0||x>=n.length)break}const S=Math.min(Math.abs(e),Math.abs(w));e=e<0?0-S:S}{let x=e<0?u:f;for(;x>=0&&x<n.length;){const w=Math.abs(e)-Math.abs(m),S=t[x];_t(S!=null,`Previous layout not found for panel index ${x}`);const C=S-w,R=fc({panelConstraints:n,panelIndex:x,size:C});if(!da(S,R)&&(m+=S-R,c[x]=R,m.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?x--:x++}}if(GB(o,c))return o;{const y=e<0?f:u,x=t[y];_t(x!=null,`Previous layout not found for panel index ${y}`);const w=x+m,S=fc({panelConstraints:n,panelIndex:y,size:w});if(c[y]=S,!da(S,w)){let C=w-S,_=e<0?f:u;for(;_>=0&&_<n.length;){const E=c[_];_t(E!=null,`Previous layout not found for panel index ${_}`);const T=E+C,A=fc({panelConstraints:n,panelIndex:_,size:T});if(da(E,A)||(C-=A-E,c[_]=A),da(C,0))break;e>0?_--:_++}}}const v=c.reduce((y,x)=>x+y,0);return da(v,100)?c:o}function YB({layout:e,panelsArray:t,pivotIndices:n}){let a=0,o=100,s=0,c=0;const u=n[0];_t(u!=null,\"No pivot index found\"),t.forEach((y,x)=>{const{constraints:w}=y,{maxSize:S=100,minSize:C=0}=w;x===u?(a=C,o=S):(s+=C,c+=S)});const f=Math.min(o,100-s),m=Math.max(a,100-c),v=e[u];return{valueMax:f,valueMin:m,valueNow:v}}function sd(e,t=document){return Array.from(t.querySelectorAll(`[${Dn.resizeHandleId}][data-panel-group-id=\"${e}\"]`))}function C3(e,t,n=document){const o=sd(e,n).findIndex(s=>s.getAttribute(Dn.resizeHandleId)===t);return o??null}function R3(e,t,n){const a=C3(e,t,n);return a!=null?[a,a+1]:[-1,-1]}function XB(e){return e instanceof HTMLElement?!0:typeof e==\"object\"&&e!==null&&\"tagName\"in e&&\"getAttribute\"in e}function E3(e,t=document){if(XB(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id=\"${e}\"]`);return n||null}function fm(e,t=document){const n=t.querySelector(`[${Dn.resizeHandleId}=\"${e}\"]`);return n||null}function KB(e,t,n,a=document){var o,s,c,u;const f=fm(t,a),m=sd(e,a),v=f?m.indexOf(f):-1,y=(o=(s=n[v])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null,x=(c=(u=n[v+1])===null||u===void 0?void 0:u.id)!==null&&c!==void 0?c:null;return[y,x]}function QB({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:a,panelDataArray:o,panelGroupElement:s,setLayout:c}){h.useRef({didWarnAboutMissingResizeHandle:!1}),nl(()=>{if(!s)return;const u=sd(n,s);for(let f=0;f<o.length-1;f++){const{valueMax:m,valueMin:v,valueNow:y}=YB({layout:a,panelsArray:o,pivotIndices:[f,f+1]}),x=u[f];if(x!=null){const w=o[f];_t(w,`No panel data found for index \"${f}\"`),x.setAttribute(\"aria-controls\",w.id),x.setAttribute(\"aria-valuemax\",\"\"+Math.round(m)),x.setAttribute(\"aria-valuemin\",\"\"+Math.round(v)),x.setAttribute(\"aria-valuenow\",y!=null?\"\"+Math.round(y):\"\")}}return()=>{u.forEach((f,m)=>{f.removeAttribute(\"aria-controls\"),f.removeAttribute(\"aria-valuemax\"),f.removeAttribute(\"aria-valuemin\"),f.removeAttribute(\"aria-valuenow\")})}},[n,a,o,s]),h.useEffect(()=>{if(!s)return;const u=t.current;_t(u,\"Eager values not found\");const{panelDataArray:f}=u,m=E3(n,s);_t(m!=null,`No group found for id \"${n}\"`);const v=sd(n,s);_t(v,`No resize handles found for group id \"${n}\"`);const y=v.map(x=>{const w=x.getAttribute(Dn.resizeHandleId);_t(w,\"Resize handle element has no handle id attribute\");const[S,C]=KB(n,w,f,s);if(S==null||C==null)return()=>{};const R=_=>{if(!_.defaultPrevented)switch(_.key){case\"Enter\":{_.preventDefault();const E=f.findIndex(T=>T.id===S);if(E>=0){const T=f[E];_t(T,`No panel data found for index ${E}`);const A=a[E],{collapsedSize:D=0,collapsible:z,minSize:O=0}=T.constraints;if(A!=null&&z){const H=$u({delta:da(A,D)?O-D:D-A,initialLayout:a,panelConstraints:f.map($=>$.constraints),pivotIndices:R3(n,w,s),prevLayout:a,trigger:\"keyboard\"});a!==H&&c(H)}}break}}};return x.addEventListener(\"keydown\",R),()=>{x.removeEventListener(\"keydown\",R)}});return()=>{y.forEach(x=>x())}},[s,e,t,n,a,o,c])}function mk(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function k3(e,t){const n=e===\"horizontal\",{x:a,y:o}=cm(t);return n?a:o}function ZB(e,t,n,a,o){const s=n===\"horizontal\",c=fm(t,o);_t(c,`No resize handle element found for id \"${t}\"`);const u=c.getAttribute(Dn.groupId);_t(u,\"Resize handle element has no group id attribute\");let{initialCursorPosition:f}=a;const m=k3(n,e),v=E3(u,o);_t(v,`No group element found for id \"${u}\"`);const y=v.getBoundingClientRect(),x=s?y.width:y.height;return(m-f)/x*100}function JB(e,t,n,a,o,s){if(m3(e)){const c=n===\"horizontal\";let u=0;e.shiftKey?u=100:o!=null?u=o:u=10;let f=0;switch(e.key){case\"ArrowDown\":f=c?0:u;break;case\"ArrowLeft\":f=c?-u:0;break;case\"ArrowRight\":f=c?u:0;break;case\"ArrowUp\":f=c?0:-u;break;case\"End\":f=100;break;case\"Home\":f=-100;break}return f}else return a==null?0:ZB(e,t,n,a,s)}function eU({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let a=0,o=100;for(let s=0;s<e.length;s++){const c=n[s];_t(c,`Panel constraints not found for index ${s}`);const{defaultSize:u}=c;u!=null&&(a++,t[s]=u,o-=u)}for(let s=0;s<e.length;s++){const c=n[s];_t(c,`Panel constraints not found for index ${s}`);const{defaultSize:u}=c;if(u!=null)continue;const f=e.length-a,m=o/f;a++,t[s]=m,o-=m}return t}function ac(e,t,n){t.forEach((a,o)=>{const s=e[o];_t(s,`Panel data not found for index ${o}`);const{callbacks:c,constraints:u,id:f}=s,{collapsedSize:m=0,collapsible:v}=u,y=n[f];if(y==null||a!==y){n[f]=a;const{onCollapse:x,onExpand:w,onResize:S}=c;S&&S(a,y),v&&(x||w)&&(w&&(y==null||eo(y,m))&&!eo(a,m)&&w(),x&&(y==null||!eo(y,m))&&eo(a,m)&&x())}})}function Zf(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function tU({defaultSize:e,dragState:t,layout:n,panelData:a,panelIndex:o,precision:s=3}){const c=n[o];let u;return c==null?u=e!=null?e.toFixed(s):\"1\":a.length===1?u=\"1\":u=c.toFixed(s),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:\"hidden\",pointerEvents:t!==null?\"none\":void 0}}function nU(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function pk(e){try{if(typeof localStorage<\"u\")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error(\"localStorage not supported in this environment\")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function _3(e){return`react-resizable-panels:${e}`}function T3(e){return e.map(t=>{const{constraints:n,id:a,idIsFromProps:o,order:s}=t;return o?a:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(\",\")}function M3(e,t){try{const n=_3(e),a=t.getItem(n);if(a){const o=JSON.parse(a);if(typeof o==\"object\"&&o!=null)return o}}catch{}return null}function rU(e,t,n){var a,o;const s=(a=M3(e,n))!==null&&a!==void 0?a:{},c=T3(t);return(o=s[c])!==null&&o!==void 0?o:null}function aU(e,t,n,a,o){var s;const c=_3(e),u=T3(t),f=(s=M3(e,o))!==null&&s!==void 0?s:{};f[u]={expandToSizes:Object.fromEntries(n.entries()),layout:a};try{o.setItem(c,JSON.stringify(f))}catch(m){console.error(m)}}function gk({layout:e,panelConstraints:t}){const n=[...e],a=n.reduce((s,c)=>s+c,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(\", \")}`);if(!da(a,100)&&n.length>0)for(let s=0;s<t.length;s++){const c=n[s];_t(c!=null,`No layout data found for index ${s}`);const u=100/a*c;n[s]=u}let o=0;for(let s=0;s<t.length;s++){const c=n[s];_t(c!=null,`No layout data found for index ${s}`);const u=fc({panelConstraints:t,panelIndex:s,size:c});c!=u&&(o+=c-u,n[s]=u)}if(!da(o,0))for(let s=0;s<t.length;s++){const c=n[s];_t(c!=null,`No layout data found for index ${s}`);const u=c+o,f=fc({panelConstraints:t,panelIndex:s,size:u});if(c!==f&&(o-=f-c,n[s]=f,da(o,0)))break}return n}const iU=100,Fu={getItem:e=>(pk(Fu),Fu.getItem(e)),setItem:(e,t)=>{pk(Fu),Fu.setItem(e,t)}},vk={};function A3({autoSaveId:e=null,children:t,className:n=\"\",direction:a,forwardedRef:o,id:s=null,onLayout:c=null,keyboardResizeBy:u=null,storage:f=Fu,style:m,tagName:v=\"div\",...y}){const x=g1(s),w=h.useRef(null),[S,C]=h.useState(null),[R,_]=h.useState([]),E=WB(),T=h.useRef({}),A=h.useRef(new Map),D=h.useRef(0),z=h.useRef({autoSaveId:e,direction:a,dragState:S,id:x,keyboardResizeBy:u,onLayout:c,storage:f}),O=h.useRef({layout:R,panelDataArray:[],panelDataArrayChanged:!1});h.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),h.useImperativeHandle(o,()=>({getId:()=>z.current.id,getLayout:()=>{const{layout:G}=O.current;return G},setLayout:G=>{const{onLayout:K}=z.current,{layout:te,panelDataArray:fe}=O.current,ne=gk({layout:G,panelConstraints:fe.map(he=>he.constraints)});mk(te,ne)||(_(ne),O.current.layout=ne,K&&K(ne),ac(fe,ne,T.current))}}),[]),nl(()=>{z.current.autoSaveId=e,z.current.direction=a,z.current.dragState=S,z.current.id=x,z.current.onLayout=c,z.current.storage=f}),QB({committedValuesRef:z,eagerValuesRef:O,groupId:x,layout:R,panelDataArray:O.current.panelDataArray,setLayout:_,panelGroupElement:w.current}),h.useEffect(()=>{const{panelDataArray:G}=O.current;if(e){if(R.length===0||R.length!==G.length)return;let K=vk[e];K==null&&(K=nU(aU,iU),vk[e]=K);const te=[...G],fe=new Map(A.current);K(e,te,fe,R,f)}},[e,R,f]),h.useEffect(()=>{});const H=h.useCallback(G=>{const{onLayout:K}=z.current,{layout:te,panelDataArray:fe}=O.current;if(G.constraints.collapsible){const ne=fe.map(Ye=>Ye.constraints),{collapsedSize:he=0,panelSize:Ae,pivotIndices:He}=Gs(fe,G,te);if(_t(Ae!=null,`Panel size not found for panel \"${G.id}\"`),!eo(Ae,he)){A.current.set(G.id,Ae);const tt=sc(fe,G)===fe.length-1?Ae-he:he-Ae,ze=$u({delta:tt,initialLayout:te,panelConstraints:ne,pivotIndices:He,prevLayout:te,trigger:\"imperative-api\"});Zf(te,ze)||(_(ze),O.current.layout=ze,K&&K(ze),ac(fe,ze,T.current))}}},[]),$=h.useCallback((G,K)=>{const{onLayout:te}=z.current,{layout:fe,panelDataArray:ne}=O.current;if(G.constraints.collapsible){const he=ne.map(Ke=>Ke.constraints),{collapsedSize:Ae=0,panelSize:He=0,minSize:Ye=0,pivotIndices:tt}=Gs(ne,G,fe),ze=K??Ye;if(eo(He,Ae)){const Ke=A.current.get(G.id),le=Ke!=null&&Ke>=ze?Ke:ze,re=sc(ne,G)===ne.length-1?He-le:le-He,ie=$u({delta:re,initialLayout:fe,panelConstraints:he,pivotIndices:tt,prevLayout:fe,trigger:\"imperative-api\"});Zf(fe,ie)||(_(ie),O.current.layout=ie,te&&te(ie),ac(ne,ie,T.current))}}},[]),V=h.useCallback(G=>{const{layout:K,panelDataArray:te}=O.current,{panelSize:fe}=Gs(te,G,K);return _t(fe!=null,`Panel size not found for panel \"${G.id}\"`),fe},[]),I=h.useCallback((G,K)=>{const{panelDataArray:te}=O.current,fe=sc(te,G);return tU({defaultSize:K,dragState:S,layout:R,panelData:te,panelIndex:fe})},[S,R]),M=h.useCallback(G=>{const{layout:K,panelDataArray:te}=O.current,{collapsedSize:fe=0,collapsible:ne,panelSize:he}=Gs(te,G,K);return _t(he!=null,`Panel size not found for panel \"${G.id}\"`),ne===!0&&eo(he,fe)},[]),q=h.useCallback(G=>{const{layout:K,panelDataArray:te}=O.current,{collapsedSize:fe=0,collapsible:ne,panelSize:he}=Gs(te,G,K);return _t(he!=null,`Panel size not found for panel \"${G.id}\"`),!ne||ol(he,fe)>0},[]),B=h.useCallback(G=>{const{panelDataArray:K}=O.current;K.push(G),K.sort((te,fe)=>{const ne=te.order,he=fe.order;return ne==null&&he==null?0:ne==null?-1:he==null?1:ne-he}),O.current.panelDataArrayChanged=!0,E()},[E]);nl(()=>{if(O.current.panelDataArrayChanged){O.current.panelDataArrayChanged=!1;const{autoSaveId:G,onLayout:K,storage:te}=z.current,{layout:fe,panelDataArray:ne}=O.current;let he=null;if(G){const He=rU(G,ne,te);He&&(A.current=new Map(Object.entries(He.expandToSizes)),he=He.layout)}he==null&&(he=eU({panelDataArray:ne}));const Ae=gk({layout:he,panelConstraints:ne.map(He=>He.constraints)});mk(fe,Ae)||(_(Ae),O.current.layout=Ae,K&&K(Ae),ac(ne,Ae,T.current))}}),nl(()=>{const G=O.current;return()=>{G.layout=[]}},[]);const j=h.useCallback(G=>{let K=!1;const te=w.current;return te&&window.getComputedStyle(te,null).getPropertyValue(\"direction\")===\"rtl\"&&(K=!0),function(ne){ne.preventDefault();const he=w.current;if(!he)return()=>null;const{direction:Ae,dragState:He,id:Ye,keyboardResizeBy:tt,onLayout:ze}=z.current,{layout:Ke,panelDataArray:le}=O.current,{initialLayout:ke}=He??{},re=R3(Ye,G,he);let ie=JB(ne,G,Ae,He,tt,he);const be=Ae===\"horizontal\";be&&K&&(ie=-ie);const Ne=le.map(Be=>Be.constraints),qe=$u({delta:ie,initialLayout:ke??Ke,panelConstraints:Ne,pivotIndices:re,prevLayout:Ke,trigger:m3(ne)?\"keyboard\":\"mouse-or-touch\"}),Oe=!Zf(Ke,qe);(p3(ne)||g3(ne))&&D.current!=ie&&(D.current=ie,!Oe&&ie!==0?be?Ay(G,ie<0?y3:b3):Ay(G,ie<0?x3:w3):Ay(G,0)),Oe&&(_(qe),O.current.layout=qe,ze&&ze(qe),ac(le,qe,T.current))}},[]),F=h.useCallback((G,K)=>{const{onLayout:te}=z.current,{layout:fe,panelDataArray:ne}=O.current,he=ne.map(Ke=>Ke.constraints),{panelSize:Ae,pivotIndices:He}=Gs(ne,G,fe);_t(Ae!=null,`Panel size not found for panel \"${G.id}\"`);const tt=sc(ne,G)===ne.length-1?Ae-K:K-Ae,ze=$u({delta:tt,initialLayout:fe,panelConstraints:he,pivotIndices:He,prevLayout:fe,trigger:\"imperative-api\"});Zf(fe,ze)||(_(ze),O.current.layout=ze,te&&te(ze),ac(ne,ze,T.current))},[]),U=h.useCallback((G,K)=>{const{layout:te,panelDataArray:fe}=O.current,{collapsedSize:ne=0,collapsible:he}=K,{collapsedSize:Ae=0,collapsible:He,maxSize:Ye=100,minSize:tt=0}=G.constraints,{panelSize:ze}=Gs(fe,G,te);ze!=null&&(he&&He&&eo(ze,ne)?eo(ne,Ae)||F(G,Ae):ze<tt?F(G,tt):ze>Ye&&F(G,Ye))},[F]),W=h.useCallback((G,K)=>{const{direction:te}=z.current,{layout:fe}=O.current;if(!w.current)return;const ne=fm(G,w.current);_t(ne,`Drag handle element not found for id \"${G}\"`);const he=k3(te,K);C({dragHandleId:G,dragHandleRect:ne.getBoundingClientRect(),initialCursorPosition:he,initialLayout:fe})},[]),ee=h.useCallback(()=>{C(null)},[]),oe=h.useCallback(G=>{const{panelDataArray:K}=O.current,te=sc(K,G);te>=0&&(K.splice(te,1),delete T.current[G.id],O.current.panelDataArrayChanged=!0,E())},[E]),P=h.useMemo(()=>({collapsePanel:H,direction:a,dragState:S,expandPanel:$,getPanelSize:V,getPanelStyle:I,groupId:x,isPanelCollapsed:M,isPanelExpanded:q,reevaluatePanelConstraints:U,registerPanel:B,registerResizeHandle:j,resizePanel:F,startDragging:W,stopDragging:ee,unregisterPanel:oe,panelGroupElement:w.current}),[H,S,a,$,V,I,x,M,q,U,B,j,F,W,ee,oe]),Y={display:\"flex\",flexDirection:a===\"horizontal\"?\"row\":\"column\",height:\"100%\",overflow:\"hidden\",width:\"100%\"};return h.createElement(lm.Provider,{value:P},h.createElement(v,{...y,children:t,className:n,id:s,ref:w,style:{...Y,...m},[Dn.group]:\"\",[Dn.groupDirection]:a,[Dn.groupId]:x}))}const N3=h.forwardRef((e,t)=>h.createElement(A3,{...e,forwardedRef:t}));A3.displayName=\"PanelGroup\";N3.displayName=\"forwardRef(PanelGroup)\";function sc(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Gs(e,t,n){const a=sc(e,t),s=a===e.length-1?[a-1,a]:[a,a+1],c=n[a];return{...t.constraints,panelSize:c,pivotIndices:s}}function oU({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:a}){h.useEffect(()=>{if(e||n==null||a==null)return;const o=fm(t,a);if(o==null)return;const s=c=>{if(!c.defaultPrevented)switch(c.key){case\"ArrowDown\":case\"ArrowLeft\":case\"ArrowRight\":case\"ArrowUp\":case\"End\":case\"Home\":{c.preventDefault(),n(c);break}case\"F6\":{c.preventDefault();const u=o.getAttribute(Dn.groupId);_t(u,`No group element found for id \"${u}\"`);const f=sd(u,a),m=C3(u,t,a);_t(m!==null,`No resize element found for id \"${t}\"`);const v=c.shiftKey?m>0?m-1:f.length-1:m+1<f.length?m+1:0;f[v].focus();break}}};return o.addEventListener(\"keydown\",s),()=>{o.removeEventListener(\"keydown\",s)}},[a,e,t,n])}function O3({children:e=null,className:t=\"\",disabled:n=!1,hitAreaMargins:a,id:o,onBlur:s,onClick:c,onDragging:u,onFocus:f,onPointerDown:m,onPointerUp:v,style:y={},tabIndex:x=0,tagName:w=\"div\",...S}){var C,R;const _=h.useRef(null),E=h.useRef({onClick:c,onDragging:u,onPointerDown:m,onPointerUp:v});h.useEffect(()=>{E.current.onClick=c,E.current.onDragging=u,E.current.onPointerDown=m,E.current.onPointerUp=v});const T=h.useContext(lm);if(T===null)throw Error(\"PanelResizeHandle components must be rendered within a PanelGroup container\");const{direction:A,groupId:D,registerResizeHandle:z,startDragging:O,stopDragging:H,panelGroupElement:$}=T,V=g1(o),[I,M]=h.useState(\"inactive\"),[q,B]=h.useState(!1),[j,F]=h.useState(null),U=h.useRef({state:I});nl(()=>{U.current.state=I}),h.useEffect(()=>{if(n)F(null);else{const P=z(V);F(()=>P)}},[n,V,z]);const W=(C=a?.coarse)!==null&&C!==void 0?C:15,ee=(R=a?.fine)!==null&&R!==void 0?R:5;h.useEffect(()=>{if(n||j==null)return;const P=_.current;_t(P,\"Element ref not attached\");let Y=!1;return UB(V,P,A,{coarse:W,fine:ee},(K,te,fe)=>{if(!te){M(\"inactive\");return}switch(K){case\"down\":{M(\"drag\"),Y=!1,_t(fe,'Expected event to be defined for \"down\" action'),O(V,fe);const{onDragging:ne,onPointerDown:he}=E.current;ne?.(!0),he?.();break}case\"move\":{const{state:ne}=U.current;Y=!0,ne!==\"drag\"&&M(\"hover\"),_t(fe,'Expected event to be defined for \"move\" action'),j(fe);break}case\"up\":{M(\"hover\"),H();const{onClick:ne,onDragging:he,onPointerUp:Ae}=E.current;he?.(!1),Ae?.(),Y||ne?.();break}}})},[W,A,n,ee,z,V,j,O,H]),oU({disabled:n,handleId:V,resizeHandler:j,panelGroupElement:$});const oe={touchAction:\"none\",userSelect:\"none\"};return h.createElement(w,{...S,children:e,className:t,id:o,onBlur:()=>{B(!1),s?.()},onFocus:()=>{B(!0),f?.()},ref:_,role:\"separator\",style:{...oe,...y},tabIndex:x,[Dn.groupDirection]:A,[Dn.groupId]:D,[Dn.resizeHandle]:\"\",[Dn.resizeHandleActive]:I===\"drag\"?\"pointer\":q?\"keyboard\":void 0,[Dn.resizeHandleEnabled]:!n,[Dn.resizeHandleId]:V,[Dn.resizeHandleState]:I})}O3.displayName=\"PanelResizeHandle\";const y1=({className:e,...t})=>g.jsx(N3,{className:Fe(\"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\",e),...t}),kc=h3,b1=({withHandle:e,className:t,...n})=>g.jsx(O3,{className:Fe(\"relative flex w-px items-center justify-center bg-stone-200 dark:bg-[#3e3e42] after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-stone-950 focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90 dark:focus-visible:ring-stone-300\",t),...n,children:e&&g.jsx(\"div\",{className:\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border border-stone-200 bg-stone-200 dark:border-[#3e3e42] dark:bg-[#3e3e42]\",children:g.jsx(\"svg\",{className:\"h-2.5 w-2.5\",width:\"15\",height:\"15\",viewBox:\"0 0 15 15\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:g.jsx(\"path\",{d:\"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z\",fill:\"currentColor\",fillRule:\"evenodd\",clipRule:\"evenodd\"})})})});function yk(){const[e,t]=h.useState(\"\"),[n,a]=h.useState(\"\"),{selectedComponent:o}=gb(),s=fs(H5,o?{componentPath:o}:{}),c=s??[],u=s===void 0;h.useEffect(()=>{t(\"\")},[o]),h.useEffect(()=>{c.length>0&&!e&&t(c[0].name)},[c,e]);const f=c.filter(m=>m.name.toLowerCase().includes(n.toLowerCase()));return g.jsxs(y1,{direction:\"horizontal\",className:\"h-full\",children:[g.jsx(kc,{defaultSize:25,minSize:15,maxSize:50,children:g.jsxs(\"div\",{className:\"h-full border-r border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] flex flex-col\",children:[g.jsxs(\"div\",{className:\"p-4 border-b border-stone-200 dark:border-[#3e3e42]\",children:[g.jsx(\"div\",{className:\"flex items-center gap-2 mb-3\",children:g.jsx(\"h3\",{className:\"text-sm font-semibold text-stone-900 dark:text-[#cccccc] flex-1\",children:\"Tables\"})}),g.jsxs(\"div\",{className:\"relative\",children:[g.jsx(fd,{className:\"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-stone-400 dark:text-[#969696] z-10\"}),g.jsx(Eh,{type:\"text\",placeholder:\"Search tables...\",value:n,onChange:m=>a(m.target.value),className:\"pl-9\"})]})]}),g.jsx(\"div\",{className:\"flex-1 overflow-auto\",children:u?g.jsx(\"div\",{className:\"flex items-center justify-center py-8\",children:g.jsx(hi,{className:\"h-5 w-5 animate-spin text-stone-400 dark:text-[#969696]\"})}):f.length===0?g.jsxs(\"div\",{className:\"p-8 text-center\",children:[g.jsx(Fy,{className:\"h-12 w-12 text-stone-300 dark:text-[#6a6a6a] mx-auto mb-3\"}),g.jsx(\"p\",{className:\"text-sm text-stone-500 dark:text-[#969696]\",children:n?\"No tables found\":\"No tables available\"}),g.jsx(\"p\",{className:\"text-xs text-stone-400 dark:text-[#6a6a6a] mt-1\",children:\"Tables will appear here when created\"})]}):g.jsx(\"div\",{className:\"py-2\",children:f.map(m=>{const v=e===m.name;return g.jsxs(\"button\",{onClick:()=>t(m.name),className:Fe(\"w-full flex items-center gap-2 px-4 py-2.5 text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] transition-colors\",v&&\"bg-blue-50 dark:bg-[#37373d] hover:bg-blue-50 dark:hover:bg-[#37373d]\"),children:[g.jsx(Fy,{className:Fe(\"h-4 w-4\",v?\"text-blue-600 dark:text-[#cccccc]\":\"text-stone-400 dark:text-[#969696]\")}),g.jsxs(\"div\",{className:\"flex-1 min-w-0\",children:[g.jsx(\"span\",{className:Fe(\"text-sm block truncate\",v?\"text-blue-600 dark:text-[#cccccc] font-medium\":\"text-stone-700 dark:text-[#cccccc]\"),children:m.name}),g.jsxs(\"span\",{className:\"text-xs text-stone-400 dark:text-[#969696]\",children:[m.documentCount,\" \",m.documentCount===1?\"record\":\"records\"]})]})]},m.name)})})})]})}),g.jsx(b1,{withHandle:!0}),g.jsx(kc,{defaultSize:75,className:\"h-full\",children:e?g.jsx(\"div\",{className:\"h-full flex flex-col bg-stone-50 dark:bg-[#1e1e1e]\",children:g.jsx(OB,{selectedTable:e,componentPath:o||void 0})}):g.jsx(\"div\",{className:\"h-full flex items-center justify-center bg-stone-50 dark:bg-[#1e1e1e]\",children:g.jsxs(\"div\",{className:\"text-center\",children:[g.jsx(hb,{className:\"h-12 w-12 text-stone-300 dark:text-[#6a6a6a] mx-auto mb-4\"}),g.jsx(\"h3\",{className:\"text-lg font-medium text-stone-900 dark:text-[#cccccc] mb-2\",children:\"No table selected\"}),g.jsx(\"p\",{className:\"text-sm text-stone-500 dark:text-[#969696]\",children:\"Select a table from the sidebar to explore its data\"})]})})})]})}const Ys=h.forwardRef(({className:e,...t},n)=>g.jsx(\"div\",{ref:n,className:Fe(\"rounded-xl border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] text-stone-950 dark:text-[#cccccc] shadow-sm\",e),...t}));Ys.displayName=\"Card\";const sU=h.forwardRef(({className:e,...t},n)=>g.jsx(\"div\",{ref:n,className:Fe(\"flex flex-col space-y-1.5 p-6\",e),...t}));sU.displayName=\"CardHeader\";const lU=h.forwardRef(({className:e,...t},n)=>g.jsx(\"h3\",{ref:n,className:Fe(\"font-semibold leading-none tracking-tight\",e),...t}));lU.displayName=\"CardTitle\";const cU=h.forwardRef(({className:e,...t},n)=>g.jsx(\"p\",{ref:n,className:Fe(\"text-sm text-stone-500 dark:text-[#969696]\",e),...t}));cU.displayName=\"CardDescription\";const uU=h.forwardRef(({className:e,...t},n)=>g.jsx(\"div\",{ref:n,className:Fe(\"p-6 pt-0\",e),...t}));uU.displayName=\"CardContent\";const dU=h.forwardRef(({className:e,...t},n)=>g.jsx(\"div\",{ref:n,className:Fe(\"flex items-center p-6 pt-0\",e),...t}));dU.displayName=\"CardFooter\";function fU(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function hU(e){const t=mU(e),n=h.forwardRef((a,o)=>{const{children:s,...c}=a,u=h.Children.toArray(s),f=u.find(gU);if(f){const m=f.props.children,v=u.map(y=>y===f?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...c,ref:o,children:h.isValidElement(m)?h.cloneElement(m,void 0,v):null})}return g.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function mU(e){const t=h.forwardRef((n,a)=>{const{children:o,...s}=n;if(h.isValidElement(o)){const c=yU(o),u=vU(s,o.props);return o.type!==h.Fragment&&(u.ref=a?er(a,c):c),h.cloneElement(o,u)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pU=Symbol(\"radix.slottable\");function gU(e){return h.isValidElement(e)&&typeof e.type==\"function\"&&\"__radixId\"in e.type&&e.type.__radixId===pU}function vU(e,t){const n={...t};for(const a in t){const o=e[a],s=t[a];/^on[A-Z]/.test(a)?o&&s?n[a]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[a]=o):a===\"style\"?n[a]={...o,...s}:a===\"className\"&&(n[a]=[o,s].filter(Boolean).join(\" \"))}return{...e,...n}}function yU(e){let t=Object.getOwnPropertyDescriptor(e.props,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,\"ref\")?.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bU=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"select\",\"span\",\"svg\",\"ul\"],D3=bU.reduce((e,t)=>{const n=hU(`Primitive.${t}`),a=h.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),g.jsx(f,{...u,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),hm=\"Switch\",[xU,rG]=jh(hm),[wU,SU]=xU(hm),j3=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:s,required:c,disabled:u,value:f=\"on\",onCheckedChange:m,form:v,...y}=e,[x,w]=h.useState(null),S=vn(t,T=>w(T)),C=h.useRef(!1),R=x?v||!!x.closest(\"form\"):!0,[_,E]=Nc({prop:o,defaultProp:s??!1,onChange:m,caller:hm});return g.jsxs(wU,{scope:n,checked:_,disabled:u,children:[g.jsx(D3.button,{type:\"button\",role:\"switch\",\"aria-checked\":_,\"aria-required\":c,\"data-state\":I3(_),\"data-disabled\":u?\"\":void 0,disabled:u,value:f,...y,ref:S,onClick:it(e.onClick,T=>{E(A=>!A),R&&(C.current=T.isPropagationStopped(),C.current||T.stopPropagation())})}),R&&g.jsx(L3,{control:x,bubbles:!C.current,name:a,value:f,checked:_,required:c,disabled:u,form:v,style:{transform:\"translateX(-100%)\"}})]})});j3.displayName=hm;var z3=\"SwitchThumb\",P3=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,o=SU(z3,n);return g.jsx(D3.span,{\"data-state\":I3(o.checked),\"data-disabled\":o.disabled?\"\":void 0,...a,ref:t})});P3.displayName=z3;var CU=\"SwitchBubbleInput\",L3=h.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{const c=h.useRef(null),u=vn(c,s),f=fU(n),m=N_(t);return h.useEffect(()=>{const v=c.current;if(!v)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,\"checked\").set;if(f!==n&&w){const S=new Event(\"click\",{bubbles:a});w.call(v,n),v.dispatchEvent(S)}},[f,n,a]),g.jsx(\"input\",{type:\"checkbox\",\"aria-hidden\":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...o.style,...m,position:\"absolute\",pointerEvents:\"none\",opacity:0,margin:0}})});L3.displayName=CU;function I3(e){return e?\"checked\":\"unchecked\"}var H3=j3,RU=P3;const q3=h.forwardRef(({className:e,...t},n)=>g.jsx(H3,{className:Fe(\"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-orange-600 dark:data-[state=checked]:bg-[#569cd6] data-[state=unchecked]:bg-stone-200 dark:data-[state=unchecked]:bg-[#3e3e42] dark:focus-visible:ring-stone-300 dark:focus-visible:ring-offset-[#1e1e1e]\",e),...t,ref:n,children:g.jsx(RU,{className:Fe(\"pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\")})}));q3.displayName=H3.displayName;function EU(){const[e,t]=h.useState(\"\"),[n,a]=h.useState(null),[o,s]=h.useState(\"statistics\"),[c,u]=h.useState(new Set),[f,m]=h.useState(\"{}\"),[v,y]=h.useState(!1),[x,w]=h.useState(null),[S,C]=h.useState(null),[R,_]=h.useState(!1),[E,T]=h.useState(!1),{selectedComponent:A}=gb(),[D,z]=h.useState(\"{}\"),[O,H]=h.useState(\"\"),[$,V]=h.useState(null),[I,M]=h.useState(null),q=fs(K5,A?{componentPath:A}:{}),B=q??[],j=q===void 0,F=ts(Q5),U=B.reduce((K,te)=>{const fe=te.componentPath?`${te.componentPath}/${te.module}`:te.module;return K[fe]||(K[fe]=[]),K[fe].push(te),K},{}),W=Object.keys(U).reduce((K,te)=>{const fe=U[te].filter(ne=>ne.name.toLowerCase().includes(e.toLowerCase())||ne.path.toLowerCase().includes(e.toLowerCase()));return fe.length>0&&(K[te]=fe),K},{}),ee=K=>{const te=new Set(c);te.has(K)?te.delete(K):te.add(K),u(te)},oe=async()=>{if(n){_(!0),C(null),w(null),V(null),M(null);try{if(n.type===\"http\"){const K=n.httpMethod||\"GET\",te=n.httpPath||\"/\",ne=`${typeof window<\"u\"&&window.location.pathname.startsWith(\"/_dashboard\")?`${window.location.protocol}//${window.location.host}`:\"http://localhost:8799\"}${te}`;let he={};try{const Ke=JSON.parse(D);typeof Ke==\"object\"&&Ke!==null&&(he=Ke)}catch{}const Ae=K!==\"GET\"&&K!==\"HEAD\"&&O.trim();if(Ae&&!he[\"Content-Type\"]&&!he[\"content-type\"])try{JSON.parse(O),he[\"Content-Type\"]=\"application/json\"}catch{he[\"Content-Type\"]=\"text/plain\"}const He=await fetch(ne,{method:K,headers:he,body:Ae?O:void 0});V(He.status);const Ye={};He.headers.forEach((Ke,le)=>{Ye[le]=Ke}),M(Ye);const tt=He.headers.get(\"content-type\")||\"\";let ze;tt.includes(\"application/json\")?ze=await He.json():ze=await He.text(),w(ze)}else{const K=JSON.parse(f),te=await F({functionPath:n.path,args:K,functionType:n.type,componentPath:n.componentPath});w(te)}}catch(K){C(K.message||\"Execution failed\")}finally{_(!1)}}},P=K=>{navigator.clipboard.writeText(K),T(!0),setTimeout(()=>T(!1),2e3)},Y=K=>{switch(K){case\"query\":return\"bg-blue-100 dark:bg-[#3e3e42] text-blue-700 dark:text-[#569cd6]\";case\"mutation\":return\"bg-orange-100 dark:bg-[#3e3e42] text-orange-700 dark:text-[#ce9178]\";case\"action\":return\"bg-purple-100 dark:bg-[#3e3e42] text-purple-700 dark:text-[#c586c0]\";default:return\"bg-stone-100 text-stone-700\"}},G=K=>{switch(K){case\"query\":return{letter:\"Q\",color:\"text-blue-600 dark:text-[#569cd6]\",bg:\"bg-blue-100 dark:bg-blue-500/20\"};case\"mutation\":return{letter:\"M\",color:\"text-orange-600 dark:text-[#ce9178]\",bg:\"bg-orange-100 dark:bg-orange-500/20\"};case\"action\":return{letter:\"A\",color:\"text-purple-600 dark:text-[#c586c0]\",bg:\"bg-purple-100 dark:bg-purple-500/20\"};case\"http\":return{letter:\"H\",color:\"text-green-600 dark:text-[#4ec9b0]\",bg:\"bg-green-100 dark:bg-green-500/20\"};default:return{letter:\"?\",color:\"text-stone-500 dark:text-[#969696]\",bg:\"bg-stone-100 dark:bg-stone-500/20\"}}};return g.jsxs(y1,{direction:\"horizontal\",className:\"h-full\",children:[g.jsx(kc,{defaultSize:25,minSize:15,maxSize:50,children:g.jsxs(\"div\",{className:\"h-full border-r border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] flex flex-col\",children:[g.jsx(\"div\",{className:\"p-4 border-b border-stone-200 dark:border-[#3e3e42]\",children:g.jsxs(\"div\",{className:\"relative\",children:[g.jsx(fd,{className:\"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-stone-400 dark:text-[#969696]\"}),g.jsx(\"input\",{type:\"text\",placeholder:\"Search functions...\",value:e,onChange:K=>t(K.target.value),className:\"w-full pl-9 pr-3 py-2 text-sm border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#1e1e1e] text-stone-900 dark:text-[#cccccc] placeholder:text-stone-400 dark:placeholder:text-[#6a6a6a] rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-[#569cd6]\"})]})}),g.jsx(\"div\",{className:\"flex-1 overflow-auto\",children:j?g.jsx(\"div\",{className:\"flex items-center justify-center py-8\",children:g.jsx(hi,{className:\"h-5 w-5 animate-spin text-stone-400 dark:text-[#969696]\"})}):Object.keys(W).length===0?g.jsxs(\"div\",{className:\"p-8 text-center\",children:[g.jsx(Hy,{className:\"h-12 w-12 text-stone-300 dark:text-[#6a6a6a] mx-auto mb-3\"}),g.jsx(\"p\",{className:\"text-sm text-stone-500 dark:text-[#969696]\",children:e?\"No functions found\":\"No functions available\"}),g.jsx(\"p\",{className:\"text-xs text-stone-400 dark:text-[#969696] mt-1\",children:\"Functions will appear here when defined\"})]}):g.jsx(\"div\",{className:\"py-2\",children:Object.keys(W).sort().map(K=>{const te=c.has(K),fe=W[K],ne=K.includes(\"/\")?K:fe[0]?.module??K;return g.jsxs(\"div\",{children:[g.jsxs(\"button\",{onClick:()=>ee(K),className:\"w-full flex items-center gap-2 px-4 py-2 hover:bg-stone-50 dark:hover:bg-[#2a2a2b] text-left\",children:[te?g.jsx(el,{className:\"h-4 w-4 text-stone-400 dark:text-[#969696]\"}):g.jsx(dd,{className:\"h-4 w-4 text-stone-400 dark:text-[#969696]\"}),g.jsx(\"span\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc]\",children:ne}),g.jsx(\"span\",{className:\"text-xs text-stone-400 dark:text-[#969696] ml-auto\",children:fe.length})]}),te&&g.jsx(\"div\",{className:\"ml-2\",children:fe.map(he=>{const{letter:Ae,color:He,bg:Ye}=G(he.type),tt=n?.path===he.path,ze=he.isInternal||he.visibility===\"internal\",Ke=he.type===\"http\"&&he.httpMethod&&he.httpPath?`${he.httpMethod} ${he.httpPath}`:he.name;return g.jsxs(\"button\",{onClick:()=>a(he),className:Fe(\"w-full flex items-center gap-2 px-4 py-2 text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] transition-colors\",tt&&\"bg-blue-50 dark:bg-[#37373d] hover:bg-blue-50 dark:hover:bg-[#37373d]\"),children:[g.jsx(\"span\",{className:Fe(\"text-xs font-semibold w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0\",He,Ye),children:Ae}),g.jsx(\"span\",{className:Fe(\"text-sm flex-1\",tt?\"text-blue-600 dark:text-[#cccccc] font-medium\":\"text-stone-700 dark:text-[#cccccc]\"),children:Ke}),ze&&g.jsx(GD,{className:\"h-3 w-3 text-stone-400 dark:text-[#969696] flex-shrink-0\"})]},he.path)})})]},K)})})})]})}),g.jsx(b1,{withHandle:!0}),g.jsx(kc,{defaultSize:75,className:\"h-full\",children:g.jsx(\"div\",{className:\"h-full flex flex-col bg-stone-50 dark:bg-[#2d2d30] dark:bg-[#1e1e1e]\",children:n?g.jsxs(g.Fragment,{children:[g.jsx(\"div\",{className:\"border-b border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] px-6 py-4\",children:g.jsxs(\"div\",{className:\"flex items-center justify-between\",children:[g.jsxs(\"div\",{className:\"flex items-center gap-3\",children:[g.jsx(\"h2\",{className:\"text-xl font-semibold text-stone-900 dark:text-[#cccccc]\",children:n.name}),g.jsx(\"span\",{className:Fe(\"text-xs px-2 py-1 rounded font-medium\",Y(n.type)),children:n.type}),n.componentPath&&g.jsx(\"span\",{className:\"text-xs px-2 py-1 rounded bg-stone-200 dark:bg-[#3e3e42] dark:bg-[#3e3e42] text-stone-600 dark:text-[#cccccc]\",children:n.componentPath}),g.jsx(\"span\",{className:\"text-sm text-stone-500 dark:text-[#969696] font-mono\",children:n.path})]}),g.jsxs(br,{onClick:oe,disabled:R,children:[R?g.jsx(hi,{className:\"h-4 w-4 animate-spin mr-2\"}):n.type===\"http\"?g.jsx(e5,{className:\"h-4 w-4 mr-2\"}):g.jsx(a_,{className:\"h-4 w-4 mr-2\"}),n.type===\"http\"?\"Send Request\":\"Run Function\"]})]})}),g.jsx(\"div\",{className:\"border-b border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] px-6\",children:g.jsxs(\"div\",{className:\"flex gap-1\",children:[g.jsx(\"button\",{onClick:()=>s(\"statistics\"),className:Fe(\"px-4 py-3 text-sm font-medium border-b-2 transition-colors\",o===\"statistics\"?\"border-blue-600 dark:border-[#569cd6] text-blue-600 dark:text-[#569cd6]\":\"border-transparent text-stone-500 dark:text-[#969696] hover:text-stone-700 dark:hover:text-[#cccccc]\"),children:\"Statistics\"}),g.jsx(\"button\",{onClick:()=>s(\"code\"),className:Fe(\"px-4 py-3 text-sm font-medium border-b-2 transition-colors\",o===\"code\"?\"border-blue-600 dark:border-[#569cd6] text-blue-600 dark:text-[#569cd6]\":\"border-transparent text-stone-500 dark:text-[#969696] hover:text-stone-700 dark:hover:text-[#cccccc]\"),children:\"Code\"}),g.jsx(\"button\",{onClick:()=>s(\"logs\"),className:Fe(\"px-4 py-3 text-sm font-medium border-b-2 transition-colors\",o===\"logs\"?\"border-blue-600 dark:border-[#569cd6] text-blue-600 dark:text-[#569cd6]\":\"border-transparent text-stone-500 dark:text-[#969696] hover:text-stone-700 dark:hover:text-[#cccccc]\"),children:\"Logs\"})]})}),g.jsxs(\"div\",{className:\"flex-1 overflow-auto\",children:[o===\"statistics\"&&g.jsxs(\"div\",{className:\"p-6\",children:[g.jsxs(\"div\",{className:\"grid grid-cols-2 gap-4 mb-6\",children:[g.jsxs(Ys,{className:\"p-4\",children:[g.jsx(\"h3\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc] mb-3\",children:\"Function Calls\"}),g.jsx(\"div\",{className:\"h-32 flex items-center justify-center bg-stone-50 dark:bg-[#2d2d30] dark:bg-[#1e1e1e] rounded\",children:g.jsx(\"p\",{className:\"text-xs text-stone-400 dark:text-[#969696]\",children:\"No data available\"})})]}),g.jsxs(Ys,{className:\"p-4\",children:[g.jsx(\"h3\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc] mb-3\",children:\"Errors\"}),g.jsx(\"div\",{className:\"h-32 flex items-center justify-center bg-stone-50 dark:bg-[#2d2d30] dark:bg-[#1e1e1e] rounded\",children:g.jsx(\"p\",{className:\"text-xs text-stone-400 dark:text-[#969696]\",children:\"No data available\"})})]})]}),g.jsxs(\"div\",{className:\"grid grid-cols-2 gap-4\",children:[g.jsxs(Ys,{className:\"p-4\",children:[g.jsx(\"h3\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc] mb-2\",children:\"Execution Time\"}),g.jsx(\"p\",{className:\"text-2xl font-semibold text-stone-900 dark:text-[#cccccc]\",children:\"-\"}),g.jsx(\"p\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"Average duration\"})]}),g.jsxs(Ys,{className:\"p-4\",children:[g.jsx(\"h3\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc] mb-2\",children:\"Cache Hit Rate\"}),g.jsx(\"p\",{className:\"text-2xl font-semibold text-stone-900 dark:text-[#cccccc]\",children:\"-\"}),g.jsx(\"p\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"Percentage cached\"})]})]})]}),o===\"code\"&&g.jsx(\"div\",{className:\"p-6\",children:g.jsx(Ys,{className:\"p-4\",children:g.jsx(\"p\",{className:\"text-sm text-stone-500 dark:text-[#969696]\",children:\"Function code viewing coming soon\"})})}),o===\"logs\"&&g.jsx(\"div\",{className:\"p-6\",children:g.jsx(Ys,{className:\"p-4\",children:g.jsx(\"p\",{className:\"text-sm text-stone-500 dark:text-[#969696]\",children:\"Function execution logs coming soon\"})})})]}),g.jsx(\"div\",{className:\"border-t border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526]\",style:{height:\"300px\"},children:g.jsxs(\"div\",{className:\"h-full flex\",children:[g.jsxs(\"div\",{className:\"flex-1 border-r border-stone-200 dark:border-[#3e3e42] flex flex-col\",children:[g.jsxs(\"div\",{className:\"px-4 py-2 border-b border-stone-200 dark:border-[#3e3e42] flex items-center justify-between\",children:[g.jsx(\"span\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc]\",children:n.type===\"http\"?\"HTTP Request\":\"Function Input\"}),n.type!==\"http\"&&g.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[g.jsx(q3,{id:\"act-as-user\",checked:v,onCheckedChange:y}),g.jsx(ns,{htmlFor:\"act-as-user\",className:\"text-xs cursor-pointer\",children:\"Act as a user\"})]})]}),g.jsx(\"div\",{className:\"flex-1 p-4 overflow-auto bg-white dark:bg-[#1e1e1e]\",children:n.type===\"http\"?g.jsxs(g.Fragment,{children:[g.jsxs(\"div\",{className:\"mb-3 flex items-center gap-2\",children:[g.jsx(\"span\",{className:Fe(\"text-xs font-bold px-2 py-1 rounded\",n.httpMethod===\"GET\"?\"bg-green-100 dark:bg-green-500/20 text-green-700 dark:text-[#4ec9b0]\":n.httpMethod===\"POST\"?\"bg-blue-100 dark:bg-blue-500/20 text-blue-700 dark:text-[#569cd6]\":n.httpMethod===\"PUT\"?\"bg-orange-100 dark:bg-orange-500/20 text-orange-700 dark:text-[#ce9178]\":n.httpMethod===\"DELETE\"?\"bg-red-100 dark:bg-red-500/20 text-red-700 dark:text-[#f48771]\":\"bg-stone-100 dark:bg-stone-500/20 text-stone-700 dark:text-[#cccccc]\"),children:n.httpMethod||\"GET\"}),g.jsx(\"span\",{className:\"text-sm font-mono text-stone-700 dark:text-[#cccccc]\",children:n.httpPath||\"/\"})]}),g.jsxs(\"div\",{className:\"space-y-3\",children:[g.jsxs(\"div\",{className:\"space-y-1\",children:[g.jsx(ns,{className:\"text-xs\",children:\"Headers (JSON)\"}),g.jsx(Xu,{value:D,onChange:K=>z(K.target.value),className:\"w-full h-16 text-xs font-mono resize-none\",placeholder:'{\"Authorization\": \"Bearer ...\"}'})]}),n.httpMethod!==\"GET\"&&n.httpMethod!==\"HEAD\"&&g.jsxs(\"div\",{className:\"space-y-1\",children:[g.jsx(ns,{className:\"text-xs\",children:\"Body\"}),g.jsx(Xu,{value:O,onChange:K=>H(K.target.value),className:\"w-full h-20 text-xs font-mono resize-none\",placeholder:'{\"key\": \"value\"}'})]})]})]}):g.jsxs(g.Fragment,{children:[g.jsx(\"div\",{className:\"mb-3\",children:g.jsx(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] mb-1 font-mono\",children:n.path})}),g.jsxs(\"div\",{className:\"space-y-2\",children:[g.jsx(ns,{htmlFor:\"function-args\",className:\"text-xs\",children:\"Arguments\"}),g.jsx(Xu,{id:\"function-args\",value:f,onChange:K=>m(K.target.value),className:\"w-full h-32 text-sm font-mono resize-none\",placeholder:\"{}\"})]})]})})]}),g.jsxs(\"div\",{className:\"flex-1 flex flex-col\",children:[g.jsxs(\"div\",{className:\"px-4 py-2 border-b border-stone-200 dark:border-[#3e3e42] flex items-center justify-between\",children:[g.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[g.jsx(\"span\",{className:\"text-sm font-medium text-stone-700 dark:text-[#cccccc]\",children:n.type===\"http\"?\"Response\":\"Output\"}),$!==null&&g.jsx(\"span\",{className:Fe(\"text-xs font-mono px-1.5 py-0.5 rounded\",$>=200&&$<300?\"bg-green-100 dark:bg-green-500/20 text-green-700 dark:text-[#4ec9b0]\":$>=400?\"bg-red-100 dark:bg-red-500/20 text-red-700 dark:text-[#f48771]\":\"bg-orange-100 dark:bg-orange-500/20 text-orange-700 dark:text-[#ce9178]\"),children:$})]}),(x||S)&&g.jsx(\"button\",{onClick:()=>P(S||(typeof x==\"string\"?x:JSON.stringify(x,null,2))),className:\"text-xs text-stone-500 dark:text-[#969696] hover:text-stone-700 dark:hover:text-[#cccccc] flex items-center gap-1\",children:E?g.jsxs(g.Fragment,{children:[g.jsx(e_,{className:\"h-3 w-3\"}),\"Copied\"]}):g.jsxs(g.Fragment,{children:[g.jsx(tl,{className:\"h-3 w-3\"}),\"Copy\"]})})]}),g.jsx(\"div\",{className:\"flex-1 p-4 overflow-auto bg-white dark:bg-[#1e1e1e]\",children:S?g.jsx(\"div\",{className:\"bg-red-50 dark:bg-[#3e3e42] border border-red-200 dark:border-[#f48771] rounded p-3\",children:g.jsxs(\"div\",{className:\"flex items-start gap-2 mb-2\",children:[g.jsx(fb,{className:\"h-4 w-4 text-red-600 dark:text-[#f48771] mt-0.5 flex-shrink-0\"}),g.jsxs(\"div\",{children:[g.jsx(\"div\",{className:\"text-sm font-medium text-red-900 dark:text-[#f48771]\",children:\"failure\"}),g.jsx(\"div\",{className:\"text-xs text-red-700 dark:text-[#f48771] mt-1\",children:S})]})]})}):x!=null?g.jsxs(g.Fragment,{children:[I&&g.jsxs(\"details\",{className:\"mb-3\",children:[g.jsx(\"summary\",{className:\"text-xs text-stone-500 dark:text-[#969696] cursor-pointer hover:text-stone-700 dark:hover:text-[#cccccc]\",children:\"Response Headers\"}),g.jsx(\"pre\",{className:\"text-xs font-mono text-stone-600 dark:text-[#969696] mt-1 pl-2 border-l-2 border-stone-200 dark:border-[#3e3e42]\",children:Object.entries(I).map(([K,te])=>`${K}: ${te}`).join(`\n`)})]}),g.jsx(\"pre\",{className:\"text-xs font-mono text-stone-900 dark:text-[#cccccc] whitespace-pre-wrap\",children:typeof x==\"string\"?x:JSON.stringify(x,null,2)})]}):g.jsx(\"div\",{className:\"text-sm text-stone-400 dark:text-[#969696] text-center py-8\",children:n.type===\"http\"?\"Send a request to see the response\":\"Run the function to see output\"})})]})]})})]}):g.jsx(\"div\",{className:\"flex items-center justify-center h-full\",children:g.jsxs(\"div\",{className:\"text-center\",children:[g.jsx(Hy,{className:\"h-12 w-12 text-stone-300 dark:text-[#6a6a6a] mx-auto mb-4\"}),g.jsx(\"h3\",{className:\"text-lg font-medium text-stone-900 dark:text-[#cccccc] mb-2\",children:\"No function selected\"}),g.jsx(\"p\",{className:\"text-sm text-stone-500 dark:text-[#969696]\",children:\"Select a function from the sidebar to view details\"})]})})})})]})}var kU=Symbol(\"radix.slottable\");function _U(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=kU,t}var $3=\"AlertDialog\",[TU,aG]=jh($3,[BA]),io=BA(),F3=e=>{const{__scopeAlertDialog:t,...n}=e,a=io(t);return g.jsx(i3,{...a,...n,modal:!0})};F3.displayName=$3;var MU=\"AlertDialogTrigger\",AU=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=io(n);return g.jsx(EB,{...o,...a,ref:t})});AU.displayName=MU;var NU=\"AlertDialogPortal\",B3=e=>{const{__scopeAlertDialog:t,...n}=e,a=io(t);return g.jsx(o3,{...a,...n})};B3.displayName=NU;var OU=\"AlertDialogOverlay\",U3=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=io(n);return g.jsx(u1,{...o,...a,ref:t})});U3.displayName=OU;var vc=\"AlertDialogContent\",[DU,jU]=TU(vc),zU=_U(\"AlertDialogContent\"),V3=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:a,...o}=e,s=io(n),c=h.useRef(null),u=vn(t,c),f=h.useRef(null);return g.jsx(wB,{contentName:vc,titleName:W3,docsSlug:\"alert-dialog\",children:g.jsx(DU,{scope:n,cancelRef:f,children:g.jsxs(d1,{role:\"alertdialog\",...s,...o,ref:u,onOpenAutoFocus:it(o.onOpenAutoFocus,m=>{m.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:m=>m.preventDefault(),onInteractOutside:m=>m.preventDefault(),children:[g.jsx(zU,{children:a}),g.jsx(LU,{contentRef:c})]})})})});V3.displayName=vc;var W3=\"AlertDialogTitle\",G3=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=io(n);return g.jsx(f1,{...o,...a,ref:t})});G3.displayName=W3;var Y3=\"AlertDialogDescription\",X3=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=io(n);return g.jsx(h1,{...o,...a,ref:t})});X3.displayName=Y3;var PU=\"AlertDialogAction\",K3=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=io(n);return g.jsx(sm,{...o,...a,ref:t})});K3.displayName=PU;var Q3=\"AlertDialogCancel\",Z3=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,{cancelRef:o}=jU(Q3,n),s=io(n),c=vn(t,o);return g.jsx(sm,{...s,...a,ref:c})});Z3.displayName=Q3;var LU=({contentRef:e})=>{const t=`\\`${vc}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${vc}\\` by passing a \\`${Y3}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${vc}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return h.useEffect(()=>{document.getElementById(e.current?.getAttribute(\"aria-describedby\"))||console.warn(t)},[t,e]),null},IU=F3,HU=B3,J3=U3,eN=V3,tN=K3,nN=Z3,rN=G3,aN=X3;const qU=IU,$U=HU,iN=h.forwardRef(({className:e,...t},n)=>g.jsx(J3,{className:Fe(\"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",e),...t,ref:n}));iN.displayName=J3.displayName;const oN=h.forwardRef(({className:e,...t},n)=>g.jsxs($U,{children:[g.jsx(iN,{}),g.jsx(eN,{ref:n,className:Fe(\"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-stone-200 dark:border-[#3e3e42] bg-white dark:bg-[#252526] p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",e),...t})]}));oN.displayName=eN.displayName;const sN=({className:e,...t})=>g.jsx(\"div\",{className:Fe(\"flex flex-col space-y-2 text-center sm:text-left\",e),...t});sN.displayName=\"AlertDialogHeader\";const lN=({className:e,...t})=>g.jsx(\"div\",{className:Fe(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",e),...t});lN.displayName=\"AlertDialogFooter\";const cN=h.forwardRef(({className:e,...t},n)=>g.jsx(rN,{ref:n,className:Fe(\"text-lg font-semibold text-stone-900 dark:text-[#cccccc]\",e),...t}));cN.displayName=rN.displayName;const uN=h.forwardRef(({className:e,...t},n)=>g.jsx(aN,{ref:n,className:Fe(\"text-sm text-stone-500 dark:text-[#969696]\",e),...t}));uN.displayName=aN.displayName;const dN=h.forwardRef(({className:e,...t},n)=>g.jsx(tN,{ref:n,className:Fe(m1(),e),...t}));dN.displayName=tN.displayName;const fN=h.forwardRef(({className:e,...t},n)=>g.jsx(nN,{ref:n,className:Fe(m1({variant:\"outline\"}),\"mt-2 sm:mt-0\",e),...t}));fN.displayName=nN.displayName;const hN=6048e5,FU=864e5,bk=6e4,xk=525600,wk=43200,Sk=1440,Ck=Symbol.for(\"constructDateFrom\");function ao(e,t){return typeof e==\"function\"?e(t):e&&typeof e==\"object\"&&Ck in e?e[Ck](t):e instanceof Date?new e.constructor(t):new Date(t)}function ya(e,t){return ao(t||e,e)}let BU={};function _d(){return BU}function ld(e,t){const n=_d(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ya(e,t?.in),s=o.getDay(),c=(s<a?7:0)+s-a;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Ah(e,t){return ld(e,{...t,weekStartsOn:1})}function mN(e,t){const n=ya(e,t?.in),a=n.getFullYear(),o=ao(n,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const s=Ah(o),c=ao(n,0);c.setFullYear(a,0,4),c.setHours(0,0,0,0);const u=Ah(c);return n.getTime()>=s.getTime()?a+1:n.getTime()>=u.getTime()?a:a-1}function Nh(e){const t=ya(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 pN(e,...t){const n=ao.bind(null,e||t.find(a=>typeof a==\"object\"));return t.map(n)}function Rk(e,t){const n=ya(e,t?.in);return n.setHours(0,0,0,0),n}function UU(e,t,n){const[a,o]=pN(n?.in,e,t),s=Rk(a),c=Rk(o),u=+s-Nh(s),f=+c-Nh(c);return Math.round((u-f)/FU)}function VU(e,t){const n=mN(e,t),a=ao(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),Ah(a)}function WU(e,t){const n=+ya(e)-+ya(t);return n<0?-1:n>0?1:n}function GU(e){return ao(e,Date.now())}function YU(e){return e instanceof Date||typeof e==\"object\"&&Object.prototype.toString.call(e)===\"[object Date]\"}function XU(e){return!(!YU(e)&&typeof e!=\"number\"||isNaN(+ya(e)))}function KU(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function QU(e,t){const n=ya(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ZU={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\"}},JU=(e,t,n)=>{let a;const o=ZU[e];return typeof o==\"string\"?a=o:t===1?a=o.one:a=o.other.replace(\"{{count}}\",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?\"in \"+a:a+\" ago\":a};function Oy(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const eV={full:\"EEEE, MMMM do, y\",long:\"MMMM do, y\",medium:\"MMM d, y\",short:\"MM/dd/yyyy\"},tV={full:\"h:mm:ss a zzzz\",long:\"h:mm:ss a z\",medium:\"h:mm:ss a\",short:\"h:mm a\"},nV={full:\"{{date}} 'at' {{time}}\",long:\"{{date}} 'at' {{time}}\",medium:\"{{date}}, {{time}}\",short:\"{{date}}, {{time}}\"},rV={date:Oy({formats:eV,defaultWidth:\"full\"}),time:Oy({formats:tV,defaultWidth:\"full\"}),dateTime:Oy({formats:nV,defaultWidth:\"full\"})},aV={lastWeek:\"'last' eeee 'at' p\",yesterday:\"'yesterday at' p\",today:\"'today at' p\",tomorrow:\"'tomorrow at' p\",nextWeek:\"eeee 'at' p\",other:\"P\"},iV=(e,t,n,a)=>aV[e];function Ou(e){return(t,n)=>{const a=n?.context?String(n.context):\"standalone\";let o;if(a===\"formatting\"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,u=n?.width?String(n.width):c;o=e.formattingValues[u]||e.formattingValues[c]}else{const c=e.defaultWidth,u=n?.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[c]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const oV={narrow:[\"B\",\"A\"],abbreviated:[\"BC\",\"AD\"],wide:[\"Before Christ\",\"Anno Domini\"]},sV={narrow:[\"1\",\"2\",\"3\",\"4\"],abbreviated:[\"Q1\",\"Q2\",\"Q3\",\"Q4\"],wide:[\"1st quarter\",\"2nd quarter\",\"3rd quarter\",\"4th quarter\"]},lV={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\"]},cV={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\"]},uV={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\"}},dV={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\"}},fV=(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\"},hV={ordinalNumber:fV,era:Ou({values:oV,defaultWidth:\"wide\"}),quarter:Ou({values:sV,defaultWidth:\"wide\",argumentCallback:e=>e-1}),month:Ou({values:lV,defaultWidth:\"wide\"}),day:Ou({values:cV,defaultWidth:\"wide\"}),dayPeriod:Ou({values:uV,defaultWidth:\"wide\",formattingValues:dV,defaultFormattingWidth:\"wide\"})};function Du(e){return(t,n={})=>{const a=n.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const c=s[0],u=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(u)?pV(u,y=>y.test(c)):mV(u,y=>y.test(c));let m;m=e.valueCallback?e.valueCallback(f):f,m=n.valueCallback?n.valueCallback(m):m;const v=t.slice(c.length);return{value:m,rest:v}}}function mV(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function pV(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function gV(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const o=a[0],s=t.match(e.parsePattern);if(!s)return null;let c=e.valueCallback?e.valueCallback(s[0]):s[0];c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}const vV=/^(\\d+)(th|st|nd|rd)?/i,yV=/\\d+/i,bV={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},xV={any:[/^b/i,/^(a|c)/i]},wV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SV={any:[/1/i,/2/i,/3/i,/4/i]},CV={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},RV={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]},EV={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},kV={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]},_V={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},TV={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}},MV={ordinalNumber:gV({matchPattern:vV,parsePattern:yV,valueCallback:e=>parseInt(e,10)}),era:Du({matchPatterns:bV,defaultMatchWidth:\"wide\",parsePatterns:xV,defaultParseWidth:\"any\"}),quarter:Du({matchPatterns:wV,defaultMatchWidth:\"wide\",parsePatterns:SV,defaultParseWidth:\"any\",valueCallback:e=>e+1}),month:Du({matchPatterns:CV,defaultMatchWidth:\"wide\",parsePatterns:RV,defaultParseWidth:\"any\"}),day:Du({matchPatterns:EV,defaultMatchWidth:\"wide\",parsePatterns:kV,defaultParseWidth:\"any\"}),dayPeriod:Du({matchPatterns:_V,defaultMatchWidth:\"any\",parsePatterns:TV,defaultParseWidth:\"any\"})},gN={code:\"en-US\",formatDistance:JU,formatLong:rV,formatRelative:iV,localize:hV,match:MV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function AV(e,t){const n=ya(e,t?.in);return UU(n,QU(n))+1}function NV(e,t){const n=ya(e,t?.in),a=+Ah(n)-+VU(n);return Math.round(a/hN)+1}function vN(e,t){const n=ya(e,t?.in),a=n.getFullYear(),o=_d(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=ao(t?.in||e,0);c.setFullYear(a+1,0,s),c.setHours(0,0,0,0);const u=ld(c,t),f=ao(t?.in||e,0);f.setFullYear(a,0,s),f.setHours(0,0,0,0);const m=ld(f,t);return+n>=+u?a+1:+n>=+m?a:a-1}function OV(e,t){const n=_d(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=vN(e,t),s=ao(t?.in||e,0);return s.setFullYear(o,0,a),s.setHours(0,0,0,0),ld(s,t)}function DV(e,t){const n=ya(e,t?.in),a=+ld(n,t)-+OV(n,t);return Math.round(a/hN)+1}function Jt(e,t){const n=e<0?\"-\":\"\",a=Math.abs(e).toString().padStart(t,\"0\");return n+a}const Yo={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return Jt(t===\"yy\"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t===\"M\"?String(n+1):Jt(n+1,2)},d(e,t){return Jt(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 Jt(e.getHours()%12||12,t.length)},H(e,t){return Jt(e.getHours(),t.length)},m(e,t){return Jt(e.getMinutes(),t.length)},s(e,t){return Jt(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),o=Math.trunc(a*Math.pow(10,n-3));return Jt(o,t.length)}},ic={midnight:\"midnight\",noon:\"noon\",morning:\"morning\",afternoon:\"afternoon\",evening:\"evening\",night:\"night\"},Ek={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(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:\"year\"})}return Yo.y(e,t)},Y:function(e,t,n,a){const o=vN(e,a),s=o>0?o:1-o;if(t===\"YY\"){const c=s%100;return Jt(c,2)}return t===\"Yo\"?n.ordinalNumber(s,{unit:\"year\"}):Jt(s,t.length)},R:function(e,t){const n=mN(e);return Jt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Jt(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 Jt(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 Jt(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 Yo.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 Jt(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 o=DV(e,a);return t===\"wo\"?n.ordinalNumber(o,{unit:\"week\"}):Jt(o,t.length)},I:function(e,t,n){const a=NV(e);return t===\"Io\"?n.ordinalNumber(a,{unit:\"week\"}):Jt(a,t.length)},d:function(e,t,n){return t===\"do\"?n.ordinalNumber(e.getDate(),{unit:\"date\"}):Yo.d(e,t)},D:function(e,t,n){const a=AV(e);return t===\"Do\"?n.ordinalNumber(a,{unit:\"dayOfYear\"}):Jt(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 o=e.getDay(),s=(o-a.weekStartsOn+8)%7||7;switch(t){case\"e\":return String(s);case\"ee\":return Jt(s,2);case\"eo\":return n.ordinalNumber(s,{unit:\"day\"});case\"eee\":return n.day(o,{width:\"abbreviated\",context:\"formatting\"});case\"eeeee\":return n.day(o,{width:\"narrow\",context:\"formatting\"});case\"eeeeee\":return n.day(o,{width:\"short\",context:\"formatting\"});case\"eeee\":default:return n.day(o,{width:\"wide\",context:\"formatting\"})}},c:function(e,t,n,a){const o=e.getDay(),s=(o-a.weekStartsOn+8)%7||7;switch(t){case\"c\":return String(s);case\"cc\":return Jt(s,t.length);case\"co\":return n.ordinalNumber(s,{unit:\"day\"});case\"ccc\":return n.day(o,{width:\"abbreviated\",context:\"standalone\"});case\"ccccc\":return n.day(o,{width:\"narrow\",context:\"standalone\"});case\"cccccc\":return n.day(o,{width:\"short\",context:\"standalone\"});case\"cccc\":default:return n.day(o,{width:\"wide\",context:\"standalone\"})}},i:function(e,t,n){const a=e.getDay(),o=a===0?7:a;switch(t){case\"i\":return String(o);case\"ii\":return Jt(o,t.length);case\"io\":return n.ordinalNumber(o,{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 o=e.getHours()/12>=1?\"pm\":\"am\";switch(t){case\"a\":case\"aa\":return n.dayPeriod(o,{width:\"abbreviated\",context:\"formatting\"});case\"aaa\":return n.dayPeriod(o,{width:\"abbreviated\",context:\"formatting\"}).toLowerCase();case\"aaaaa\":return n.dayPeriod(o,{width:\"narrow\",context:\"formatting\"});case\"aaaa\":default:return n.dayPeriod(o,{width:\"wide\",context:\"formatting\"})}},b:function(e,t,n){const a=e.getHours();let o;switch(a===12?o=ic.noon:a===0?o=ic.midnight:o=a/12>=1?\"pm\":\"am\",t){case\"b\":case\"bb\":return n.dayPeriod(o,{width:\"abbreviated\",context:\"formatting\"});case\"bbb\":return n.dayPeriod(o,{width:\"abbreviated\",context:\"formatting\"}).toLowerCase();case\"bbbbb\":return n.dayPeriod(o,{width:\"narrow\",context:\"formatting\"});case\"bbbb\":default:return n.dayPeriod(o,{width:\"wide\",context:\"formatting\"})}},B:function(e,t,n){const a=e.getHours();let o;switch(a>=17?o=ic.evening:a>=12?o=ic.afternoon:a>=4?o=ic.morning:o=ic.night,t){case\"B\":case\"BB\":case\"BBB\":return n.dayPeriod(o,{width:\"abbreviated\",context:\"formatting\"});case\"BBBBB\":return n.dayPeriod(o,{width:\"narrow\",context:\"formatting\"});case\"BBBB\":default:return n.dayPeriod(o,{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 Yo.h(e,t)},H:function(e,t,n){return t===\"Ho\"?n.ordinalNumber(e.getHours(),{unit:\"hour\"}):Yo.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t===\"Ko\"?n.ordinalNumber(a,{unit:\"hour\"}):Jt(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t===\"ko\"?n.ordinalNumber(a,{unit:\"hour\"}):Jt(a,t.length)},m:function(e,t,n){return t===\"mo\"?n.ordinalNumber(e.getMinutes(),{unit:\"minute\"}):Yo.m(e,t)},s:function(e,t,n){return t===\"so\"?n.ordinalNumber(e.getSeconds(),{unit:\"second\"}):Yo.s(e,t)},S:function(e,t){return Yo.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return\"Z\";switch(t){case\"X\":return _k(a);case\"XXXX\":case\"XX\":return Xs(a);case\"XXXXX\":case\"XXX\":default:return Xs(a,\":\")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case\"x\":return _k(a);case\"xxxx\":case\"xx\":return Xs(a);case\"xxxxx\":case\"xxx\":default:return Xs(a,\":\")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case\"O\":case\"OO\":case\"OOO\":return\"GMT\"+kk(a,\":\");case\"OOOO\":default:return\"GMT\"+Xs(a,\":\")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case\"z\":case\"zz\":case\"zzz\":return\"GMT\"+kk(a,\":\");case\"zzzz\":default:return\"GMT\"+Xs(a,\":\")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return Jt(a,t.length)},T:function(e,t,n){return Jt(+e,t.length)}};function kk(e,t=\"\"){const n=e>0?\"-\":\"+\",a=Math.abs(e),o=Math.trunc(a/60),s=a%60;return s===0?n+String(o):n+String(o)+t+Jt(s,2)}function _k(e,t){return e%60===0?(e>0?\"-\":\"+\")+Jt(Math.abs(e)/60,2):Xs(e,t)}function Xs(e,t=\"\"){const n=e>0?\"-\":\"+\",a=Math.abs(e),o=Jt(Math.trunc(a/60),2),s=Jt(a%60,2);return n+o+t+s}const Tk=(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\"})}},yN=(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\"})}},jV=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Tk(e,t);let s;switch(a){case\"P\":s=t.dateTime({width:\"short\"});break;case\"PP\":s=t.dateTime({width:\"medium\"});break;case\"PPP\":s=t.dateTime({width:\"long\"});break;case\"PPPP\":default:s=t.dateTime({width:\"full\"});break}return s.replace(\"{{date}}\",Tk(a,t)).replace(\"{{time}}\",yN(o,t))},zV={p:yN,P:jV},PV=/^D+$/,LV=/^Y+$/,IV=[\"D\",\"DD\",\"YY\",\"YYYY\"];function HV(e){return PV.test(e)}function qV(e){return LV.test(e)}function $V(e,t,n){const a=FV(e,t,n);if(console.warn(a),IV.includes(e))throw new RangeError(a)}function FV(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 BV=/[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,UV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VV=/^'([^]*?)'?$/,WV=/''/g,GV=/[a-zA-Z]/;function YV(e,t,n){const a=_d(),o=a.locale??gN,s=a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=ya(e,n?.in);if(!XU(u))throw new RangeError(\"Invalid time value\");let f=t.match(UV).map(v=>{const y=v[0];if(y===\"p\"||y===\"P\"){const x=zV[y];return x(v,o.formatLong)}return v}).join(\"\").match(BV).map(v=>{if(v===\"''\")return{isToken:!1,value:\"'\"};const y=v[0];if(y===\"'\")return{isToken:!1,value:XV(v)};if(Ek[y])return{isToken:!0,value:v};if(y.match(GV))throw new RangeError(\"Format string contains an unescaped latin alphabet character `\"+y+\"`\");return{isToken:!1,value:v}});o.localize.preprocessor&&(f=o.localize.preprocessor(u,f));const m={firstWeekContainsDate:s,weekStartsOn:c,locale:o};return f.map(v=>{if(!v.isToken)return v.value;const y=v.value;(qV(y)||HV(y))&&$V(y,t,String(e));const x=Ek[y[0]];return x(u,y,o.localize,m)}).join(\"\")}function XV(e){const t=e.match(VV);return t?t[1].replace(WV,\"'\"):e}function KV(e,t,n){const a=_d(),o=n?.locale??a.locale??gN,s=WU(e,t);if(isNaN(s))throw new RangeError(\"Invalid time value\");const c=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[u,f]=pN(n?.in,...s>0?[t,e]:[e,t]),m=KU(n?.roundingMethod??\"round\"),v=f.getTime()-u.getTime(),y=v/bk,x=Nh(f)-Nh(u),w=(v-x)/bk,S=n?.unit;let C;if(S?C=S:y<1?C=\"second\":y<60?C=\"minute\":y<Sk?C=\"hour\":w<wk?C=\"day\":w<xk?C=\"month\":C=\"year\",C===\"second\"){const R=m(v/1e3);return o.formatDistance(\"xSeconds\",R,c)}else if(C===\"minute\"){const R=m(y);return o.formatDistance(\"xMinutes\",R,c)}else if(C===\"hour\"){const R=m(y/60);return o.formatDistance(\"xHours\",R,c)}else if(C===\"day\"){const R=m(w/Sk);return o.formatDistance(\"xDays\",R,c)}else if(C===\"month\"){const R=m(w/wk);return R===12&&S!==\"month\"?o.formatDistance(\"xYears\",1,c):o.formatDistance(\"xMonths\",R,c)}else{const R=m(w/xk);return o.formatDistance(\"xYears\",R,c)}}function cb(e,t){return KV(e,GU(e),t)}const QV=50,Mk=e=>e?e.startsWith(\"image/\")?WD:e.startsWith(\"video/\")?r5:e.startsWith(\"audio/\")?XD:e.startsWith(\"text/\")?r_:e.includes(\"zip\")||e.includes(\"archive\")||e.includes(\"tar\")?FD:qS:qS,Ak=e=>{if(e===0)return\"0 B\";const t=1024,n=[\"B\",\"KB\",\"MB\",\"GB\",\"TB\"],a=Math.floor(Math.log(e)/Math.log(t));return`${(e/t**a).toFixed(2)} ${n[a]}`},Nk=e=>{try{return cb(new Date(e),{addSuffix:!0})}catch{return\"unknown\"}};function ZV(){const[e,t]=h.useState(1),[n,a]=h.useState(\"\"),[o,s]=h.useState(null),[c,u]=h.useState(null),f=fs(Y5,{page:e,pageSize:QV,sortBy:\"uploadedAt\",sortOrder:\"desc\"}),m=ts(X5),v=f===void 0,y=f?.files||[],x=f?.total||0,w=f?.hasMore||!1,S=y.filter(E=>E._id.toLowerCase().includes(n.toLowerCase())||E.contentType?.toLowerCase().includes(n.toLowerCase())),C=async()=>{if(c)try{await m({storageId:c._id}),s(null),u(null)}catch(E){console.error(\"Failed to delete file:\",E),alert(\"Failed to delete file\")}},R=E=>{const A=`${typeof window<\"u\"&&window.location.pathname.startsWith(\"/_dashboard\")?`${window.location.protocol}//${window.location.host}`:\"http://localhost:8799\"}/api/storage/${E._id}`,D=document.createElement(\"a\");D.href=A,D.download=E._id,D.target=\"_blank\",D.click()},_=async E=>{try{await navigator.clipboard.writeText(E)}catch(T){console.error(\"Failed to copy\",T)}};return v?g.jsx(\"div\",{className:\"flex items-center justify-center h-full\",children:g.jsx(hi,{className:\"h-8 w-8 animate-spin text-[var(--accent-color)]\"})}):g.jsxs(\"div\",{className:\"flex h-full flex-col bg-[var(--bg-secondary)]\",children:[g.jsxs(\"div\",{className:\"flex items-center justify-between border-b border-[var(--border-color)] bg-[var(--bg-primary)] px-6 py-4\",children:[g.jsx(\"div\",{className:\"flex items-center gap-4\",children:g.jsxs(\"div\",{className:\"flex items-center gap-2 text-[var(--text-primary)]\",children:[g.jsx($y,{className:\"h-5 w-5\"}),g.jsx(\"h2\",{className:\"text-lg font-semibold\",children:\"Storage\"}),g.jsxs(\"span\",{className:\"ml-2 rounded-full bg-[var(--bg-tertiary)] px-2.5 py-0.5 text-xs font-medium text-[var(--text-secondary)]\",children:[x,\" objects\"]})]})}),g.jsxs(\"div\",{className:\"flex items-center gap-3\",children:[g.jsxs(\"div\",{className:\"relative w-64\",children:[g.jsx(fd,{className:\"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--text-tertiary)]\"}),g.jsx(\"input\",{type:\"text\",placeholder:\"Filter by ID or type...\",value:n,onChange:E=>a(E.target.value),className:\"w-full rounded-md border border-[var(--border-color)] bg-[var(--bg-secondary)] py-2 pl-9 pr-4 text-sm text-[var(--text-primary)] placeholder:text-[var(--text-tertiary)] focus:border-[var(--text-secondary)] focus:outline-none\"})]}),g.jsx(br,{variant:\"outline\",size:\"sm\",onClick:()=>t(1),children:g.jsx(JD,{className:\"h-4 w-4\"})})]})]}),g.jsxs(y1,{direction:\"horizontal\",className:\"flex-1 overflow-hidden\",children:[g.jsx(kc,{defaultSize:o?70:100,minSize:50,className:\"h-full\",children:g.jsx(\"div\",{className:\"h-full overflow-y-auto\",children:S.length===0?g.jsxs(\"div\",{className:\"flex h-full flex-col items-center justify-center p-8 text-center text-[var(--text-secondary)]\",children:[g.jsx(\"div\",{className:\"rounded-full bg-[var(--bg-tertiary)] p-4 mb-4\",children:g.jsx($y,{className:\"h-8 w-8 text-[var(--text-tertiary)]\"})}),g.jsx(\"h3\",{className:\"text-lg font-medium text-[var(--text-primary)]\",children:\"No files found\"}),g.jsx(\"p\",{className:\"mt-2 text-sm max-w-xs mx-auto\",children:n?`No files match \"${n}\"`:\"Files uploaded via storage.store() will appear here.\"}),n&&g.jsx(br,{variant:\"link\",onClick:()=>a(\"\"),className:\"mt-4 text-[var(--accent-color)]\",children:\"Clear filters\"})]}):g.jsxs(\"table\",{className:\"w-full border-collapse text-left text-sm\",children:[g.jsx(\"thead\",{className:\"sticky top-0 z-10 bg-[var(--bg-secondary)] text-[var(--text-secondary)] font-medium\",children:g.jsxs(\"tr\",{children:[g.jsx(\"th\",{className:\"border-b border-[var(--border-color)] px-6 py-3 w-1/2\",children:\"Object ID\"}),g.jsx(\"th\",{className:\"border-b border-[var(--border-color)] px-6 py-3\",children:\"Size\"}),g.jsx(\"th\",{className:\"border-b border-[var(--border-color)] px-6 py-3\",children:\"Type\"}),g.jsx(\"th\",{className:\"border-b border-[var(--border-color)] px-6 py-3\",children:\"Uploaded\"}),g.jsx(\"th\",{className:\"border-b border-[var(--border-color)] px-6 py-3 text-right\",children:\"Actions\"})]})}),g.jsx(\"tbody\",{className:\"divide-y divide-[var(--border-color)] bg-[var(--bg-primary)]\",children:S.map(E=>{const T=Mk(E.contentType),A=o?._id===E._id;return g.jsxs(\"tr\",{onClick:()=>s(E),className:Fe(\"group cursor-pointer transition-colors hover:bg-[var(--bg-hover)]\",A&&\"bg-[var(--accent-bg)]\"),children:[g.jsx(\"td\",{className:\"px-6 py-3\",children:g.jsxs(\"div\",{className:\"flex items-center gap-3\",children:[g.jsx(\"div\",{className:Fe(\"flex h-8 w-8 items-center justify-center rounded border border-[var(--border-color)] bg-[var(--bg-secondary)]\",A?\"border-[var(--accent-color)] text-[var(--accent-color)]\":\"text-[var(--text-tertiary)] group-hover:text-[var(--text-secondary)]\"),children:g.jsx(T,{className:\"h-4 w-4\"})}),g.jsx(\"div\",{className:\"font-mono text-xs text-[var(--text-primary)] truncate max-w-[300px]\",title:E._id,children:E._id})]})}),g.jsx(\"td\",{className:\"px-6 py-3 text-[var(--text-secondary)] font-mono text-xs\",children:Ak(E.size)}),g.jsx(\"td\",{className:\"px-6 py-3\",children:g.jsx(\"span\",{className:\"inline-flex items-center rounded px-2 py-0.5 text-xs font-medium bg-[var(--bg-tertiary)] text-[var(--text-secondary)] border border-[var(--border-color)]\",children:E.contentType||\"application/octet-stream\"})}),g.jsx(\"td\",{className:\"px-6 py-3 text-[var(--text-secondary)]\",children:Nk(E._creationTime)}),g.jsx(\"td\",{className:\"px-6 py-3 text-right\",children:g.jsxs(\"div\",{className:\"flex items-center justify-end gap-1 opacity-0 group-hover:opacity-100 transition-opacity\",children:[g.jsx(br,{variant:\"ghost\",size:\"sm\",className:\"h-8 w-8 p-0\",onClick:D=>{D.stopPropagation(),_(E._id)},title:\"Copy ID\",children:g.jsx(tl,{className:\"h-4 w-4 text-[var(--text-tertiary)]\"})}),g.jsxs(Hu,{children:[g.jsx(qu,{asChild:!0,children:g.jsx(br,{variant:\"ghost\",size:\"sm\",className:\"h-8 w-8 p-0\",children:g.jsx(n_,{className:\"h-4 w-4 text-[var(--text-secondary)]\"})})}),g.jsxs(dc,{align:\"end\",children:[g.jsxs(Ji,{onClick:()=>R(E),children:[g.jsx(qy,{className:\"mr-2 h-4 w-4\"}),\"Download\"]}),g.jsxs(Ji,{onClick:()=>_(E._id),children:[g.jsx(tl,{className:\"mr-2 h-4 w-4\"}),\"Copy ID\"]}),g.jsx(Xi,{}),g.jsxs(Ji,{className:\"text-red-600 focus:text-red-600 dark:text-red-400 dark:focus:text-red-400\",onClick:()=>u(E),children:[g.jsx(es,{className:\"mr-2 h-4 w-4\"}),\"Delete\"]})]})]})]})})]},E._id)})})]})})}),o&&g.jsx(b1,{withHandle:!0}),o&&g.jsx(kc,{defaultSize:30,minSize:20,maxSize:50,children:g.jsx(\"div\",{className:\"h-full bg-[var(--bg-primary)] overflow-y-auto shadow-xl\",children:g.jsxs(\"div\",{className:\"p-6 space-y-6\",children:[g.jsxs(\"div\",{className:\"flex items-center justify-between\",children:[g.jsx(\"h3\",{className:\"font-semibold text-[var(--text-primary)]\",children:\"Object Details\"}),g.jsx(br,{variant:\"ghost\",size:\"sm\",onClick:()=>s(null),className:\"h-6 w-6 p-0\",children:\"×\"})]}),g.jsx(\"div\",{className:\"rounded-lg border border-[var(--border-color)] bg-[var(--bg-secondary)] p-8 flex justify-center\",children:(()=>{const E=Mk(o.contentType);return g.jsx(E,{className:\"h-16 w-16 text-[var(--text-tertiary)]\"})})()}),g.jsxs(\"div\",{className:\"space-y-4\",children:[g.jsxs(\"div\",{children:[g.jsx(\"label\",{className:\"text-xs font-medium uppercase text-[var(--text-tertiary)]\",children:\"ID\"}),g.jsxs(\"div\",{className:\"mt-1 flex items-center gap-2 rounded-md border border-[var(--border-color)] bg-[var(--bg-secondary)] px-3 py-2\",children:[g.jsx(\"code\",{className:\"flex-1 truncate font-mono text-xs text-[var(--text-primary)]\",title:o._id,children:o._id}),g.jsx(br,{variant:\"ghost\",size:\"sm\",className:\"h-6 w-6 p-0\",onClick:()=>_(o._id),children:g.jsx(tl,{className:\"h-3 w-3 text-[var(--text-tertiary)]\"})})]})]}),g.jsxs(\"div\",{className:\"grid grid-cols-2 gap-4\",children:[g.jsxs(\"div\",{children:[g.jsx(\"label\",{className:\"text-xs font-medium uppercase text-[var(--text-tertiary)]\",children:\"Size\"}),g.jsx(\"p\",{className:\"mt-1 text-sm text-[var(--text-primary)]\",children:Ak(o.size)})]}),g.jsxs(\"div\",{children:[g.jsx(\"label\",{className:\"text-xs font-medium uppercase text-[var(--text-tertiary)]\",children:\"Uploaded\"}),g.jsx(\"p\",{className:\"mt-1 text-sm text-[var(--text-primary)]\",children:Nk(o._creationTime)})]}),g.jsxs(\"div\",{className:\"col-span-2\",children:[g.jsx(\"label\",{className:\"text-xs font-medium uppercase text-[var(--text-tertiary)]\",children:\"Content Type\"}),g.jsx(\"p\",{className:\"mt-1 text-sm text-[var(--text-primary)] font-mono\",children:o.contentType||\"N/A\"})]}),g.jsxs(\"div\",{className:\"col-span-2\",children:[g.jsx(\"label\",{className:\"text-xs font-medium uppercase text-[var(--text-tertiary)]\",children:\"SHA-256\"}),g.jsx(\"p\",{className:\"mt-1 text-xs text-[var(--text-secondary)] font-mono break-all\",children:o.sha256||\"N/A\"})]})]})]}),g.jsxs(\"div\",{className:\"border-t border-[var(--border-color)] pt-6\",children:[g.jsxs(br,{variant:\"outline\",className:\"w-full justify-start\",onClick:()=>R(o),children:[g.jsx(qy,{className:\"mr-2 h-4 w-4\"}),\"Download Object\"]}),g.jsxs(br,{variant:\"outline\",className:\"w-full justify-start mt-2 text-[var(--error-color)] hover:text-[var(--error-color)] hover:bg-[var(--bg-hover)]\",onClick:()=>u(o),children:[g.jsx(es,{className:\"mr-2 h-4 w-4\"}),\"Delete Object\"]})]})]})})})]}),g.jsxs(\"div\",{className:\"border-t border-[var(--border-color)] bg-[var(--bg-primary)] px-6 py-3 flex items-center justify-between\",children:[g.jsxs(\"p\",{className:\"text-sm text-[var(--text-secondary)]\",children:[\"Page \",e,\" • Showing \",S.length,\" of \",x]}),g.jsxs(\"div\",{className:\"flex gap-2\",children:[g.jsxs(br,{variant:\"outline\",size:\"sm\",onClick:()=>t(E=>Math.max(1,E-1)),disabled:e===1,children:[g.jsx(PD,{className:\"mr-1 h-4 w-4\"}),\" Previous\"]}),g.jsxs(br,{variant:\"outline\",size:\"sm\",onClick:()=>t(E=>E+1),disabled:!w,children:[\"Next \",g.jsx(dd,{className:\"ml-1 h-4 w-4\"})]})]})]}),g.jsx(qU,{open:!!c,onOpenChange:E=>!E&&u(null),children:g.jsxs(oN,{children:[g.jsxs(sN,{children:[g.jsx(cN,{children:\"Delete Object?\"}),g.jsx(uN,{children:\"This will permanently delete the object from storage. This action cannot be undone.\"})]}),g.jsxs(lN,{children:[g.jsx(fN,{children:\"Cancel\"}),g.jsx(dN,{onClick:C,className:\"bg-[var(--error-color)] hover:opacity-90\",children:\"Delete\"})]})]})})]})}const Ok={query:{label:\"Q\",color:\"text-blue-400\",bg:\"bg-blue-500/15\",icon:hb},mutation:{label:\"M\",color:\"text-orange-400\",bg:\"bg-orange-500/15\",icon:mb},action:{label:\"A\",color:\"text-purple-400\",bg:\"bg-purple-500/15\",icon:VD}};function JV(e){return e<1?\"<1ms\":e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(2)}s`}function eW(e){const t=Date.now()-e;return t<1e3?\"just now\":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:new Date(e).toLocaleDateString()}function tW({line:e}){return e.startsWith(\"[ERROR]\")?g.jsx(\"span\",{className:\"text-red-400 font-medium\",children:\"[ERROR]\"}):e.startsWith(\"[WARN]\")?g.jsx(\"span\",{className:\"text-yellow-400 font-medium\",children:\"[WARN]\"}):e.startsWith(\"[INFO]\")?g.jsx(\"span\",{className:\"text-blue-400 font-medium\",children:\"[INFO]\"}):e.startsWith(\"[LOG]\")?g.jsx(\"span\",{className:\"text-[var(--text-tertiary)] font-medium\",children:\"[LOG]\"}):null}function nW({line:e}){const t=e.match(/^\\[(LOG|WARN|ERROR|INFO)\\]\\s*/),n=t?e.slice(t[0].length):e;return g.jsxs(\"div\",{className:\"flex gap-1.5 font-mono text-xs leading-relaxed\",children:[g.jsx(tW,{line:e}),g.jsx(\"span\",{className:\"text-[var(--text-primary)] whitespace-pre-wrap break-all\",children:n})]})}function rW({log:e,isExpanded:t,onToggle:n}){const a=Ok[e.functionType]??Ok.query,o=a.icon,s=e.logLines.length>0||!!e.error,c=h.useCallback(u=>{u.stopPropagation();const f={functionName:e.functionName,functionType:e.functionType,status:e.status,duration:e.duration,timestamp:new Date(e.timestamp).toISOString(),...e.logLines.length>0&&{logLines:e.logLines},...e.error&&{error:e.error},...e.requestId&&{requestId:e.requestId}};navigator.clipboard.writeText(JSON.stringify(f,null,2))},[e]);return g.jsxs(\"div\",{className:Fe(\"group border-b border-[var(--border-color)] last:border-b-0 transition-colors\",s&&\"cursor-pointer hover:bg-[var(--bg-hover)]\",e.status===\"error\"&&\"bg-red-500/[0.03]\"),children:[g.jsxs(\"div\",{className:\"flex items-center gap-2 px-3 py-1.5 min-h-[36px]\",onClick:s?n:void 0,children:[g.jsx(\"div\",{className:\"w-4 h-4 flex items-center justify-center flex-shrink-0\",children:s?t?g.jsx(el,{className:\"h-3.5 w-3.5 text-[var(--text-tertiary)]\"}):g.jsx(dd,{className:\"h-3.5 w-3.5 text-[var(--text-tertiary)]\"}):null}),g.jsx(\"div\",{className:\"flex-shrink-0\",children:e.status===\"success\"?g.jsx(Dh,{className:\"h-3.5 w-3.5 text-emerald-500\"}):g.jsx(fb,{className:\"h-3.5 w-3.5 text-red-400\"})}),g.jsxs(\"div\",{className:Fe(\"flex-shrink-0 flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-semibold leading-none\",a.bg,a.color),children:[g.jsx(o,{className:\"h-2.5 w-2.5\"}),a.label]}),g.jsx(\"code\",{className:\"text-xs text-[var(--text-primary)] font-medium truncate flex-1 min-w-0\",children:e.functionName}),e.error&&!t&&g.jsx(\"span\",{className:\"text-[10px] text-red-400 truncate max-w-[200px] hidden sm:block\",children:e.error}),e.logLines.length>0&&!t&&g.jsxs(\"span\",{className:\"text-[10px] text-[var(--text-tertiary)] tabular-nums flex-shrink-0\",children:[e.logLines.length,\" line\",e.logLines.length!==1?\"s\":\"\"]}),g.jsx(\"span\",{className:Fe(\"text-[10px] tabular-nums flex-shrink-0 min-w-[48px] text-right\",e.duration>1e3?\"text-yellow-400\":\"text-[var(--text-tertiary)]\"),children:JV(e.duration)}),g.jsx(\"span\",{className:\"text-[10px] text-[var(--text-tertiary)] tabular-nums flex-shrink-0 min-w-[48px] text-right\",children:eW(e.timestamp)}),g.jsx(\"button\",{onClick:c,className:\"opacity-0 group-hover:opacity-100 transition-opacity p-0.5 rounded hover:bg-[var(--bg-hover)] flex-shrink-0\",title:\"Copy as JSON\",children:g.jsx(tl,{className:\"h-3 w-3 text-[var(--text-tertiary)]\"})})]}),t&&s&&g.jsxs(\"div\",{className:\"px-3 pb-2 pl-[52px] space-y-1\",children:[e.error&&g.jsx(\"div\",{className:\"text-xs text-red-400 font-mono bg-red-500/10 rounded px-2 py-1.5 whitespace-pre-wrap break-all\",children:e.error}),e.logLines.length>0&&g.jsx(\"div\",{className:\"bg-[var(--bg-primary)] border border-[var(--border-color)] rounded px-2 py-1.5 space-y-0.5\",children:e.logLines.map((u,f)=>g.jsx(nW,{line:u},f))}),e.requestId&&g.jsxs(\"div\",{className:\"text-[10px] text-[var(--text-tertiary)] font-mono\",children:[\"request: \",e.requestId]})]})]})}function aW(){const[e,t]=h.useState(\"\"),[n,a]=h.useState(\"all\"),[o,s]=h.useState(\"all\"),[c,u]=h.useState(new Set),[f,m]=h.useState(!0),[v,y]=h.useState(!0),[,x]=h.useState(0),w=h.useRef(null),S=h.useRef(0),C=ts(W5),R={limit:200};o!==\"all\"&&(R.functionType=o),n!==\"all\"&&(R.status=n),e.trim()&&(R.search=e.trim());const _=fs(V5,R),E=_===void 0,T=_??[];h.useEffect(()=>{if(!v)return;const V=setInterval(()=>x(I=>I+1),2e3);return()=>clearInterval(V)},[v]),h.useEffect(()=>{const V=setInterval(()=>x(I=>I+1),1e4);return()=>clearInterval(V)},[]),h.useEffect(()=>{f&&w.current&&T.length!==S.current&&(w.current.scrollTop=0),S.current=T.length},[T.length,f]);const A=h.useCallback(V=>{u(I=>{const M=new Set(I);return M.has(V)?M.delete(V):M.add(V),M})},[]),D=h.useCallback(async()=>{try{await C({})}catch(V){console.error(\"Failed to clear logs:\",V)}},[C]),z=h.useCallback(()=>{const V=T.filter(I=>I.logLines.length>0||!!I.error);u(new Set(V.map(I=>I.id)))},[T]),O=h.useCallback(()=>{u(new Set)},[]),H=T.filter(V=>V.status===\"success\").length,$=T.filter(V=>V.status===\"error\").length;return g.jsxs(\"div\",{className:\"flex flex-col h-full bg-[var(--bg-tertiary)]\",children:[g.jsx(\"div\",{className:\"flex-shrink-0 border-b border-[var(--border-color)] bg-[var(--bg-primary)]\",children:g.jsxs(\"div\",{className:\"flex items-center gap-2 px-3 py-2\",children:[g.jsxs(\"div\",{className:\"relative flex-1 max-w-xs\",children:[g.jsx(fd,{className:\"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-[var(--text-tertiary)]\"}),g.jsx(\"input\",{type:\"text\",value:e,onChange:V=>t(V.target.value),placeholder:\"Filter by function name or content...\",className:\"w-full pl-7 pr-2 py-1.5 text-xs bg-[var(--bg-secondary)] border border-[var(--border-color)] rounded text-[var(--text-primary)] placeholder:text-[var(--text-tertiary)] focus:outline-none focus:border-[var(--accent-color)]\"})]}),g.jsx(\"div\",{className:\"w-px h-5 bg-[var(--border-color)]\"}),[\"all\",\"query\",\"mutation\",\"action\"].map(V=>g.jsx(\"button\",{onClick:()=>s(V),className:Fe(\"px-2 py-1 text-[10px] font-medium rounded transition-colors\",o===V?\"bg-[var(--accent-color)] text-white\":\"text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]\"),children:V===\"all\"?\"All\":V.charAt(0).toUpperCase()+V.slice(1)},V)),g.jsx(\"div\",{className:\"w-px h-5 bg-[var(--border-color)]\"}),g.jsxs(\"button\",{onClick:()=>a(n===\"all\"?\"success\":n===\"success\"?\"error\":\"all\"),className:Fe(\"flex items-center gap-1 px-2 py-1 text-[10px] font-medium rounded transition-colors\",n===\"error\"?\"bg-red-500/15 text-red-400\":n===\"success\"?\"bg-emerald-500/15 text-emerald-400\":\"text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]\"),children:[n===\"all\"&&\"Status\",n===\"success\"&&g.jsxs(g.Fragment,{children:[g.jsx(Dh,{className:\"h-3 w-3\"}),\" Success\"]}),n===\"error\"&&g.jsxs(g.Fragment,{children:[g.jsx(fb,{className:\"h-3 w-3\"}),\" Errors\"]})]}),g.jsx(\"div\",{className:\"flex-1\"}),!E&&T.length>0&&g.jsxs(\"div\",{className:\"flex items-center gap-2 text-[10px] text-[var(--text-tertiary)]\",children:[g.jsxs(\"span\",{className:\"tabular-nums\",children:[T.length,\" entries\"]}),$>0&&g.jsxs(\"span\",{className:\"text-red-400 tabular-nums\",children:[$,\" errors\"]}),H>0&&g.jsxs(\"span\",{className:\"text-emerald-500 tabular-nums\",children:[H,\" ok\"]})]}),g.jsx(\"div\",{className:\"w-px h-5 bg-[var(--border-color)]\"}),g.jsx(\"button\",{onClick:c.size>0?O:z,className:\"p-1 rounded hover:bg-[var(--bg-hover)] text-[var(--text-tertiary)]\",title:c.size>0?\"Collapse all\":\"Expand all\",children:c.size>0?g.jsx(el,{className:\"h-3.5 w-3.5\"}):g.jsx(dd,{className:\"h-3.5 w-3.5\"})}),g.jsx(\"button\",{onClick:()=>y(!v),className:Fe(\"flex items-center gap-1 px-2 py-1 text-[10px] font-medium rounded transition-colors\",v?\"bg-emerald-500/15 text-emerald-400\":\"text-[var(--text-tertiary)] hover:bg-[var(--bg-hover)]\"),title:v?\"Pause live updates\":\"Resume live updates\",children:v?g.jsxs(g.Fragment,{children:[g.jsx(KD,{className:\"h-3 w-3\"}),\" Live\"]}):g.jsxs(g.Fragment,{children:[g.jsx(a_,{className:\"h-3 w-3\"}),\" Paused\"]})}),g.jsx(\"button\",{onClick:()=>m(!f),className:Fe(\"p-1 rounded transition-colors\",f?\"text-[var(--accent-color)] bg-[var(--accent-color)]/10\":\"text-[var(--text-tertiary)] hover:bg-[var(--bg-hover)]\"),title:f?\"Auto-scroll on\":\"Auto-scroll off\",children:g.jsx(OD,{className:\"h-3.5 w-3.5\"})}),g.jsx(\"button\",{onClick:D,className:\"p-1 rounded hover:bg-[var(--bg-hover)] text-[var(--text-tertiary)] hover:text-red-400\",title:\"Clear logs\",children:g.jsx(es,{className:\"h-3.5 w-3.5\"})})]})}),g.jsx(\"div\",{ref:w,className:\"flex-1 overflow-auto\",children:E?g.jsx(\"div\",{className:\"flex items-center justify-center py-16\",children:g.jsx(hi,{className:\"h-5 w-5 animate-spin text-[var(--text-tertiary)]\"})}):T.length===0?g.jsxs(\"div\",{className:\"flex flex-col items-center justify-center py-16 gap-2\",children:[g.jsx(\"div\",{className:\"h-10 w-10 rounded-full bg-[var(--bg-secondary)] flex items-center justify-center\",children:g.jsx(mb,{className:\"h-5 w-5 text-[var(--text-tertiary)]\"})}),g.jsx(\"p\",{className:\"text-sm text-[var(--text-secondary)]\",children:\"No logs yet\"}),g.jsx(\"p\",{className:\"text-xs text-[var(--text-tertiary)]\",children:\"Execute a function to see logs here\"})]}):g.jsx(\"div\",{className:\"bg-[var(--bg-primary)]\",children:T.map(V=>g.jsx(rW,{log:V,isExpanded:c.has(V.id),onToggle:()=>A(V.id)},V.id))})})]})}function iW(){const[e,t]=h.useState(\"24h\"),n=fs(G5,{timeRange:e}),a=n===void 0,o=n,s=[{id:\"24h\",label:\"Last 24 Hours\",icon:t_},{id:\"7d\",label:\"Last 7 Days\",icon:n5},{id:\"30d\",label:\"Last 30 Days\",icon:ND}];return g.jsxs(\"div\",{className:\"flex h-full\",children:[g.jsxs(\"div\",{className:\"w-80 border-r border-stone-200 dark:border-[#3e3e42] dark:border-[#3e3e42] bg-white dark:bg-[#252526] flex flex-col\",children:[g.jsxs(\"div\",{className:\"p-4 border-b border-stone-200 dark:border-[#3e3e42] dark:border-[#3e3e42]\",children:[g.jsx(\"h3\",{className:\"text-sm font-semibold text-stone-900 dark:text-[#cccccc]\",children:\"Time Range\"}),g.jsx(\"p\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"Select time period for metrics\"})]}),g.jsx(\"div\",{className:\"flex-1 overflow-auto py-2\",children:s.map(c=>{const u=c.icon,f=e===c.id;return g.jsxs(\"button\",{onClick:()=>t(c.id),className:Fe(\"w-full flex items-center gap-2 px-4 py-2.5 text-left hover:bg-stone-50 dark:hover:bg-[#2a2a2b] transition-colors\",f&&\"bg-blue-50 dark:bg-[#37373d] hover:bg-blue-50 dark:hover:bg-[#37373d]\"),children:[g.jsx(u,{className:Fe(\"h-4 w-4\",f?\"text-blue-600 dark:text-[#cccccc]\":\"text-stone-400 dark:text-[#969696]\")}),g.jsx(\"span\",{className:Fe(\"text-sm flex-1\",f?\"text-blue-600 dark:text-[#cccccc] font-medium\":\"text-stone-700 dark:text-[#cccccc]\"),children:c.label})]},c.id)})}),g.jsx(\"div\",{className:\"p-4 border-t border-stone-200 dark:border-[#3e3e42] dark:border-[#3e3e42]\",children:g.jsxs(\"div\",{className:\"flex items-center gap-2 text-xs text-stone-500 dark:text-[#969696]\",children:[g.jsx(mb,{className:\"h-4 w-4\"}),g.jsx(\"span\",{children:\"Real-time metrics\"})]})})]}),g.jsx(\"div\",{className:\"flex-1 p-6 overflow-auto bg-stone-50 dark:bg-[#2d2d30] dark:bg-[#1e1e1e]\",children:g.jsx(\"div\",{className:\"mx-auto max-w-5xl space-y-3\",children:g.jsx(\"div\",{className:\"bg-white dark:bg-[#252526] border border-stone-200 dark:border-[#3e3e42] dark:border-[#3e3e42] rounded p-4\",children:a?g.jsx(\"div\",{className:\"flex items-center justify-center py-8\",children:g.jsx(hi,{className:\"h-5 w-5 animate-spin text-stone-400 dark:text-[#969696]\"})}):o?g.jsxs(\"div\",{className:\"grid grid-cols-2 gap-4\",children:[g.jsxs(\"div\",{className:\"text-center p-3 bg-stone-50 dark:bg-[#2d2d30] rounded\",children:[g.jsx(\"div\",{className:\"text-2xl font-bold text-stone-900 dark:text-[#cccccc]\",children:o.totalRequests}),g.jsx(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"Total Requests\"})]}),g.jsxs(\"div\",{className:\"text-center p-3 bg-stone-50 dark:bg-[#2d2d30] rounded\",children:[g.jsxs(\"div\",{className:\"text-2xl font-bold text-stone-900 dark:text-[#cccccc]\",children:[o.errorRate.toFixed(1),\"%\"]}),g.jsx(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"Error Rate\"})]}),g.jsxs(\"div\",{className:\"text-center p-3 bg-stone-50 dark:bg-[#2d2d30] rounded\",children:[g.jsxs(\"div\",{className:\"text-2xl font-bold text-stone-900 dark:text-[#cccccc]\",children:[o.p95Latency,\"ms\"]}),g.jsx(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"P95 Latency\"})]}),g.jsxs(\"div\",{className:\"text-center p-3 bg-stone-50 dark:bg-[#2d2d30] rounded\",children:[g.jsx(\"div\",{className:\"text-2xl font-bold text-stone-900 dark:text-[#cccccc]\",children:o.activeConnections}),g.jsx(\"div\",{className:\"text-xs text-stone-500 dark:text-[#969696] mt-1\",children:\"Active Connections\"})]})]}):null})})})]})}function oW(){const[e,t]=h.useState(\"\"),n=fs(Z5),a=ts(J5),o=n===void 0,s=(n||[]).filter(u=>u.name.toLowerCase().includes(e.toLowerCase())||u._id.toLowerCase().includes(e.toLowerCase())),c=async u=>{if(confirm(\"Are you sure you want to cancel this scheduled job?\"))try{await a({id:u})}catch(f){console.error(\"Failed to cancel job:\",f),alert(\"Failed to cancel job\")}};return o?g.jsx(\"div\",{className:\"flex items-center justify-center h-full\",children:g.jsx(hi,{className:\"h-8 w-8 animate-spin text-[var(--accent-color)]\"})}):g.jsxs(\"div\",{className:\"flex h-full flex-col bg-[var(--bg-secondary)]\",children:[g.jsx(\"div\",{className:\"border-b border-[var(--border-color)] bg-[var(--bg-primary)] px-6 py-4\",children:g.jsxs(\"div\",{className:\"flex items-center justify-between gap-4\",children:[g.jsxs(\"div\",{children:[g.jsx(\"h2\",{className:\"text-lg font-semibold text-[var(--text-primary)]\",children:\"Scheduled Functions\"}),g.jsx(\"p\",{className:\"text-sm text-[var(--text-secondary)]\",children:\"Manage cron jobs and scheduled tasks\"})]}),g.jsxs(\"div\",{className:\"relative w-64\",children:[g.jsx(fd,{className:\"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--text-tertiary)]\"}),g.jsx(\"input\",{type:\"text\",placeholder:\"Search schedules...\",value:e,onChange:u=>t(u.target.value),className:\"w-full rounded-md border border-[var(--border-color)] bg-[var(--bg-secondary)] py-2 pl-9 pr-4 text-sm text-[var(--text-primary)] placeholder:text-[var(--text-tertiary)] focus:border-[var(--text-secondary)] focus:outline-none\"})]})]})}),g.jsx(\"div\",{className:\"flex-1 overflow-y-auto p-6\",children:s.length===0?g.jsxs(\"div\",{className:\"flex flex-col items-center justify-center rounded-lg border border-dashed border-[var(--border-color)] bg-[var(--bg-primary)] p-12 text-center\",children:[g.jsx(jD,{className:\"mb-4 h-12 w-12 text-[var(--text-tertiary)]\"}),g.jsx(\"h3\",{className:\"text-lg font-medium text-[var(--text-primary)]\",children:\"No scheduled functions found\"}),g.jsx(\"p\",{className:\"mt-1 text-sm text-[var(--text-secondary)]\",children:\"Scheduled jobs (crons) will appear here once registered.\"})]}):g.jsxs(\"div\",{className:\"space-y-4\",children:[g.jsxs(\"div\",{className:\"space-y-3\",children:[g.jsx(\"h3\",{className:\"text-sm font-semibold text-[var(--text-secondary)] uppercase tracking-wide\",children:\"Pending\"}),s.filter(u=>u.state.kind===\"pending\").map(u=>g.jsx(Dk,{job:u,onCancel:()=>c(u._id)},u._id)),s.filter(u=>u.state.kind===\"pending\").length===0&&g.jsx(\"p\",{className:\"text-sm text-[var(--text-tertiary)] italic\",children:\"No pending jobs.\"})]}),g.jsxs(\"div\",{className:\"space-y-3 pt-6\",children:[g.jsx(\"h3\",{className:\"text-sm font-semibold text-[var(--text-secondary)] uppercase tracking-wide\",children:\"History\"}),s.filter(u=>u.state.kind!==\"pending\").map(u=>g.jsx(Dk,{job:u},u._id))]})]})})]})}function Dk({job:e,onCancel:t}){const n=e.state.kind===\"pending\",a=e.state.kind===\"failed\",o=e.state.kind===\"success\",s=e.state.kind===\"inProgress\";return g.jsxs(\"div\",{className:\"flex items-center justify-between rounded-lg border border-[var(--border-color)] bg-[var(--bg-primary)] p-4 shadow-sm transition hover:border-[var(--text-tertiary)]\",children:[g.jsxs(\"div\",{className:\"flex items-start gap-4\",children:[g.jsxs(\"div\",{className:\"mt-1\",children:[n&&g.jsx(t_,{className:\"h-5 w-5 text-[var(--text-tertiary)]\"}),o&&g.jsx(Dh,{className:\"h-5 w-5 text-[var(--success-color)]\"}),a&&g.jsx(Iy,{className:\"h-5 w-5 text-[var(--error-color)]\"}),s&&g.jsx(hi,{className:\"h-5 w-5 animate-spin text-[var(--accent-color)]\"})]}),g.jsxs(\"div\",{children:[g.jsx(\"h4\",{className:\"font-medium text-[var(--text-primary)] font-mono text-sm\",children:e.name}),g.jsxs(\"div\",{className:\"mt-1 flex items-center gap-3 text-xs text-[var(--text-secondary)]\",children:[g.jsx(\"span\",{className:\"font-mono text-[var(--text-tertiary)]\",children:e._id}),g.jsx(\"span\",{children:\"•\"}),g.jsx(\"span\",{children:n?`Scheduled for ${YV(new Date(e.scheduledTime),\"MMM d, h:mm a\")} (${cb(new Date(e.scheduledTime),{addSuffix:!0})})`:`Completed ${e.completedTime?cb(new Date(e.completedTime),{addSuffix:!0}):\"unknown\"}`})]}),a&&e.error&&g.jsx(\"div\",{className:\"mt-2 rounded bg-red-50 dark:bg-red-900/20 px-2 py-1 text-xs text-red-600 dark:text-red-400 font-mono\",children:e.error})]})]}),t&&g.jsx(br,{variant:\"ghost\",size:\"sm\",onClick:t,className:\"text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300\",children:g.jsx(es,{className:\"h-4 w-4\"})})]})}function sW(){const[e,t]=h.useState(()=>{const o=window.location.hash.replace(\"#\",\"\");return[\"tables\",\"functions\",\"storage\",\"logs\",\"analytics\",\"schedules\"].includes(o)?o:\"tables\"}),n=o=>{t(o),window.location.hash=o};h.useEffect(()=>{const o=()=>{const s=window.location.hash.replace(\"#\",\"\");[\"tables\",\"functions\",\"storage\",\"logs\",\"analytics\",\"schedules\"].includes(s)&&t(s)};return window.addEventListener(\"hashchange\",o),()=>window.removeEventListener(\"hashchange\",o)},[]);const a=()=>{switch(e){case\"tables\":return g.jsx(yk,{});case\"functions\":return g.jsx(EU,{});case\"storage\":return g.jsx(ZV,{});case\"logs\":return g.jsx(aW,{});case\"analytics\":return g.jsx(iW,{});case\"schedules\":return g.jsx(oW,{});default:return g.jsx(yk,{})}};return g.jsx(Ez,{activeTab:e,onTabChange:o=>n(o),children:a()})}function lW(){return g.jsx(e4,{children:g.jsx(sW,{})})}const cW=()=>typeof window<\"u\"&&window.location.pathname.startsWith(\"/_dashboard\")?`${window.location.protocol===\"https:\"?\"https:\":\"http:\"}//${window.location.host}`:\"http://localhost:8799\",uW=()=>{};function dW(e={}){const t=e.url??cW(),n=e.adminToken??uW(),a=new yD(t);return n&&a.setAdminAuth&&a.setAdminAuth(n),a}const fW=dW(),bN=document.getElementById(\"root\");if(!bN)throw new Error(\"Root element not found\");e6.createRoot(bN).render(g.jsx(Dt.StrictMode,{children:g.jsx(xD,{client:fW,children:g.jsx(L5,{children:g.jsx(lW,{})})})}));const hW=()=>e=>e.targetX,mW=()=>e=>e.targetY,pW=()=>e=>e.targetWidth,gW=()=>e=>e.targetHeight,vW=()=>e=>e.targetY+10,yW=()=>e=>Math.max(0,(e.targetHeight-28)/2),bW=Dr(\"div\")({name:\"DataGridOverlayEditorStyle\",class:\"gdg-d19meir1\",propsAsIs:!1,vars:{\"d19meir1-0\":[mW(),\"px\"],\"d19meir1-1\":[hW(),\"px\"],\"d19meir1-2\":[pW(),\"px\"],\"d19meir1-3\":[gW(),\"px\"],\"d19meir1-4\":[vW(),\"px\"],\"d19meir1-5\":[yW(),\"px\"]}});function xW(){const[e,t]=h.useState();return[e??void 0,t]}function wW(){const[e,t]=xW(),[n,a]=h.useState(0),[o,s]=h.useState(!0);h.useLayoutEffect(()=>{if(e===void 0||!(\"IntersectionObserver\"in window))return;const u=new IntersectionObserver(f=>{f.length!==0&&s(f[0].isIntersecting)},{threshold:1});return u.observe(e),()=>u.disconnect()},[e]),h.useEffect(()=>{if(o||e===void 0)return;let u;const f=()=>{const{right:m}=e.getBoundingClientRect();a(v=>Math.min(v+window.innerWidth-m-10,0)),u=requestAnimationFrame(f)};return u=requestAnimationFrame(f),()=>{u!==void 0&&cancelAnimationFrame(u)}},[e,o]);const c=h.useMemo(()=>({transform:`translateX(${n}px)`}),[n]);return{ref:t,style:c}}const SW=e=>{const{target:t,content:n,onFinishEditing:a,forceEditMode:o,initialValue:s,imageEditorOverride:c,markdownDivCreateNode:u,highlight:f,className:m,theme:v,id:y,cell:x,bloom:w,validateCell:S,getCellRenderer:C,provideEditor:R,isOutsideClick:_}=e,[E,T]=h.useState(o?n:void 0),A=h.useRef(E??n);A.current=E??n;const[D,z]=h.useState(()=>S===void 0?!0:!(Qi(n)&&S?.(x,n,A.current)===!1)),O=h.useCallback((ne,he)=>{a(D?ne:void 0,he)},[D,a]),H=h.useCallback(ne=>{if(S!==void 0&&ne!==void 0&&Qi(ne)){const he=S(x,ne,A.current);he===!1?z(!1):(typeof he==\"object\"&&(ne=he),z(!0))}T(ne)},[x,S]),$=h.useRef(!1),V=h.useRef(void 0),I=h.useCallback(()=>{O(E,[0,0]),$.current=!0},[E,O]),M=h.useCallback((ne,he)=>{O(ne,he??V.current??[0,0]),$.current=!0},[O]),q=h.useCallback(async ne=>{let he=!1;ne.key===\"Escape\"?(ne.stopPropagation(),ne.preventDefault(),V.current=[0,0]):ne.key===\"Enter\"&&!ne.shiftKey?(ne.stopPropagation(),ne.preventDefault(),V.current=[0,1],he=!0):ne.key===\"Tab\"&&(ne.stopPropagation(),ne.preventDefault(),V.current=[ne.shiftKey?-1:1,0],he=!0),window.setTimeout(()=>{!$.current&&V.current!==void 0&&(O(he?E:void 0,V.current),$.current=!0)},0)},[O,E]),B=E??n,[j,F]=h.useMemo(()=>{if(Zs(n))return[];const ne=R?.(n);return ne!==void 0?[ne,!1]:[C(n)?.provideEditor?.(n),!1]},[n,C,R]),{ref:U,style:W}=wW();let ee=!0,oe,P=!0,Y;if(j!==void 0){ee=j.disablePadding!==!0,P=j.disableStyling!==!0;const ne=kT(j);ne&&(Y=j.styleOverride);const he=ne?j.editor:j;oe=h.createElement(he,{isHighlighted:f,onChange:H,value:B,initialValue:s,onFinishedEditing:M,validatedSelection:Qi(B)?B.selectionRange:void 0,forceEditMode:o,target:t,imageEditorOverride:c,markdownDivCreateNode:u,isValid:D,theme:v})}Y={...Y,...W};const G=document.getElementById(\"portal\");if(G===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id=\"portal\" />` as the last child of your `<body>`.'),null;let K=P?\"gdg-style\":\"gdg-unstyle\";D||(K+=\" gdg-invalid\"),ee&&(K+=\" gdg-pad\");const te=w?.[0]??1,fe=w?.[1]??1;return hd.createPortal(h.createElement(aM.Provider,{value:v},h.createElement(AM,{style:tM(v),className:m,onClickOutside:I,isOutsideClick:_},h.createElement(bW,{ref:U,id:y,className:K,style:Y,as:F===!0?\"label\":void 0,targetX:t.x-te,targetY:t.y-fe,targetWidth:t.width+te*2,targetHeight:t.height+fe*2},h.createElement(\"div\",{className:\"gdg-clip-region\",onKeyDown:q},oe)))),G)},CW=Object.freeze(Object.defineProperty({__proto__:null,default:SW},Symbol.toStringTag,{value:\"Module\"})),RW=Dr(\"div\")({name:\"NumberOverlayEditorStyle\",class:\"gdg-n15fjm3e\",propsAsIs:!1});function xN(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 o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}var cd;(function(e){e.event=\"event\",e.props=\"prop\"})(cd||(cd={}));function Jo(){}function EW(e){var t,n=void 0;return function(){for(var a=[],o=arguments.length;o--;)a[o]=arguments[o];return t&&a.length===t.length&&a.every(function(s,c){return s===t[c]})||(t=a,n=e.apply(void 0,a)),n}}function ud(e){return!!(e||\"\").match(/\\d/)}function yc(e){return e==null}function kW(e){return typeof e==\"number\"&&isNaN(e)}function wN(e){return yc(e)||kW(e)||typeof e==\"number\"&&!isFinite(e)}function SN(e){return e.replace(/[-[\\]/{}()*+?.\\\\^$|]/g,\"\\\\$&\")}function _W(e){switch(e){case\"lakh\":return/(\\d+?)(?=(\\d\\d)+(\\d)(?!\\d))(\\.\\d+)?/g;case\"wan\":return/(\\d)(?=(\\d{4})+(?!\\d))/g;case\"thousand\":default:return/(\\d)(?=(\\d{3})+(?!\\d))/g}}function TW(e,t,n){var a=_W(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(a,\"$1\"+t)}function MW(e){var t=h.useRef(e);t.current=e;var n=h.useRef(function(){for(var a=[],o=arguments.length;o--;)a[o]=arguments[o];return t.current.apply(t,a)});return n.current}function x1(e,t){t===void 0&&(t=!0);var n=e[0]===\"-\",a=n&&t;e=e.replace(\"-\",\"\");var o=e.split(\".\"),s=o[0],c=o[1]||\"\";return{beforeDecimal:s,afterDecimal:c,hasNegation:n,addNegation:a}}function AW(e){if(!e)return e;var t=e[0]===\"-\";t&&(e=e.substring(1,e.length));var n=e.split(\".\"),a=n[0].replace(/^0+/,\"\")||\"0\",o=n[1]||\"\";return(t?\"-\":\"\")+a+(o?\".\"+o:\"\")}function CN(e,t,n){for(var a=\"\",o=n?\"0\":\"\",s=0;s<=t-1;s++)a+=e[s]||o;return a}function jk(e,t){return Array(t+1).join(e)}function RN(e){var t=e+\"\",n=t[0]===\"-\"?\"-\":\"\";n&&(t=t.substring(1));var a=t.split(/[eE]/g),o=a[0],s=a[1];if(s=Number(s),!s)return n+o;o=o.replace(\".\",\"\");var c=1+s,u=o.length;return c<0?o=\"0.\"+jk(\"0\",Math.abs(c))+o:c>=u?o=o+jk(\"0\",c-u):o=(o.substring(0,c)||\"0\")+\".\"+o.substring(c),n+o}function zk(e,t,n){if([\"\",\"-\"].indexOf(e)!==-1)return e;var a=(e.indexOf(\".\")!==-1||n)&&t,o=x1(e),s=o.beforeDecimal,c=o.afterDecimal,u=o.hasNegation,f=parseFloat(\"0.\"+(c||\"0\")),m=c.length<=t?\"0.\"+c:f.toFixed(t),v=m.split(\".\"),y=s;s&&Number(v[0])&&(y=s.split(\"\").reverse().reduce(function(C,R,_){return C.length>_?(Number(C[0])+Number(R)).toString()+C.substring(1,C.length):R+C},v[0]));var x=CN(v[1]||\"\",t,n),w=u?\"-\":\"\",S=a?\".\":\"\";return\"\"+w+y+S+x}function Qs(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(\"character\",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var EN=EW(function(e,t){for(var n=0,a=0,o=e.length,s=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-a]===t[s-1-a]&&s-a>n&&o-a>n;)a++;return{from:{start:n,end:o-a},to:{start:n,end:s-a}}}),NW=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function OW(e,t,n){return Math.min(Math.max(e,t),n)}function Dy(e){return Math.max(e.selectionStart,e.selectionEnd)}function DW(){return typeof navigator<\"u\"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function jW(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:\"\"}}function zW(e){var t=e.currentValue,n=e.formattedValue,a=e.currentValueIndex,o=e.formattedValueIndex;return t[a]===n[o]}function PW(e,t,n,a,o,s,c){c===void 0&&(c=zW);var u=o.findIndex(function(A){return A}),f=e.slice(0,u);!t&&!n.startsWith(f)&&(t=f,n=f+n,a=a+f.length);for(var m=n.length,v=e.length,y={},x=new Array(m),w=0;w<m;w++){x[w]=-1;for(var S=0,C=v;S<C;S++){var R=c({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:w,formattedValueIndex:S});if(R&&y[S]!==!0){x[w]=S,y[S]=!0;break}}}for(var _=a;_<m&&(x[_]===-1||!s(n[_]));)_++;var E=_===m||x[_]===-1?v:x[_];for(_=a-1;_>0&&x[_]===-1;)_--;var T=_===-1||x[_]===-1?0:x[_]+1;return T>E?E:a-T<E-a?T:E}function Pk(e,t,n,a){var o=e.length;if(t=OW(t,0,o),a===\"left\"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function LW(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,a=t.length;n<a;n++)t[n]=!!(ud(e[n])||ud(e[n-1]));return t}function kN(e,t,n,a,o,s){s===void 0&&(s=Jo);var c=MW(function(S,C){var R,_;return wN(S)?(_=\"\",R=\"\"):typeof S==\"number\"||C?(_=typeof S==\"number\"?RN(S):S,R=a(_)):(_=o(S,void 0),R=a(_)),{formattedValue:R,numAsString:_}}),u=h.useState(function(){return c(yc(e)?t:e,n)}),f=u[0],m=u[1],v=function(S,C){S.formattedValue!==f.formattedValue&&m({formattedValue:S.formattedValue,numAsString:S.value}),s(S,C)},y=e,x=n;yc(e)&&(y=f.numAsString,x=!0);var w=c(y,x);return h.useMemo(function(){m(w)},[w.formattedValue]),[f,v]}function IW(e){return e.replace(/[^0-9]/g,\"\")}function HW(e){return e}function qW(e){var t=e.type;t===void 0&&(t=\"text\");var n=e.displayType;n===void 0&&(n=\"input\");var a=e.customInput,o=e.renderText,s=e.getInputRef,c=e.format;c===void 0&&(c=HW);var u=e.removeFormatting;u===void 0&&(u=IW);var f=e.defaultValue,m=e.valueIsNumericString,v=e.onValueChange,y=e.isAllowed,x=e.onChange;x===void 0&&(x=Jo);var w=e.onKeyDown;w===void 0&&(w=Jo);var S=e.onMouseUp;S===void 0&&(S=Jo);var C=e.onFocus;C===void 0&&(C=Jo);var R=e.onBlur;R===void 0&&(R=Jo);var _=e.value,E=e.getCaretBoundary;E===void 0&&(E=LW);var T=e.isValidInputCharacter;T===void 0&&(T=ud);var A=e.isCharacterSame,D=xN(e,[\"type\",\"displayType\",\"customInput\",\"renderText\",\"getInputRef\",\"format\",\"removeFormatting\",\"defaultValue\",\"valueIsNumericString\",\"onValueChange\",\"isAllowed\",\"onChange\",\"onKeyDown\",\"onMouseUp\",\"onFocus\",\"onBlur\",\"value\",\"getCaretBoundary\",\"isValidInputCharacter\",\"isCharacterSame\"]),z=kN(_,f,!!m,c,u,v),O=z[0],H=O.formattedValue,$=O.numAsString,V=z[1],I=h.useRef(),M=h.useRef({formattedValue:H,numAsString:$}),q=function(re,ie){M.current={formattedValue:re.formattedValue,numAsString:re.value},V(re,ie)},B=h.useState(!1),j=B[0],F=B[1],U=h.useRef(null),W=h.useRef({setCaretTimeout:null,focusTimeout:null});h.useEffect(function(){return F(!0),function(){clearTimeout(W.current.setCaretTimeout),clearTimeout(W.current.focusTimeout)}},[]);var ee=c,oe=function(re,ie){var be=parseFloat(ie);return{formattedValue:re,value:ie,floatValue:isNaN(be)?void 0:be}},P=function(re,ie,be){re.selectionStart===0&&re.selectionEnd===re.value.length||(Qs(re,ie),W.current.setCaretTimeout=setTimeout(function(){re.value===be&&re.selectionStart!==ie&&Qs(re,ie)},0))},Y=function(re,ie,be){return Pk(re,ie,E(re),be)},G=function(re,ie,be){var Ne=E(ie),qe=PW(ie,H,re,be,Ne,T,A);return qe=Pk(ie,qe,Ne),qe},K=function(re){var ie=re.formattedValue;ie===void 0&&(ie=\"\");var be=re.input,Ne=re.source,qe=re.event,Oe=re.numAsString,Be;if(be){var et=re.inputValue||be.value,ht=Dy(be);be.value=ie,Be=G(et,ie,ht),Be!==void 0&&P(be,Be,ie)}ie!==H&&q(oe(ie,Oe),{event:qe,source:Ne})};h.useEffect(function(){var re=M.current,ie=re.formattedValue,be=re.numAsString;(H!==ie||$!==be)&&q(oe(H,$),{event:void 0,source:cd.props})},[H,$]);var te=U.current?Dy(U.current):void 0,fe=typeof window<\"u\"?h.useLayoutEffect:h.useEffect;fe(function(){var re=U.current;if(H!==M.current.formattedValue&&re){var ie=G(M.current.formattedValue,H,te);re.value=H,P(re,ie,H)}},[H]);var ne=function(re,ie,be){var Ne=ie.target,qe=I.current?NW(I.current,Ne.selectionEnd):EN(H,re),Oe=Object.assign(Object.assign({},qe),{lastValue:H}),Be=u(re,Oe),et=ee(Be);if(Be=u(et,void 0),y&&!y(oe(et,Be))){var ht=ie.target,Ve=Dy(ht),Ht=G(re,H,Ve);return ht.value=H,P(ht,Ht,H),!1}return K({formattedValue:et,numAsString:Be,inputValue:re,event:ie,source:be,input:ie.target}),!0},he=function(re,ie){ie===void 0&&(ie=0);var be=re.selectionStart,Ne=re.selectionEnd;I.current={selectionStart:be,selectionEnd:Ne+ie}},Ae=function(re){var ie=re.target,be=ie.value,Ne=ne(be,re,cd.event);Ne&&x(re),I.current=void 0},He=function(re){var ie=re.target,be=re.key,Ne=ie.selectionStart,qe=ie.selectionEnd,Oe=ie.value;Oe===void 0&&(Oe=\"\");var Be;be===\"ArrowLeft\"||be===\"Backspace\"?Be=Math.max(Ne-1,0):be===\"ArrowRight\"?Be=Math.min(Ne+1,Oe.length):be===\"Delete\"&&(Be=Ne);var et=0;be===\"Delete\"&&Ne===qe&&(et=1);var ht=be===\"ArrowLeft\"||be===\"ArrowRight\";if(Be===void 0||Ne!==qe&&!ht){w(re),he(ie,et);return}var Ve=Be;if(ht){var Ht=be===\"ArrowLeft\"?\"left\":\"right\";Ve=Y(Oe,Be,Ht),Ve!==Be&&re.preventDefault()}else be===\"Delete\"&&!T(Oe[Be])?Ve=Y(Oe,Be,\"right\"):be===\"Backspace\"&&!T(Oe[Be])&&(Ve=Y(Oe,Be,\"left\"));Ve!==Be&&P(ie,Ve,Oe),w(re),he(ie,et)},Ye=function(re){var ie=re.target,be=function(){var Ne=ie.selectionStart,qe=ie.selectionEnd,Oe=ie.value;if(Oe===void 0&&(Oe=\"\"),Ne===qe){var Be=Y(Oe,Ne);Be!==Ne&&P(ie,Be,Oe)}};be(),requestAnimationFrame(function(){be()}),S(re),he(ie)},tt=function(re){re.persist&&re.persist();var ie=re.target,be=re.currentTarget;U.current=ie,W.current.focusTimeout=setTimeout(function(){var Ne=ie.selectionStart,qe=ie.selectionEnd,Oe=ie.value;Oe===void 0&&(Oe=\"\");var Be=Y(Oe,Ne);Be!==Ne&&!(Ne===0&&qe===Oe.length)&&P(ie,Be,Oe),C(Object.assign(Object.assign({},re),{currentTarget:be}))},0)},ze=function(re){U.current=null,clearTimeout(W.current.focusTimeout),clearTimeout(W.current.setCaretTimeout),R(re)},Ke=j&&DW()?\"numeric\":void 0,le=Object.assign({inputMode:Ke},D,{type:t,value:H,onChange:Ae,onKeyDown:He,onMouseUp:Ye,onFocus:tt,onBlur:ze});if(n===\"text\")return o?Dt.createElement(Dt.Fragment,null,o(H,D)||null):Dt.createElement(\"span\",Object.assign({},D,{ref:s}),H);if(a){var ke=a;return Dt.createElement(ke,Object.assign({},le,{ref:s}))}return Dt.createElement(\"input\",Object.assign({},le,{ref:s}))}function Lk(e,t){var n=t.decimalScale,a=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o=\"\");var s=t.suffix;s===void 0&&(s=\"\");var c=t.allowNegative,u=t.thousandsGroupStyle;if(u===void 0&&(u=\"thousand\"),e===\"\"||e===\"-\")return e;var f=mm(t),m=f.thousandSeparator,v=f.decimalSeparator,y=n!==0&&e.indexOf(\".\")!==-1||n&&a,x=x1(e,c),w=x.beforeDecimal,S=x.afterDecimal,C=x.addNegation;return n!==void 0&&(S=CN(S,n,!!a)),m&&(w=TW(w,m,u)),o&&(w=o+w),s&&(S=S+s),C&&(w=\"-\"+w),e=w+(y&&v||\"\")+S,e}function mm(e){var t=e.decimalSeparator;t===void 0&&(t=\".\");var n=e.thousandSeparator,a=e.allowedDecimalSeparators;return n===!0&&(n=\",\"),a||(a=[t,\".\"]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:a}}function $W(e,t){e===void 0&&(e=\"\");var n=new RegExp(\"(-)\"),a=new RegExp(\"(-)(.)*(-)\"),o=n.test(e),s=a.test(e);return e=e.replace(/-/g,\"\"),o&&!s&&t&&(e=\"-\"+e),e}function FW(e,t){return new RegExp(\"(^-)|[0-9]|\"+SN(e),\"g\")}function BW(e,t,n){return e===\"\"?!0:!t?.match(/\\d/)&&!n?.match(/\\d/)&&typeof e==\"string\"&&!isNaN(Number(e))}function UW(e,t,n){var a;t===void 0&&(t=jW(e));var o=n.allowNegative,s=n.prefix;s===void 0&&(s=\"\");var c=n.suffix;c===void 0&&(c=\"\");var u=n.decimalScale,f=t.from,m=t.to,v=m.start,y=m.end,x=mm(n),w=x.allowedDecimalSeparators,S=x.decimalSeparator,C=e[y]===S;if(ud(e)&&(e===s||e===c)&&t.lastValue===\"\")return e;if(y-v===1&&w.indexOf(e[v])!==-1){var R=u===0?\"\":S;e=e.substring(0,v)+R+e.substring(v+1,e.length)}var _=function(U,W,ee){var oe=!1,P=!1;s.startsWith(\"-\")?oe=!1:U.startsWith(\"--\")?(oe=!1,P=!0):c.startsWith(\"-\")&&U.length===c.length?oe=!1:U[0]===\"-\"&&(oe=!0);var Y=oe?1:0;return P&&(Y=2),Y&&(U=U.substring(Y),W-=Y,ee-=Y),{value:U,start:W,end:ee,hasNegation:oe}},E=_(e,v,y),T=E.hasNegation;a=E,e=a.value,v=a.start,y=a.end;var A=_(t.lastValue,f.start,f.end),D=A.start,z=A.end,O=A.value,H=e.substring(v,y);e.length&&O.length&&(D>O.length-c.length||z<s.length)&&!(H&&c.startsWith(H))&&(e=O);var $=0;e.startsWith(s)?$+=s.length:v<s.length&&($=v),e=e.substring($),y-=$;var V=e.length,I=e.length-c.length;e.endsWith(c)?V=I:(y>I||y>e.length-c.length)&&(V=y),e=e.substring(0,V),e=$W(T?\"-\"+e:e,o),e=(e.match(FW(S))||[]).join(\"\");var M=e.indexOf(S);e=e.replace(new RegExp(SN(S),\"g\"),function(U,W){return W===M?\".\":\"\"});var q=x1(e,o),B=q.beforeDecimal,j=q.afterDecimal,F=q.addNegation;return m.end-m.start<f.end-f.start&&B===\"\"&&C&&!parseFloat(j)&&(e=F?\"-\":\"\"),e}function VW(e,t){var n=t.prefix;n===void 0&&(n=\"\");var a=t.suffix;a===void 0&&(a=\"\");var o=Array.from({length:e.length+1}).map(function(){return!0}),s=e[0]===\"-\";o.fill(!1,0,n.length+(s?1:0));var c=e.length;return o.fill(!1,c-a.length+1,c+1),o}function WW(e){var t=mm(e),n=t.thousandSeparator,a=t.decimalSeparator,o=e.prefix;o===void 0&&(o=\"\");var s=e.allowNegative;if(s===void 0&&(s=!0),n===a)throw new Error(`\n Decimal separator can't be same as thousand separator.\n thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = \",\")\n decimalSeparator: `+a+` (default value for decimalSeparator is .)\n `);return o.startsWith(\"-\")&&s&&(console.error(`\n Prefix can't start with '-' when allowNegative is true.\n prefix: `+o+`\n allowNegative: `+s+`\n `),s=!1),Object.assign(Object.assign({},e),{allowNegative:s})}function GW(e){e=WW(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,a=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Jo);var s=e.onBlur;s===void 0&&(s=Jo);var c=e.thousandSeparator,u=e.decimalScale,f=e.fixedDecimalScale,m=e.prefix;m===void 0&&(m=\"\");var v=e.defaultValue,y=e.value,x=e.valueIsNumericString,w=e.onValueChange,S=xN(e,[\"decimalSeparator\",\"allowedDecimalSeparators\",\"thousandsGroupStyle\",\"suffix\",\"allowNegative\",\"allowLeadingZeros\",\"onKeyDown\",\"onBlur\",\"thousandSeparator\",\"decimalScale\",\"fixedDecimalScale\",\"prefix\",\"defaultValue\",\"value\",\"valueIsNumericString\",\"onValueChange\"]),C=mm(e),R=C.decimalSeparator,_=C.allowedDecimalSeparators,E=function(F){return Lk(F,e)},T=function(F,U){return UW(F,U,e)},A=yc(y)?v:y,D=x??BW(A,m,t);yc(y)?yc(v)||(D=D||typeof v==\"number\"):D=D||typeof y==\"number\";var z=function(F){return wN(F)?F:(typeof F==\"number\"&&(F=RN(F)),D&&typeof u==\"number\"?zk(F,u,!!f):F)},O=kN(z(y),z(v),!!D,E,T,w),H=O[0],$=H.numAsString,V=H.formattedValue,I=O[1],M=function(F){var U=F.target,W=F.key,ee=U.selectionStart,oe=U.selectionEnd,P=U.value;if(P===void 0&&(P=\"\"),(W===\"Backspace\"||W===\"Delete\")&&oe<m.length){F.preventDefault();return}if(ee!==oe){o(F);return}W===\"Backspace\"&&P[0]===\"-\"&&ee===m.length+1&&n&&Qs(U,1),u&&f&&(W===\"Backspace\"&&P[ee-1]===R?(Qs(U,ee-1),F.preventDefault()):W===\"Delete\"&&P[ee]===R&&F.preventDefault()),_?.includes(W)&&P[ee]===R&&Qs(U,ee+1);var Y=c===!0?\",\":c;W===\"Backspace\"&&P[ee-1]===Y&&Qs(U,ee-1),W===\"Delete\"&&P[ee]===Y&&Qs(U,ee+1),o(F)},q=function(F){var U=$;if(U.match(/\\d/g)||(U=\"\"),a||(U=AW(U)),f&&u&&(U=zk(U,u,f)),U!==$){var W=Lk(U,e);I({formattedValue:W,value:U,floatValue:parseFloat(U)},{event:F,source:cd.event})}s(F)},B=function(F){return F===R?!0:ud(F)},j=function(F){var U=F.currentValue,W=F.lastValue,ee=F.formattedValue,oe=F.currentValueIndex,P=F.formattedValueIndex,Y=U[oe],G=ee[P],K=EN(W,U),te=K.to,fe=function(ne){return T(ne).indexOf(\".\")+m.length};return y===0&&f&&u&&U[te.start]===R&&fe(U)<oe&&fe(ee)>P?!1:oe>=te.start&&oe<te.end&&_&&_.includes(Y)&&G===R?!0:Y===G};return Object.assign(Object.assign({},S),{value:V,valueIsNumericString:!1,isValidInputCharacter:B,isCharacterSame:j,onValueChange:I,format:E,removeFormatting:T,getCaretBoundary:function(F){return VW(F,e)},onKeyDown:M,onBlur:q})}function YW(e){var t=GW(e);return Dt.createElement(qW,Object.assign({},t))}function _N(){return Intl.NumberFormat()?.formatToParts(1.1)?.find(n=>n.type===\"decimal\")?.value??\".\"}function XW(){return _N()===\".\"?\",\":\".\"}const KW=e=>{const{value:t,onChange:n,disabled:a,highlight:o,validatedSelection:s,fixedDecimals:c,allowNegative:u,thousandSeparator:f,decimalSeparator:m}=e,v=h.useRef();return h.useLayoutEffect(()=>{if(s!==void 0){const y=typeof s==\"number\"?[s,null]:s;v.current?.setSelectionRange(y[0],y[1])}},[s]),h.createElement(RW,null,h.createElement(YW,{autoFocus:!0,getInputRef:v,className:\"gdg-input\",onFocus:y=>y.target.setSelectionRange(o?0:y.target.value.length,y.target.value.length),disabled:a===!0,decimalScale:c,allowNegative:u,thousandSeparator:f??XW(),decimalSeparator:m??_N(),value:Object.is(t,-0)?\"-\":t??\"\",onValueChange:n}))},QW=Object.freeze(Object.defineProperty({__proto__:null,default:KW},Symbol.toStringTag,{value:\"Module\"}));\n\n</script>\n <style>\n.gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.gdg-mnuv029>*{margin:0}.gdg-mnuv029 *:last-child{margin-bottom:0}.gdg-mnuv029 p img{width:100%}.gdg-d19meir1{position:absolute;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;--overlay-top:var(--d19meir1-0);left:var(--d19meir1-1);top:var(--d19meir1-0);min-width:var(--d19meir1-2);min-height:var(--d19meir1-3);width:-moz-max-content;width:max-content;max-width:400px;max-height:calc(100vh - var(--d19meir1-4));font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);text-align:start}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0%}to{opacity:100%}}.gdg-d19meir1.gdg-style{border-radius:2px;background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;animation:glide_fade_in-gdg-d19meir1 60ms 1}.gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5) 8.5px 3px}.gdg-d19meir1 .gdg-clip-region{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;border-radius:2px;flex-grow:1}.gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.gdg-d19meir1 .gdg-clip-region input.gdg-input{width:100%;border:none;border-width:0;outline:none}.gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:none;border-width:0;outline:none}.gdg-b1ygi5by{display:flex;flex-wrap:wrap;margin-top:auto;margin-bottom:auto}.gdg-b1ygi5by .boe-bubble{display:flex;justify-content:center;align-items:center;border-radius:var(--gdg-rounding-radius,10px);padding:0 8px;height:20px;background-color:var(--gdg-bg-bubble);color:var(--gdg-text-dark);margin:2px}.gdg-b1ygi5by textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-n15fjm3e{display:flex;margin:6px 0 3px;color:var(--gdg-text-dark)}.gdg-n15fjm3e>input{font-size:var(--gdg-editor-font-size);padding:0;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);background-color:var(--gdg-bg-cell)}.gdg-d4zsq0x{display:flex;flex-wrap:wrap}.gdg-d4zsq0x .doe-bubble{display:flex;justify-content:center;align-items:center;padding:0 8px;height:24px;background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);margin:2px;border-radius:var(--gdg-rounding-radius,6px);box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.gdg-d4zsq0x .doe-bubble img{height:16px;-o-object-fit:contain;object-fit:contain;margin-right:4px}.gdg-d4zsq0x textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-i2iowwq{display:flex;height:100%}.gdg-i2iowwq .gdg-centering-container{display:flex;justify-content:center;align-items:center;height:100%}.gdg-i2iowwq .gdg-centering-container img,.gdg-i2iowwq .gdg-centering-container canvas{max-height:calc(100vh - var(--overlay-top) - 20px);-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none}.gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.gdg-i2iowwq .gdg-edit-icon{position:absolute;top:12px;right:0;width:48px;height:48px;color:var(--gdg-accent-color);cursor:pointer;display:flex;justify-content:center;align-items:center}.gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.gdg-i2iowwq textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-u1rrojo{display:flex;flex-grow:1;align-items:center;min-height:21px}.gdg-u1rrojo .gdg-link-area{flex-grow:1;flex-shrink:1;cursor:pointer;margin-right:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gdg-link-color);-webkit-text-decoration:underline!important;text-decoration:underline!important}.gdg-u1rrojo .gdg-edit-icon{flex-shrink:0;width:32px;color:var(--gdg-accent-color);cursor:pointer;display:flex;justify-content:center;align-items:center}.gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.gdg-u1rrojo textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-m1pnx84e{min-width:var(--m1pnx84e-0);width:100%;display:flex;align-items:flex-start;justify-content:space-between;position:relative;color:var(--gdg-text-dark)}.gdg-m1pnx84e .gdg-g1y0xocz{flex-shrink:1;min-width:0}.gdg-m1pnx84e .gdg-spacer{flex:1}.gdg-m1pnx84e .gdg-edit-icon{position:relative;cursor:pointer;display:flex;justify-content:center;align-items:center;color:var(--gdg-accent-color);padding:0;height:24px;width:24px;flex-shrink:0;transition:all \"0.125s ease\";border-radius:6px}.gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.gdg-m1pnx84e .gdg-edit-hover:hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.gdg-m1pnx84e .gdg-checkmark-hover:hover{color:#fff;background-color:var(--gdg-accent-color)}.gdg-m1pnx84e .gdg-md-edit-textarea{position:relative;top:0;left:0;width:0px;height:0px;margin-top:25px;opacity:0;padding:0}.gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);transform:translateZ(0)}.gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.gdg-s1dgczr6 .dvn-scroll-inner{display:flex;pointer-events:none}.gdg-s1dgczr6 .dvn-scroll-inner>*{flex-shrink:0}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{display:flex;flex-direction:column}.gdg-s1dgczr6 .dvn-underlay>*{position:absolute;left:0;top:0}.gdg-s1dgczr6 canvas{outline:none}.gdg-s1dgczr6 canvas *{height:0}.gdg-izpuzkl{position:absolute;inset:0;width:100%;height:100%;border-radius:0;resize:none;white-space:pre-wrap;min-width:100%;overflow:hidden;border:0;background-color:transparent;font-size:var(--gdg-editor-font-size);line-height:16px;font-family:var(--gdg-font-family);-webkit-text-fill-color:var(--gdg-text-dark);color:var(--gdg-text-dark);padding:0;margin:0}.gdg-izpuzkl::-moz-placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.gdg-invalid .gdg-izpuzkl{-webkit-text-decoration:underline;text-decoration:underline;text-decoration-color:#d60606}.gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;width:-moz-max-content;width:max-content;max-width:100%;min-width:100%;font-size:var(--gdg-editor-font-size);line-height:16px;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);padding:0 0 2px;margin:0}.gdg-g1y0xocz{position:relative;margin-top:6px}.gdg-seveqep{position:absolute;top:4px;right:20px;background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);padding:8px;border:1px solid var(--gdg-border-color);border-radius:6px;font-size:var(--gdg-editor-font-size);animation:gdg-search-fadein-gdg-seveqep .15s forwards}.gdg-seveqep.out{animation:gdg-search-fadeout-gdg-seveqep .15s forwards}.gdg-seveqep .gdg-search-bar-inner{display:flex}.gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.gdg-seveqep .gdg-search-progress{position:absolute;height:4px;left:0;bottom:0;background-color:var(--gdg-text-light)}.gdg-seveqep input{width:220px;color:var(--gdg-textDark);background-color:var(--gdg-bg-cell);border:none;border-width:0;outline:none}.gdg-seveqep button{width:24px;height:24px;padding:0;border:none;outline:none;background:none;display:flex;justify-content:center;align-items:center;cursor:pointer;color:var(--gdg-text-medium)}.gdg-seveqep button:hover{color:var(--gdg-text-dark)}.gdg-seveqep button .button-icon{width:16px;height:16px}.gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@keyframes gdg-search-fadeout-gdg-seveqep{0%{transform:translate(0)}to{transform:translate(400px)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{transform:translate(400px)}to{transform:translate(0)}}.gdg-wmyidgi{position:relative;min-width:10px;min-height:10px;max-width:100%;max-height:100%;width:var(--wmyidgi-0);height:var(--wmyidgi-1);overflow:hidden;overflow:clip;direction:ltr}.gdg-wmyidgi>:first-child{position:absolute;left:0;top:0;width:100%;height:100%}.gdg-r17m35ur{flex-grow:1;border:none;outline:none;background-color:var(--gdg-bg-header-has-focus);border-radius:9px;padding:0 8px;box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);min-height:var(--r17m35ur-0);font:var(--gdg-header-font-style) var(--gdg-font-family)}.gdg-c1tqibwd{padding:0 8px;display:flex;align-items:center;background-color:var(--gdg-bg-header)}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:\"\"}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-yellow-400:oklch(85.2% .199 91.936);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-slate-50:oklch(98.4% .003 247.858);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-800:oklch(26.8% .007 34.298);--color-stone-900:oklch(21.6% .006 56.043);--color-stone-950:oklch(14.7% .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-lg:32rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-1{bottom:calc(var(--spacing)*1)}.left-0{left:calc(var(--spacing)*0)}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\\[50\\%\\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-50{z-index:50}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-32{height:calc(var(--spacing)*32)}.h-\\[1px\\]{height:1px}.h-\\[400px\\]{height:400px}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:calc(var(--spacing)*80)}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\\[400px\\]{max-height:400px}.min-h-\\[36px\\]{min-height:36px}.min-h-\\[80px\\]{min-height:80px}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-1\\/2{width:50%}.w-2{width:calc(var(--spacing)*2)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-3\\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-80{width:calc(var(--spacing)*80)}.w-\\[1px\\]{width:1px}.w-\\[500px\\]{width:500px}.w-full{width:100%}.w-px{width:1px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[300px\\]{max-width:300px}.max-w-lg{max-width:var(--container-lg)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[48px\\]{min-width:48px}.min-w-\\[80px\\]{min-width:80px}.min-w-\\[160px\\]{min-width:160px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[320px\\]{min-width:320px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow\\!{flex-grow:1!important}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.transform\\!{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}:where(.divide-\\[var\\(--border-color\\)\\]>:not(:last-child)){border-color:var(--border-color)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--accent-color\\)\\]{border-color:var(--accent-color)}.border-\\[var\\(--border-color\\)\\]{border-color:var(--border-color)}.border-blue-600{border-color:var(--color-blue-600)}.border-red-200{border-color:var(--color-red-200)}.border-stone-100{border-color:var(--color-stone-100)}.border-stone-200{border-color:var(--color-stone-200)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-\\[var\\(--accent-bg\\)\\]{background-color:var(--accent-bg)}.bg-\\[var\\(--accent-color\\)\\],.bg-\\[var\\(--accent-color\\)\\]\\/10{background-color:var(--accent-color)}@supports (color:color-mix(in lab,red,red)){.bg-\\[var\\(--accent-color\\)\\]\\/10{background-color:color-mix(in oklab,var(--accent-color)10%,transparent)}}.bg-\\[var\\(--bg-primary\\)\\]{background-color:var(--bg-primary)}.bg-\\[var\\(--bg-secondary\\)\\]{background-color:var(--bg-secondary)}.bg-\\[var\\(--bg-selected\\)\\]{background-color:var(--bg-selected)}.bg-\\[var\\(--bg-tertiary\\)\\]{background-color:var(--bg-tertiary)}.bg-\\[var\\(--border-color\\)\\]{background-color:var(--border-color)}.bg-\\[var\\(--error-color\\)\\]{background-color:var(--error-color)}.bg-black{background-color:var(--color-black)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\\/15{background-color:#3080ff26}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\\/15{background-color:color-mix(in oklab,var(--color-blue-500)15%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\\/15{background-color:color-mix(in oklab,var(--color-emerald-500)15%,transparent)}}.bg-green-100{background-color:var(--color-green-100)}.bg-green-600{background-color:var(--color-green-600)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\\/15{background-color:color-mix(in oklab,var(--color-orange-500)15%,transparent)}}.bg-orange-600{background-color:var(--color-orange-600)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\\/15{background-color:#ac4bff26}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\\/15{background-color:color-mix(in oklab,var(--color-purple-500)15%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/10{background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.bg-red-500\\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/15{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.bg-red-500\\/\\[0\\.03\\]{background-color:#fb2c3608}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/\\[0\\.03\\]{background-color:color-mix(in oklab,var(--color-red-500)3%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-stone-100{background-color:var(--color-stone-100)}.bg-stone-200{background-color:var(--color-stone-200)}.bg-white{background-color:var(--color-white)}.bg-repeat{background-repeat:repeat}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-\\[1px\\]{padding:1px}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-7{padding-left:calc(var(--spacing)*7)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.pl-\\[52px\\]{padding-left:52px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--accent-color\\)\\]{color:var(--accent-color)}.text-\\[var\\(--error-color\\)\\]{color:var(--error-color)}.text-\\[var\\(--success-color\\)\\]{color:var(--success-color)}.text-\\[var\\(--text-primary\\)\\]{color:var(--text-primary)}.text-\\[var\\(--text-secondary\\)\\]{color:var(--text-secondary)}.text-\\[var\\(--text-tertiary\\)\\]{color:var(--text-tertiary)}.text-blue-400{color:var(--color-blue-400)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-current{color:currentColor}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-orange-400{color:var(--color-orange-400)}.text-orange-600{color:var(--color-orange-600)}.text-orange-700{color:var(--color-orange-700)}.text-purple-400{color:var(--color-purple-400)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-400{color:var(--color-red-400)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-900{color:var(--color-red-900)}.text-stone-300{color:var(--color-stone-300)}.text-stone-400{color:var(--color-stone-400)}.text-stone-500{color:var(--color-stone-500)}.text-stone-600{color:var(--color-stone-600)}.text-stone-700{color:var(--color-stone-700)}.text-stone-900{color:var(--color-stone-900)}.text-stone-950{color:var(--color-stone-950)}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-white{--tw-ring-offset-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter\\!{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:text-\\[var\\(--text-secondary\\)\\]:is(:where(.group):hover *){color:var(--text-secondary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\\:text-\\[var\\(--text-tertiary\\)\\]::-moz-placeholder{color:var(--text-tertiary)}.placeholder\\:text-\\[var\\(--text-tertiary\\)\\]::placeholder{color:var(--text-tertiary)}.placeholder\\:text-stone-400::-moz-placeholder{color:var(--color-stone-400)}.placeholder\\:text-stone-400::placeholder{color:var(--color-stone-400)}.placeholder\\:text-stone-500::-moz-placeholder{color:var(--color-stone-500)}.placeholder\\:text-stone-500::placeholder{color:var(--color-stone-500)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:w-1:after{content:var(--tw-content);width:calc(var(--spacing)*1)}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:border-\\[var\\(--text-tertiary\\)\\]:hover{border-color:var(--text-tertiary)}.hover\\:bg-\\[var\\(--bg-hover\\)\\]:hover{background-color:var(--bg-hover)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\\:bg-orange-200:hover{background-color:var(--color-orange-200)}.hover\\:bg-orange-700:hover{background-color:var(--color-orange-700)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-stone-50:hover{background-color:var(--color-stone-50)}.hover\\:bg-stone-100:hover{background-color:var(--color-stone-100)}.hover\\:bg-stone-200:hover{background-color:var(--color-stone-200)}.hover\\:text-\\[var\\(--error-color\\)\\]:hover{color:var(--error-color)}.hover\\:text-\\[var\\(--text-primary\\)\\]:hover{color:var(--text-primary)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-red-400:hover{color:var(--color-red-400)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-red-700:hover{color:var(--color-red-700)}.hover\\:text-stone-600:hover{color:var(--color-stone-600)}.hover\\:text-stone-700:hover{color:var(--color-stone-700)}.hover\\:text-stone-900:hover{color:var(--color-stone-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}}.focus\\:border-\\[var\\(--accent-color\\)\\]:focus{border-color:var(--accent-color)}.focus\\:border-\\[var\\(--text-secondary\\)\\]:focus{border-color:var(--text-secondary)}.focus\\:bg-stone-100:focus{background-color:var(--color-stone-100)}.focus\\:text-red-600:focus{color:var(--color-red-600)}.focus\\:text-stone-900:focus{color:var(--color-stone-900)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-stone-950:focus{--tw-ring-color:var(--color-stone-950)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\\:ring-stone-950:focus-visible{--tw-ring-color:var(--color-stone-950)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-white:focus-visible{--tw-ring-offset-color:var(--color-white)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:calc(var(--spacing)*0)}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:calc(var(--spacing)*1)}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=active\\]\\:bg-white[data-state=active]{background-color:var(--color-white)}.data-\\[state\\=active\\]\\:text-stone-950[data-state=active]{color:var(--color-stone-950)}.data-\\[state\\=active\\]\\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked]{--tw-translate-x:calc(var(--spacing)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:border-orange-600[data-state=checked]{border-color:var(--color-orange-600)}.data-\\[state\\=checked\\]\\:bg-orange-600[data-state=checked]{background-color:var(--color-orange-600)}.data-\\[state\\=checked\\]\\:text-white[data-state=checked]{color:var(--color-white)}.data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\\[state\\=open\\]\\:bg-stone-100[data-state=open]{background-color:var(--color-stone-100)}.data-\\[state\\=open\\]\\:text-stone-500[data-state=open]{color:var(--color-stone-500)}.data-\\[state\\=open\\]\\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\\[state\\=selected\\]\\:bg-stone-100[data-state=selected]{background-color:var(--color-stone-100)}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=unchecked\\]\\:bg-stone-200[data-state=unchecked]{background-color:var(--color-stone-200)}@media (min-width:40rem){.sm\\:mt-0{margin-top:calc(var(--spacing)*0)}.sm\\:block{display:block}.sm\\:max-w-\\[500px\\]{max-width:500px}.sm\\:max-w-sm{max-width:var(--container-sm)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius-lg)}.sm\\:text-left{text-align:left}}.dark\\:border-\\[\\#3e3e42\\]:where(.dark,.dark *){border-color:#3e3e42}.dark\\:border-\\[\\#569cd6\\]:where(.dark,.dark *){border-color:#569cd6}.dark\\:border-\\[\\#f48771\\]:where(.dark,.dark *){border-color:#f48771}.dark\\:bg-\\[\\#1e1e1e\\]:where(.dark,.dark *){background-color:#1e1e1e}.dark\\:bg-\\[\\#2d2d30\\]:where(.dark,.dark *){background-color:#2d2d30}.dark\\:bg-\\[\\#3e3e42\\]:where(.dark,.dark *){background-color:#3e3e42}.dark\\:bg-\\[\\#569cd6\\]:where(.dark,.dark *){background-color:#569cd6}.dark\\:bg-\\[\\#37373d\\]:where(.dark,.dark *){background-color:#37373d}.dark\\:bg-\\[\\#252526\\]:where(.dark,.dark *){background-color:#252526}.dark\\:bg-\\[\\#f48771\\]:where(.dark,.dark *){background-color:#f48771}.dark\\:bg-blue-500\\/20:where(.dark,.dark *){background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-500\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.dark\\:bg-green-500\\/20:where(.dark,.dark *){background-color:#00c75833}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-green-500\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)}}.dark\\:bg-orange-500\\/20:where(.dark,.dark *){background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-orange-500\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-orange-500)20%,transparent)}}.dark\\:bg-purple-500\\/20:where(.dark,.dark *){background-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-purple-500\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-purple-500)20%,transparent)}}.dark\\:bg-red-500\\/20:where(.dark,.dark *){background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-500\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.dark\\:bg-red-900\\/20:where(.dark,.dark *){background-color:#82181a33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\\:bg-stone-500\\/20:where(.dark,.dark *){background-color:#79716b33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-stone-500\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-stone-500)20%,transparent)}}.dark\\:text-\\[\\#1e1e1e\\]:where(.dark,.dark *){color:#1e1e1e}.dark\\:text-\\[\\#4ec9b0\\]:where(.dark,.dark *){color:#4ec9b0}.dark\\:text-\\[\\#6a6a6a\\]:where(.dark,.dark *){color:#6a6a6a}.dark\\:text-\\[\\#569cd6\\]:where(.dark,.dark *){color:#569cd6}.dark\\:text-\\[\\#969696\\]:where(.dark,.dark *){color:#969696}.dark\\:text-\\[\\#c586c0\\]:where(.dark,.dark *){color:#c586c0}.dark\\:text-\\[\\#cccccc\\]:where(.dark,.dark *){color:#ccc}.dark\\:text-\\[\\#ce9178\\]:where(.dark,.dark *){color:#ce9178}.dark\\:text-\\[\\#f48771\\]:where(.dark,.dark *){color:#f48771}.dark\\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\\:text-stone-50:where(.dark,.dark *){color:var(--color-stone-50)}.dark\\:text-stone-400:where(.dark,.dark *){color:var(--color-stone-400)}.dark\\:ring-offset-\\[\\#1e1e1e\\]:where(.dark,.dark *){--tw-ring-offset-color:#1e1e1e}.dark\\:ring-offset-stone-950:where(.dark,.dark *){--tw-ring-offset-color:var(--color-stone-950)}.dark\\:placeholder\\:text-\\[\\#6a6a6a\\]:where(.dark,.dark *)::-moz-placeholder{color:#6a6a6a}.dark\\:placeholder\\:text-\\[\\#6a6a6a\\]:where(.dark,.dark *)::placeholder{color:#6a6a6a}@media (hover:hover){.dark\\:hover\\:bg-\\[\\#2a2a2b\\]:where(.dark,.dark *):hover{background-color:#2a2a2b}.dark\\:hover\\:bg-\\[\\#3e3e42\\]:where(.dark,.dark *):hover{background-color:#3e3e42}.dark\\:hover\\:bg-\\[\\#4a4a4e\\]:where(.dark,.dark *):hover{background-color:#4a4a4e}.dark\\:hover\\:bg-\\[\\#4a8cc7\\]:where(.dark,.dark *):hover{background-color:#4a8cc7}.dark\\:hover\\:bg-\\[\\#5a1d1d\\]:where(.dark,.dark *):hover{background-color:#5a1d1d}.dark\\:hover\\:bg-\\[\\#37373d\\]:where(.dark,.dark *):hover{background-color:#37373d}.dark\\:hover\\:bg-\\[\\#f5917e\\]:where(.dark,.dark *):hover{background-color:#f5917e}.dark\\:hover\\:text-\\[\\#569cd6\\]:where(.dark,.dark *):hover{color:#569cd6}.dark\\:hover\\:text-\\[\\#cccccc\\]:where(.dark,.dark *):hover{color:#ccc}.dark\\:hover\\:text-\\[\\#f48771\\]:where(.dark,.dark *):hover{color:#f48771}.dark\\:hover\\:text-red-300:where(.dark,.dark *):hover{color:var(--color-red-300)}}.dark\\:focus\\:bg-\\[\\#2a2a2b\\]:where(.dark,.dark *):focus{background-color:#2a2a2b}.dark\\:focus\\:text-\\[\\#cccccc\\]:where(.dark,.dark *):focus{color:#ccc}.dark\\:focus\\:text-red-400:where(.dark,.dark *):focus{color:var(--color-red-400)}.dark\\:focus\\:ring-\\[\\#569cd6\\]:where(.dark,.dark *):focus{--tw-ring-color:#569cd6}.dark\\:focus\\:ring-stone-300:where(.dark,.dark *):focus{--tw-ring-color:var(--color-stone-300)}.dark\\:focus-visible\\:ring-\\[\\#569cd6\\]:where(.dark,.dark *):focus-visible{--tw-ring-color:#569cd6}.dark\\:focus-visible\\:ring-stone-300:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--color-stone-300)}.dark\\:focus-visible\\:ring-offset-\\[\\#1e1e1e\\]:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:#1e1e1e}.dark\\:data-\\[state\\=active\\]\\:bg-\\[\\#252526\\]:where(.dark,.dark *)[data-state=active]{background-color:#252526}.dark\\:data-\\[state\\=active\\]\\:text-\\[\\#cccccc\\]:where(.dark,.dark *)[data-state=active]{color:#ccc}.dark\\:data-\\[state\\=checked\\]\\:border-\\[\\#569cd6\\]:where(.dark,.dark *)[data-state=checked]{border-color:#569cd6}.dark\\:data-\\[state\\=checked\\]\\:bg-\\[\\#569cd6\\]:where(.dark,.dark *)[data-state=checked]{background-color:#569cd6}.dark\\:data-\\[state\\=open\\]\\:bg-\\[\\#2a2a2b\\]:where(.dark,.dark *)[data-state=open]{background-color:#2a2a2b}.dark\\:data-\\[state\\=open\\]\\:bg-\\[\\#3e3e42\\]:where(.dark,.dark *)[data-state=open]{background-color:#3e3e42}.dark\\:data-\\[state\\=open\\]\\:bg-stone-800:where(.dark,.dark *)[data-state=open]{background-color:var(--color-stone-800)}.dark\\:data-\\[state\\=open\\]\\:text-\\[\\#cccccc\\]:where(.dark,.dark *)[data-state=open]{color:#ccc}.dark\\:data-\\[state\\=unchecked\\]\\:bg-\\[\\#3e3e42\\]:where(.dark,.dark *)[data-state=unchecked]{background-color:#3e3e42}.\\[\\&_tr\\]\\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}.\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x)var(--tw-translate-y)}.\\[\\&\\>tr\\]\\:last\\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div{rotate:90deg}}:root{color-scheme:light;--bg-primary:#fff;--bg-secondary:#f8f9fa;--bg-tertiary:#f3f4f6;--bg-hover:#f3f4f6;--bg-selected:#eff6ff;--border-color:#e5e7eb;--text-primary:#111827;--text-secondary:#6b7280;--text-tertiary:#9ca3af;--accent-color:#2563eb;--accent-bg:#eff6ff;--success-color:#16a34a;--success-bg:#f0fdf4;--error-color:#dc2626;--error-bg:#fef2f2;color:var(--text-primary);background-color:var(--bg-primary);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}.dark{color-scheme:dark;--bg-primary:#1e1e1e;--bg-secondary:#252526;--bg-tertiary:#2d2d30;--bg-hover:#2a2a2b;--bg-selected:#37373d;--border-color:#3e3e42;--text-primary:#ccc;--text-secondary:#969696;--text-tertiary:#6a6a6a;--accent-color:#569cd6;--accent-bg:#37373d;--success-color:#4ade80;--success-bg:#14532d;--error-color:#f87171;--error-bg:#7f1d1d;background-color:var(--bg-primary);color:var(--text-primary)}body{background-color:var(--bg-secondary);min-width:320px;min-height:100vh;margin:0;display:flex}#root{width:100%}*{box-sizing:border-box}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-pan-x{syntax:\"*\";inherits:false}@property --tw-pan-y{syntax:\"*\";inherits:false}@property --tw-pinch-zoom{syntax:\"*\";inherits:false}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}@keyframes spin{to{transform:rotate(360deg)}}\n\n</style>\n </head>\n <body>\n <div id=\"root\"></div>\n <div id=\"portal\"></div>\n </body>\n</html>\n";