axiodb 2.30.93 → 2.31.94

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.
Files changed (47) hide show
  1. package/lib/Services/Aggregation/Aggregation.Operation.js +10 -47
  2. package/lib/Services/Aggregation/Aggregation.Operation.js.map +1 -1
  3. package/lib/Services/CRUD Operation/Create.operation.js +7 -53
  4. package/lib/Services/CRUD Operation/Create.operation.js.map +1 -1
  5. package/lib/Services/CRUD Operation/Delete.operation.js +12 -51
  6. package/lib/Services/CRUD Operation/Delete.operation.js.map +1 -1
  7. package/lib/Services/CRUD Operation/Reader.operation.js +12 -51
  8. package/lib/Services/CRUD Operation/Reader.operation.js.map +1 -1
  9. package/lib/Services/CRUD Operation/Update.operation.js +12 -51
  10. package/lib/Services/CRUD Operation/Update.operation.js.map +1 -1
  11. package/lib/Services/Indexation.operation.d.ts +5 -0
  12. package/lib/Services/Indexation.operation.js +7 -0
  13. package/lib/Services/Indexation.operation.js.map +1 -1
  14. package/lib/server/config/keys.js +30 -28
  15. package/lib/server/config/keys.js.map +1 -1
  16. package/lib/server/controller/Collections/Collection.controller.d.ts +1 -1
  17. package/lib/server/controller/Collections/Collection.controller.js +1 -15
  18. package/lib/server/controller/Collections/Collection.controller.js.map +1 -1
  19. package/lib/server/controller/Database/Databse.controller.d.ts +32 -2
  20. package/lib/server/controller/Database/Databse.controller.js +157 -14
  21. package/lib/server/controller/Database/Databse.controller.js.map +1 -1
  22. package/lib/server/controller/Operation/CRUD.controller.js +0 -9
  23. package/lib/server/controller/Operation/CRUD.controller.js.map +1 -1
  24. package/lib/server/controller/Stats.controller.d.ts +1 -1
  25. package/lib/server/controller/Stats.controller.js +1 -14
  26. package/lib/server/controller/Stats.controller.js.map +1 -1
  27. package/lib/server/public/AxioControl/.vite/manifest.json +2 -2
  28. package/lib/server/public/AxioControl/.vite/ssr-manifest.json +258 -0
  29. package/lib/server/public/AxioControl/assets/index-CdykjE_a.css +1 -0
  30. package/lib/server/public/AxioControl/assets/index-DImn3ep-.js +75 -0
  31. package/lib/server/public/AxioControl/index.html +2 -2
  32. package/lib/server/public/AxioControl/sw.js +1 -1
  33. package/lib/server/router/Router.js +1 -21
  34. package/lib/server/router/Router.js.map +1 -1
  35. package/lib/server/router/Routers/Collection.routes.js +1 -3
  36. package/lib/server/router/Routers/Collection.routes.js.map +1 -1
  37. package/lib/server/router/Routers/DB.routes.js +7 -3
  38. package/lib/server/router/Routers/DB.routes.js.map +1 -1
  39. package/lib/utility/ZipUnzip.utils.d.ts +31 -0
  40. package/lib/utility/ZipUnzip.utils.js +117 -0
  41. package/lib/utility/ZipUnzip.utils.js.map +1 -0
  42. package/package.json +6 -3
  43. package/lib/server/config/GlobalStorage.config.d.ts +0 -66
  44. package/lib/server/config/GlobalStorage.config.js +0 -95
  45. package/lib/server/config/GlobalStorage.config.js.map +0 -1
  46. package/lib/server/public/AxioControl/assets/index-CEUHQ44S.css +0 -1
  47. package/lib/server/public/AxioControl/assets/index-Cub2B5F8.js +0 -67
@@ -1,67 +0,0 @@
1
- var wg=Object.defineProperty,Eg=Object.defineProperties;var Rg=Object.getOwnPropertyDescriptors;var Rs=Object.getOwnPropertySymbols;var M0=Object.prototype.hasOwnProperty,z0=Object.prototype.propertyIsEnumerable;var $a=(n,s)=>(s=Symbol[n])?s:Symbol.for("Symbol."+n),Ag=n=>{throw TypeError(n)};var O0=(n,s,o)=>s in n?wg(n,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[s]=o,xe=(n,s)=>{for(var o in s||(s={}))M0.call(s,o)&&O0(n,o,s[o]);if(Rs)for(var o of Rs(s))z0.call(s,o)&&O0(n,o,s[o]);return n},it=(n,s)=>Eg(n,Rg(s));var na=(n,s)=>{var o={};for(var c in n)M0.call(n,c)&&s.indexOf(c)<0&&(o[c]=n[c]);if(n!=null&&Rs)for(var c of Rs(n))s.indexOf(c)<0&&z0.call(n,c)&&(o[c]=n[c]);return o};var Tg=(n,s)=>()=>(s||n((s={exports:{}}).exports,s),s.exports);var Ee=(n,s,o)=>new Promise((c,f)=>{var d=x=>{try{v(o.next(x))}catch(m){f(m)}},g=x=>{try{v(o.throw(x))}catch(m){f(m)}},v=x=>x.done?c(x.value):Promise.resolve(x.value).then(d,g);v((o=o.apply(n,s)).next())}),ia=function(n,s){this[0]=n,this[1]=s},sc=(n,s,o)=>{var c=(g,v,x,m)=>{try{var p=o[g](v),w=(v=p.value)instanceof ia,E=p.done;Promise.resolve(w?v[0]:v).then(U=>w?c(g==="return"?g:"next",v[1]?{done:U.done,value:U.value}:U,x,m):x({value:U,done:E})).catch(U=>c("throw",U,x,m))}catch(U){m(U)}},f=g=>d[g]=v=>new Promise((x,m)=>c(g,v,x,m)),d={};return o=o.apply(n,s),d[$a("asyncIterator")]=()=>d,f("next"),f("throw"),f("return"),d},uc=n=>{var s=n[$a("asyncIterator")],o=!1,c,f={};return s==null?(s=n[$a("iterator")](),c=d=>f[d]=g=>s[d](g)):(s=s.call(n),c=d=>f[d]=g=>{if(o){if(o=!1,d==="throw")throw g;return g}return o=!0,{done:!1,value:new ia(new Promise(v=>{var x=s[d](g);x instanceof Object||Ag("Object expected"),v(x)}),1)}}),f[$a("iterator")]=()=>f,c("next"),"throw"in s?c("throw"):f.throw=d=>{throw d},"return"in s&&c("return"),f},_0=(n,s,o)=>(s=n[$a("asyncIterator")])?s.call(n):(n=n[$a("iterator")](),s={},o=(c,f)=>(f=n[c])&&(s[c]=d=>new Promise((g,v,x)=>(d=f.call(n,d),x=d.done,Promise.resolve(d.value).then(m=>g({value:m,done:x}),v)))),o("next"),o("return"),s);var A2=Tg(Ve=>{(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&c(g)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();function Dg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rc={exports:{}},Pn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var U0;function Cg(){if(U0)return Pn;U0=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(c,f,d){var g=null;if(d!==void 0&&(g=""+d),f.key!==void 0&&(g=""+f.key),"key"in f){d={};for(var v in f)v!=="key"&&(d[v]=f[v])}else d=f;return f=d.ref,{$$typeof:n,type:c,key:g,ref:f!==void 0?f:null,props:d}}return Pn.Fragment=s,Pn.jsx=o,Pn.jsxs=o,Pn}var L0;function Og(){return L0||(L0=1,rc.exports=Cg()),rc.exports}var r=Og(),cc={exports:{}},ue={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var B0;function Mg(){if(B0)return ue;B0=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),w=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,z={};function T(N,Y,K){this.props=N,this.context=Y,this.refs=z,this.updater=K||U}T.prototype.isReactComponent={},T.prototype.setState=function(N,Y){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,Y,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=T.prototype;function V(N,Y,K){this.props=N,this.context=Y,this.refs=z,this.updater=K||U}var G=V.prototype=new k;G.constructor=V,C(G,T.prototype),G.isPureReactComponent=!0;var I=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function ce(N,Y,K,Q,P,ge){return K=ge.ref,{$$typeof:n,type:N,key:Y,ref:K!==void 0?K:null,props:ge}}function de(N,Y){return ce(N.type,Y,void 0,void 0,void 0,N.props)}function Oe(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function lt(N){var Y={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(K){return Y[K]})}var Ne=/\/+/g;function ve(N,Y){return typeof N=="object"&&N!==null&&N.key!=null?lt(""+N.key):Y.toString(36)}function ze(){}function Ke(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ze,ze):(N.status="pending",N.then(function(Y){N.status==="pending"&&(N.status="fulfilled",N.value=Y)},function(Y){N.status==="pending"&&(N.status="rejected",N.reason=Y)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function qe(N,Y,K,Q,P){var ge=typeof N;(ge==="undefined"||ge==="boolean")&&(N=null);var ne=!1;if(N===null)ne=!0;else switch(ge){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(N.$$typeof){case n:case s:ne=!0;break;case p:return ne=N._init,qe(ne(N._payload),Y,K,Q,P)}}if(ne)return P=P(N),ne=Q===""?"."+ve(N,0):Q,I(P)?(K="",ne!=null&&(K=ne.replace(Ne,"$&/")+"/"),qe(P,Y,K,"",function(Re){return Re})):P!=null&&(Oe(P)&&(P=de(P,K+(P.key==null||N&&N.key===P.key?"":(""+P.key).replace(Ne,"$&/")+"/")+ne)),Y.push(P)),1;ne=0;var J=Q===""?".":Q+":";if(I(N))for(var ie=0;ie<N.length;ie++)Q=N[ie],ge=J+ve(Q,ie),ne+=qe(Q,Y,K,ge,P);else if(ie=E(N),typeof ie=="function")for(N=ie.call(N),ie=0;!(Q=N.next()).done;)Q=Q.value,ge=J+ve(Q,ie++),ne+=qe(Q,Y,K,ge,P);else if(ge==="object"){if(typeof N.then=="function")return qe(Ke(N),Y,K,Q,P);throw Y=String(N),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ne}function L(N,Y,K){if(N==null)return N;var Q=[],P=0;return qe(N,Q,"","",function(ge){return Y.call(K,ge,P++)}),Q}function Z(N){if(N._status===-1){var Y=N._result;Y=Y(),Y.then(function(K){(N._status===0||N._status===-1)&&(N._status=1,N._result=K)},function(K){(N._status===0||N._status===-1)&&(N._status=2,N._result=K)}),N._status===-1&&(N._status=0,N._result=Y)}if(N._status===1)return N._result.default;throw N._result}var ee=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function Se(){}return ue.Children={map:L,forEach:function(N,Y,K){L(N,function(){Y.apply(this,arguments)},K)},count:function(N){var Y=0;return L(N,function(){Y++}),Y},toArray:function(N){return L(N,function(Y){return Y})||[]},only:function(N){if(!Oe(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},ue.Component=T,ue.Fragment=o,ue.Profiler=f,ue.PureComponent=V,ue.StrictMode=c,ue.Suspense=x,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ue.__COMPILER_RUNTIME={__proto__:null,c:function(N){return X.H.useMemoCache(N)}},ue.cache=function(N){return function(){return N.apply(null,arguments)}},ue.cloneElement=function(N,Y,K){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var Q=C({},N.props),P=N.key,ge=void 0;if(Y!=null)for(ne in Y.ref!==void 0&&(ge=void 0),Y.key!==void 0&&(P=""+Y.key),Y)!F.call(Y,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&Y.ref===void 0||(Q[ne]=Y[ne]);var ne=arguments.length-2;if(ne===1)Q.children=K;else if(1<ne){for(var J=Array(ne),ie=0;ie<ne;ie++)J[ie]=arguments[ie+2];Q.children=J}return ce(N.type,P,void 0,void 0,ge,Q)},ue.createContext=function(N){return N={$$typeof:g,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},ue.createElement=function(N,Y,K){var Q,P={},ge=null;if(Y!=null)for(Q in Y.key!==void 0&&(ge=""+Y.key),Y)F.call(Y,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(P[Q]=Y[Q]);var ne=arguments.length-2;if(ne===1)P.children=K;else if(1<ne){for(var J=Array(ne),ie=0;ie<ne;ie++)J[ie]=arguments[ie+2];P.children=J}if(N&&N.defaultProps)for(Q in ne=N.defaultProps,ne)P[Q]===void 0&&(P[Q]=ne[Q]);return ce(N,ge,void 0,void 0,null,P)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(N){return{$$typeof:v,render:N}},ue.isValidElement=Oe,ue.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:Z}},ue.memo=function(N,Y){return{$$typeof:m,type:N,compare:Y===void 0?null:Y}},ue.startTransition=function(N){var Y=X.T,K={};X.T=K;try{var Q=N(),P=X.S;P!==null&&P(K,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(Se,ee)}catch(ge){ee(ge)}finally{X.T=Y}},ue.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ue.use=function(N){return X.H.use(N)},ue.useActionState=function(N,Y,K){return X.H.useActionState(N,Y,K)},ue.useCallback=function(N,Y){return X.H.useCallback(N,Y)},ue.useContext=function(N){return X.H.useContext(N)},ue.useDebugValue=function(){},ue.useDeferredValue=function(N,Y){return X.H.useDeferredValue(N,Y)},ue.useEffect=function(N,Y,K){var Q=X.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(N,Y)},ue.useId=function(){return X.H.useId()},ue.useImperativeHandle=function(N,Y,K){return X.H.useImperativeHandle(N,Y,K)},ue.useInsertionEffect=function(N,Y){return X.H.useInsertionEffect(N,Y)},ue.useLayoutEffect=function(N,Y){return X.H.useLayoutEffect(N,Y)},ue.useMemo=function(N,Y){return X.H.useMemo(N,Y)},ue.useOptimistic=function(N,Y){return X.H.useOptimistic(N,Y)},ue.useReducer=function(N,Y,K){return X.H.useReducer(N,Y,K)},ue.useRef=function(N){return X.H.useRef(N)},ue.useState=function(N){return X.H.useState(N)},ue.useSyncExternalStore=function(N,Y,K){return X.H.useSyncExternalStore(N,Y,K)},ue.useTransition=function(){return X.H.useTransition()},ue.version="19.1.1",ue}var H0;function Tc(){return H0||(H0=1,cc.exports=Mg()),cc.exports}var S=Tc();const As=Dg(S);var oc={exports:{}},In={},fc={exports:{}},dc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var q0;function zg(){return q0||(q0=1,function(n){function s(L,Z){var ee=L.length;L.push(Z);e:for(;0<ee;){var Se=ee-1>>>1,N=L[Se];if(0<f(N,Z))L[Se]=Z,L[ee]=N,ee=Se;else break e}}function o(L){return L.length===0?null:L[0]}function c(L){if(L.length===0)return null;var Z=L[0],ee=L.pop();if(ee!==Z){L[0]=ee;e:for(var Se=0,N=L.length,Y=N>>>1;Se<Y;){var K=2*(Se+1)-1,Q=L[K],P=K+1,ge=L[P];if(0>f(Q,ee))P<N&&0>f(ge,Q)?(L[Se]=ge,L[P]=ee,Se=P):(L[Se]=Q,L[K]=ee,Se=K);else if(P<N&&0>f(ge,ee))L[Se]=ge,L[P]=ee,Se=P;else break e}}return Z}function f(L,Z){var ee=L.sortIndex-Z.sortIndex;return ee!==0?ee:L.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var g=Date,v=g.now();n.unstable_now=function(){return g.now()-v}}var x=[],m=[],p=1,w=null,E=3,U=!1,C=!1,z=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate!="undefined"?setImmediate:null;function I(L){for(var Z=o(m);Z!==null;){if(Z.callback===null)c(m);else if(Z.startTime<=L)c(m),Z.sortIndex=Z.expirationTime,s(x,Z);else break;Z=o(m)}}function X(L){if(z=!1,I(L),!C)if(o(x)!==null)C=!0,F||(F=!0,ve());else{var Z=o(m);Z!==null&&qe(X,Z.startTime-L)}}var F=!1,ce=-1,de=5,Oe=-1;function lt(){return T?!0:!(n.unstable_now()-Oe<de)}function Ne(){if(T=!1,F){var L=n.unstable_now();Oe=L;var Z=!0;try{e:{C=!1,z&&(z=!1,V(ce),ce=-1),U=!0;var ee=E;try{t:{for(I(L),w=o(x);w!==null&&!(w.expirationTime>L&&lt());){var Se=w.callback;if(typeof Se=="function"){w.callback=null,E=w.priorityLevel;var N=Se(w.expirationTime<=L);if(L=n.unstable_now(),typeof N=="function"){w.callback=N,I(L),Z=!0;break t}w===o(x)&&c(x),I(L)}else c(x);w=o(x)}if(w!==null)Z=!0;else{var Y=o(m);Y!==null&&qe(X,Y.startTime-L),Z=!1}}break e}finally{w=null,E=ee,U=!1}Z=void 0}}finally{Z?ve():F=!1}}}var ve;if(typeof G=="function")ve=function(){G(Ne)};else if(typeof MessageChannel!="undefined"){var ze=new MessageChannel,Ke=ze.port2;ze.port1.onmessage=Ne,ve=function(){Ke.postMessage(null)}}else ve=function(){k(Ne,0)};function qe(L,Z){ce=k(function(){L(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(L){switch(E){case 1:case 2:case 3:var Z=3;break;default:Z=E}var ee=E;E=Z;try{return L()}finally{E=ee}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=E;E=L;try{return Z()}finally{E=ee}},n.unstable_scheduleCallback=function(L,Z,ee){var Se=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,L){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=ee+N,L={id:p++,callback:Z,priorityLevel:L,startTime:ee,expirationTime:N,sortIndex:-1},ee>Se?(L.sortIndex=ee,s(m,L),o(x)===null&&L===o(m)&&(z?(V(ce),ce=-1):z=!0,qe(X,ee-Se))):(L.sortIndex=N,s(x,L),C||U||(C=!0,F||(F=!0,ve()))),L},n.unstable_shouldYield=lt,n.unstable_wrapCallback=function(L){var Z=E;return function(){var ee=E;E=Z;try{return L.apply(this,arguments)}finally{E=ee}}}}(dc)),dc}var k0;function _g(){return k0||(k0=1,fc.exports=zg()),fc.exports}var hc={exports:{}},st={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Y0;function Ug(){if(Y0)return st;Y0=1;var n=Tc();function s(x){var m="https://react.dev/errors/"+x;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)m+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+x+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(x,m,p){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:w==null?null:""+w,children:x,containerInfo:m,implementation:p}}var g=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(x,m){if(x==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,st.createPortal=function(x,m){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(s(299));return d(x,m,null,p)},st.flushSync=function(x){var m=g.T,p=c.p;try{if(g.T=null,c.p=2,x)return x()}finally{g.T=m,c.p=p,c.d.f()}},st.preconnect=function(x,m){typeof x=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,c.d.C(x,m))},st.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},st.preinit=function(x,m){if(typeof x=="string"&&m&&typeof m.as=="string"){var p=m.as,w=v(p,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,U=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;p==="style"?c.d.S(x,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:w,integrity:E,fetchPriority:U}):p==="script"&&c.d.X(x,{crossOrigin:w,integrity:E,fetchPriority:U,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},st.preinitModule=function(x,m){if(typeof x=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var p=v(m.as,m.crossOrigin);c.d.M(x,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&c.d.M(x)},st.preload=function(x,m){if(typeof x=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var p=m.as,w=v(p,m.crossOrigin);c.d.L(x,p,{crossOrigin:w,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})}},st.preloadModule=function(x,m){if(typeof x=="string")if(m){var p=v(m.as,m.crossOrigin);c.d.m(x,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else c.d.m(x)},st.requestFormReset=function(x){c.d.r(x)},st.unstable_batchedUpdates=function(x,m){return x(m)},st.useFormState=function(x,m,p){return g.H.useFormState(x,m,p)},st.useFormStatus=function(){return g.H.useHostTransitionStatus()},st.version="19.1.1",st}var V0;function Lg(){if(V0)return hc.exports;V0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),hc.exports=Ug(),hc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var G0;function Bg(){if(G0)return In;G0=1;var n=_g(),s=Tc(),o=Lg();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(d(e)!==e)throw Error(c(188))}function x(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var u=i.alternate;if(u===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===l)return v(i),e;if(u===a)return v(i),t;u=u.sibling}throw Error(c(188))}if(l.return!==a.return)l=i,a=u;else{for(var h=!1,y=i.child;y;){if(y===l){h=!0,l=i,a=u;break}if(y===a){h=!0,a=i,l=u;break}y=y.sibling}if(!h){for(y=u.child;y;){if(y===l){h=!0,l=u,a=i;break}if(y===a){h=!0,a=u,l=i;break}y=y.sibling}if(!h)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),V=Symbol.for("react.consumer"),G=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),Oe=Symbol.for("react.activity"),lt=Symbol.for("react.memo_cache_sentinel"),Ne=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=Ne&&e[Ne]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function Ke(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case T:return"Profiler";case z:return"StrictMode";case X:return"Suspense";case F:return"SuspenseList";case Oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case G:return(e.displayName||"Context")+".Provider";case V:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return t=e.displayName||null,t!==null?t:Ke(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return Ke(e(t))}catch(l){}}return null}var qe=Array.isArray,L=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],N=-1;function Y(e){return{current:e}}function K(e){0>N||(e.current=Se[N],Se[N]=null,N--)}function Q(e,t){N++,Se[N]=e.current,e.current=t}var P=Y(null),ge=Y(null),ne=Y(null),J=Y(null);function ie(e,t){switch(Q(ne,t),Q(ge,e),Q(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?i0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=i0(t),e=s0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(P),Q(P,e)}function Re(){K(P),K(ge),K(ne)}function ml(e){e.memoizedState!==null&&Q(J,e);var t=P.current,l=s0(t,e.type);t!==l&&(Q(ge,e),Q(P,l))}function kt(e){ge.current===e&&(K(P),K(ge)),J.current===e&&(K(J),Kn._currentValue=ee)}var Zs=Object.prototype.hasOwnProperty,Ks=n.unstable_scheduleCallback,Js=n.unstable_cancelCallback,lm=n.unstable_shouldYield,am=n.unstable_requestPaint,Yt=n.unstable_now,nm=n.unstable_getCurrentPriorityLevel,Bc=n.unstable_ImmediatePriority,Hc=n.unstable_UserBlockingPriority,di=n.unstable_NormalPriority,im=n.unstable_LowPriority,qc=n.unstable_IdlePriority,sm=n.log,um=n.unstable_setDisableYieldValue,en=null,xt=null;function gl(e){if(typeof sm=="function"&&um(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(en,e)}catch(t){}}var pt=Math.clz32?Math.clz32:om,rm=Math.log,cm=Math.LN2;function om(e){return e>>>=0,e===0?32:31-(rm(e)/cm|0)|0}var hi=256,mi=4194304;function kl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~u,a!==0?i=kl(a):(h&=y,h!==0?i=kl(h):l||(l=y&~e,l!==0&&(i=kl(l))))):(y=a&~u,y!==0?i=kl(y):h!==0?i=kl(h):l||(l=a&~e,l!==0&&(i=kl(l)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:i}function tn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kc(){var e=hi;return hi<<=1,(hi&4194048)===0&&(hi=256),e}function Yc(){var e=mi;return mi<<=1,(mi&62914560)===0&&(mi=4194304),e}function $s(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dm(e,t,l,a,i,u){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,D=e.hiddenUpdates;for(l=h&~l;0<l;){var B=31-pt(l),q=1<<B;y[B]=0,b[B]=-1;var O=D[B];if(O!==null)for(D[B]=null,B=0;B<O.length;B++){var M=O[B];M!==null&&(M.lane&=-536870913)}l&=~q}a!==0&&Vc(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function Vc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Gc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-pt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Fs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ws(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xc(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:E0(e.type))}function hm(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var yl=Math.random().toString(36).slice(2),at="__reactFiber$"+yl,ot="__reactProps$"+yl,oa="__reactContainer$"+yl,Ps="__reactEvents$"+yl,mm="__reactListeners$"+yl,gm="__reactHandles$"+yl,Qc="__reactResources$"+yl,an="__reactMarker$"+yl;function Is(e){delete e[at],delete e[ot],delete e[Ps],delete e[mm],delete e[gm]}function fa(e){var t=e[at];if(t)return t;for(var l=e.parentNode;l;){if(t=l[oa]||l[at]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=o0(e);e!==null;){if(l=e[at])return l;e=o0(e)}return t}e=l,l=e.parentNode}return null}function da(e){if(e=e[at]||e[oa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function nn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ha(e){var t=e[Qc];return t||(t=e[Qc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[an]=!0}var Zc=new Set,Kc={};function Yl(e,t){ma(e,t),ma(e+"Capture",t)}function ma(e,t){for(Kc[e]=t,e=0;e<t.length;e++)Zc.add(t[e])}var ym=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]*$"),Jc={},$c={};function xm(e){return Zs.call($c,e)?!0:Zs.call(Jc,e)?!1:ym.test(e)?$c[e]=!0:(Jc[e]=!0,!1)}function yi(e,t,l){if(xm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function xi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function $t(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var eu,Fc;function ga(e){if(eu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);eu=t&&t[1]||"",Fc=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+eu+e+Fc}var tu=!1;function lu(e,t){if(!e||tu)return"";tu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(M){var O=M}Reflect.construct(e,[],q)}else{try{q.call()}catch(M){O=M}e.call(q.prototype)}}else{try{throw Error()}catch(M){O=M}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(M){if(M&&O&&typeof M.stack=="string")return[M.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),h=u[0],y=u[1];if(h&&y){var b=h.split(`
44
- `),D=y.split(`
45
- `);for(i=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;i<D.length&&!D[i].includes("DetermineComponentFrameRoot");)i++;if(a===b.length||i===D.length)for(a=b.length-1,i=D.length-1;1<=a&&0<=i&&b[a]!==D[i];)i--;for(;1<=a&&0<=i;a--,i--)if(b[a]!==D[i]){if(a!==1||i!==1)do if(a--,i--,0>i||b[a]!==D[i]){var B=`
46
- `+b[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=i);break}}}finally{tu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ga(l):""}function pm(e){switch(e.tag){case 26:case 27:case 5:return ga(e.type);case 16:return ga("Lazy");case 13:return ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return lu(e.type,!1);case 11:return lu(e.type.render,!1);case 1:return lu(e.type,!0);case 31:return ga("Activity");default:return""}}function Wc(e){try{var t="";do t+=pm(e),e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vm(e){var t=Pc(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){a=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pi(e){e._valueTracker||(e._valueTracker=vm(e))}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Pc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function vi(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bm=/[\n"\\]/g;function At(e){return e.replace(bm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function au(e,t,l,a,i,u,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?nu(e,h,Rt(t)):l!=null?nu(e,h,Rt(l)):a!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Rt(y):e.removeAttribute("name")}function eo(e,t,l,a,i,u,h,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;l=l!=null?""+Rt(l):"",t=t!=null?""+Rt(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a!=null?a:i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h)}function nu(e,t,l){t==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ya(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Rt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function to(e,t,l){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Rt(l):""}function lo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(qe(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Rt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function xa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Sm=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 ao(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Sm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function no(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&ao(e,i,a)}else for(var u in t)t.hasOwnProperty(u)&&ao(e,u,t[u])}function iu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nm=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"]]),jm=/^[\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 bi(e){return jm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var su=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,va=null;function io(e){var t=da(e);if(t&&(e=t.stateNode)){var l=e[ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(au(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[ot]||null;if(!i)throw Error(c(90));au(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Ic(a)}break e;case"textarea":to(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ya(e,!!l.multiple,t,!1)}}}var ru=!1;function so(e,t,l){if(ru)return e(t,l);ru=!0;try{var a=e(t);return a}finally{if(ru=!1,(pa!==null||va!==null)&&(is(),pa&&(t=pa,e=va,va=pa=null,io(t),e)))for(t=0;t<e.length;t++)io(e[t])}}function sn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ot]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var Ft=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),cu=!1;if(Ft)try{var un={};Object.defineProperty(un,"passive",{get:function(){cu=!0}}),window.addEventListener("test",un,un),window.removeEventListener("test",un,un)}catch(e){cu=!1}var xl=null,ou=null,Si=null;function uo(){if(Si)return Si;var e,t=ou,l=t.length,a,i="value"in xl?xl.value:xl.textContent,u=i.length;for(e=0;e<l&&t[e]===i[e];e++);var h=l-e;for(a=1;a<=h&&t[l-a]===i[u-a];a++);return Si=i.slice(e,1<a?1-a:void 0)}function Ni(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function ro(){return!1}function ft(e){function t(l,a,i,u,h){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ji:ro,this.isPropagationStopped=ro,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=ft(Vl),rn=p({},Vl,{view:0,detail:0}),wm=ft(rn),fu,du,cn,Ei=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&e.type==="mousemove"?(fu=e.screenX-cn.screenX,du=e.screenY-cn.screenY):du=fu=0,cn=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),co=ft(Ei),Em=p({},Ei,{dataTransfer:0}),Rm=ft(Em),Am=p({},rn,{relatedTarget:0}),hu=ft(Am),Tm=p({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),Dm=ft(Tm),Cm=p({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Om=ft(Cm),Mm=p({},Vl,{data:0}),oo=ft(Mm),zm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_m={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"},Um={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Um[e])?!!t[e]:!1}function mu(){return Lm}var Bm=p({},rn,{key:function(e){if(e.key){var t=zm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_m[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mu,charCode:function(e){return e.type==="keypress"?Ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hm=ft(Bm),qm=p({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fo=ft(qm),km=p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mu}),Ym=ft(km),Vm=p({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gm=ft(Vm),Xm=p({},Ei,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Qm=ft(Xm),Zm=p({},Vl,{newState:0,oldState:0}),Km=ft(Zm),Jm=[9,13,27,32],gu=Ft&&"CompositionEvent"in window,on=null;Ft&&"documentMode"in document&&(on=document.documentMode);var $m=Ft&&"TextEvent"in window&&!on,ho=Ft&&(!gu||on&&8<on&&11>=on),mo=" ",go=!1;function yo(e,t){switch(e){case"keyup":return Jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ba=!1;function Fm(e,t){switch(e){case"compositionend":return xo(t);case"keypress":return t.which!==32?null:(go=!0,mo);case"textInput":return e=t.data,e===mo&&go?null:e;default:return null}}function Wm(e,t){if(ba)return e==="compositionend"||!gu&&yo(e,t)?(e=uo(),Si=ou=xl=null,ba=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ho&&t.locale!=="ko"?null:t.data;default:return null}}var Pm={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 po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pm[e.type]:t==="textarea"}function vo(e,t,l,a){pa?va?va.push(a):va=[a]:pa=a,t=fs(t,"onChange"),0<t.length&&(l=new wi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var fn=null,dn=null;function Im(e){e0(e,0)}function Ri(e){var t=nn(e);if(Ic(t))return e}function bo(e,t){if(e==="change")return t}var So=!1;if(Ft){var yu;if(Ft){var xu="oninput"in document;if(!xu){var No=document.createElement("div");No.setAttribute("oninput","return;"),xu=typeof No.oninput=="function"}yu=xu}else yu=!1;So=yu&&(!document.documentMode||9<document.documentMode)}function jo(){fn&&(fn.detachEvent("onpropertychange",wo),dn=fn=null)}function wo(e){if(e.propertyName==="value"&&Ri(dn)){var t=[];vo(t,dn,e,uu(e)),so(Im,t)}}function e1(e,t,l){e==="focusin"?(jo(),fn=t,dn=l,fn.attachEvent("onpropertychange",wo)):e==="focusout"&&jo()}function t1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ri(dn)}function l1(e,t){if(e==="click")return Ri(t)}function a1(e,t){if(e==="input"||e==="change")return Ri(t)}function n1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:n1;function hn(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!Zs.call(t,i)||!vt(e[i],t[i]))return!1}return!0}function Eo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ro(e,t){var l=Eo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Eo(l)}}function Ao(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ao(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function To(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch(a){l=!1}if(l)e=t.contentWindow;else break;t=vi(e.document)}return t}function pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var i1=Ft&&"documentMode"in document&&11>=document.documentMode,Sa=null,vu=null,mn=null,bu=!1;function Do(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bu||Sa==null||Sa!==vi(a)||(a=Sa,"selectionStart"in a&&pu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mn&&hn(mn,a)||(mn=a,a=fs(vu,"onSelect"),0<a.length&&(t=new wi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Sa)))}function Gl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Na={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Su={},Co={};Ft&&(Co=document.createElement("div").style,"AnimationEvent"in window||(delete Na.animationend.animation,delete Na.animationiteration.animation,delete Na.animationstart.animation),"TransitionEvent"in window||delete Na.transitionend.transition);function Xl(e){if(Su[e])return Su[e];if(!Na[e])return e;var t=Na[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Co)return Su[e]=t[l];return e}var Oo=Xl("animationend"),Mo=Xl("animationiteration"),zo=Xl("animationstart"),s1=Xl("transitionrun"),u1=Xl("transitionstart"),r1=Xl("transitioncancel"),_o=Xl("transitionend"),Uo=new Map,Nu="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(" ");Nu.push("scrollEnd");function Ut(e,t){Uo.set(e,t),Yl(t,[e])}var Lo=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=Lo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Wc(t)},Lo.set(e,t),t)}return{value:e,source:t,stack:Wc(t)}}var Dt=[],ja=0,ju=0;function Ai(){for(var e=ja,t=ju=ja=0;t<e;){var l=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var i=Dt[t];Dt[t++]=null;var u=Dt[t];if(Dt[t++]=null,a!==null&&i!==null){var h=a.pending;h===null?i.next=i:(i.next=h.next,h.next=i),a.pending=i}u!==0&&Bo(l,i,u)}}function Ti(e,t,l,a){Dt[ja++]=e,Dt[ja++]=t,Dt[ja++]=l,Dt[ja++]=a,ju|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function wu(e,t,l,a){return Ti(e,t,l,a),Di(e)}function wa(e,t){return Ti(e,null,null,t),Di(e)}function Bo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-pt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function Di(e){if(50<qn)throw qn=0,Cr=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ea={};function c1(e,t,l,a){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,a){return new c1(e,t,l,a)}function Eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ho(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ci(e,t,l,a,i,u){var h=0;if(a=e,typeof e=="function")Eu(e)&&(h=1);else if(typeof e=="string")h=fg(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Oe:return e=bt(31,l,t,i),e.elementType=Oe,e.lanes=u,e;case C:return Ql(l.children,i,u,t);case z:h=8,i|=24;break;case T:return e=bt(12,l,t,i|2),e.elementType=T,e.lanes=u,e;case X:return e=bt(13,l,t,i),e.elementType=X,e.lanes=u,e;case F:return e=bt(19,l,t,i),e.elementType=F,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:case G:h=10;break e;case V:h=9;break e;case I:h=11;break e;case ce:h=14;break e;case de:h=16,a=null;break e}h=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=bt(h,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function Ql(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Ru(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Au(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ra=[],Aa=0,Oi=null,Mi=0,Ct=[],Ot=0,Zl=null,Pt=1,It="";function Kl(e,t){Ra[Aa++]=Mi,Ra[Aa++]=Oi,Oi=e,Mi=t}function qo(e,t,l){Ct[Ot++]=Pt,Ct[Ot++]=It,Ct[Ot++]=Zl,Zl=e;var a=Pt;e=It;var i=32-pt(a)-1;a&=~(1<<i),l+=1;var u=32-pt(t)+i;if(30<u){var h=i-i%5;u=(a&(1<<h)-1).toString(32),a>>=h,i-=h,Pt=1<<32-pt(t)+i|l<<i|a,It=u+e}else Pt=1<<u|l<<i|a,It=e}function Tu(e){e.return!==null&&(Kl(e,1),qo(e,1,0))}function Du(e){for(;e===Oi;)Oi=Ra[--Aa],Ra[Aa]=null,Mi=Ra[--Aa],Ra[Aa]=null;for(;e===Zl;)Zl=Ct[--Ot],Ct[Ot]=null,It=Ct[--Ot],Ct[Ot]=null,Pt=Ct[--Ot],Ct[Ot]=null}var ct=null,Be=null,be=!1,Jl=null,Vt=!1,Cu=Error(c(519));function $l(e){var t=Error(c(418,""));throw xn(Tt(t,e)),Cu}function ko(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[at]=e,t[ot]=a,l){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(l=0;l<Yn.length;l++)me(Yn[l],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),eo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),pi(t);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),lo(t,a.value,a.defaultValue,a.children),pi(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||n0(t.textContent,l)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=ds),t=!0):t=!1,t||$l(e)}function Yo(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 13:Vt=!1;return;case 27:case 3:Vt=!0;return;default:ct=ct.return}}function gn(e){if(e!==ct)return!1;if(!be)return Yo(e),be=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Zr(e.type,e.memoizedProps)),l=!l),l&&Be&&$l(e),Yo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Be=Bt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Be=null}}else t===27?(t=Be,zl(e.type)?(e=Fr,Fr=null,Be=e):Be=t):Be=ct?Bt(e.stateNode.nextSibling):null;return!0}function yn(){Be=ct=null,be=!1}function Vo(){var e=Jl;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),Jl=null),e}function xn(e){Jl===null?Jl=[e]:Jl.push(e)}var Ou=Y(null),Fl=null,el=null;function pl(e,t,l){Q(Ou,t._currentValue),t._currentValue=l}function tl(e){e._currentValue=Ou.current,K(Ou)}function Mu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function zu(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var h=i.child;u=u.firstContext;e:for(;u!==null;){var y=u;u=i;for(var b=0;b<t.length;b++)if(y.context===t[b]){u.lanes|=l,y=u.alternate,y!==null&&(y.lanes|=l),Mu(u.return,l,e),a||(h=null);break e}u=y.next}}else if(i.tag===18){if(h=i.return,h===null)throw Error(c(341));h.lanes|=l,u=h.alternate,u!==null&&(u.lanes|=l),Mu(h,l,e),h=null}else h=i.child;if(h!==null)h.return=i;else for(h=i;h!==null;){if(h===e){h=null;break}if(i=h.sibling,i!==null){i.return=h.return,h=i;break}h=h.return}i=h}}function pn(e,t,l,a){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var h=i.alternate;if(h===null)throw Error(c(387));if(h=h.memoizedProps,h!==null){var y=i.type;vt(i.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(i===J.current){if(h=i.alternate,h===null)throw Error(c(387));h.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Kn):e=[Kn])}i=i.return}e!==null&&zu(t,e,l,a),t.flags|=262144}function zi(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wl(e){Fl=e,el=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Go(Fl,e)}function _i(e,t){return Fl===null&&Wl(e),Go(e,t)}function Go(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},el===null){if(e===null)throw Error(c(308));el=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else el=el.next=t;return l}var o1=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},f1=n.unstable_scheduleCallback,d1=n.unstable_NormalPriority,Qe={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _u(){return{controller:new o1,data:new Map,refCount:0}}function vn(e){e.refCount--,e.refCount===0&&f1(d1,function(){e.controller.abort()})}var bn=null,Uu=0,Ta=0,Da=null;function h1(e,t){if(bn===null){var l=bn=[];Uu=0,Ta=Br(),Da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Uu++,t.then(Xo,Xo),t}function Xo(){if(--Uu===0&&bn!==null){Da!==null&&(Da.status="fulfilled");var e=bn;bn=null,Ta=0,Da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function m1(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var Qo=L.S;L.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&h1(e,t),Qo!==null&&Qo(e,t)};var Pl=Y(null);function Lu(){var e=Pl.current;return e!==null?e:Me.pooledCache}function Ui(e,t){t===null?Q(Pl,Pl.current):Q(Pl,t.pool)}function Zo(){var e=Lu();return e===null?null:{parent:Qe._currentValue,pool:e}}var Sn=Error(c(460)),Ko=Error(c(474)),Li=Error(c(542)),Bu={then:function(){}};function Jo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bi(){}function $o(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Bi,Bi),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wo(e),e;default:if(typeof t.status=="string")t.then(Bi,Bi);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wo(e),e}throw Nn=t,Sn}}var Nn=null;function Fo(){if(Nn===null)throw Error(c(459));var e=Nn;return Nn=null,e}function Wo(e){if(e===Sn||e===Li)throw Error(c(483))}var vl=!1;function Hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Di(e),Bo(e,null,l),t}return Ti(e,a,t,l),Di(e)}function jn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Gc(e,l)}}function ku(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?i=u=h:u=u.next=h,l=l.next}while(l!==null);u===null?i=u=t:u=u.next=t}else i=u=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Yu=!1;function wn(){if(Yu){var e=Da;if(e!==null)throw e}}function En(e,t,l,a){Yu=!1;var i=e.updateQueue;vl=!1;var u=i.firstBaseUpdate,h=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var b=y,D=b.next;b.next=null,h===null?u=D:h.next=D,h=b;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==h&&(y===null?B.firstBaseUpdate=D:y.next=D,B.lastBaseUpdate=b))}if(u!==null){var q=i.baseState;h=0,B=D=b=null,y=u;do{var O=y.lane&-536870913,M=O!==y.lane;if(M?(ye&O)===O:(a&O)===O){O!==0&&O===Ta&&(Yu=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ae=e,te=y;O=t;var De=l;switch(te.tag){case 1:if(ae=te.payload,typeof ae=="function"){q=ae.call(De,q,O);break e}q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=te.payload,O=typeof ae=="function"?ae.call(De,q,O):ae,O==null)break e;q=p({},q,O);break e;case 2:vl=!0}}O=y.callback,O!==null&&(e.flags|=64,M&&(e.flags|=8192),M=i.callbacks,M===null?i.callbacks=[O]:M.push(O))}else M={lane:O,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(D=B=M,b=q):B=B.next=M,h|=O;if(y=y.next,y===null){if(y=i.shared.pending,y===null)break;M=y,y=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);B===null&&(b=q),i.baseState=b,i.firstBaseUpdate=D,i.lastBaseUpdate=B,u===null&&(i.shared.lanes=0),Dl|=h,e.lanes=h,e.memoizedState=q}}function Po(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Io(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Po(l[e],t)}var Ca=Y(null),Hi=Y(0);function ef(e,t){e=rl,Q(Hi,e),Q(Ca,t),rl=e|t.baseLanes}function Vu(){Q(Hi,rl),Q(Ca,Ca.current)}function Gu(){rl=Hi.current,K(Ca),K(Hi)}var Nl=0,re=null,Ae=null,Ge=null,qi=!1,Oa=!1,Il=!1,ki=0,Rn=0,Ma=null,g1=0;function ke(){throw Error(c(321))}function Xu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!vt(e[l],t[l]))return!1;return!0}function Qu(e,t,l,a,i,u){return Nl=u,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Hf:qf,Il=!1,u=l(a,i),Il=!1,Oa&&(u=lf(t,l,a,i)),tf(e),u}function tf(e){L.H=Zi;var t=Ae!==null&&Ae.next!==null;if(Nl=0,Ge=Ae=re=null,qi=!1,Rn=0,Ma=null,t)throw Error(c(300));e===null||$e||(e=e.dependencies,e!==null&&zi(e)&&($e=!0))}function lf(e,t,l,a){re=e;var i=0;do{if(Oa&&(Ma=null),Rn=0,Oa=!1,25<=i)throw Error(c(301));if(i+=1,Ge=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}L.H=N1,u=t(l,a)}while(Oa);return u}function y1(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?An(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(re.flags|=1024),t}function Zu(){var e=ki!==0;return ki=0,e}function Ku(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ju(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}Nl=0,Ge=Ae=re=null,Oa=!1,Rn=ki=0,Ma=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Xe(){if(Ae===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ge===null?re.memoizedState:Ge.next;if(t!==null)Ge=t,Ae=e;else{if(e===null)throw re.alternate===null?Error(c(467)):Error(c(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function An(e){var t=Rn;return Rn+=1,Ma===null&&(Ma=[]),e=$o(Ma,e,t),t=re,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Hf:qf),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return An(e);if(e.$$typeof===G)return nt(e)}throw Error(c(438,String(e)))}function Fu(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=$u(),re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=lt;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=Xe();return Wu(t,Ae,e)}function Wu(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var i=e.baseQueue,u=a.pending;if(u!==null){if(i!==null){var h=i.next;i.next=u.next,u.next=h}t.baseQueue=i=u,a.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var y=h=null,b=null,D=t,B=!1;do{var q=D.lane&-536870913;if(q!==D.lane?(ye&q)===q:(Nl&q)===q){var O=D.revertLane;if(O===0)b!==null&&(b=b.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),q===Ta&&(B=!0);else if((Nl&O)===O){D=D.next,O===Ta&&(B=!0);continue}else q={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},b===null?(y=b=q,h=u):b=b.next=q,re.lanes|=O,Dl|=O;q=D.action,Il&&l(u,q),u=D.hasEagerState?D.eagerState:l(u,q)}else O={lane:q,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},b===null?(y=b=O,h=u):b=b.next=O,re.lanes|=q,Dl|=q;D=D.next}while(D!==null&&D!==t);if(b===null?h=u:b.next=y,!vt(u,e.memoizedState)&&($e=!0,B&&(l=Da,l!==null)))throw l;e.memoizedState=u,e.baseState=h,e.baseQueue=b,a.lastRenderedState=u}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Pu(e){var t=Xe(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,u=t.memoizedState;if(i!==null){l.pending=null;var h=i=i.next;do u=e(u,h.action),h=h.next;while(h!==i);vt(u,t.memoizedState)||($e=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function af(e,t,l){var a=re,i=Xe(),u=be;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=t();var h=!vt((Ae||i).memoizedState,l);h&&(i.memoizedState=l,$e=!0),i=i.queue;var y=uf.bind(null,a,i,e);if(Tn(2048,8,y,[e]),i.getSnapshot!==t||h||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,za(9,Gi(),sf.bind(null,a,i,l,t),null),Me===null)throw Error(c(349));u||(Nl&124)!==0||nf(a,t,l)}return l}function nf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=$u(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function sf(e,t,l,a){t.value=l,t.getSnapshot=a,rf(t)&&cf(e)}function uf(e,t,l){return l(function(){rf(t)&&cf(e)})}function rf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!vt(e,l)}catch(a){return!0}}function cf(e){var t=wa(e,2);t!==null&&Et(t,e,2)}function Iu(e){var t=dt();if(typeof e=="function"){var l=e;if(e=l(),Il){gl(!0);try{l()}finally{gl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function of(e,t,l,a){return e.baseState=l,Wu(e,Ae,typeof a=="function"?a:ll)}function x1(e,t,l,a,i){if(Qi(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};L.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,ff(t,u)):(u.next=l.next,t.pending=l.next=u)}}function ff(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=L.T,h={};L.T=h;try{var y=l(i,a),b=L.S;b!==null&&b(h,y),df(e,t,y)}catch(D){er(e,t,D)}finally{L.T=u}}else try{u=l(i,a),df(e,t,u)}catch(D){er(e,t,D)}}function df(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){hf(e,t,a)},function(a){return er(e,t,a)}):hf(e,t,l)}function hf(e,t,l){t.status="fulfilled",t.value=l,mf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ff(e,l)))}function er(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,mf(t),t=t.next;while(t!==a)}e.action=null}function mf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gf(e,t){return t}function yf(e,t){if(be){var l=Me.formState;if(l!==null){e:{var a=re;if(be){if(Be){t:{for(var i=Be,u=Vt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Bt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Be=Bt(i.nextSibling),a=i.data==="F!";break e}}$l(a)}a=!1}a&&(t=l[0])}}return l=dt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gf,lastRenderedState:t},l.queue=a,l=Uf.bind(null,re,a),a.dispatch=l,a=Iu(!1),u=ir.bind(null,re,!1,a.queue),a=dt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=x1.bind(null,re,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function xf(e){var t=Xe();return pf(t,Ae,e)}function pf(e,t,l){if(t=Wu(e,t,gf)[0],e=Vi(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=An(t)}catch(h){throw h===Sn?Li:h}else a=t;t=Xe();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(re.flags|=2048,za(9,Gi(),p1.bind(null,i,l),null)),[a,u,e]}function p1(e,t){e.action=t}function vf(e){var t=Xe(),l=Ae;if(l!==null)return pf(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function za(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=$u(),re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Gi(){return{destroy:void 0,resource:void 0}}function bf(){return Xe().memoizedState}function Xi(e,t,l,a){var i=dt();a=a===void 0?null:a,re.flags|=e,i.memoizedState=za(1|t,Gi(),l,a)}function Tn(e,t,l,a){var i=Xe();a=a===void 0?null:a;var u=i.memoizedState.inst;Ae!==null&&a!==null&&Xu(a,Ae.memoizedState.deps)?i.memoizedState=za(t,u,l,a):(re.flags|=e,i.memoizedState=za(1|t,u,l,a))}function Sf(e,t){Xi(8390656,8,e,t)}function Nf(e,t){Tn(2048,8,e,t)}function jf(e,t){return Tn(4,2,e,t)}function wf(e,t){return Tn(4,4,e,t)}function Ef(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rf(e,t,l){l=l!=null?l.concat([e]):null,Tn(4,4,Ef.bind(null,t,e),l)}function tr(){}function Af(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Xu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Tf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Xu(t,a[1]))return a[0];if(a=e(),Il){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a}function lr(e,t,l){return l===void 0||(Nl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Od(),re.lanes|=e,Dl|=e,l)}function Df(e,t,l,a){return vt(l,t)?l:Ca.current!==null?(e=lr(e,l,a),vt(e,t)||($e=!0),e):(Nl&42)===0?($e=!0,e.memoizedState=l):(e=Od(),re.lanes|=e,Dl|=e,t)}function Cf(e,t,l,a,i){var u=Z.p;Z.p=u!==0&&8>u?u:8;var h=L.T,y={};L.T=y,ir(e,!1,t,l);try{var b=i(),D=L.S;if(D!==null&&D(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var B=m1(b,a);Dn(e,t,B,wt(e))}else Dn(e,t,a,wt(e))}catch(q){Dn(e,t,{then:function(){},status:"rejected",reason:q},wt())}finally{Z.p=u,L.T=h}}function v1(){}function ar(e,t,l,a){if(e.tag!==5)throw Error(c(476));var i=Of(e).queue;Cf(e,i,t,ee,l===null?v1:function(){return Mf(e),l(a)})}function Of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mf(e){var t=Of(e).next.queue;Dn(e,t,{},wt())}function nr(){return nt(Kn)}function zf(){return Xe().memoizedState}function _f(){return Xe().memoizedState}function b1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=bl(l);var a=Sl(t,e,l);a!==null&&(Et(a,t,l),jn(a,t,l)),t={cache:_u()},e.payload=t;return}t=t.return}}function S1(e,t,l){var a=wt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Qi(e)?Lf(t,l):(l=wu(e,t,l,a),l!==null&&(Et(l,e,a),Bf(l,t,a)))}function Uf(e,t,l){var a=wt();Dn(e,t,l,a)}function Dn(e,t,l,a){var i={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))Lf(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,y=u(h,l);if(i.hasEagerState=!0,i.eagerState=y,vt(y,h))return Ti(e,t,i,0),Me===null&&Ai(),!1}catch(b){}finally{}if(l=wu(e,t,i,a),l!==null)return Et(l,e,a),Bf(l,t,a),!0}return!1}function ir(e,t,l,a){if(a={lane:2,revertLane:Br(),action:a,hasEagerState:!1,eagerState:null,next:null},Qi(e)){if(t)throw Error(c(479))}else t=wu(e,l,a,2),t!==null&&Et(t,e,2)}function Qi(e){var t=e.alternate;return e===re||t!==null&&t===re}function Lf(e,t){Oa=qi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Gc(e,l)}}var Zi={readContext:nt,use:Yi,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke},Hf={readContext:nt,use:Yi,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Sf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Xi(4194308,4,Ef.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var l=dt();t=t===void 0?null:t;var a=e();if(Il){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=dt();if(l!==void 0){var i=l(t);if(Il){gl(!0);try{l(t)}finally{gl(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=S1.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Iu(e);var t=e.queue,l=Uf.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:tr,useDeferredValue:function(e,t){var l=dt();return lr(l,e,t)},useTransition:function(){var e=Iu(!1);return e=Cf.bind(null,re,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,i=dt();if(be){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Me===null)throw Error(c(349));(ye&124)!==0||nf(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,Sf(uf.bind(null,a,u,e),[e]),a.flags|=2048,za(9,Gi(),sf.bind(null,a,u,l,t),null),l},useId:function(){var e=dt(),t=Me.identifierPrefix;if(be){var l=It,a=Pt;l=(a&~(1<<32-pt(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=ki++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=g1++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:nr,useFormState:yf,useActionState:yf,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ir.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Fu,useCacheRefresh:function(){return dt().memoizedState=b1.bind(null,re)}},qf={readContext:nt,use:Yi,useCallback:Af,useContext:nt,useEffect:Nf,useImperativeHandle:Rf,useInsertionEffect:jf,useLayoutEffect:wf,useMemo:Tf,useReducer:Vi,useRef:bf,useState:function(){return Vi(ll)},useDebugValue:tr,useDeferredValue:function(e,t){var l=Xe();return Df(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Vi(ll)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:An(e),t]},useSyncExternalStore:af,useId:zf,useHostTransitionStatus:nr,useFormState:xf,useActionState:xf,useOptimistic:function(e,t){var l=Xe();return of(l,Ae,e,t)},useMemoCache:Fu,useCacheRefresh:_f},N1={readContext:nt,use:Yi,useCallback:Af,useContext:nt,useEffect:Nf,useImperativeHandle:Rf,useInsertionEffect:jf,useLayoutEffect:wf,useMemo:Tf,useReducer:Pu,useRef:bf,useState:function(){return Pu(ll)},useDebugValue:tr,useDeferredValue:function(e,t){var l=Xe();return Ae===null?lr(l,e,t):Df(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Pu(ll)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:An(e),t]},useSyncExternalStore:af,useId:zf,useHostTransitionStatus:nr,useFormState:vf,useActionState:vf,useOptimistic:function(e,t){var l=Xe();return Ae!==null?of(l,Ae,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Fu,useCacheRefresh:_f},_a=null,Cn=0;function Ki(e){var t=Cn;return Cn+=1,_a===null&&(_a=[]),$o(_a,e,t)}function On(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===w?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kf(e){var t=e._init;return t(e._payload)}function Yf(e){function t(R,j){if(e){var A=R.deletions;A===null?(R.deletions=[j],R.flags|=16):A.push(j)}}function l(R,j){if(!e)return null;for(;j!==null;)t(R,j),j=j.sibling;return null}function a(R){for(var j=new Map;R!==null;)R.key!==null?j.set(R.key,R):j.set(R.index,R),R=R.sibling;return j}function i(R,j){return R=Wt(R,j),R.index=0,R.sibling=null,R}function u(R,j,A){return R.index=A,e?(A=R.alternate,A!==null?(A=A.index,A<j?(R.flags|=67108866,j):A):(R.flags|=67108866,j)):(R.flags|=1048576,j)}function h(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function y(R,j,A,H){return j===null||j.tag!==6?(j=Ru(A,R.mode,H),j.return=R,j):(j=i(j,A),j.return=R,j)}function b(R,j,A,H){var $=A.type;return $===C?B(R,j,A.props.children,H,A.key):j!==null&&(j.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===de&&kf($)===j.type)?(j=i(j,A.props),On(j,A),j.return=R,j):(j=Ci(A.type,A.key,A.props,null,R.mode,H),On(j,A),j.return=R,j)}function D(R,j,A,H){return j===null||j.tag!==4||j.stateNode.containerInfo!==A.containerInfo||j.stateNode.implementation!==A.implementation?(j=Au(A,R.mode,H),j.return=R,j):(j=i(j,A.children||[]),j.return=R,j)}function B(R,j,A,H,$){return j===null||j.tag!==7?(j=Ql(A,R.mode,H,$),j.return=R,j):(j=i(j,A),j.return=R,j)}function q(R,j,A){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Ru(""+j,R.mode,A),j.return=R,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case E:return A=Ci(j.type,j.key,j.props,null,R.mode,A),On(A,j),A.return=R,A;case U:return j=Au(j,R.mode,A),j.return=R,j;case de:var H=j._init;return j=H(j._payload),q(R,j,A)}if(qe(j)||ve(j))return j=Ql(j,R.mode,A,null),j.return=R,j;if(typeof j.then=="function")return q(R,Ki(j),A);if(j.$$typeof===G)return q(R,_i(R,j),A);Ji(R,j)}return null}function O(R,j,A,H){var $=j!==null?j.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return $!==null?null:y(R,j,""+A,H);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case E:return A.key===$?b(R,j,A,H):null;case U:return A.key===$?D(R,j,A,H):null;case de:return $=A._init,A=$(A._payload),O(R,j,A,H)}if(qe(A)||ve(A))return $!==null?null:B(R,j,A,H,null);if(typeof A.then=="function")return O(R,j,Ki(A),H);if(A.$$typeof===G)return O(R,j,_i(R,A),H);Ji(R,A)}return null}function M(R,j,A,H,$){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(A)||null,y(j,R,""+H,$);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case E:return R=R.get(H.key===null?A:H.key)||null,b(j,R,H,$);case U:return R=R.get(H.key===null?A:H.key)||null,D(j,R,H,$);case de:var oe=H._init;return H=oe(H._payload),M(R,j,A,H,$)}if(qe(H)||ve(H))return R=R.get(A)||null,B(j,R,H,$,null);if(typeof H.then=="function")return M(R,j,A,Ki(H),$);if(H.$$typeof===G)return M(R,j,A,_i(j,H),$);Ji(j,H)}return null}function ae(R,j,A,H){for(var $=null,oe=null,W=j,le=j=0,We=null;W!==null&&le<A.length;le++){W.index>le?(We=W,W=null):We=W.sibling;var pe=O(R,W,A[le],H);if(pe===null){W===null&&(W=We);break}e&&W&&pe.alternate===null&&t(R,W),j=u(pe,j,le),oe===null?$=pe:oe.sibling=pe,oe=pe,W=We}if(le===A.length)return l(R,W),be&&Kl(R,le),$;if(W===null){for(;le<A.length;le++)W=q(R,A[le],H),W!==null&&(j=u(W,j,le),oe===null?$=W:oe.sibling=W,oe=W);return be&&Kl(R,le),$}for(W=a(W);le<A.length;le++)We=M(W,R,le,A[le],H),We!==null&&(e&&We.alternate!==null&&W.delete(We.key===null?le:We.key),j=u(We,j,le),oe===null?$=We:oe.sibling=We,oe=We);return e&&W.forEach(function(Hl){return t(R,Hl)}),be&&Kl(R,le),$}function te(R,j,A,H){if(A==null)throw Error(c(151));for(var $=null,oe=null,W=j,le=j=0,We=null,pe=A.next();W!==null&&!pe.done;le++,pe=A.next()){W.index>le?(We=W,W=null):We=W.sibling;var Hl=O(R,W,pe.value,H);if(Hl===null){W===null&&(W=We);break}e&&W&&Hl.alternate===null&&t(R,W),j=u(Hl,j,le),oe===null?$=Hl:oe.sibling=Hl,oe=Hl,W=We}if(pe.done)return l(R,W),be&&Kl(R,le),$;if(W===null){for(;!pe.done;le++,pe=A.next())pe=q(R,pe.value,H),pe!==null&&(j=u(pe,j,le),oe===null?$=pe:oe.sibling=pe,oe=pe);return be&&Kl(R,le),$}for(W=a(W);!pe.done;le++,pe=A.next())pe=M(W,R,le,pe.value,H),pe!==null&&(e&&pe.alternate!==null&&W.delete(pe.key===null?le:pe.key),j=u(pe,j,le),oe===null?$=pe:oe.sibling=pe,oe=pe);return e&&W.forEach(function(jg){return t(R,jg)}),be&&Kl(R,le),$}function De(R,j,A,H){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case E:e:{for(var $=A.key;j!==null;){if(j.key===$){if($=A.type,$===C){if(j.tag===7){l(R,j.sibling),H=i(j,A.props.children),H.return=R,R=H;break e}}else if(j.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===de&&kf($)===j.type){l(R,j.sibling),H=i(j,A.props),On(H,A),H.return=R,R=H;break e}l(R,j);break}else t(R,j);j=j.sibling}A.type===C?(H=Ql(A.props.children,R.mode,H,A.key),H.return=R,R=H):(H=Ci(A.type,A.key,A.props,null,R.mode,H),On(H,A),H.return=R,R=H)}return h(R);case U:e:{for($=A.key;j!==null;){if(j.key===$)if(j.tag===4&&j.stateNode.containerInfo===A.containerInfo&&j.stateNode.implementation===A.implementation){l(R,j.sibling),H=i(j,A.children||[]),H.return=R,R=H;break e}else{l(R,j);break}else t(R,j);j=j.sibling}H=Au(A,R.mode,H),H.return=R,R=H}return h(R);case de:return $=A._init,A=$(A._payload),De(R,j,A,H)}if(qe(A))return ae(R,j,A,H);if(ve(A)){if($=ve(A),typeof $!="function")throw Error(c(150));return A=$.call(A),te(R,j,A,H)}if(typeof A.then=="function")return De(R,j,Ki(A),H);if(A.$$typeof===G)return De(R,j,_i(R,A),H);Ji(R,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,j!==null&&j.tag===6?(l(R,j.sibling),H=i(j,A),H.return=R,R=H):(l(R,j),H=Ru(A,R.mode,H),H.return=R,R=H),h(R)):l(R,j)}return function(R,j,A,H){try{Cn=0;var $=De(R,j,A,H);return _a=null,$}catch(W){if(W===Sn||W===Li)throw W;var oe=bt(29,W,null,R.mode);return oe.lanes=H,oe.return=R,oe}finally{}}}var Ua=Yf(!0),Vf=Yf(!1),Mt=Y(null),Gt=null;function jl(e){var t=e.alternate;Q(Ze,Ze.current&1),Q(Mt,e),Gt===null&&(t===null||Ca.current!==null||t.memoizedState!==null)&&(Gt=e)}function Gf(e){if(e.tag===22){if(Q(Ze,Ze.current),Q(Mt,e),Gt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Gt=e)}}else wl()}function wl(){Q(Ze,Ze.current),Q(Mt,Mt.current)}function al(e){K(Mt),Gt===e&&(Gt=null),K(Ze)}var Ze=Y(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||$r(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function sr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ur={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),i=bl(a);i.payload=t,l!=null&&(i.callback=l),t=Sl(e,i,a),t!==null&&(Et(t,e,a),jn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),i=bl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=Sl(e,i,a),t!==null&&(Et(t,e,a),jn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=bl(l);a.tag=2,t!=null&&(a.callback=t),t=Sl(e,a,l),t!==null&&(Et(t,e,l),jn(t,e,l))}};function Xf(e,t,l,a,i,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,h):t.prototype&&t.prototype.isPureReactComponent?!hn(l,a)||!hn(i,u):!0}function Qf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ur.enqueueReplaceState(t,t.state,null)}function ea(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}var Fi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Zf(e){Fi(e)}function Kf(e){console.error(e)}function Jf(e){Fi(e)}function Wi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $f(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function rr(e,t,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){Wi(e,t)},l}function Ff(e){return e=bl(e),e.tag=3,e}function Wf(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=a.value;e.payload=function(){return i(u)},e.callback=function(){$f(t,l,a)}}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){$f(t,l,a),typeof i!="function"&&(Cl===null?Cl=new Set([this]):Cl.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function j1(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,i,!0),l=Mt.current,l!==null){switch(l.tag){case 13:return Gt===null?Mr():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Bu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),_r(e,a,i)),!1;case 22:return l.flags|=65536,a===Bu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),_r(e,a,i)),!1}throw Error(c(435,l.tag))}return _r(e,a,i),Mr(),!1}if(be)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Cu&&(e=Error(c(422),{cause:a}),xn(Tt(e,l)))):(a!==Cu&&(t=Error(c(423),{cause:a}),xn(Tt(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Tt(a,l),i=rr(e.stateNode,a,i),ku(e,i),He!==4&&(He=2)),!1;var u=Error(c(520),{cause:a});if(u=Tt(u,l),Hn===null?Hn=[u]:Hn.push(u),He!==4&&(He=2),t===null)return!0;a=Tt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=rr(l.stateNode,a,e),ku(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Cl===null||!Cl.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Ff(i),Wf(i,e,l,a),ku(l,i),!1}l=l.return}while(l!==null);return!1}var Pf=Error(c(461)),$e=!1;function Ie(e,t,l,a){t.child=e===null?Vf(t,null,l,a):Ua(t,e.child,l,a)}function If(e,t,l,a,i){l=l.render;var u=t.ref;if("ref"in a){var h={};for(var y in a)y!=="ref"&&(h[y]=a[y])}else h=a;return Wl(t),a=Qu(e,t,l,h,u,i),y=Zu(),e!==null&&!$e?(Ku(e,t,i),nl(e,t,i)):(be&&y&&Tu(t),t.flags|=1,Ie(e,t,a,i),t.child)}function ed(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!Eu(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,td(e,t,u,a,i)):(e=Ci(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!yr(e,i)){var h=u.memoizedProps;if(l=l.compare,l=l!==null?l:hn,l(h,a)&&e.ref===t.ref)return nl(e,t,i)}return t.flags|=1,e=Wt(u,a),e.ref=t.ref,e.return=t,t.child=e}function td(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(hn(u,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=u,yr(e,i))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,nl(e,t,i)}return cr(e,t,l,a,i)}function ld(e,t,l){var a=t.pendingProps,i=a.children,u=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=u!==null?u.baseLanes|l:l,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;t.childLanes=u&~a}else t.childLanes=0,t.child=null;return ad(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(t,u!==null?u.cachePool:null),u!==null?ef(t,u):Vu(),Gf(t);else return t.lanes=t.childLanes=536870912,ad(e,t,u!==null?u.baseLanes|l:l,l)}else u!==null?(Ui(t,u.cachePool),ef(t,u),wl(),t.memoizedState=null):(e!==null&&Ui(t,null),Vu(),wl());return Ie(e,t,i,l),t.child}function ad(e,t,l,a){var i=Lu();return i=i===null?null:{parent:Qe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ui(t,null),Vu(),Gf(t),e!==null&&pn(e,t,a,!0),null}function Pi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function cr(e,t,l,a,i){return Wl(t),l=Qu(e,t,l,a,void 0,i),a=Zu(),e!==null&&!$e?(Ku(e,t,i),nl(e,t,i)):(be&&a&&Tu(t),t.flags|=1,Ie(e,t,l,i),t.child)}function nd(e,t,l,a,i,u){return Wl(t),t.updateQueue=null,l=lf(t,a,l,i),tf(e),a=Zu(),e!==null&&!$e?(Ku(e,t,u),nl(e,t,u)):(be&&a&&Tu(t),t.flags|=1,Ie(e,t,l,u),t.child)}function id(e,t,l,a,i){if(Wl(t),t.stateNode===null){var u=Ea,h=l.contextType;typeof h=="object"&&h!==null&&(u=nt(h)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ur,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Hu(t),h=l.contextType,u.context=typeof h=="object"&&h!==null?nt(h):Ea,u.state=t.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(sr(t,l,h,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&ur.enqueueReplaceState(u,u.state,null),En(t,a,u,i),wn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var y=t.memoizedProps,b=ea(l,y);u.props=b;var D=u.context,B=l.contextType;h=Ea,typeof B=="object"&&B!==null&&(h=nt(B));var q=l.getDerivedStateFromProps;B=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||D!==h)&&Qf(t,u,a,h),vl=!1;var O=t.memoizedState;u.state=O,En(t,a,u,i),wn(),D=t.memoizedState,y||O!==D||vl?(typeof q=="function"&&(sr(t,l,q,a),D=t.memoizedState),(b=vl||Xf(t,l,b,a,O,D,h))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=D),u.props=a,u.state=D,u.context=h,a=b):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,qu(e,t),h=t.memoizedProps,B=ea(l,h),u.props=B,q=t.pendingProps,O=u.context,D=l.contextType,b=Ea,typeof D=="object"&&D!==null&&(b=nt(D)),y=l.getDerivedStateFromProps,(D=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==q||O!==b)&&Qf(t,u,a,b),vl=!1,O=t.memoizedState,u.state=O,En(t,a,u,i),wn();var M=t.memoizedState;h!==q||O!==M||vl||e!==null&&e.dependencies!==null&&zi(e.dependencies)?(typeof y=="function"&&(sr(t,l,y,a),M=t.memoizedState),(B=vl||Xf(t,l,B,a,O,M,b)||e!==null&&e.dependencies!==null&&zi(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,M,b),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,M,b)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),u.props=a,u.state=M,u.context=b,a=B):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Pi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ua(t,e.child,null,i),t.child=Ua(t,null,l,i)):Ie(e,t,l,i),t.memoizedState=u.state,e=t.child):e=nl(e,t,i),e}function sd(e,t,l,a){return yn(),t.flags|=256,Ie(e,t,l,a),t.child}var or={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(e){return{baseLanes:e,cachePool:Zo()}}function dr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=zt),e}function ud(e,t,l){var a=t.pendingProps,i=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),h&&(i=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(i?jl(t):wl(),be){var y=Be,b;if(b=y){e:{for(b=y,y=Vt;b.nodeType!==8;){if(!y){y=null;break e}if(b=Bt(b.nextSibling),b===null){y=null;break e}}y=b}y!==null?(t.memoizedState={dehydrated:y,treeContext:Zl!==null?{id:Pt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},b=bt(18,null,null,0),b.stateNode=y,b.return=t,t.child=b,ct=t,Be=null,b=!0):b=!1}b||$l(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return $r(y)?t.lanes=32:t.lanes=536870912,null;al(t)}return y=a.children,a=a.fallback,i?(wl(),i=t.mode,y=Ii({mode:"hidden",children:y},i),a=Ql(a,i,l,null),y.return=t,a.return=t,y.sibling=a,t.child=y,i=t.child,i.memoizedState=fr(l),i.childLanes=dr(e,h,l),t.memoizedState=or,a):(jl(t),hr(t,y))}if(b=e.memoizedState,b!==null&&(y=b.dehydrated,y!==null)){if(u)t.flags&256?(jl(t),t.flags&=-257,t=mr(e,t,l)):t.memoizedState!==null?(wl(),t.child=e.child,t.flags|=128,t=null):(wl(),i=a.fallback,y=t.mode,a=Ii({mode:"visible",children:a.children},y),i=Ql(i,y,l,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,Ua(t,e.child,null,l),a=t.child,a.memoizedState=fr(l),a.childLanes=dr(e,h,l),t.memoizedState=or,t=i);else if(jl(t),$r(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var D=h.dgst;h=D,a=Error(c(419)),a.stack="",a.digest=h,xn({value:a,source:null,stack:null}),t=mr(e,t,l)}else if($e||pn(e,t,l,!1),h=(l&e.childLanes)!==0,$e||h){if(h=Me,h!==null&&(a=l&-l,a=(a&42)!==0?1:Fs(a),a=(a&(h.suspendedLanes|l))!==0?0:a,a!==0&&a!==b.retryLane))throw b.retryLane=a,wa(e,a),Et(h,e,a),Pf;y.data==="$?"||Mr(),t=mr(e,t,l)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Be=Bt(y.nextSibling),ct=t,be=!0,Jl=null,Vt=!1,e!==null&&(Ct[Ot++]=Pt,Ct[Ot++]=It,Ct[Ot++]=Zl,Pt=e.id,It=e.overflow,Zl=t),t=hr(t,a.children),t.flags|=4096);return t}return i?(wl(),i=a.fallback,y=t.mode,b=e.child,D=b.sibling,a=Wt(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,D!==null?i=Wt(D,i):(i=Ql(i,y,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,y=e.child.memoizedState,y===null?y=fr(l):(b=y.cachePool,b!==null?(D=Qe._currentValue,b=b.parent!==D?{parent:D,pool:D}:b):b=Zo(),y={baseLanes:y.baseLanes|l,cachePool:b}),i.memoizedState=y,i.childLanes=dr(e,h,l),t.memoizedState=or,a):(jl(t),l=e.child,e=l.sibling,l=Wt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=l,t.memoizedState=null,l)}function hr(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function mr(e,t,l){return Ua(t,e.child,null,l),e=hr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Mu(e.return,t,l)}function gr(e,t,l,a,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=i)}function cd(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;if(Ie(e,t,a.children,l),a=Ze.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rd(e,l,t);else if(e.tag===19)rd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Q(Ze,a),i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&$i(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),gr(t,!1,i,l,u);break;case"backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$i(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}gr(t,!0,l,null,u);break;case"together":gr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Dl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=Wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function yr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zi(e)))}function w1(e,t,l){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),pl(t,Qe,e.memoizedState.cache),yn();break;case 27:case 5:ml(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ud(e,t,l):(jl(t),e=nl(e,t,l),e!==null?e.sibling:null);jl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return cd(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(Ze,Ze.current),a)break;return null;case 22:case 23:return t.lanes=0,ld(e,t,l);case 24:pl(t,Qe,e.memoizedState.cache)}return nl(e,t,l)}function od(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!yr(e,l)&&(t.flags&128)===0)return $e=!1,w1(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,be&&(t.flags&1048576)!==0&&qo(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,i=a._init;if(a=i(a._payload),t.type=a,typeof a=="function")Eu(a)?(e=ea(a,e),t.tag=1,t=id(null,t,a,e,l)):(t.tag=0,t=cr(null,t,a,e,l));else{if(a!=null){if(i=a.$$typeof,i===I){t.tag=11,t=If(null,t,a,e,l);break e}else if(i===ce){t.tag=14,t=ed(null,t,a,e,l);break e}}throw t=Ke(a)||a,Error(c(306,t,""))}}return t;case 0:return cr(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=ea(a,t.pendingProps),id(e,t,a,i,l);case 3:e:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var u=t.memoizedState;i=u.element,qu(e,t),En(t,a,null,l);var h=t.memoizedState;if(a=h.cache,pl(t,Qe,a),a!==u.cache&&zu(t,[Qe],l,!0),wn(),a=h.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=sd(e,t,a,l);break e}else if(a!==i){i=Tt(Error(c(424)),t),xn(i),t=sd(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=Bt(e.firstChild),ct=t,be=!0,Jl=null,Vt=!0,l=Vf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(yn(),a===i){t=nl(e,t,l);break e}Ie(e,t,a,l)}t=t.child}return t;case 26:return Pi(e,t),e===null?(l=m0(t.type,null,t.pendingProps,null))?t.memoizedState=l:be||(l=t.type,e=t.pendingProps,a=hs(ne.current).createElement(l),a[at]=t,a[ot]=e,tt(a,l,e),Je(a),t.stateNode=a):t.memoizedState=m0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ml(t),e===null&&be&&(a=t.stateNode=f0(t.type,t.pendingProps,ne.current),ct=t,Vt=!0,i=Be,zl(t.type)?(Fr=i,Be=Bt(a.firstChild)):Be=i),Ie(e,t,t.pendingProps.children,l),Pi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((i=a=Be)&&(a=P1(a,t.type,t.pendingProps,Vt),a!==null?(t.stateNode=a,ct=t,Be=Bt(a.firstChild),Vt=!1,i=!0):i=!1),i||$l(t)),ml(t),i=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,a=u.children,Zr(i,u)?a=null:h!==null&&Zr(i,h)&&(t.flags|=32),t.memoizedState!==null&&(i=Qu(e,t,y1,null,null,l),Kn._currentValue=i),Pi(e,t),Ie(e,t,a,l),t.child;case 6:return e===null&&be&&((e=l=Be)&&(l=I1(l,t.pendingProps,Vt),l!==null?(t.stateNode=l,ct=t,Be=null,e=!0):e=!1),e||$l(t)),null;case 13:return ud(e,t,l);case 4:return ie(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ua(t,null,a,l):Ie(e,t,a,l),t.child;case 11:return If(e,t,t.type,t.pendingProps,l);case 7:return Ie(e,t,t.pendingProps,l),t.child;case 8:return Ie(e,t,t.pendingProps.children,l),t.child;case 12:return Ie(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),Ie(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Wl(t),i=nt(i),a=a(i),t.flags|=1,Ie(e,t,a,l),t.child;case 14:return ed(e,t,t.type,t.pendingProps,l);case 15:return td(e,t,t.type,t.pendingProps,l);case 19:return cd(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Ii(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Wt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return ld(e,t,l);case 24:return Wl(t),a=nt(Qe),e===null?(i=Lu(),i===null&&(i=Me,u=_u(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},Hu(t),pl(t,Qe,i)):((e.lanes&l)!==0&&(qu(e,t),En(t,null,null,l),wn()),i=e.memoizedState,u=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),pl(t,Qe,a)):(a=u.cache,pl(t,Qe,a),a!==i.cache&&zu(t,[Qe],l,!0))),Ie(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function il(e){e.flags|=4}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!v0(t)){if(t=Mt.current,t!==null&&((ye&4194048)===ye?Gt!==null:(ye&62914560)!==ye&&(ye&536870912)===0||t!==Gt))throw Nn=Bu,Ko;e.flags|=8192}}function es(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Yc():536870912,e.lanes|=t,qa|=t)}function Mn(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function E1(e,t,l){var a=t.pendingProps;switch(Du(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),tl(Qe),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(gn(t)?il(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Vo())),Ue(t),null;case 26:return l=t.memoizedState,e===null?(il(t),l!==null?(Ue(t),fd(t,l)):(Ue(t),t.flags&=-16777217)):l?l!==e.memoizedState?(il(t),Ue(t),fd(t,l)):(Ue(t),t.flags&=-16777217):(e.memoizedProps!==a&&il(t),Ue(t),t.flags&=-16777217),null;case 27:kt(t),l=ne.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}e=P.current,gn(t)?ko(t):(e=f0(i,a,l),t.stateNode=e,il(t))}return Ue(t),null;case 5:if(kt(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}if(e=P.current,gn(t))ko(t);else{switch(i=hs(ne.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?i.createElement(l,{is:a.is}):i.createElement(l)}}e[at]=t,e[ot]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(tt(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&il(t)}}return Ue(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=ne.current,gn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ct,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||n0(e.nodeValue,l)),e||$l(t)}else e=hs(e).createTextNode(a),e[at]=t,t.stateNode=e}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=gn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[at]=t}else yn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),i=!1}else i=Vo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(al(t),t):(al(t),null)}if(al(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool);var u=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),es(t,t.updateQueue),Ue(t),null;case 4:return Re(),e===null&&Yr(t.stateNode.containerInfo),Ue(t),null;case 10:return tl(t.type),Ue(t),null;case 19:if(K(Ze),i=t.memoizedState,i===null)return Ue(t),null;if(a=(t.flags&128)!==0,u=i.rendering,u===null)if(a)Mn(i,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=$i(e),u!==null){for(t.flags|=128,Mn(i,!1),e=u.updateQueue,t.updateQueue=e,es(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ho(l,e),l=l.sibling;return Q(Ze,Ze.current&1|2),t.child}e=e.sibling}i.tail!==null&&Yt()>as&&(t.flags|=128,a=!0,Mn(i,!1),t.lanes=4194304)}else{if(!a)if(e=$i(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,es(t,e),Mn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!be)return Ue(t),null}else 2*Yt()-i.renderingStartTime>as&&l!==536870912&&(t.flags|=128,a=!0,Mn(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yt(),t.sibling=null,e=Ze.current,Q(Ze,a?e&1|2:e&1),t):(Ue(t),null);case 22:case 23:return al(t),Gu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&es(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&K(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),tl(Qe),Ue(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function R1(e,t){switch(Du(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tl(Qe),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kt(t),null;case 13:if(al(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Ze),null;case 4:return Re(),null;case 10:return tl(t.type),null;case 22:case 23:return al(t),Gu(),e!==null&&K(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tl(Qe),null;case 25:return null;default:return null}}function dd(e,t){switch(Du(t),t.tag){case 3:tl(Qe),Re();break;case 26:case 27:case 5:kt(t);break;case 4:Re();break;case 13:al(t);break;case 19:K(Ze);break;case 10:tl(t.type);break;case 22:case 23:al(t),Gu(),e!==null&&K(Pl);break;case 24:tl(Qe)}}function zn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var u=l.create,h=l.inst;a=u(),h.destroy=a}l=l.next}while(l!==i)}}catch(y){Ce(t,t.return,y)}}function El(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){var h=a.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,i=t;var b=l,D=y;try{D()}catch(B){Ce(i,b,B)}}}a=a.next}while(a!==u)}}catch(B){Ce(t,t.return,B)}}function hd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Io(t,l)}catch(a){Ce(e,e.return,a)}}}function md(e,t,l){l.props=ea(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(e,t,a)}}function _n(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Ce(e,t,i)}}function Xt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Ce(e,t,i)}else l.current=null}function gd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Ce(e,e.return,i)}}function xr(e,t,l){try{var a=e.stateNode;K1(a,e.type,l,t),a[ot]=t}catch(i){Ce(e,e.return,i)}}function yd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zl(e.type)||e.tag===4}function pr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ds));else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(vr(e,t,l),e=e.sibling;e!==null;)vr(e,t,l),e=e.sibling}function ts(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ts(e,t,l),e=e.sibling;e!==null;)ts(e,t,l),e=e.sibling}function xd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);tt(t,a,l),t[at]=e,t[ot]=l}catch(u){Ce(e,e.return,u)}}var sl=!1,Ye=!1,br=!1,pd=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function A1(e,t){if(e=e.containerInfo,Xr=vs,e=To(e),pu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch(te){l=null;break e}var h=0,y=-1,b=-1,D=0,B=0,q=e,O=null;t:for(;;){for(var M;q!==l||i!==0&&q.nodeType!==3||(y=h+i),q!==u||a!==0&&q.nodeType!==3||(b=h+a),q.nodeType===3&&(h+=q.nodeValue.length),(M=q.firstChild)!==null;)O=q,q=M;for(;;){if(q===e)break t;if(O===l&&++D===i&&(y=h),O===u&&++B===a&&(b=h),(M=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=M}l=y===-1||b===-1?null:{start:y,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qr={focusedElem:e,selectionRange:l},vs=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){switch(t=Fe,u=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,i=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var ae=ea(l.type,i,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(ae,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ce(l,l.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Jr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}}function vd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Rl(e,l),a&4&&zn(5,l);break;case 1:if(Rl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(h){Ce(l,l.return,h)}else{var i=ea(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ce(l,l.return,h)}}a&64&&hd(l),a&512&&_n(l,l.return);break;case 3:if(Rl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Io(e,t)}catch(h){Ce(l,l.return,h)}}break;case 27:t===null&&a&4&&xd(l);case 26:case 5:Rl(e,l),t===null&&a&4&&gd(l),a&512&&_n(l,l.return);break;case 12:Rl(e,l);break;case 13:Rl(e,l),a&4&&Nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=L1.bind(null,l),eg(e,l))));break;case 22:if(a=l.memoizedState!==null||sl,!a){t=t!==null&&t.memoizedState!==null||Ye,i=sl;var u=Ye;sl=a,(Ye=t)&&!u?Al(e,l,(l.subtreeFlags&8772)!==0):Rl(e,l),sl=i,Ye=u}break;case 30:break;default:Rl(e,l)}}function bd(e){var t=e.alternate;t!==null&&(e.alternate=null,bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Is(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,ht=!1;function ul(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(en,l)}catch(u){}switch(l.tag){case 26:Ye||Xt(l,t),ul(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ye||Xt(l,t);var a=_e,i=ht;zl(l.type)&&(_e=l.stateNode,ht=!1),ul(e,t,l),Gn(l.stateNode),_e=a,ht=i;break;case 5:Ye||Xt(l,t);case 6:if(a=_e,i=ht,_e=null,ul(e,t,l),_e=a,ht=i,_e!==null)if(ht)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(l.stateNode)}catch(u){Ce(l,t,u)}else try{_e.removeChild(l.stateNode)}catch(u){Ce(l,t,u)}break;case 18:_e!==null&&(ht?(e=_e,c0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Wn(e)):c0(_e,l.stateNode));break;case 4:a=_e,i=ht,_e=l.stateNode.containerInfo,ht=!0,ul(e,t,l),_e=a,ht=i;break;case 0:case 11:case 14:case 15:Ye||El(2,l,t),Ye||El(4,l,t),ul(e,t,l);break;case 1:Ye||(Xt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&md(l,t,a)),ul(e,t,l);break;case 21:ul(e,t,l);break;case 22:Ye=(a=Ye)||l.memoizedState!==null,ul(e,t,l),Ye=a;break;default:ul(e,t,l)}}function Nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wn(e)}catch(l){Ce(t,t.return,l)}}function T1(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pd),t;default:throw Error(c(435,e.tag))}}function Sr(e,t){var l=T1(e);t.forEach(function(a){var i=B1.bind(null,e,a);l.has(a)||(l.add(a),a.then(i,i))})}function St(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],u=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(zl(y.type)){_e=y.stateNode,ht=!1;break e}break;case 5:_e=y.stateNode,ht=!1;break e;case 3:case 4:_e=y.stateNode.containerInfo,ht=!0;break e}y=y.return}if(_e===null)throw Error(c(160));Sd(u,h,i),_e=null,ht=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)jd(t,e),t=t.sibling}var Lt=null;function jd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Nt(e),a&4&&(El(3,e,e.return),zn(3,e),El(5,e,e.return));break;case 1:St(t,e),Nt(e),a&512&&(Ye||l===null||Xt(l,l.return)),a&64&&sl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var i=Lt;if(St(t,e),Nt(e),a&512&&(Ye||l===null||Xt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":u=i.getElementsByTagName("title")[0],(!u||u[an]||u[at]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(a),i.head.insertBefore(u,i.querySelector("head > title"))),tt(u,a,l),u[at]=e,Je(u),a=u;break e;case"link":var h=x0("link","href",i).get(a+(l.href||""));if(h){for(var y=0;y<h.length;y++)if(u=h[y],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){h.splice(y,1);break t}}u=i.createElement(a),tt(u,a,l),i.head.appendChild(u);break;case"meta":if(h=x0("meta","content",i).get(a+(l.content||""))){for(y=0;y<h.length;y++)if(u=h[y],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){h.splice(y,1);break t}}u=i.createElement(a),tt(u,a,l),i.head.appendChild(u);break;default:throw Error(c(468,a))}u[at]=e,Je(u),a=u}e.stateNode=a}else p0(i,e.type,e.stateNode);else e.stateNode=y0(i,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?p0(i,e.type,e.stateNode):y0(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&xr(e,e.memoizedProps,l.memoizedProps)}break;case 27:St(t,e),Nt(e),a&512&&(Ye||l===null||Xt(l,l.return)),l!==null&&a&4&&xr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(St(t,e),Nt(e),a&512&&(Ye||l===null||Xt(l,l.return)),e.flags&32){i=e.stateNode;try{xa(i,"")}catch(M){Ce(e,e.return,M)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,xr(e,i,l!==null?l.memoizedProps:i)),a&1024&&(br=!0);break;case 6:if(St(t,e),Nt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(M){Ce(e,e.return,M)}}break;case 3:if(ys=null,i=Lt,Lt=ms(t.containerInfo),St(t,e),Lt=i,Nt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch(M){Ce(e,e.return,M)}br&&(br=!1,wd(e));break;case 4:a=Lt,Lt=ms(e.stateNode.containerInfo),St(t,e),Nt(e),Lt=a;break;case 12:St(t,e),Nt(e);break;case 13:St(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ar=Yt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Sr(e,a)));break;case 22:i=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,D=sl,B=Ye;if(sl=D||i,Ye=B||b,St(t,e),Ye=B,sl=D,Nt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||b||sl||Ye||ta(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(u=b.stateNode,i)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=b.stateNode;var q=b.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(M){Ce(b,b.return,M)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(M){Ce(b,b.return,M)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Sr(e,l))));break;case 19:St(t,e),Nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Sr(e,a)));break;case 30:break;case 21:break;default:St(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(yd(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var i=l.stateNode,u=pr(e);ts(e,u,i);break;case 5:var h=l.stateNode;l.flags&32&&(xa(h,""),l.flags&=-33);var y=pr(e);ts(e,y,h);break;case 3:case 4:var b=l.stateNode.containerInfo,D=pr(e);vr(e,D,b);break;default:throw Error(c(161))}}catch(B){Ce(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vd(e,t.alternate,t),t=t.sibling}function ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),ta(t);break;case 1:Xt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&md(t,t.return,l),ta(t);break;case 27:Gn(t.stateNode);case 26:case 5:Xt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(t)}e=e.sibling}}function Al(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Al(i,u,l),zn(4,u);break;case 1:if(Al(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(D){Ce(a,a.return,D)}if(a=u,i=a.updateQueue,i!==null){var y=a.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)Po(b[i],y)}catch(D){Ce(a,a.return,D)}}l&&h&64&&hd(u),_n(u,u.return);break;case 27:xd(u);case 26:case 5:Al(i,u,l),l&&a===null&&h&4&&gd(u),_n(u,u.return);break;case 12:Al(i,u,l);break;case 13:Al(i,u,l),l&&h&4&&Nd(i,u);break;case 22:u.memoizedState===null&&Al(i,u,l),_n(u,u.return);break;case 30:break;default:Al(i,u,l)}t=t.sibling}}function Nr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&vn(l))}function jr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vn(e))}function Qt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ed(e,t,l,a),t=t.sibling}function Ed(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,l,a),i&2048&&zn(9,t);break;case 1:Qt(e,t,l,a);break;case 3:Qt(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vn(e)));break;case 12:if(i&2048){Qt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,y=u.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}else Qt(e,t,l,a);break;case 13:Qt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?Qt(e,t,l,a):Un(e,t):u._visibility&2?Qt(e,t,l,a):(u._visibility|=2,La(e,t,l,a,(t.subtreeFlags&10256)!==0)),i&2048&&Nr(h,t);break;case 24:Qt(e,t,l,a),i&2048&&jr(t.alternate,t);break;default:Qt(e,t,l,a)}}function La(e,t,l,a,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var u=e,h=t,y=l,b=a,D=h.flags;switch(h.tag){case 0:case 11:case 15:La(u,h,y,b,i),zn(8,h);break;case 23:break;case 22:var B=h.stateNode;h.memoizedState!==null?B._visibility&2?La(u,h,y,b,i):Un(u,h):(B._visibility|=2,La(u,h,y,b,i)),i&&D&2048&&Nr(h.alternate,h);break;case 24:La(u,h,y,b,i),i&&D&2048&&jr(h.alternate,h);break;default:La(u,h,y,b,i)}t=t.sibling}}function Un(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:Un(l,a),i&2048&&Nr(a.alternate,a);break;case 24:Un(l,a),i&2048&&jr(a.alternate,a);break;default:Un(l,a)}t=t.sibling}}var Ln=8192;function Ba(e){if(e.subtreeFlags&Ln)for(e=e.child;e!==null;)Rd(e),e=e.sibling}function Rd(e){switch(e.tag){case 26:Ba(e),e.flags&Ln&&e.memoizedState!==null&&hg(Lt,e.memoizedState,e.memoizedProps);break;case 5:Ba(e);break;case 3:case 4:var t=Lt;Lt=ms(e.stateNode.containerInfo),Ba(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ln,Ln=16777216,Ba(e),Ln=t):Ba(e));break;default:Ba(e)}}function Ad(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Fe=a,Dd(a,e)}Ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Td(e),e=e.sibling}function Td(e){switch(e.tag){case 0:case 11:case 15:Bn(e),e.flags&2048&&El(9,e,e.return);break;case 3:Bn(e);break;case 12:Bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ls(e)):Bn(e);break;default:Bn(e)}}function ls(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Fe=a,Dd(a,e)}Ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),ls(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ls(t));break;default:ls(t)}e=e.sibling}}function Dd(e,t){for(;Fe!==null;){var l=Fe;switch(l.tag){case 0:case 11:case 15:El(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:vn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Fe=a;else e:for(l=e;Fe!==null;){a=Fe;var i=a.sibling,u=a.return;if(bd(a),a===l){Fe=null;break e}if(i!==null){i.return=u,Fe=i;break e}Fe=u}}}var D1={getCacheForType:function(e){var t=nt(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},C1=typeof WeakMap=="function"?WeakMap:Map,je=0,Me=null,he=null,ye=0,we=0,jt=null,Tl=!1,Ha=!1,wr=!1,rl=0,He=0,Dl=0,la=0,Er=0,zt=0,qa=0,Hn=null,mt=null,Rr=!1,Ar=0,as=1/0,ns=null,Cl=null,et=0,Ol=null,ka=null,Ya=0,Tr=0,Dr=null,Cd=null,qn=0,Cr=null;function wt(){if((je&2)!==0&&ye!==0)return ye&-ye;if(L.T!==null){var e=Ta;return e!==0?e:Br()}return Xc()}function Od(){zt===0&&(zt=(ye&536870912)===0||be?kc():536870912);var e=Mt.current;return e!==null&&(e.flags|=32),zt}function Et(e,t,l){(e===Me&&(we===2||we===9)||e.cancelPendingCommit!==null)&&(Va(e,0),Ml(e,ye,zt,!1)),ln(e,l),((je&2)===0||e!==Me)&&(e===Me&&((je&2)===0&&(la|=l),He===4&&Ml(e,ye,zt,!1)),Zt(e))}function Md(e,t,l){if((je&6)!==0)throw Error(c(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||tn(e,t),i=a?z1(e,t):zr(e,t,!0),u=a;do{if(i===0){Ha&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!O1(l)){i=zr(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;i=Hn;var b=y.current.memoizedState.isDehydrated;if(b&&(Va(y,h).flags|=256),h=zr(y,h,!1),h!==2){if(wr&&!b){y.errorRecoveryDisabledLanes|=u,la|=u,i=4;break e}u=mt,mt=i,u!==null&&(mt===null?mt=u:mt.push.apply(mt,u))}i=h}if(u=!1,i!==2)continue}}if(i===1){Va(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,zt,!Tl);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Ar+300-Yt(),10<i)){if(Ml(a,t,zt,!Tl),gi(a,0,!0)!==0)break e;a.timeoutHandle=u0(zd.bind(null,a,l,mt,ns,Rr,t,zt,la,qa,Tl,u,2,-0,0),i);break e}zd(a,l,mt,ns,Rr,t,zt,la,qa,Tl,u,0,-0,0)}}break}while(!0);Zt(e)}function zd(e,t,l,a,i,u,h,y,b,D,B,q,O,M){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Zn={stylesheets:null,count:0,unsuspend:dg},Rd(t),q=mg(),q!==null)){e.cancelPendingCommit=q(kd.bind(null,e,t,u,l,a,i,h,y,b,B,1,O,M)),Ml(e,u,h,!D);return}kd(e,t,u,l,a,i,h,y,b)}function O1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],u=i.getSnapshot;i=i.value;try{if(!vt(u(),i))return!1}catch(h){return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ml(e,t,l,a){t&=~Er,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var u=31-pt(i),h=1<<u;a[u]=-1,i&=~h}l!==0&&Vc(e,l,t)}function is(){return(je&6)===0?(kn(0),!1):!0}function Or(){if(he!==null){if(we===0)var e=he.return;else e=he,el=Fl=null,Ju(e),_a=null,Cn=0,e=he;for(;e!==null;)dd(e.alternate,e),e=e.return;he=null}}function Va(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,$1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Or(),Me=e,he=l=Wt(e.current,null),ye=t,we=0,jt=null,Tl=!1,Ha=tn(e,t),wr=!1,qa=zt=Er=la=Dl=He=0,mt=Hn=null,Rr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-pt(a),u=1<<i;t|=e[i],a&=~u}return rl=t,Ai(),l}function _d(e,t){re=null,L.H=Zi,t===Sn||t===Li?(t=Fo(),we=3):t===Ko?(t=Fo(),we=4):we=t===Pf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,he===null&&(He=1,Wi(e,Tt(t,e.current)))}function Ud(){var e=L.H;return L.H=Zi,e===null?Zi:e}function Ld(){var e=L.A;return L.A=D1,e}function Mr(){He=4,Tl||(ye&4194048)!==ye&&Mt.current!==null||(Ha=!0),(Dl&134217727)===0&&(la&134217727)===0||Me===null||Ml(Me,ye,zt,!1)}function zr(e,t,l){var a=je;je|=2;var i=Ud(),u=Ld();(Me!==e||ye!==t)&&(ns=null,Va(e,t)),t=!1;var h=He;e:do try{if(we!==0&&he!==null){var y=he,b=jt;switch(we){case 8:Or(),h=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var D=we;if(we=0,jt=null,Ga(e,y,b,D),l&&Ha){h=0;break e}break;default:D=we,we=0,jt=null,Ga(e,y,b,D)}}M1(),h=He;break}catch(B){_d(e,B)}while(!0);return t&&e.shellSuspendCounter++,el=Fl=null,je=a,L.H=i,L.A=u,he===null&&(Me=null,ye=0,Ai()),h}function M1(){for(;he!==null;)Bd(he)}function z1(e,t){var l=je;je|=2;var a=Ud(),i=Ld();Me!==e||ye!==t?(ns=null,as=Yt()+500,Va(e,t)):Ha=tn(e,t);e:do try{if(we!==0&&he!==null){t=he;var u=jt;t:switch(we){case 1:we=0,jt=null,Ga(e,t,u,1);break;case 2:case 9:if(Jo(u)){we=0,jt=null,Hd(t);break}t=function(){we!==2&&we!==9||Me!==e||(we=7),Zt(e)},u.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:Jo(u)?(we=0,jt=null,Hd(t)):(we=0,jt=null,Ga(e,t,u,7));break;case 5:var h=null;switch(he.tag){case 26:h=he.memoizedState;case 5:case 27:var y=he;if(!h||v0(h)){we=0,jt=null;var b=y.sibling;if(b!==null)he=b;else{var D=y.return;D!==null?(he=D,ss(D)):he=null}break t}}we=0,jt=null,Ga(e,t,u,5);break;case 6:we=0,jt=null,Ga(e,t,u,6);break;case 8:Or(),He=6;break e;default:throw Error(c(462))}}_1();break}catch(B){_d(e,B)}while(!0);return el=Fl=null,L.H=a,L.A=i,je=l,he!==null?0:(Me=null,ye=0,Ai(),He)}function _1(){for(;he!==null&&!lm();)Bd(he)}function Bd(e){var t=od(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?ss(e):he=t}function Hd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=nd(l,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=nd(l,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Ju(t);default:dd(l,t),t=he=Ho(t,rl),t=od(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?ss(e):he=t}function Ga(e,t,l,a){el=Fl=null,Ju(t),_a=null,Cn=0;var i=t.return;try{if(j1(e,i,t,l,ye)){He=1,Wi(e,Tt(l,e.current)),he=null;return}}catch(u){if(i!==null)throw he=i,u;He=1,Wi(e,Tt(l,e.current)),he=null;return}t.flags&32768?(be||a===1?e=!0:Ha||(ye&536870912)!==0?e=!1:(Tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),qd(t,e)):ss(t)}function ss(e){var t=e;do{if((t.flags&32768)!==0){qd(t,Tl);return}e=t.return;var l=E1(t.alternate,t,rl);if(l!==null){he=l;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);He===0&&(He=5)}function qd(e,t){do{var l=R1(e.alternate,e);if(l!==null){l.flags&=32767,he=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=l}while(e!==null);He=6,he=null}function kd(e,t,l,a,i,u,h,y,b){e.cancelPendingCommit=null;do us();while(et!==0);if((je&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(u=t.lanes|t.childLanes,u|=ju,dm(e,l,u,h,y,b),e===Me&&(he=Me=null,ye=0),ka=t,Ol=e,Ya=l,Tr=u,Dr=i,Cd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,H1(di,function(){return Qd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,i=Z.p,Z.p=2,h=je,je|=4;try{A1(e,t,l)}finally{je=h,Z.p=i,L.T=a}}et=1,Yd(),Vd(),Gd()}}function Yd(){if(et===1){et=0;var e=Ol,t=ka,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var a=Z.p;Z.p=2;var i=je;je|=4;try{jd(t,e);var u=Qr,h=To(e.containerInfo),y=u.focusedElem,b=u.selectionRange;if(h!==y&&y&&y.ownerDocument&&Ao(y.ownerDocument.documentElement,y)){if(b!==null&&pu(y)){var D=b.start,B=b.end;if(B===void 0&&(B=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(B,y.value.length);else{var q=y.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var M=O.getSelection(),ae=y.textContent.length,te=Math.min(b.start,ae),De=b.end===void 0?te:Math.min(b.end,ae);!M.extend&&te>De&&(h=De,De=te,te=h);var R=Ro(y,te),j=Ro(y,De);if(R&&j&&(M.rangeCount!==1||M.anchorNode!==R.node||M.anchorOffset!==R.offset||M.focusNode!==j.node||M.focusOffset!==j.offset)){var A=q.createRange();A.setStart(R.node,R.offset),M.removeAllRanges(),te>De?(M.addRange(A),M.extend(j.node,j.offset)):(A.setEnd(j.node,j.offset),M.addRange(A))}}}}for(q=[],M=y;M=M.parentNode;)M.nodeType===1&&q.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var H=q[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}vs=!!Xr,Qr=Xr=null}finally{je=i,Z.p=a,L.T=l}}e.current=t,et=2}}function Vd(){if(et===2){et=0;var e=Ol,t=ka,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var a=Z.p;Z.p=2;var i=je;je|=4;try{vd(e,t.alternate,t)}finally{je=i,Z.p=a,L.T=l}}et=3}}function Gd(){if(et===4||et===3){et=0,am();var e=Ol,t=ka,l=Ya,a=Cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,ka=Ol=null,Xd(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Cl=null),Ws(l),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(en,t,void 0,(t.current.flags&128)===128)}catch(b){}if(a!==null){t=L.T,i=Z.p,Z.p=2,L.T=null;try{for(var u=e.onRecoverableError,h=0;h<a.length;h++){var y=a[h];u(y.value,{componentStack:y.stack})}}finally{L.T=t,Z.p=i}}(Ya&3)!==0&&us(),Zt(e),i=e.pendingLanes,(l&4194090)!==0&&(i&42)!==0?e===Cr?qn++:(qn=0,Cr=e):qn=0,kn(0)}}function Xd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vn(t)))}function us(e){return Yd(),Vd(),Gd(),Qd()}function Qd(){if(et!==5)return!1;var e=Ol,t=Tr;Tr=0;var l=Ws(Ya),a=L.T,i=Z.p;try{Z.p=32>l?32:l,L.T=null,l=Dr,Dr=null;var u=Ol,h=Ya;if(et=0,ka=Ol=null,Ya=0,(je&6)!==0)throw Error(c(331));var y=je;if(je|=4,Td(u.current),Ed(u,u.current,h,l),je=y,kn(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(en,u)}catch(b){}return!0}finally{Z.p=i,L.T=a,Xd(e,t)}}function Zd(e,t,l){t=Tt(l,t),t=rr(e.stateNode,t,2),e=Sl(e,t,2),e!==null&&(ln(e,2),Zt(e))}function Ce(e,t,l){if(e.tag===3)Zd(e,e,l);else for(;t!==null;){if(t.tag===3){Zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Cl===null||!Cl.has(a))){e=Tt(l,e),l=Ff(2),a=Sl(t,l,2),a!==null&&(Wf(l,a,t,e),ln(a,2),Zt(a));break}}t=t.return}}function _r(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new C1;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(wr=!0,i.add(l),e=U1.bind(null,e,t,l),t.then(e,e))}function U1(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(ye&l)===l&&(He===4||He===3&&(ye&62914560)===ye&&300>Yt()-Ar?(je&2)===0&&Va(e,0):Er|=l,qa===ye&&(qa=0)),Zt(e)}function Kd(e,t){t===0&&(t=Yc()),e=wa(e,t),e!==null&&(ln(e,t),Zt(e))}function L1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kd(e,l)}function B1(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Kd(e,l)}function H1(e,t){return Ks(e,t)}var rs=null,Xa=null,Ur=!1,cs=!1,Lr=!1,aa=0;function Zt(e){e!==Xa&&e.next===null&&(Xa===null?rs=Xa=e:Xa=Xa.next=e),cs=!0,Ur||(Ur=!0,k1())}function kn(e,t){if(!Lr&&cs){Lr=!0;do for(var l=!1,a=rs;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var u=0;else{var h=a.suspendedLanes,y=a.pingedLanes;u=(1<<31-pt(42|e)+1)-1,u&=i&~(h&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Wd(a,u))}else u=ye,u=gi(a,a===Me?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||tn(a,u)||(l=!0,Wd(a,u));a=a.next}while(l);Lr=!1}}function q1(){Jd()}function Jd(){cs=Ur=!1;var e=0;aa!==0&&(J1()&&(e=aa),aa=0);for(var t=Yt(),l=null,a=rs;a!==null;){var i=a.next,u=$d(a,t);u===0?(a.next=null,l===null?rs=i:l.next=i,i===null&&(Xa=l)):(l=a,(e!==0||(u&3)!==0)&&(cs=!0)),a=i}kn(e)}function $d(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-pt(u),y=1<<h,b=i[h];b===-1?((y&l)===0||(y&a)!==0)&&(i[h]=fm(y,t)):b<=t&&(e.expiredLanes|=y),u&=~y}if(t=Me,l=ye,l=gi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Js(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||tn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Js(a),Ws(l)){case 2:case 8:l=Hc;break;case 32:l=di;break;case 268435456:l=qc;break;default:l=di}return a=Fd.bind(null,e),l=Ks(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Js(a),e.callbackPriority=2,e.callbackNode=null,2}function Fd(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(us()&&e.callbackNode!==l)return null;var a=ye;return a=gi(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Md(e,a,t),$d(e,Yt()),e.callbackNode!=null&&e.callbackNode===l?Fd.bind(null,e):null)}function Wd(e,t){if(us())return null;Md(e,t,!0)}function k1(){F1(function(){(je&6)!==0?Ks(Bc,q1):Jd()})}function Br(){return aa===0&&(aa=kc()),aa}function Pd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bi(""+e)}function Id(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Y1(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=Pd((i[ot]||null).action),h=a.submitter;h&&(t=(t=h[ot]||null)?Pd(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var y=new wi("action","action",null,a,i);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(aa!==0){var b=h?Id(i,h):new FormData(i);ar(l,{pending:!0,data:b,method:i.method,action:u},null,b)}}else typeof u=="function"&&(y.preventDefault(),b=h?Id(i,h):new FormData(i),ar(l,{pending:!0,data:b,method:i.method,action:u},u,b))},currentTarget:i}]})}}for(var Hr=0;Hr<Nu.length;Hr++){var qr=Nu[Hr],V1=qr.toLowerCase(),G1=qr[0].toUpperCase()+qr.slice(1);Ut(V1,"on"+G1)}Ut(Oo,"onAnimationEnd"),Ut(Mo,"onAnimationIteration"),Ut(zo,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(s1,"onTransitionRun"),Ut(u1,"onTransitionStart"),Ut(r1,"onTransitionCancel"),Ut(_o,"onTransitionEnd"),ma("onMouseEnter",["mouseout","mouseover"]),ma("onMouseLeave",["mouseout","mouseover"]),ma("onPointerEnter",["pointerout","pointerover"]),ma("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yn="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(" "),X1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yn));function e0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var h=a.length-1;0<=h;h--){var y=a[h],b=y.instance,D=y.currentTarget;if(y=y.listener,b!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=D;try{u(i)}catch(B){Fi(B)}i.currentTarget=null,u=b}else for(h=0;h<a.length;h++){if(y=a[h],b=y.instance,D=y.currentTarget,y=y.listener,b!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=D;try{u(i)}catch(B){Fi(B)}i.currentTarget=null,u=b}}}}function me(e,t){var l=t[Ps];l===void 0&&(l=t[Ps]=new Set);var a=e+"__bubble";l.has(a)||(t0(t,e,2,!1),l.add(a))}function kr(e,t,l){var a=0;t&&(a|=4),t0(l,e,a,t)}var os="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[os]){e[os]=!0,Zc.forEach(function(l){l!=="selectionchange"&&(X1.has(l)||kr(l,!1,e),kr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[os]||(t[os]=!0,kr("selectionchange",!1,t))}}function t0(e,t,l,a){switch(E0(t)){case 2:var i=xg;break;case 8:i=pg;break;default:i=tc}l=i.bind(null,t,l,e),i=void 0,!cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function Vr(e,t,l,a,i){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var y=a.stateNode.containerInfo;if(y===i)break;if(h===4)for(h=a.return;h!==null;){var b=h.tag;if((b===3||b===4)&&h.stateNode.containerInfo===i)return;h=h.return}for(;y!==null;){if(h=fa(y),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){a=u=h;continue e}y=y.parentNode}}a=a.return}so(function(){var D=u,B=uu(l),q=[];e:{var O=Uo.get(e);if(O!==void 0){var M=wi,ae=e;switch(e){case"keypress":if(Ni(l)===0)break e;case"keydown":case"keyup":M=Hm;break;case"focusin":ae="focus",M=hu;break;case"focusout":ae="blur",M=hu;break;case"beforeblur":case"afterblur":M=hu;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":M=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Rm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Ym;break;case Oo:case Mo:case zo:M=Dm;break;case _o:M=Gm;break;case"scroll":case"scrollend":M=wm;break;case"wheel":M=Qm;break;case"copy":case"cut":case"paste":M=Om;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=fo;break;case"toggle":case"beforetoggle":M=Km}var te=(t&4)!==0,De=!te&&(e==="scroll"||e==="scrollend"),R=te?O!==null?O+"Capture":null:O;te=[];for(var j=D,A;j!==null;){var H=j;if(A=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||A===null||R===null||(H=sn(j,R),H!=null&&te.push(Vn(j,H,A))),De)break;j=j.return}0<te.length&&(O=new M(O,ae,null,l,B),q.push({event:O,listeners:te}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",O&&l!==su&&(ae=l.relatedTarget||l.fromElement)&&(fa(ae)||ae[oa]))break e;if((M||O)&&(O=B.window===B?B:(O=B.ownerDocument)?O.defaultView||O.parentWindow:window,M?(ae=l.relatedTarget||l.toElement,M=D,ae=ae?fa(ae):null,ae!==null&&(De=d(ae),te=ae.tag,ae!==De||te!==5&&te!==27&&te!==6)&&(ae=null)):(M=null,ae=D),M!==ae)){if(te=co,H="onMouseLeave",R="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(te=fo,H="onPointerLeave",R="onPointerEnter",j="pointer"),De=M==null?O:nn(M),A=ae==null?O:nn(ae),O=new te(H,j+"leave",M,l,B),O.target=De,O.relatedTarget=A,H=null,fa(B)===D&&(te=new te(R,j+"enter",ae,l,B),te.target=A,te.relatedTarget=De,H=te),De=H,M&&ae)t:{for(te=M,R=ae,j=0,A=te;A;A=Qa(A))j++;for(A=0,H=R;H;H=Qa(H))A++;for(;0<j-A;)te=Qa(te),j--;for(;0<A-j;)R=Qa(R),A--;for(;j--;){if(te===R||R!==null&&te===R.alternate)break t;te=Qa(te),R=Qa(R)}te=null}else te=null;M!==null&&l0(q,O,M,te,!1),ae!==null&&De!==null&&l0(q,De,ae,te,!0)}}e:{if(O=D?nn(D):window,M=O.nodeName&&O.nodeName.toLowerCase(),M==="select"||M==="input"&&O.type==="file")var $=bo;else if(po(O))if(So)$=a1;else{$=t1;var oe=e1}else M=O.nodeName,!M||M.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?D&&iu(D.elementType)&&($=bo):$=l1;if($&&($=$(e,D))){vo(q,$,l,B);break e}oe&&oe(e,O,D),e==="focusout"&&D&&O.type==="number"&&D.memoizedProps.value!=null&&nu(O,"number",O.value)}switch(oe=D?nn(D):window,e){case"focusin":(po(oe)||oe.contentEditable==="true")&&(Sa=oe,vu=D,mn=null);break;case"focusout":mn=vu=Sa=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,Do(q,l,B);break;case"selectionchange":if(i1)break;case"keydown":case"keyup":Do(q,l,B)}var W;if(gu)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else ba?yo(e,l)&&(le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(le="onCompositionStart");le&&(ho&&l.locale!=="ko"&&(ba||le!=="onCompositionStart"?le==="onCompositionEnd"&&ba&&(W=uo()):(xl=B,ou="value"in xl?xl.value:xl.textContent,ba=!0)),oe=fs(D,le),0<oe.length&&(le=new oo(le,e,null,l,B),q.push({event:le,listeners:oe}),W?le.data=W:(W=xo(l),W!==null&&(le.data=W)))),(W=$m?Fm(e,l):Wm(e,l))&&(le=fs(D,"onBeforeInput"),0<le.length&&(oe=new oo("onBeforeInput","beforeinput",null,l,B),q.push({event:oe,listeners:le}),oe.data=W)),Y1(q,e,D,l,B)}e0(q,t)})}function Vn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fs(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=sn(e,l),i!=null&&a.unshift(Vn(e,i,u)),i=sn(e,t),i!=null&&a.push(Vn(e,i,u))),e.tag===3)return a;e=e.return}return[]}function Qa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function l0(e,t,l,a,i){for(var u=t._reactName,h=[];l!==null&&l!==a;){var y=l,b=y.alternate,D=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||D===null||(b=D,i?(D=sn(l,u),D!=null&&h.unshift(Vn(l,D,b))):i||(D=sn(l,u),D!=null&&h.push(Vn(l,D,b)))),l=l.return}h.length!==0&&e.push({event:t,listeners:h})}var Q1=/\r\n?/g,Z1=/\u0000|\uFFFD/g;function a0(e){return(typeof e=="string"?e:""+e).replace(Q1,`
49
- `).replace(Z1,"")}function n0(e,t){return t=a0(t),a0(e)===t}function ds(){}function Te(e,t,l,a,i,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||xa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&xa(e,""+a);break;case"className":xi(e,"class",a);break;case"tabIndex":xi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":xi(e,l,a);break;case"style":no(e,a,u);break;case"data":if(t!=="object"){xi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 u=="function"&&(l==="formAction"?(t!=="input"&&Te(e,t,"name",i.name,i,null),Te(e,t,"formEncType",i.formEncType,i,null),Te(e,t,"formMethod",i.formMethod,i,null),Te(e,t,"formTarget",i.formTarget,i,null)):(Te(e,t,"encType",i.encType,i,null),Te(e,t,"method",i.method,i,null),Te(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=ds);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=bi(""+a),e.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":me("beforetoggle",e),me("toggle",e),yi(e,"popover",a);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Nm.get(l)||l,yi(e,l,a))}}function Gr(e,t,l,a,i,u){switch(l){case"style":no(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?xa(e,a):(typeof a=="number"||typeof a=="bigint")&&xa(e,""+a);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ds);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),u=e[ot]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):yi(e,l,a)}}}function tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var a=!1,i=!1,u;for(u in l)if(l.hasOwnProperty(u)){var h=l[u];if(h!=null)switch(u){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Te(e,t,u,h,l,null)}}i&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":me("invalid",e);var y=u=h=i=null,b=null,D=null;for(a in l)if(l.hasOwnProperty(a)){var B=l[a];if(B!=null)switch(a){case"name":i=B;break;case"type":h=B;break;case"checked":b=B;break;case"defaultChecked":D=B;break;case"value":u=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:Te(e,t,a,B,l,null)}}eo(e,u,y,b,D,h,i,!1),pi(e);return;case"select":me("invalid",e),a=h=u=null;for(i in l)if(l.hasOwnProperty(i)&&(y=l[i],y!=null))switch(i){case"value":u=y;break;case"defaultValue":h=y;break;case"multiple":a=y;default:Te(e,t,i,y,l,null)}t=u,l=h,e.multiple=!!a,t!=null?ya(e,!!a,t,!1):l!=null&&ya(e,!!a,l,!0);return;case"textarea":me("invalid",e),u=i=a=null;for(h in l)if(l.hasOwnProperty(h)&&(y=l[h],y!=null))switch(h){case"value":a=y;break;case"defaultValue":i=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:Te(e,t,h,y,l,null)}lo(e,a,i,u),pi(e);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,b,a,l,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<Yn.length;a++)me(Yn[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in l)if(l.hasOwnProperty(D)&&(a=l[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Te(e,t,D,a,l,null)}return;default:if(iu(t)){for(B in l)l.hasOwnProperty(B)&&(a=l[B],a!==void 0&&Gr(e,t,B,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&Te(e,t,y,a,l,null))}function K1(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,h=null,y=null,b=null,D=null,B=null;for(M in l){var q=l[M];if(l.hasOwnProperty(M)&&q!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":b=q;default:a.hasOwnProperty(M)||Te(e,t,M,null,a,q)}}for(var O in a){var M=a[O];if(q=l[O],a.hasOwnProperty(O)&&(M!=null||q!=null))switch(O){case"type":u=M;break;case"name":i=M;break;case"checked":D=M;break;case"defaultChecked":B=M;break;case"value":h=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:M!==q&&Te(e,t,O,M,a,q)}}au(e,h,y,b,D,B,u,i);return;case"select":M=h=y=O=null;for(u in l)if(b=l[u],l.hasOwnProperty(u)&&b!=null)switch(u){case"value":break;case"multiple":M=b;default:a.hasOwnProperty(u)||Te(e,t,u,null,a,b)}for(i in a)if(u=a[i],b=l[i],a.hasOwnProperty(i)&&(u!=null||b!=null))switch(i){case"value":O=u;break;case"defaultValue":y=u;break;case"multiple":h=u;default:u!==b&&Te(e,t,i,u,a,b)}t=y,l=h,a=M,O!=null?ya(e,!!l,O,!1):!!a!=!!l&&(t!=null?ya(e,!!l,t,!0):ya(e,!!l,l?[]:"",!1));return;case"textarea":M=O=null;for(y in l)if(i=l[y],l.hasOwnProperty(y)&&i!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Te(e,t,y,null,a,i)}for(h in a)if(i=a[h],u=l[h],a.hasOwnProperty(h)&&(i!=null||u!=null))switch(h){case"value":O=i;break;case"defaultValue":M=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Te(e,t,h,i,a,u)}to(e,O,M);return;case"option":for(var ae in l)if(O=l[ae],l.hasOwnProperty(ae)&&O!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Te(e,t,ae,null,a,O)}for(b in a)if(O=a[b],M=l[b],a.hasOwnProperty(b)&&O!==M&&(O!=null||M!=null))switch(b){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Te(e,t,b,O,a,M)}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 te in l)O=l[te],l.hasOwnProperty(te)&&O!=null&&!a.hasOwnProperty(te)&&Te(e,t,te,null,a,O);for(D in a)if(O=a[D],M=l[D],a.hasOwnProperty(D)&&O!==M&&(O!=null||M!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,t));break;default:Te(e,t,D,O,a,M)}return;default:if(iu(t)){for(var De in l)O=l[De],l.hasOwnProperty(De)&&O!==void 0&&!a.hasOwnProperty(De)&&Gr(e,t,De,void 0,a,O);for(B in a)O=a[B],M=l[B],!a.hasOwnProperty(B)||O===M||O===void 0&&M===void 0||Gr(e,t,B,O,a,M);return}}for(var R in l)O=l[R],l.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Te(e,t,R,null,a,O);for(q in a)O=a[q],M=l[q],!a.hasOwnProperty(q)||O===M||O==null&&M==null||Te(e,t,q,O,a,M)}var Xr=null,Qr=null;function hs(e){return e.nodeType===9?e:e.ownerDocument}function i0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function s0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Zr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kr=null;function J1(){var e=window.event;return e&&e.type==="popstate"?e===Kr?!1:(Kr=e,!0):(Kr=null,!1)}var u0=typeof setTimeout=="function"?setTimeout:void 0,$1=typeof clearTimeout=="function"?clearTimeout:void 0,r0=typeof Promise=="function"?Promise:void 0,F1=typeof queueMicrotask=="function"?queueMicrotask:typeof r0!="undefined"?function(e){return r0.resolve(null).then(e).catch(W1)}:u0;function W1(e){setTimeout(function(){throw e})}function zl(e){return e==="head"}function c0(e,t){var l=t,a=0,i=0;do{var u=l.nextSibling;if(e.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(0<a&&8>a){l=a;var h=e.ownerDocument;if(l&1&&Gn(h.documentElement),l&2&&Gn(h.body),l&4)for(l=h.head,Gn(l),h=l.firstChild;h;){var y=h.nextSibling,b=h.nodeName;h[an]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=y}}if(i===0){e.removeChild(u),Wn(t);return}i--}else l==="$"||l==="$?"||l==="$!"?i++:a=l.charCodeAt(0)-48;else a=0;l=u}while(l);Wn(t)}function Jr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jr(l),Is(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function P1(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[an])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function I1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Bt(e.nextSibling),e===null))return null;return e}function $r(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function eg(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Fr=null;function o0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function f0(e,t,l){switch(t=hs(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Gn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Is(e)}var _t=new Map,d0=new Set;function ms(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Z.d;Z.d={f:tg,r:lg,D:ag,C:ng,L:ig,m:sg,X:rg,S:ug,M:cg};function tg(){var e=cl.f(),t=is();return e||t}function lg(e){var t=da(e);t!==null&&t.tag===5&&t.type==="form"?Mf(t):cl.r(e)}var Za=typeof document=="undefined"?null:document;function h0(e,t,l){var a=Za;if(a&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),d0.has(i)||(d0.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),tt(t,"link",e),Je(t),a.head.appendChild(t)))}}function ag(e){cl.D(e),h0("dns-prefetch",e,null)}function ng(e,t){cl.C(e,t),h0("preconnect",e,t)}function ig(e,t,l){cl.L(e,t,l);var a=Za;if(a&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+At(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+At(l.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var u=i;switch(t){case"style":u=Ka(e);break;case"script":u=Ja(e)}_t.has(u)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),_t.set(u,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Xn(u))||t==="script"&&a.querySelector(Qn(u))||(t=a.createElement("link"),tt(t,"link",e),Je(t),a.head.appendChild(t)))}}function sg(e,t){cl.m(e,t);var l=Za;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(a)+'"][href="'+At(e)+'"]',u=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ja(e)}if(!_t.has(u)&&(e=p({rel:"modulepreload",href:e},t),_t.set(u,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Qn(u)))return}a=l.createElement("link"),tt(a,"link",e),Je(a),l.head.appendChild(a)}}}function ug(e,t,l){cl.S(e,t,l);var a=Za;if(a&&e){var i=ha(a).hoistableStyles,u=Ka(e);t=t||"default";var h=i.get(u);if(!h){var y={loading:0,preload:null};if(h=a.querySelector(Xn(u)))y.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=_t.get(u))&&Wr(e,l);var b=h=a.createElement("link");Je(b),tt(b,"link",e),b._p=new Promise(function(D,B){b.onload=D,b.onerror=B}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,gs(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:y},i.set(u,h)}}}function rg(e,t){cl.X(e,t);var l=Za;if(l&&e){var a=ha(l).hoistableScripts,i=Ja(e),u=a.get(i);u||(u=l.querySelector(Qn(i)),u||(e=p({src:e,async:!0},t),(t=_t.get(i))&&Pr(e,t),u=l.createElement("script"),Je(u),tt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function cg(e,t){cl.M(e,t);var l=Za;if(l&&e){var a=ha(l).hoistableScripts,i=Ja(e),u=a.get(i);u||(u=l.querySelector(Qn(i)),u||(e=p({src:e,async:!0,type:"module"},t),(t=_t.get(i))&&Pr(e,t),u=l.createElement("script"),Je(u),tt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function m0(e,t,l,a){var i=(i=ne.current)?ms(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ka(l.href),l=ha(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ka(l.href);var u=ha(i).hoistableStyles,h=u.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=i.querySelector(Xn(e)))&&!u._p&&(h.instance=u,h.state.loading=5),_t.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},_t.set(e,l),u||og(i,e,l,h.state))),t&&a===null)throw Error(c(528,""));return h}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ja(l),l=ha(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ka(e){return'href="'+At(e)+'"'}function Xn(e){return'link[rel="stylesheet"]['+e+"]"}function g0(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function og(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),tt(t,"link",l),Je(t),e.head.appendChild(t))}function Ja(e){return'[src="'+At(e)+'"]'}function Qn(e){return"script[async]"+e}function y0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+At(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),tt(a,"style",i),gs(a,l.precedence,e),t.instance=a;case"stylesheet":i=Ka(l.href);var u=e.querySelector(Xn(i));if(u)return t.state.loading|=4,t.instance=u,Je(u),u;a=g0(l),(i=_t.get(i))&&Wr(a,i),u=(e.ownerDocument||e).createElement("link"),Je(u);var h=u;return h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),tt(u,"link",a),t.state.loading|=4,gs(u,l.precedence,e),t.instance=u;case"script":return u=Ja(l.src),(i=e.querySelector(Qn(u)))?(t.instance=i,Je(i),i):(a=l,(i=_t.get(u))&&(a=p({},l),Pr(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),tt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,gs(a,l.precedence,e));return t.instance}function gs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,u=i,h=0;h<a.length;h++){var y=a[h];if(y.dataset.precedence===t)u=y;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ys=null;function x0(e,t,l){if(ys===null){var a=new Map,i=ys=new Map;i.set(l,a)}else i=ys,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var u=l[i];if(!(u[an]||u[at]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var y=a.get(h);y?y.push(u):a.set(h,[u])}}return a}function p0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function fg(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function v0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Zn=null;function dg(){}function hg(e,t,l){if(Zn===null)throw Error(c(475));var a=Zn;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=Ka(l.href),u=e.querySelector(Xn(i));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=xs.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=u,Je(u);return}u=e.ownerDocument||e,l=g0(l),(i=_t.get(i))&&Wr(l,i),u=u.createElement("link"),Je(u);var h=u;h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),tt(u,"link",l),t.instance=u}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=xs.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function mg(){if(Zn===null)throw Error(c(475));var e=Zn;return e.stylesheets&&e.count===0&&Ir(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&Ir(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function xs(){if(this.count--,this.count===0){if(this.stylesheets)Ir(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ps=null;function Ir(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ps=new Map,t.forEach(gg,e),ps=null,xs.call(e))}function gg(e,t){if(!(t.state.loading&4)){var l=ps.get(e);if(l)var a=l.get(null);else{l=new Map,ps.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var h=i[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),a=h)}a&&l.set(null,a)}i=t.instance,h=i.getAttribute("data-precedence"),u=l.get(h)||a,u===a&&l.set(null,i),l.set(h,i),this.count++,a=xs.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Kn={$$typeof:G,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function yg(e,t,l,a,i,u,h,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$s(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.hiddenUpdates=$s(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function b0(e,t,l,a,i,u,h,y,b,D,B,q){return e=new yg(e,t,l,h,y,b,D,q),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=_u(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Hu(u),e}function S0(e){return e?(e=Ea,e):Ea}function N0(e,t,l,a,i,u){i=S0(i),a.context===null?a.context=i:a.pendingContext=i,a=bl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Sl(e,a,t),l!==null&&(Et(l,e,t),jn(l,e,t))}function j0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ec(e,t){j0(e,t),(e=e.alternate)&&j0(e,t)}function w0(e){if(e.tag===13){var t=wa(e,67108864);t!==null&&Et(t,e,67108864),ec(e,67108864)}}var vs=!0;function xg(e,t,l,a){var i=L.T;L.T=null;var u=Z.p;try{Z.p=2,tc(e,t,l,a)}finally{Z.p=u,L.T=i}}function pg(e,t,l,a){var i=L.T;L.T=null;var u=Z.p;try{Z.p=8,tc(e,t,l,a)}finally{Z.p=u,L.T=i}}function tc(e,t,l,a){if(vs){var i=lc(a);if(i===null)Vr(e,t,a,bs,l),R0(e,a);else if(bg(i,e,t,l,a))a.stopPropagation();else if(R0(e,a),t&4&&-1<vg.indexOf(e)){for(;i!==null;){var u=da(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=kl(u.pendingLanes);if(h!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var b=1<<31-pt(h);y.entanglements[1]|=b,h&=~b}Zt(u),(je&6)===0&&(as=Yt()+500,kn(0))}}break;case 13:y=wa(u,2),y!==null&&Et(y,u,2),is(),ec(u,2)}if(u=lc(a),u===null&&Vr(e,t,a,bs,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else Vr(e,t,a,null,l)}}function lc(e){return e=uu(e),ac(e)}var bs=null;function ac(e){if(bs=null,e=fa(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bs=e,null}function E0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(nm()){case Bc:return 2;case Hc:return 8;case di:case im:return 32;case qc:return 268435456;default:return 32}default:return 32}}var nc=!1,_l=null,Ul=null,Ll=null,Jn=new Map,$n=new Map,Bl=[],vg="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 R0(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":Jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$n.delete(t.pointerId)}}function Fn(e,t,l,a,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[i]},t!==null&&(t=da(t),t!==null&&w0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bg(e,t,l,a,i){switch(t){case"focusin":return _l=Fn(_l,e,t,l,a,i),!0;case"dragenter":return Ul=Fn(Ul,e,t,l,a,i),!0;case"mouseover":return Ll=Fn(Ll,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return Jn.set(u,Fn(Jn.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,$n.set(u,Fn($n.get(u)||null,e,t,l,a,i)),!0}return!1}function A0(e){var t=fa(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,hm(e.priority,function(){if(l.tag===13){var a=wt();a=Fs(a);var i=wa(l,a);i!==null&&Et(i,l,a),ec(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=lc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);su=a,l.target.dispatchEvent(a),su=null}else return t=da(l),t!==null&&w0(t),e.blockedOn=l,!1;t.shift()}return!0}function T0(e,t,l){Ss(e)&&l.delete(t)}function Sg(){nc=!1,_l!==null&&Ss(_l)&&(_l=null),Ul!==null&&Ss(Ul)&&(Ul=null),Ll!==null&&Ss(Ll)&&(Ll=null),Jn.forEach(T0),$n.forEach(T0)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,nc||(nc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Sg)))}var js=null;function D0(e){js!==e&&(js=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){js===e&&(js=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(ac(a||l)===null)continue;break}var u=da(l);u!==null&&(e.splice(t,3),t-=3,ar(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function Wn(e){function t(b){return Ns(b,e)}_l!==null&&Ns(_l,e),Ul!==null&&Ns(Ul,e),Ll!==null&&Ns(Ll,e),Jn.forEach(t),$n.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)A0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],u=l[a+1],h=i[ot]||null;if(typeof u=="function")h||D0(l);else if(h){var y=null;if(u&&u.hasAttribute("formAction")){if(i=u,h=u[ot]||null)y=h.formAction;else if(ac(i)!==null)continue}else y=h.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),D0(l)}}}function ic(e){this._internalRoot=e}ws.prototype.render=ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=wt();N0(l,a,e,t,null,null)},ws.prototype.unmount=ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;N0(e.current,2,null,e,null,null),is(),t[oa]=null}};function ws(e){this._internalRoot=e}ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&A0(e)}};var C0=s.version;if(C0!=="19.1.1")throw Error(c(527,C0,"19.1.1"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=x(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Ng={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Es.isDisabled&&Es.supportsFiber)try{en=Es.inject(Ng),xt=Es}catch(e){}}return In.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",i=Zf,u=Kf,h=Jf,y=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=b0(e,1,!1,null,null,l,a,i,u,h,y,null),e[oa]=t.current,Yr(e),new ic(t)},In.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,i="",u=Zf,h=Kf,y=Jf,b=null,D=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(b=l.unstable_transitionCallbacks),l.formState!==void 0&&(D=l.formState)),t=b0(e,1,!0,t,l!=null?l:null,a,i,u,h,y,b,D),t.context=S0(null),l=t.current,a=wt(),a=Fs(a),i=bl(a),i.callback=null,Sl(l,i,a),l=a,t.current.lanes=l,ln(t,l),Zt(t),e[oa]=t.current,Yr(e),new ws(t)},In.version="19.1.1",In}var X0;function Hg(){if(X0)return oc.exports;X0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),oc.exports=Bg(),oc.exports}var qg=Hg();/**
50
- * react-router v7.8.0
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Q0="popstate";function kg(n={}){function s(c,f){let{pathname:d,search:g,hash:v}=c.location;return vc("",{pathname:d,search:g,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function o(c,f){return typeof f=="string"?f:li(f)}return Vg(s,o,null,n)}function Le(n,s){if(n===!1||n===null||typeof n=="undefined")throw new Error(s)}function Ht(n,s){if(!n){typeof console!="undefined"&&console.warn(s);try{throw new Error(s)}catch(o){}}}function Yg(){return Math.random().toString(36).substring(2,10)}function Z0(n,s){return{usr:n.state,key:n.key,idx:s}}function vc(n,s,o=null,c){return it(xe({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof s=="string"?Fa(s):s),{state:o,key:s&&s.key||c||Yg()})}function li({pathname:n="/",search:s="",hash:o=""}){return s&&s!=="?"&&(n+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Fa(n){let s={};if(n){let o=n.indexOf("#");o>=0&&(s.hash=n.substring(o),n=n.substring(0,o));let c=n.indexOf("?");c>=0&&(s.search=n.substring(c),n=n.substring(0,c)),n&&(s.pathname=n)}return s}function Vg(n,s,o,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,g=f.history,v="POP",x=null,m=p();m==null&&(m=0,g.replaceState(it(xe({},g.state),{idx:m}),""));function p(){return(g.state||{idx:null}).idx}function w(){v="POP";let T=p(),k=T==null?null:T-m;m=T,x&&x({action:v,location:z.location,delta:k})}function E(T,k){v="PUSH";let V=vc(z.location,T,k);m=p()+1;let G=Z0(V,m),I=z.createHref(V);try{g.pushState(G,"",I)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;f.location.assign(I)}d&&x&&x({action:v,location:z.location,delta:1})}function U(T,k){v="REPLACE";let V=vc(z.location,T,k);m=p();let G=Z0(V,m),I=z.createHref(V);g.replaceState(G,"",I),d&&x&&x({action:v,location:z.location,delta:0})}function C(T){return Gg(T)}let z={get action(){return v},get location(){return n(f,g)},listen(T){if(x)throw new Error("A history only accepts one active listener");return f.addEventListener(Q0,w),x=T,()=>{f.removeEventListener(Q0,w),x=null}},createHref(T){return s(f,T)},createURL:C,encodeLocation(T){let k=C(T);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:E,replace:U,go(T){return g.go(T)}};return z}function Gg(n,s=!1){let o="http://localhost";typeof window!="undefined"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Le(o,"No window.location.(origin|href) available to create URL");let c=typeof n=="string"?n:li(n);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=o+c),new URL(c,o)}function dh(n,s,o="/"){return Xg(n,s,o,!1)}function Xg(n,s,o,c){let f=typeof s=="string"?Fa(s):s,d=dl(f.pathname||"/",o);if(d==null)return null;let g=hh(n);Qg(g);let v=null;for(let x=0;v==null&&x<g.length;++x){let m=ly(d);v=ey(g[x],m,c)}return v}function hh(n,s=[],o=[],c=""){let f=(d,g,v)=>{let x={relativePath:v===void 0?d.path||"":v,caseSensitive:d.caseSensitive===!0,childrenIndex:g,route:d};x.relativePath.startsWith("/")&&(Le(x.relativePath.startsWith(c),`Absolute route path "${x.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(c.length));let m=fl([c,x.relativePath]),p=o.concat(x);d.children&&d.children.length>0&&(Le(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),hh(d.children,s,p,m)),!(d.path==null&&!d.index)&&s.push({path:m,score:Pg(m,d.index),routesMeta:p})};return n.forEach((d,g)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,g);else for(let x of mh(d.path))f(d,g,x)}),s}function mh(n){let s=n.split("/");if(s.length===0)return[];let[o,...c]=s,f=o.endsWith("?"),d=o.replace(/\?$/,"");if(c.length===0)return f?[d,""]:[d];let g=mh(c.join("/")),v=[];return v.push(...g.map(x=>x===""?d:[d,x].join("/"))),f&&v.push(...g),v.map(x=>n.startsWith("/")&&x===""?"/":x)}function Qg(n){n.sort((s,o)=>s.score!==o.score?o.score-s.score:Ig(s.routesMeta.map(c=>c.childrenIndex),o.routesMeta.map(c=>c.childrenIndex)))}var Zg=/^:[\w-]+$/,Kg=3,Jg=2,$g=1,Fg=10,Wg=-2,K0=n=>n==="*";function Pg(n,s){let o=n.split("/"),c=o.length;return o.some(K0)&&(c+=Wg),s&&(c+=Jg),o.filter(f=>!K0(f)).reduce((f,d)=>f+(Zg.test(d)?Kg:d===""?$g:Fg),c)}function Ig(n,s){return n.length===s.length&&n.slice(0,-1).every((c,f)=>c===s[f])?n[n.length-1]-s[s.length-1]:0}function ey(n,s,o=!1){let{routesMeta:c}=n,f={},d="/",g=[];for(let v=0;v<c.length;++v){let x=c[v],m=v===c.length-1,p=d==="/"?s:s.slice(d.length)||"/",w=_s({path:x.relativePath,caseSensitive:x.caseSensitive,end:m},p),E=x.route;if(!w&&m&&o&&!c[c.length-1].route.index&&(w=_s({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},p)),!w)return null;Object.assign(f,w.params),g.push({params:f,pathname:fl([d,w.pathname]),pathnameBase:sy(fl([d,w.pathnameBase])),route:E}),w.pathnameBase!=="/"&&(d=fl([d,w.pathnameBase]))}return g}function _s(n,s){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,c]=ty(n.path,n.caseSensitive,n.end),f=s.match(o);if(!f)return null;let d=f[0],g=d.replace(/(.)\/+$/,"$1"),v=f.slice(1);return{params:c.reduce((m,{paramName:p,isOptional:w},E)=>{if(p==="*"){let C=v[E]||"";g=d.slice(0,d.length-C.length).replace(/(.)\/+$/,"$1")}const U=v[E];return w&&!U?m[p]=void 0:m[p]=(U||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:g,pattern:n}}function ty(n,s=!1,o=!0){Ht(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,v,x)=>(c.push({paramName:v,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(c.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,s?void 0:"i"),c]}function ly(n){try{return n.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Ht(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),n}}function dl(n,s){if(s==="/")return n;if(!n.toLowerCase().startsWith(s.toLowerCase()))return null;let o=s.endsWith("/")?s.length-1:s.length,c=n.charAt(o);return c&&c!=="/"?null:n.slice(o)||"/"}function ay(n,s="/"){let{pathname:o,search:c="",hash:f=""}=typeof n=="string"?Fa(n):n;return{pathname:o?o.startsWith("/")?o:ny(o,s):s,search:uy(c),hash:ry(f)}}function ny(n,s){let o=s.replace(/\/+$/,"").split("/");return n.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function mc(n,s,o,c){return`Cannot include a '${n}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function iy(n){return n.filter((s,o)=>o===0||s.route.path&&s.route.path.length>0)}function gh(n){let s=iy(n);return s.map((o,c)=>c===s.length-1?o.pathname:o.pathnameBase)}function yh(n,s,o,c=!1){let f;typeof n=="string"?f=Fa(n):(f=xe({},n),Le(!f.pathname||!f.pathname.includes("?"),mc("?","pathname","search",f)),Le(!f.pathname||!f.pathname.includes("#"),mc("#","pathname","hash",f)),Le(!f.search||!f.search.includes("#"),mc("#","search","hash",f)));let d=n===""||f.pathname==="",g=d?"/":f.pathname,v;if(g==null)v=o;else{let w=s.length-1;if(!c&&g.startsWith("..")){let E=g.split("/");for(;E[0]==="..";)E.shift(),w-=1;f.pathname=E.join("/")}v=w>=0?s[w]:"/"}let x=ay(f,v),m=g&&g!=="/"&&g.endsWith("/"),p=(d||g===".")&&o.endsWith("/");return!x.pathname.endsWith("/")&&(m||p)&&(x.pathname+="/"),x}var fl=n=>n.join("/").replace(/\/\/+/g,"/"),sy=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),uy=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,ry=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function cy(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var xh=["POST","PUT","PATCH","DELETE"];new Set(xh);var oy=["GET",...xh];new Set(oy);var Wa=S.createContext(null);Wa.displayName="DataRouter";var Hs=S.createContext(null);Hs.displayName="DataRouterState";S.createContext(!1);var ph=S.createContext({isTransitioning:!1});ph.displayName="ViewTransition";var fy=S.createContext(new Map);fy.displayName="Fetchers";var dy=S.createContext(null);dy.displayName="Await";var Jt=S.createContext(null);Jt.displayName="Navigation";var ni=S.createContext(null);ni.displayName="Location";var hl=S.createContext({outlet:null,matches:[],isDataRoute:!1});hl.displayName="Route";var Dc=S.createContext(null);Dc.displayName="RouteError";function hy(n,{relative:s}={}){Le(ii(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:c}=S.useContext(Jt),{hash:f,pathname:d,search:g}=ui(n,{relative:s}),v=d;return o!=="/"&&(v=d==="/"?o:fl([o,d])),c.createHref({pathname:v,search:g,hash:f})}function ii(){return S.useContext(ni)!=null}function ql(){return Le(ii(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(ni).location}var vh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bh(n){S.useContext(Jt).static||S.useLayoutEffect(n)}function si(){let{isDataRoute:n}=S.useContext(hl);return n?Ry():my()}function my(){Le(ii(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(Wa),{basename:s,navigator:o}=S.useContext(Jt),{matches:c}=S.useContext(hl),{pathname:f}=ql(),d=JSON.stringify(gh(c)),g=S.useRef(!1);return bh(()=>{g.current=!0}),S.useCallback((x,m={})=>{if(Ht(g.current,vh),!g.current)return;if(typeof x=="number"){o.go(x);return}let p=yh(x,JSON.parse(d),f,m.relative==="path");n==null&&s!=="/"&&(p.pathname=p.pathname==="/"?s:fl([s,p.pathname])),(m.replace?o.replace:o.push)(p,m.state,m)},[s,o,d,f,n])}S.createContext(null);function ui(n,{relative:s}={}){let{matches:o}=S.useContext(hl),{pathname:c}=ql(),f=JSON.stringify(gh(o));return S.useMemo(()=>yh(n,JSON.parse(f),c,s==="path"),[n,f,c,s])}function gy(n,s){return Sh(n,s)}function Sh(n,s,o,c){var k;Le(ii(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=S.useContext(Jt),{matches:d}=S.useContext(hl),g=d[d.length-1],v=g?g.params:{},x=g?g.pathname:"/",m=g?g.pathnameBase:"/",p=g&&g.route;{let V=p&&p.path||"";Nh(x,!p||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${V}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let w=ql(),E;if(s){let V=typeof s=="string"?Fa(s):s;Le(m==="/"||((k=V.pathname)==null?void 0:k.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${V.pathname}" was given in the \`location\` prop.`),E=V}else E=w;let U=E.pathname||"/",C=U;if(m!=="/"){let V=m.replace(/^\//,"").split("/");C="/"+U.replace(/^\//,"").split("/").slice(V.length).join("/")}let z=dh(n,{pathname:C});Ht(p||z!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Ht(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=by(z&&z.map(V=>Object.assign({},V,{params:Object.assign({},v,V.params),pathname:fl([m,f.encodeLocation?f.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?m:fl([m,f.encodeLocation?f.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),d,o,c);return s&&T?S.createElement(ni.Provider,{value:{location:xe({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:"POP"}},T):T}function yy(){let n=Ey(),s=cy(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},g=null;return console.error("Error handled by React Router default ErrorBoundary:",n),g=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},s),o?S.createElement("pre",{style:f},o):null,g)}var xy=S.createElement(yy,null),py=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,s){return s.location!==n.location||s.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:s.error,location:s.location,revalidation:n.revalidation||s.revalidation}}componentDidCatch(n,s){console.error("React Router caught the following error during render",n,s)}render(){return this.state.error!==void 0?S.createElement(hl.Provider,{value:this.props.routeContext},S.createElement(Dc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function vy({routeContext:n,match:s,children:o}){let c=S.useContext(Wa);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),S.createElement(hl.Provider,{value:n},o)}function by(n,s=[],o=null,c=null){if(n==null){if(!o)return null;if(o.errors)n=o.matches;else if(s.length===0&&!o.initialized&&o.matches.length>0)n=o.matches;else return null}let f=n,d=o==null?void 0:o.errors;if(d!=null){let x=f.findIndex(m=>m.route.id&&(d==null?void 0:d[m.route.id])!==void 0);Le(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let g=!1,v=-1;if(o)for(let x=0;x<f.length;x++){let m=f[x];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(v=x),m.route.id){let{loaderData:p,errors:w}=o,E=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!w||w[m.route.id]===void 0);if(m.route.lazy||E){g=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((x,m,p)=>{let w,E=!1,U=null,C=null;o&&(w=d&&m.route.id?d[m.route.id]:void 0,U=m.route.errorElement||xy,g&&(v<0&&p===0?(Nh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):v===p&&(E=!0,C=m.route.hydrateFallbackElement||null)));let z=s.concat(f.slice(0,p+1)),T=()=>{let k;return w?k=U:E?k=C:m.route.Component?k=S.createElement(m.route.Component,null):m.route.element?k=m.route.element:k=x,S.createElement(vy,{match:m,routeContext:{outlet:x,matches:z,isDataRoute:o!=null},children:k})};return o&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?S.createElement(py,{location:o.location,revalidation:o.revalidation,component:U,error:w,children:T(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):T()},null)}function Cc(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sy(n){let s=S.useContext(Wa);return Le(s,Cc(n)),s}function Ny(n){let s=S.useContext(Hs);return Le(s,Cc(n)),s}function jy(n){let s=S.useContext(hl);return Le(s,Cc(n)),s}function Oc(n){let s=jy(n),o=s.matches[s.matches.length-1];return Le(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function wy(){return Oc("useRouteId")}function Ey(){var c;let n=S.useContext(Dc),s=Ny("useRouteError"),o=Oc("useRouteError");return n!==void 0?n:(c=s.errors)==null?void 0:c[o]}function Ry(){let{router:n}=Sy("useNavigate"),s=Oc("useNavigate"),o=S.useRef(!1);return bh(()=>{o.current=!0}),S.useCallback((g,...v)=>Ee(null,[g,...v],function*(f,d={}){Ht(o.current,vh),o.current&&(typeof f=="number"?n.navigate(f):yield n.navigate(f,xe({fromRouteId:s},d)))}),[n,s])}var J0={};function Nh(n,s,o){!s&&!J0[n]&&(J0[n]=!0,Ht(!1,o))}S.memo(Ay);function Ay({routes:n,future:s,state:o}){return Sh(n,void 0,o,s)}function ol(n){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ty({basename:n="/",children:s=null,location:o,navigationType:c="POP",navigator:f,static:d=!1}){Le(!ii(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),v=S.useMemo(()=>({basename:g,navigator:f,static:d,future:{}}),[g,f,d]);typeof o=="string"&&(o=Fa(o));let{pathname:x="/",search:m="",hash:p="",state:w=null,key:E="default"}=o,U=S.useMemo(()=>{let C=dl(x,g);return C==null?null:{location:{pathname:C,search:m,hash:p,state:w,key:E},navigationType:c}},[g,x,m,p,w,E,c]);return Ht(U!=null,`<Router basename="${g}"> is not able to match the URL "${x}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:S.createElement(Jt.Provider,{value:v},S.createElement(ni.Provider,{children:s,value:U}))}function Dy({children:n,location:s}){return gy(bc(n),s)}function bc(n,s=[]){let o=[];return S.Children.forEach(n,(c,f)=>{if(!S.isValidElement(c))return;let d=[...s,f];if(c.type===S.Fragment){o.push.apply(o,bc(c.props.children,d));return}Le(c.type===ol,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!c.props.index||!c.props.children,"An index route cannot have child routes.");let g={id:c.props.id||d.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(g.children=bc(c.props.children,d)),o.push(g)}),o}var Ds="get",Cs="application/x-www-form-urlencoded";function qs(n){return n!=null&&typeof n.tagName=="string"}function Cy(n){return qs(n)&&n.tagName.toLowerCase()==="button"}function Oy(n){return qs(n)&&n.tagName.toLowerCase()==="form"}function My(n){return qs(n)&&n.tagName.toLowerCase()==="input"}function zy(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function _y(n,s){return n.button===0&&(!s||s==="_self")&&!zy(n)}function Sc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((s,o)=>{let c=n[o];return s.concat(Array.isArray(c)?c.map(f=>[o,f]):[[o,c]])},[]))}function Uy(n,s){let o=Sc(n);return s&&s.forEach((c,f)=>{o.has(f)||s.getAll(f).forEach(d=>{o.append(f,d)})}),o}var Ts=null;function Ly(){if(Ts===null)try{new FormData(document.createElement("form"),0),Ts=!1}catch(n){Ts=!0}return Ts}var By=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gc(n){return n!=null&&!By.has(n)?(Ht(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cs}"`),null):n}function Hy(n,s){let o,c,f,d,g;if(Oy(n)){let v=n.getAttribute("action");c=v?dl(v,s):null,o=n.getAttribute("method")||Ds,f=gc(n.getAttribute("enctype"))||Cs,d=new FormData(n)}else if(Cy(n)||My(n)&&(n.type==="submit"||n.type==="image")){let v=n.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=n.getAttribute("formaction")||v.getAttribute("action");if(c=x?dl(x,s):null,o=n.getAttribute("formmethod")||v.getAttribute("method")||Ds,f=gc(n.getAttribute("formenctype"))||gc(v.getAttribute("enctype"))||Cs,d=new FormData(v,n),!Ly()){let{name:m,type:p,value:w}=n;if(p==="image"){let E=m?`${m}.`:"";d.append(`${E}x`,"0"),d.append(`${E}y`,"0")}else m&&d.append(m,w)}}else{if(qs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ds,c=null,f=Cs,g=n}return d&&f==="text/plain"&&(g=d,d=void 0),{action:c,method:o.toLowerCase(),encType:f,formData:d,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mc(n,s){if(n===!1||n===null||typeof n=="undefined")throw new Error(s)}function qy(n,s,o){let c=typeof n=="string"?new URL(n,typeof window=="undefined"?"server://singlefetch/":window.location.origin):n;return c.pathname==="/"?c.pathname=`_root.${o}`:s&&dl(c.pathname,s)==="/"?c.pathname=`${s.replace(/\/$/,"")}/_root.${o}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${o}`,c}function ky(n,s){return Ee(this,null,function*(){if(n.id in s)return s[n.id];try{let o=yield import(n.module);return s[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}})}function Yy(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}function Vy(n,s,o){return Ee(this,null,function*(){let c=yield Promise.all(n.map(f=>Ee(null,null,function*(){let d=s.routes[f.route.id];if(d){let g=yield ky(d,o);return g.links?g.links():[]}return[]})));return Zy(c.flat(1).filter(Yy).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?it(xe({},f),{rel:"prefetch",as:"style"}):it(xe({},f),{rel:"prefetch"})))})}function $0(n,s,o,c,f,d){let g=(x,m)=>o[m]?x.route.id!==o[m].route.id:!0,v=(x,m)=>{var p;return o[m].pathname!==x.pathname||((p=o[m].route.path)==null?void 0:p.endsWith("*"))&&o[m].params["*"]!==x.params["*"]};return d==="assets"?s.filter((x,m)=>g(x,m)||v(x,m)):d==="data"?s.filter((x,m)=>{var w;let p=c.routes[x.route.id];if(!p||!p.hasLoader)return!1;if(g(x,m)||v(x,m))return!0;if(x.route.shouldRevalidate){let E=x.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((w=o[0])==null?void 0:w.params)||{},nextUrl:new URL(n,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function Gy(n,s,{includeHydrateFallback:o}={}){return Xy(n.map(c=>{let f=s.routes[c.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Xy(n){return[...new Set(n)]}function Qy(n){let s={},o=Object.keys(n).sort();for(let c of o)s[c]=n[c];return s}function Zy(n,s){let o=new Set;return new Set(s),n.reduce((c,f)=>{let d=JSON.stringify(Qy(f));return o.has(d)||(o.add(d),c.push({key:d,link:f})),c},[])}function jh(){let n=S.useContext(Wa);return Mc(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Ky(){let n=S.useContext(Hs);return Mc(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zc=S.createContext(void 0);zc.displayName="FrameworkContext";function wh(){let n=S.useContext(zc);return Mc(n,"You must render this element inside a <HydratedRouter> element"),n}function Jy(n,s){let o=S.useContext(zc),[c,f]=S.useState(!1),[d,g]=S.useState(!1),{onFocus:v,onBlur:x,onMouseEnter:m,onMouseLeave:p,onTouchStart:w}=s,E=S.useRef(null);S.useEffect(()=>{if(n==="render"&&g(!0),n==="viewport"){let z=k=>{k.forEach(V=>{g(V.isIntersecting)})},T=new IntersectionObserver(z,{threshold:.5});return E.current&&T.observe(E.current),()=>{T.disconnect()}}},[n]),S.useEffect(()=>{if(c){let z=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(z)}}},[c]);let U=()=>{f(!0)},C=()=>{f(!1),g(!1)};return o?n!=="intent"?[d,E,{}]:[d,E,{onFocus:ei(v,U),onBlur:ei(x,C),onMouseEnter:ei(m,U),onMouseLeave:ei(p,C),onTouchStart:ei(w,U)}]:[!1,E,{}]}function ei(n,s){return o=>{n&&n(o),o.defaultPrevented||s(o)}}function $y(o){var c=o,{page:n}=c,s=na(c,["page"]);let{router:f}=jh(),d=S.useMemo(()=>dh(f.routes,n,f.basename),[f.routes,n,f.basename]);return d?S.createElement(Wy,xe({page:n,matches:d},s)):null}function Fy(n){let{manifest:s,routeModules:o}=wh(),[c,f]=S.useState([]);return S.useEffect(()=>{let d=!1;return Vy(n,s,o).then(g=>{d||f(g)}),()=>{d=!0}},[n,s,o]),c}function Wy(c){var f=c,{page:n,matches:s}=f,o=na(f,["page","matches"]);let d=ql(),{manifest:g,routeModules:v}=wh(),{basename:x}=jh(),{loaderData:m,matches:p}=Ky(),w=S.useMemo(()=>$0(n,s,p,g,d,"data"),[n,s,p,g,d]),E=S.useMemo(()=>$0(n,s,p,g,d,"assets"),[n,s,p,g,d]),U=S.useMemo(()=>{if(n===d.pathname+d.search+d.hash)return[];let T=new Set,k=!1;if(s.forEach(G=>{var X;let I=g.routes[G.route.id];!I||!I.hasLoader||(!w.some(F=>F.route.id===G.route.id)&&G.route.id in m&&((X=v[G.route.id])!=null&&X.shouldRevalidate)||I.hasClientLoader?k=!0:T.add(G.route.id))}),T.size===0)return[];let V=qy(n,x,"data");return k&&T.size>0&&V.searchParams.set("_routes",s.filter(G=>T.has(G.route.id)).map(G=>G.route.id).join(",")),[V.pathname+V.search]},[x,m,d,g,w,s,n,v]),C=S.useMemo(()=>Gy(E,g),[E,g]),z=Fy(E);return S.createElement(S.Fragment,null,U.map(T=>S.createElement("link",xe({key:T,rel:"prefetch",as:"fetch",href:T},o))),C.map(T=>S.createElement("link",xe({key:T,rel:"modulepreload",href:T},o))),z.map(({key:T,link:k})=>S.createElement("link",xe({key:T,nonce:o.nonce},k))))}function Py(...n){return s=>{n.forEach(o=>{typeof o=="function"?o(s):o!=null&&(o.current=s)})}}var Eh=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{Eh&&(window.__reactRouterVersion="7.8.0")}catch(n){}function Iy({basename:n,children:s,window:o}){let c=S.useRef();c.current==null&&(c.current=kg({window:o,v5Compat:!0}));let f=c.current,[d,g]=S.useState({action:f.action,location:f.location}),v=S.useCallback(x=>{S.startTransition(()=>g(x))},[g]);return S.useLayoutEffect(()=>f.listen(v),[f,v]),S.createElement(Ty,{basename:n,children:s,location:d.location,navigationType:d.action,navigator:f})}var Rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sa=S.forwardRef(function(C,U){var z=C,{onClick:s,discover:o="render",prefetch:c="none",relative:f,reloadDocument:d,replace:g,state:v,target:x,to:m,preventScrollReset:p,viewTransition:w}=z,E=na(z,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:T}=S.useContext(Jt),k=typeof m=="string"&&Rh.test(m),V,G=!1;if(typeof m=="string"&&k&&(V=m,Eh))try{let Ne=new URL(window.location.href),ve=m.startsWith("//")?new URL(Ne.protocol+m):new URL(m),ze=dl(ve.pathname,T);ve.origin===Ne.origin&&ze!=null?m=ze+ve.search+ve.hash:G=!0}catch(Ne){Ht(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=hy(m,{relative:f}),[X,F,ce]=Jy(c,E),de=ax(m,{replace:g,state:v,target:x,preventScrollReset:p,relative:f,viewTransition:w});function Oe(Ne){s&&s(Ne),Ne.defaultPrevented||de(Ne)}let lt=S.createElement("a",it(xe(xe({},E),ce),{href:V||I,onClick:G||d?s:Oe,ref:Py(U,F),target:x,"data-discover":!k&&o==="render"?"true":void 0}));return X&&!k?S.createElement(S.Fragment,null,lt,S.createElement($y,{page:I})):lt});sa.displayName="Link";var ex=S.forwardRef(function(w,p){var E=w,{"aria-current":s="page",caseSensitive:o=!1,className:c="",end:f=!1,style:d,to:g,viewTransition:v,children:x}=E,m=na(E,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let U=ui(g,{relative:m.relative}),C=ql(),z=S.useContext(Hs),{navigator:T,basename:k}=S.useContext(Jt),V=z!=null&&rx(U)&&v===!0,G=T.encodeLocation?T.encodeLocation(U).pathname:U.pathname,I=C.pathname,X=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;o||(I=I.toLowerCase(),X=X?X.toLowerCase():null,G=G.toLowerCase()),X&&k&&(X=dl(X,k)||X);const F=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ce=I===G||!f&&I.startsWith(G)&&I.charAt(F)==="/",de=X!=null&&(X===G||!f&&X.startsWith(G)&&X.charAt(G.length)==="/"),Oe={isActive:ce,isPending:de,isTransitioning:V},lt=ce?s:void 0,Ne;typeof c=="function"?Ne=c(Oe):Ne=[c,ce?"active":null,de?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let ve=typeof d=="function"?d(Oe):d;return S.createElement(sa,it(xe({},m),{"aria-current":lt,className:Ne,ref:p,style:ve,to:g,viewTransition:v}),typeof x=="function"?x(Oe):x)});ex.displayName="NavLink";var tx=S.forwardRef((C,U)=>{var z=C,{discover:n="render",fetcherKey:s,navigate:o,reloadDocument:c,replace:f,state:d,method:g=Ds,action:v,onSubmit:x,relative:m,preventScrollReset:p,viewTransition:w}=z,E=na(z,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let T=sx(),k=ux(v,{relative:m}),V=g.toLowerCase()==="get"?"get":"post",G=typeof v=="string"&&Rh.test(v),I=X=>{if(x&&x(X),X.defaultPrevented)return;X.preventDefault();let F=X.nativeEvent.submitter,ce=(F==null?void 0:F.getAttribute("formmethod"))||g;T(F||X.currentTarget,{fetcherKey:s,method:ce,navigate:o,replace:f,state:d,relative:m,preventScrollReset:p,viewTransition:w})};return S.createElement("form",it(xe({ref:U,method:V,action:k,onSubmit:c?x:I},E),{"data-discover":!G&&n==="render"?"true":void 0}))});tx.displayName="Form";function lx(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ah(n){let s=S.useContext(Wa);return Le(s,lx(n)),s}function ax(n,{target:s,replace:o,state:c,preventScrollReset:f,relative:d,viewTransition:g}={}){let v=si(),x=ql(),m=ui(n,{relative:d});return S.useCallback(p=>{if(_y(p,s)){p.preventDefault();let w=o!==void 0?o:li(x)===li(m);v(n,{replace:w,state:c,preventScrollReset:f,relative:d,viewTransition:g})}},[x,v,m,o,c,s,n,f,d,g])}function Th(n){Ht(typeof URLSearchParams!="undefined","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=S.useRef(Sc(n)),o=S.useRef(!1),c=ql(),f=S.useMemo(()=>Uy(c.search,o.current?null:s.current),[c.search]),d=si(),g=S.useCallback((v,x)=>{const m=Sc(typeof v=="function"?v(new URLSearchParams(f)):v);o.current=!0,d("?"+m,x)},[d,f]);return[f,g]}var nx=0,ix=()=>`__${String(++nx)}__`;function sx(){let{router:n}=Ah("useSubmit"),{basename:s}=S.useContext(Jt),o=wy();return S.useCallback((d,...g)=>Ee(null,[d,...g],function*(c,f={}){let{action:v,method:x,encType:m,formData:p,body:w}=Hy(c,s);if(f.navigate===!1){let E=f.fetcherKey||ix();yield n.fetch(E,o,f.action||v,{preventScrollReset:f.preventScrollReset,formData:p,body:w,formMethod:f.method||x,formEncType:f.encType||m,flushSync:f.flushSync})}else yield n.navigate(f.action||v,{preventScrollReset:f.preventScrollReset,formData:p,body:w,formMethod:f.method||x,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:o,flushSync:f.flushSync,viewTransition:f.viewTransition})}),[n,s,o])}function ux(n,{relative:s}={}){let{basename:o}=S.useContext(Jt),c=S.useContext(hl);Le(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),d=xe({},ui(n||".",{relative:s})),g=ql();if(n==null){d.search=g.search;let v=new URLSearchParams(d.search),x=v.getAll("index");if(x.some(p=>p==="")){v.delete("index"),x.filter(w=>w).forEach(w=>v.append("index",w));let p=v.toString();d.search=p?`?${p}`:""}}return(!n||n===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:fl([o,d.pathname])),li(d)}function rx(n,{relative:s}={}){let o=S.useContext(ph);Le(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Ah("useViewTransitionState"),f=ui(n,{relative:s});if(!o.isTransitioning)return!1;let d=dl(o.currentLocation.pathname,c)||o.currentLocation.pathname,g=dl(o.nextLocation.pathname,c)||o.nextLocation.pathname;return _s(f.pathname,g)!=null||_s(f.pathname,d)!=null}const cx=()=>{const n=new Date().getFullYear();return r.jsx("footer",{className:"bg-gray-800 text-gray-300 py-6",children:r.jsx("div",{className:"container mx-auto px-4",children:r.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[r.jsxs("div",{className:"mb-4 md:mb-0",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-8 w-8 mr-2"}),r.jsx("span",{className:"font-bold text-white text-lg",children:"AxioDB"})]}),r.jsx("p",{className:"text-sm mt-2",children:"High-performance document database"})]}),r.jsxs("div",{className:"text-sm",children:[r.jsxs("div",{className:"flex space-x-6",children:[r.jsx("a",{href:"/support",className:"hover:text-white transition-colors",children:"Support"}),r.jsx("a",{href:"/api",className:"hover:text-white transition-colors",children:"API"}),r.jsx("a",{href:"/status",className:"hover:text-white transition-colors",children:"Status"})]}),r.jsxs("p",{className:"mt-4 text-xs text-center md:text-right",children:["© ",n," AxioDB, Inc. All rights reserved."]})]})]})})})};function Dh(n,s){return function(){return n.apply(s,arguments)}}const{toString:ox}=Object.prototype,{getPrototypeOf:_c}=Object,{iterator:ks,toStringTag:Ch}=Symbol,Ys=(n=>s=>{const o=ox.call(s);return n[o]||(n[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),qt=n=>(n=n.toLowerCase(),s=>Ys(s)===n),Vs=n=>s=>typeof s===n,{isArray:Pa}=Array,ai=Vs("undefined");function ri(n){return n!==null&&!ai(n)&&n.constructor!==null&&!ai(n.constructor)&&gt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Oh=qt("ArrayBuffer");function fx(n){let s;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?s=ArrayBuffer.isView(n):s=n&&n.buffer&&Oh(n.buffer),s}const dx=Vs("string"),gt=Vs("function"),Mh=Vs("number"),ci=n=>n!==null&&typeof n=="object",hx=n=>n===!0||n===!1,Os=n=>{if(Ys(n)!=="object")return!1;const s=_c(n);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Ch in n)&&!(ks in n)},mx=n=>{if(!ci(n)||ri(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(s){return!1}},gx=qt("Date"),yx=qt("File"),xx=qt("Blob"),px=qt("FileList"),vx=n=>ci(n)&&gt(n.pipe),bx=n=>{let s;return n&&(typeof FormData=="function"&&n instanceof FormData||gt(n.append)&&((s=Ys(n))==="formdata"||s==="object"&&gt(n.toString)&&n.toString()==="[object FormData]"))},Sx=qt("URLSearchParams"),[Nx,jx,wx,Ex]=["ReadableStream","Request","Response","Headers"].map(qt),Rx=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oi(n,s,{allOwnKeys:o=!1}={}){if(n===null||typeof n=="undefined")return;let c,f;if(typeof n!="object"&&(n=[n]),Pa(n))for(c=0,f=n.length;c<f;c++)s.call(null,n[c],c,n);else{if(ri(n))return;const d=o?Object.getOwnPropertyNames(n):Object.keys(n),g=d.length;let v;for(c=0;c<g;c++)v=d[c],s.call(null,n[v],v,n)}}function zh(n,s){if(ri(n))return null;s=s.toLowerCase();const o=Object.keys(n);let c=o.length,f;for(;c-- >0;)if(f=o[c],s===f.toLowerCase())return f;return null}const ua=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,_h=n=>!ai(n)&&n!==ua;function Nc(){const{caseless:n}=_h(this)&&this||{},s={},o=(c,f)=>{const d=n&&zh(s,f)||f;Os(s[d])&&Os(c)?s[d]=Nc(s[d],c):Os(c)?s[d]=Nc({},c):Pa(c)?s[d]=c.slice():s[d]=c};for(let c=0,f=arguments.length;c<f;c++)arguments[c]&&oi(arguments[c],o);return s}const Ax=(n,s,o,{allOwnKeys:c}={})=>(oi(s,(f,d)=>{o&&gt(f)?n[d]=Dh(f,o):n[d]=f},{allOwnKeys:c}),n),Tx=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Dx=(n,s,o,c)=>{n.prototype=Object.create(s.prototype,c),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:s.prototype}),o&&Object.assign(n.prototype,o)},Cx=(n,s,o,c)=>{let f,d,g;const v={};if(s=s||{},n==null)return s;do{for(f=Object.getOwnPropertyNames(n),d=f.length;d-- >0;)g=f[d],(!c||c(g,n,s))&&!v[g]&&(s[g]=n[g],v[g]=!0);n=o!==!1&&_c(n)}while(n&&(!o||o(n,s))&&n!==Object.prototype);return s},Ox=(n,s,o)=>{n=String(n),(o===void 0||o>n.length)&&(o=n.length),o-=s.length;const c=n.indexOf(s,o);return c!==-1&&c===o},Mx=n=>{if(!n)return null;if(Pa(n))return n;let s=n.length;if(!Mh(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=n[s];return o},zx=(n=>s=>n&&s instanceof n)(typeof Uint8Array!="undefined"&&_c(Uint8Array)),_x=(n,s)=>{const c=(n&&n[ks]).call(n);let f;for(;(f=c.next())&&!f.done;){const d=f.value;s.call(n,d[0],d[1])}},Ux=(n,s)=>{let o;const c=[];for(;(o=n.exec(s))!==null;)c.push(o);return c},Lx=qt("HTMLFormElement"),Bx=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,c,f){return c.toUpperCase()+f}),F0=(({hasOwnProperty:n})=>(s,o)=>n.call(s,o))(Object.prototype),Hx=qt("RegExp"),Uh=(n,s)=>{const o=Object.getOwnPropertyDescriptors(n),c={};oi(o,(f,d)=>{let g;(g=s(f,d,n))!==!1&&(c[d]=g||f)}),Object.defineProperties(n,c)},qx=n=>{Uh(n,(s,o)=>{if(gt(n)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const c=n[o];if(gt(c)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},kx=(n,s)=>{const o={},c=f=>{f.forEach(d=>{o[d]=!0})};return Pa(n)?c(n):c(String(n).split(s)),o},Yx=()=>{},Vx=(n,s)=>n!=null&&Number.isFinite(n=+n)?n:s;function Gx(n){return!!(n&&gt(n.append)&&n[Ch]==="FormData"&&n[ks])}const Xx=n=>{const s=new Array(10),o=(c,f)=>{if(ci(c)){if(s.indexOf(c)>=0)return;if(ri(c))return c;if(!("toJSON"in c)){s[f]=c;const d=Pa(c)?[]:{};return oi(c,(g,v)=>{const x=o(g,f+1);!ai(x)&&(d[v]=x)}),s[f]=void 0,d}}return c};return o(n,0)},Qx=qt("AsyncFunction"),Zx=n=>n&&(ci(n)||gt(n))&&gt(n.then)&&gt(n.catch),Lh=((n,s)=>n?setImmediate:s?((o,c)=>(ua.addEventListener("message",({source:f,data:d})=>{f===ua&&d===o&&c.length&&c.shift()()},!1),f=>{c.push(f),ua.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",gt(ua.postMessage)),Kx=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ua):typeof process!="undefined"&&process.nextTick||Lh,Jx=n=>n!=null&&gt(n[ks]),_={isArray:Pa,isArrayBuffer:Oh,isBuffer:ri,isFormData:bx,isArrayBufferView:fx,isString:dx,isNumber:Mh,isBoolean:hx,isObject:ci,isPlainObject:Os,isEmptyObject:mx,isReadableStream:Nx,isRequest:jx,isResponse:wx,isHeaders:Ex,isUndefined:ai,isDate:gx,isFile:yx,isBlob:xx,isRegExp:Hx,isFunction:gt,isStream:vx,isURLSearchParams:Sx,isTypedArray:zx,isFileList:px,forEach:oi,merge:Nc,extend:Ax,trim:Rx,stripBOM:Tx,inherits:Dx,toFlatObject:Cx,kindOf:Ys,kindOfTest:qt,endsWith:Ox,toArray:Mx,forEachEntry:_x,matchAll:Ux,isHTMLForm:Lx,hasOwnProperty:F0,hasOwnProp:F0,reduceDescriptors:Uh,freezeMethods:qx,toObjectSet:kx,toCamelCase:Bx,noop:Yx,toFiniteNumber:Vx,findKey:zh,global:ua,isContextDefined:_h,isSpecCompliantForm:Gx,toJSONObject:Xx,isAsyncFn:Qx,isThenable:Zx,setImmediate:Lh,asap:Kx,isIterable:Jx};function se(n,s,o,c,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),c&&(this.request=c),f&&(this.response=f,this.status=f.status?f.status:null)}_.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Bh=se.prototype,Hh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Hh[n]={value:n}});Object.defineProperties(se,Hh);Object.defineProperty(Bh,"isAxiosError",{value:!0});se.from=(n,s,o,c,f,d)=>{const g=Object.create(Bh);return _.toFlatObject(n,g,function(x){return x!==Error.prototype},v=>v!=="isAxiosError"),se.call(g,n.message,s,o,c,f),g.cause=n,g.name=n.name,d&&Object.assign(g,d),g};const $x=null;function jc(n){return _.isPlainObject(n)||_.isArray(n)}function qh(n){return _.endsWith(n,"[]")?n.slice(0,-2):n}function W0(n,s,o){return n?n.concat(s).map(function(f,d){return f=qh(f),!o&&d?"["+f+"]":f}).join(o?".":""):s}function Fx(n){return _.isArray(n)&&!n.some(jc)}const Wx=_.toFlatObject(_,{},null,function(s){return/^is[A-Z]/.test(s)});function Gs(n,s,o){if(!_.isObject(n))throw new TypeError("target must be an object");s=s||new FormData,o=_.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(z,T){return!_.isUndefined(T[z])});const c=o.metaTokens,f=o.visitor||p,d=o.dots,g=o.indexes,x=(o.Blob||typeof Blob!="undefined"&&Blob)&&_.isSpecCompliantForm(s);if(!_.isFunction(f))throw new TypeError("visitor must be a function");function m(C){if(C===null)return"";if(_.isDate(C))return C.toISOString();if(_.isBoolean(C))return C.toString();if(!x&&_.isBlob(C))throw new se("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(C)||_.isTypedArray(C)?x&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function p(C,z,T){let k=C;if(C&&!T&&typeof C=="object"){if(_.endsWith(z,"{}"))z=c?z:z.slice(0,-2),C=JSON.stringify(C);else if(_.isArray(C)&&Fx(C)||(_.isFileList(C)||_.endsWith(z,"[]"))&&(k=_.toArray(C)))return z=qh(z),k.forEach(function(G,I){!(_.isUndefined(G)||G===null)&&s.append(g===!0?W0([z],I,d):g===null?z:z+"[]",m(G))}),!1}return jc(C)?!0:(s.append(W0(T,z,d),m(C)),!1)}const w=[],E=Object.assign(Wx,{defaultVisitor:p,convertValue:m,isVisitable:jc});function U(C,z){if(!_.isUndefined(C)){if(w.indexOf(C)!==-1)throw Error("Circular reference detected in "+z.join("."));w.push(C),_.forEach(C,function(k,V){(!(_.isUndefined(k)||k===null)&&f.call(s,k,_.isString(V)?V.trim():V,z,E))===!0&&U(k,z?z.concat(V):[V])}),w.pop()}}if(!_.isObject(n))throw new TypeError("data must be an object");return U(n),s}function P0(n){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(c){return s[c]})}function Uc(n,s){this._pairs=[],n&&Gs(n,this,s)}const kh=Uc.prototype;kh.append=function(s,o){this._pairs.push([s,o])};kh.toString=function(s){const o=s?function(c){return s.call(this,c,P0)}:P0;return this._pairs.map(function(f){return o(f[0])+"="+o(f[1])},"").join("&")};function Px(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yh(n,s,o){if(!s)return n;const c=o&&o.encode||Px;_.isFunction(o)&&(o={serialize:o});const f=o&&o.serialize;let d;if(f?d=f(s,o):d=_.isURLSearchParams(s)?s.toString():new Uc(s,o).toString(c),d){const g=n.indexOf("#");g!==-1&&(n=n.slice(0,g)),n+=(n.indexOf("?")===-1?"?":"&")+d}return n}class I0{constructor(){this.handlers=[]}use(s,o,c){return this.handlers.push({fulfilled:s,rejected:o,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){_.forEach(this.handlers,function(c){c!==null&&s(c)})}}const Vh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ix=typeof URLSearchParams!="undefined"?URLSearchParams:Uc,ep=typeof FormData!="undefined"?FormData:null,tp=typeof Blob!="undefined"?Blob:null,lp={isBrowser:!0,classes:{URLSearchParams:Ix,FormData:ep,Blob:tp},protocols:["http","https","file","blob","url","data"]},Lc=typeof window!="undefined"&&typeof document!="undefined",wc=typeof navigator=="object"&&navigator||void 0,ap=Lc&&(!wc||["ReactNative","NativeScript","NS"].indexOf(wc.product)<0),np=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ip=Lc&&window.location.href||"http://localhost",sp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lc,hasStandardBrowserEnv:ap,hasStandardBrowserWebWorkerEnv:np,navigator:wc,origin:ip},Symbol.toStringTag,{value:"Module"})),ut=xe(xe({},sp),lp);function up(n,s){return Gs(n,new ut.classes.URLSearchParams,xe({visitor:function(o,c,f,d){return ut.isNode&&_.isBuffer(o)?(this.append(c,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},s))}function rp(n){return _.matchAll(/\w+|\[(\w*)]/g,n).map(s=>s[0]==="[]"?"":s[1]||s[0])}function cp(n){const s={},o=Object.keys(n);let c;const f=o.length;let d;for(c=0;c<f;c++)d=o[c],s[d]=n[d];return s}function Gh(n){function s(o,c,f,d){let g=o[d++];if(g==="__proto__")return!0;const v=Number.isFinite(+g),x=d>=o.length;return g=!g&&_.isArray(f)?f.length:g,x?(_.hasOwnProp(f,g)?f[g]=[f[g],c]:f[g]=c,!v):((!f[g]||!_.isObject(f[g]))&&(f[g]=[]),s(o,c,f[g],d)&&_.isArray(f[g])&&(f[g]=cp(f[g])),!v)}if(_.isFormData(n)&&_.isFunction(n.entries)){const o={};return _.forEachEntry(n,(c,f)=>{s(rp(c),f,o,0)}),o}return null}function op(n,s,o){if(_.isString(n))try{return(s||JSON.parse)(n),_.trim(n)}catch(c){if(c.name!=="SyntaxError")throw c}return(o||JSON.stringify)(n)}const fi={transitional:Vh,adapter:["xhr","http","fetch"],transformRequest:[function(s,o){const c=o.getContentType()||"",f=c.indexOf("application/json")>-1,d=_.isObject(s);if(d&&_.isHTMLForm(s)&&(s=new FormData(s)),_.isFormData(s))return f?JSON.stringify(Gh(s)):s;if(_.isArrayBuffer(s)||_.isBuffer(s)||_.isStream(s)||_.isFile(s)||_.isBlob(s)||_.isReadableStream(s))return s;if(_.isArrayBufferView(s))return s.buffer;if(_.isURLSearchParams(s))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let v;if(d){if(c.indexOf("application/x-www-form-urlencoded")>-1)return up(s,this.formSerializer).toString();if((v=_.isFileList(s))||c.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return Gs(v?{"files[]":s}:s,x&&new x,this.formSerializer)}}return d||f?(o.setContentType("application/json",!1),op(s)):s}],transformResponse:[function(s){const o=this.transitional||fi.transitional,c=o&&o.forcedJSONParsing,f=this.responseType==="json";if(_.isResponse(s)||_.isReadableStream(s))return s;if(s&&_.isString(s)&&(c&&!this.responseType||f)){const g=!(o&&o.silentJSONParsing)&&f;try{return JSON.parse(s)}catch(v){if(g)throw v.name==="SyntaxError"?se.from(v,se.ERR_BAD_RESPONSE,this,null,this.response):v}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],n=>{fi.headers[n]={}});const fp=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dp=n=>{const s={};let o,c,f;return n&&n.split(`
61
- `).forEach(function(g){f=g.indexOf(":"),o=g.substring(0,f).trim().toLowerCase(),c=g.substring(f+1).trim(),!(!o||s[o]&&fp[o])&&(o==="set-cookie"?s[o]?s[o].push(c):s[o]=[c]:s[o]=s[o]?s[o]+", "+c:c)}),s},eh=Symbol("internals");function ti(n){return n&&String(n).trim().toLowerCase()}function Ms(n){return n===!1||n==null?n:_.isArray(n)?n.map(Ms):String(n)}function hp(n){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=o.exec(n);)s[c[1]]=c[2];return s}const mp=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function yc(n,s,o,c,f){if(_.isFunction(c))return c.call(this,s,o);if(f&&(s=o),!!_.isString(s)){if(_.isString(c))return s.indexOf(c)!==-1;if(_.isRegExp(c))return c.test(s)}}function gp(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,c)=>o.toUpperCase()+c)}function yp(n,s){const o=_.toCamelCase(" "+s);["get","set","has"].forEach(c=>{Object.defineProperty(n,c+o,{value:function(f,d,g){return this[c].call(this,s,f,d,g)},configurable:!0})})}let yt=class{constructor(s){s&&this.set(s)}set(s,o,c){const f=this;function d(v,x,m){const p=ti(x);if(!p)throw new Error("header name must be a non-empty string");const w=_.findKey(f,p);(!w||f[w]===void 0||m===!0||m===void 0&&f[w]!==!1)&&(f[w||x]=Ms(v))}const g=(v,x)=>_.forEach(v,(m,p)=>d(m,p,x));if(_.isPlainObject(s)||s instanceof this.constructor)g(s,o);else if(_.isString(s)&&(s=s.trim())&&!mp(s))g(dp(s),o);else if(_.isObject(s)&&_.isIterable(s)){let v={},x,m;for(const p of s){if(!_.isArray(p))throw TypeError("Object iterator must return a key-value pair");v[m=p[0]]=(x=v[m])?_.isArray(x)?[...x,p[1]]:[x,p[1]]:p[1]}g(v,o)}else s!=null&&d(o,s,c);return this}get(s,o){if(s=ti(s),s){const c=_.findKey(this,s);if(c){const f=this[c];if(!o)return f;if(o===!0)return hp(f);if(_.isFunction(o))return o.call(this,f,c);if(_.isRegExp(o))return o.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=ti(s),s){const c=_.findKey(this,s);return!!(c&&this[c]!==void 0&&(!o||yc(this,this[c],c,o)))}return!1}delete(s,o){const c=this;let f=!1;function d(g){if(g=ti(g),g){const v=_.findKey(c,g);v&&(!o||yc(c,c[v],v,o))&&(delete c[v],f=!0)}}return _.isArray(s)?s.forEach(d):d(s),f}clear(s){const o=Object.keys(this);let c=o.length,f=!1;for(;c--;){const d=o[c];(!s||yc(this,this[d],d,s,!0))&&(delete this[d],f=!0)}return f}normalize(s){const o=this,c={};return _.forEach(this,(f,d)=>{const g=_.findKey(c,d);if(g){o[g]=Ms(f),delete o[d];return}const v=s?gp(d):String(d).trim();v!==d&&delete o[d],o[v]=Ms(f),c[v]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return _.forEach(this,(c,f)=>{c!=null&&c!==!1&&(o[f]=s&&_.isArray(c)?c.join(", "):c)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(`
62
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const c=new this(s);return o.forEach(f=>c.set(f)),c}static accessor(s){const c=(this[eh]=this[eh]={accessors:{}}).accessors,f=this.prototype;function d(g){const v=ti(g);c[v]||(yp(f,g),c[v]=!0)}return _.isArray(s)?s.forEach(d):d(s),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(yt.prototype,({value:n},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>n,set(c){this[o]=c}}});_.freezeMethods(yt);function xc(n,s){const o=this||fi,c=s||o,f=yt.from(c.headers);let d=c.data;return _.forEach(n,function(v){d=v.call(o,d,f.normalize(),s?s.status:void 0)}),f.normalize(),d}function Xh(n){return!!(n&&n.__CANCEL__)}function Ia(n,s,o){se.call(this,n==null?"canceled":n,se.ERR_CANCELED,s,o),this.name="CanceledError"}_.inherits(Ia,se,{__CANCEL__:!0});function Qh(n,s,o){const c=o.config.validateStatus;!o.status||!c||c(o.status)?n(o):s(new se("Request failed with status code "+o.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function xp(n){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return s&&s[1]||""}function pp(n,s){n=n||10;const o=new Array(n),c=new Array(n);let f=0,d=0,g;return s=s!==void 0?s:1e3,function(x){const m=Date.now(),p=c[d];g||(g=m),o[f]=x,c[f]=m;let w=d,E=0;for(;w!==f;)E+=o[w++],w=w%n;if(f=(f+1)%n,f===d&&(d=(d+1)%n),m-g<s)return;const U=p&&m-p;return U?Math.round(E*1e3/U):void 0}}function vp(n,s){let o=0,c=1e3/s,f,d;const g=(m,p=Date.now())=>{o=p,f=null,d&&(clearTimeout(d),d=null),n(...m)};return[(...m)=>{const p=Date.now(),w=p-o;w>=c?g(m,p):(f=m,d||(d=setTimeout(()=>{d=null,g(f)},c-w)))},()=>f&&g(f)]}const Us=(n,s,o=3)=>{let c=0;const f=pp(50,250);return vp(d=>{const g=d.loaded,v=d.lengthComputable?d.total:void 0,x=g-c,m=f(x),p=g<=v;c=g;const w={loaded:g,total:v,progress:v?g/v:void 0,bytes:x,rate:m||void 0,estimated:m&&v&&p?(v-g)/m:void 0,event:d,lengthComputable:v!=null,[s?"download":"upload"]:!0};n(w)},o)},th=(n,s)=>{const o=n!=null;return[c=>s[0]({lengthComputable:o,total:n,loaded:c}),s[1]]},lh=n=>(...s)=>_.asap(()=>n(...s)),bp=ut.hasStandardBrowserEnv?((n,s)=>o=>(o=new URL(o,ut.origin),n.protocol===o.protocol&&n.host===o.host&&(s||n.port===o.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,Sp=ut.hasStandardBrowserEnv?{write(n,s,o,c,f,d){const g=[n+"="+encodeURIComponent(s)];_.isNumber(o)&&g.push("expires="+new Date(o).toGMTString()),_.isString(c)&&g.push("path="+c),_.isString(f)&&g.push("domain="+f),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Np(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function jp(n,s){return s?n.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):n}function Zh(n,s,o){let c=!Np(s);return n&&(c||o==!1)?jp(n,s):s}const ah=n=>n instanceof yt?xe({},n):n;function ca(n,s){s=s||{};const o={};function c(m,p,w,E){return _.isPlainObject(m)&&_.isPlainObject(p)?_.merge.call({caseless:E},m,p):_.isPlainObject(p)?_.merge({},p):_.isArray(p)?p.slice():p}function f(m,p,w,E){if(_.isUndefined(p)){if(!_.isUndefined(m))return c(void 0,m,w,E)}else return c(m,p,w,E)}function d(m,p){if(!_.isUndefined(p))return c(void 0,p)}function g(m,p){if(_.isUndefined(p)){if(!_.isUndefined(m))return c(void 0,m)}else return c(void 0,p)}function v(m,p,w){if(w in s)return c(m,p);if(w in n)return c(void 0,m)}const x={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:v,headers:(m,p,w)=>f(ah(m),ah(p),w,!0)};return _.forEach(Object.keys(xe(xe({},n),s)),function(p){const w=x[p]||f,E=w(n[p],s[p],p);_.isUndefined(E)&&w!==v||(o[p]=E)}),o}const Kh=n=>{const s=ca({},n);let{data:o,withXSRFToken:c,xsrfHeaderName:f,xsrfCookieName:d,headers:g,auth:v}=s;s.headers=g=yt.from(g),s.url=Yh(Zh(s.baseURL,s.url,s.allowAbsoluteUrls),n.params,n.paramsSerializer),v&&g.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let x;if(_.isFormData(o)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((x=g.getContentType())!==!1){const[m,...p]=x?x.split(";").map(w=>w.trim()).filter(Boolean):[];g.setContentType([m||"multipart/form-data",...p].join("; "))}}if(ut.hasStandardBrowserEnv&&(c&&_.isFunction(c)&&(c=c(s)),c||c!==!1&&bp(s.url))){const m=f&&d&&Sp.read(d);m&&g.set(f,m)}return s},wp=typeof XMLHttpRequest!="undefined",Ep=wp&&function(n){return new Promise(function(o,c){const f=Kh(n);let d=f.data;const g=yt.from(f.headers).normalize();let{responseType:v,onUploadProgress:x,onDownloadProgress:m}=f,p,w,E,U,C;function z(){U&&U(),C&&C(),f.cancelToken&&f.cancelToken.unsubscribe(p),f.signal&&f.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(f.method.toUpperCase(),f.url,!0),T.timeout=f.timeout;function k(){if(!T)return;const G=yt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),X={data:!v||v==="text"||v==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:G,config:n,request:T};Qh(function(ce){o(ce),z()},function(ce){c(ce),z()},X),T=null}"onloadend"in T?T.onloadend=k:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(k)},T.onabort=function(){T&&(c(new se("Request aborted",se.ECONNABORTED,n,T)),T=null)},T.onerror=function(){c(new se("Network Error",se.ERR_NETWORK,n,T)),T=null},T.ontimeout=function(){let I=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const X=f.transitional||Vh;f.timeoutErrorMessage&&(I=f.timeoutErrorMessage),c(new se(I,X.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,n,T)),T=null},d===void 0&&g.setContentType(null),"setRequestHeader"in T&&_.forEach(g.toJSON(),function(I,X){T.setRequestHeader(X,I)}),_.isUndefined(f.withCredentials)||(T.withCredentials=!!f.withCredentials),v&&v!=="json"&&(T.responseType=f.responseType),m&&([E,C]=Us(m,!0),T.addEventListener("progress",E)),x&&T.upload&&([w,U]=Us(x),T.upload.addEventListener("progress",w),T.upload.addEventListener("loadend",U)),(f.cancelToken||f.signal)&&(p=G=>{T&&(c(!G||G.type?new Ia(null,n,T):G),T.abort(),T=null)},f.cancelToken&&f.cancelToken.subscribe(p),f.signal&&(f.signal.aborted?p():f.signal.addEventListener("abort",p)));const V=xp(f.url);if(V&&ut.protocols.indexOf(V)===-1){c(new se("Unsupported protocol "+V+":",se.ERR_BAD_REQUEST,n));return}T.send(d||null)})},Rp=(n,s)=>{const{length:o}=n=n?n.filter(Boolean):[];if(s||o){let c=new AbortController,f;const d=function(m){if(!f){f=!0,v();const p=m instanceof Error?m:this.reason;c.abort(p instanceof se?p:new Ia(p instanceof Error?p.message:p))}};let g=s&&setTimeout(()=>{g=null,d(new se(`timeout ${s} of ms exceeded`,se.ETIMEDOUT))},s);const v=()=>{n&&(g&&clearTimeout(g),g=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(d):m.removeEventListener("abort",d)}),n=null)};n.forEach(m=>m.addEventListener("abort",d));const{signal:x}=c;return x.unsubscribe=()=>_.asap(v),x}},Ap=function*(n,s){let o=n.byteLength;if(o<s){yield n;return}let c=0,f;for(;c<o;)f=c+s,yield n.slice(c,f),c=f},Tp=function(n,s){return sc(this,null,function*(){try{for(var o=_0(Dp(n)),c,f,d;c=!(f=yield new ia(o.next())).done;c=!1){const g=f.value;yield*uc(Ap(g,s))}}catch(f){d=[f]}finally{try{c&&(f=o.return)&&(yield new ia(f.call(o)))}finally{if(d)throw d[0]}}})},Dp=function(n){return sc(this,null,function*(){if(n[Symbol.asyncIterator]){yield*uc(n);return}const s=n.getReader();try{for(;;){const{done:o,value:c}=yield new ia(s.read());if(o)break;yield c}}finally{yield new ia(s.cancel())}})},nh=(n,s,o,c)=>{const f=Tp(n,s);let d=0,g,v=m=>{g||(g=!0,c&&c(m))};return new ReadableStream({pull(m){return Ee(this,null,function*(){try{const{done:p,value:w}=yield f.next();if(p){v(),m.close();return}let E=w.byteLength;if(o){let U=d+=E;o(U)}m.enqueue(new Uint8Array(w))}catch(p){throw v(p),p}})},cancel(m){return v(m),f.return()}},{highWaterMark:2})},Xs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jh=Xs&&typeof ReadableStream=="function",Cp=Xs&&(typeof TextEncoder=="function"?(n=>s=>n.encode(s))(new TextEncoder):n=>Ee(null,null,function*(){return new Uint8Array(yield new Response(n).arrayBuffer())})),$h=(n,...s)=>{try{return!!n(...s)}catch(o){return!1}},Op=Jh&&$h(()=>{let n=!1;const s=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!s}),ih=64*1024,Ec=Jh&&$h(()=>_.isReadableStream(new Response("").body)),Ls={stream:Ec&&(n=>n.body)};Xs&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!Ls[s]&&(Ls[s]=_.isFunction(n[s])?o=>o[s]():(o,c)=>{throw new se(`Response type '${s}' is not supported`,se.ERR_NOT_SUPPORT,c)})})})(new Response);const Mp=n=>Ee(null,null,function*(){if(n==null)return 0;if(_.isBlob(n))return n.size;if(_.isSpecCompliantForm(n))return(yield new Request(ut.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(_.isArrayBufferView(n)||_.isArrayBuffer(n))return n.byteLength;if(_.isURLSearchParams(n)&&(n=n+""),_.isString(n))return(yield Cp(n)).byteLength}),zp=(n,s)=>Ee(null,null,function*(){const o=_.toFiniteNumber(n.getContentLength());return o==null?Mp(s):o}),_p=Xs&&(n=>Ee(null,null,function*(){let{url:s,method:o,data:c,signal:f,cancelToken:d,timeout:g,onDownloadProgress:v,onUploadProgress:x,responseType:m,headers:p,withCredentials:w="same-origin",fetchOptions:E}=Kh(n);m=m?(m+"").toLowerCase():"text";let U=Rp([f,d&&d.toAbortSignal()],g),C;const z=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let T;try{if(x&&Op&&o!=="get"&&o!=="head"&&(T=yield zp(p,c))!==0){let X=new Request(s,{method:"POST",body:c,duplex:"half"}),F;if(_.isFormData(c)&&(F=X.headers.get("content-type"))&&p.setContentType(F),X.body){const[ce,de]=th(T,Us(lh(x)));c=nh(X.body,ih,ce,de)}}_.isString(w)||(w=w?"include":"omit");const k="credentials"in Request.prototype;C=new Request(s,it(xe({},E),{signal:U,method:o.toUpperCase(),headers:p.normalize().toJSON(),body:c,duplex:"half",credentials:k?w:void 0}));let V=yield fetch(C,E);const G=Ec&&(m==="stream"||m==="response");if(Ec&&(v||G&&z)){const X={};["status","statusText","headers"].forEach(Oe=>{X[Oe]=V[Oe]});const F=_.toFiniteNumber(V.headers.get("content-length")),[ce,de]=v&&th(F,Us(lh(v),!0))||[];V=new Response(nh(V.body,ih,ce,()=>{de&&de(),z&&z()}),X)}m=m||"text";let I=yield Ls[_.findKey(Ls,m)||"text"](V,n);return!G&&z&&z(),yield new Promise((X,F)=>{Qh(X,F,{data:I,headers:yt.from(V.headers),status:V.status,statusText:V.statusText,config:n,request:C})})}catch(k){throw z&&z(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,n,C),{cause:k.cause||k}):se.from(k,k&&k.code,n,C)}})),Rc={http:$x,xhr:Ep,fetch:_p};_.forEach(Rc,(n,s)=>{if(n){try{Object.defineProperty(n,"name",{value:s})}catch(o){}Object.defineProperty(n,"adapterName",{value:s})}});const sh=n=>`- ${n}`,Up=n=>_.isFunction(n)||n===null||n===!1,Fh={getAdapter:n=>{n=_.isArray(n)?n:[n];const{length:s}=n;let o,c;const f={};for(let d=0;d<s;d++){o=n[d];let g;if(c=o,!Up(o)&&(c=Rc[(g=String(o)).toLowerCase()],c===void 0))throw new se(`Unknown adapter '${g}'`);if(c)break;f[g||"#"+d]=c}if(!c){const d=Object.entries(f).map(([v,x])=>`adapter ${v} `+(x===!1?"is not supported by the environment":"is not available in the build"));let g=s?d.length>1?`since :
63
- `+d.map(sh).join(`
64
- `):" "+sh(d[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return c},adapters:Rc};function pc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ia(null,n)}function uh(n){return pc(n),n.headers=yt.from(n.headers),n.data=xc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Fh.getAdapter(n.adapter||fi.adapter)(n).then(function(c){return pc(n),c.data=xc.call(n,n.transformResponse,c),c.headers=yt.from(c.headers),c},function(c){return Xh(c)||(pc(n),c&&c.response&&(c.response.data=xc.call(n,n.transformResponse,c.response),c.response.headers=yt.from(c.response.headers))),Promise.reject(c)})}const Wh="1.11.0",Qs={};["object","boolean","number","function","string","symbol"].forEach((n,s)=>{Qs[n]=function(c){return typeof c===n||"a"+(s<1?"n ":" ")+n}});const rh={};Qs.transitional=function(s,o,c){function f(d,g){return"[Axios v"+Wh+"] Transitional option '"+d+"'"+g+(c?". "+c:"")}return(d,g,v)=>{if(s===!1)throw new se(f(g," has been removed"+(o?" in "+o:"")),se.ERR_DEPRECATED);return o&&!rh[g]&&(rh[g]=!0,console.warn(f(g," has been deprecated since v"+o+" and will be removed in the near future"))),s?s(d,g,v):!0}};Qs.spelling=function(s){return(o,c)=>(console.warn(`${c} is likely a misspelling of ${s}`),!0)};function Lp(n,s,o){if(typeof n!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const c=Object.keys(n);let f=c.length;for(;f-- >0;){const d=c[f],g=s[d];if(g){const v=n[d],x=v===void 0||g(v,d,n);if(x!==!0)throw new se("option "+d+" must be "+x,se.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new se("Unknown option "+d,se.ERR_BAD_OPTION)}}const zs={assertOptions:Lp,validators:Qs},Kt=zs.validators;let ra=class{constructor(s){this.defaults=s||{},this.interceptors={request:new I0,response:new I0}}request(s,o){return Ee(this,null,function*(){try{return yield this._request(s,o)}catch(c){if(c instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const d=f.stack?f.stack.replace(/^.+\n/,""):"";try{c.stack?d&&!String(c.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(c.stack+=`
65
- `+d):c.stack=d}catch(g){}}throw c}})}_request(s,o){typeof s=="string"?(o=o||{},o.url=s):o=s||{},o=ca(this.defaults,o);const{transitional:c,paramsSerializer:f,headers:d}=o;c!==void 0&&zs.assertOptions(c,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),f!=null&&(_.isFunction(f)?o.paramsSerializer={serialize:f}:zs.assertOptions(f,{encode:Kt.function,serialize:Kt.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),zs.assertOptions(o,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let g=d&&_.merge(d.common,d[o.method]);d&&_.forEach(["delete","get","head","post","put","patch","common"],C=>{delete d[C]}),o.headers=yt.concat(g,d);const v=[];let x=!0;this.interceptors.request.forEach(function(z){typeof z.runWhen=="function"&&z.runWhen(o)===!1||(x=x&&z.synchronous,v.unshift(z.fulfilled,z.rejected))});const m=[];this.interceptors.response.forEach(function(z){m.push(z.fulfilled,z.rejected)});let p,w=0,E;if(!x){const C=[uh.bind(this),void 0];for(C.unshift(...v),C.push(...m),E=C.length,p=Promise.resolve(o);w<E;)p=p.then(C[w++],C[w++]);return p}E=v.length;let U=o;for(w=0;w<E;){const C=v[w++],z=v[w++];try{U=C(U)}catch(T){z.call(this,T);break}}try{p=uh.call(this,U)}catch(C){return Promise.reject(C)}for(w=0,E=m.length;w<E;)p=p.then(m[w++],m[w++]);return p}getUri(s){s=ca(this.defaults,s);const o=Zh(s.baseURL,s.url,s.allowAbsoluteUrls);return Yh(o,s.params,s.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(s){ra.prototype[s]=function(o,c){return this.request(ca(c||{},{method:s,url:o,data:(c||{}).data}))}});_.forEach(["post","put","patch"],function(s){function o(c){return function(d,g,v){return this.request(ca(v||{},{method:s,headers:c?{"Content-Type":"multipart/form-data"}:{},url:d,data:g}))}}ra.prototype[s]=o(),ra.prototype[s+"Form"]=o(!0)});let Bp=class Ph{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(d){o=d});const c=this;this.promise.then(f=>{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const g=new Promise(v=>{c.subscribe(v),d=v}).then(f);return g.cancel=function(){c.unsubscribe(d)},g},s(function(d,g,v){c.reason||(c.reason=new Ia(d,g,v),o(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const o=this._listeners.indexOf(s);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const s=new AbortController,o=c=>{s.abort(c)};return this.subscribe(o),s.signal.unsubscribe=()=>this.unsubscribe(o),s.signal}static source(){let s;return{token:new Ph(function(f){s=f}),cancel:s}}};function Hp(n){return function(o){return n.apply(null,o)}}function qp(n){return _.isObject(n)&&n.isAxiosError===!0}const Ac={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ac).forEach(([n,s])=>{Ac[s]=n});function Ih(n){const s=new ra(n),o=Dh(ra.prototype.request,s);return _.extend(o,ra.prototype,s,{allOwnKeys:!0}),_.extend(o,s,null,{allOwnKeys:!0}),o.create=function(f){return Ih(ca(n,f))},o}const fe=Ih(fi);fe.Axios=ra;fe.CanceledError=Ia;fe.CancelToken=Bp;fe.isCancel=Xh;fe.VERSION=Wh;fe.toFormData=Gs;fe.AxiosError=se;fe.Cancel=fe.CanceledError;fe.all=function(s){return Promise.all(s)};fe.spread=Hp;fe.isAxiosError=qp;fe.mergeConfig=ca;fe.AxiosHeaders=yt;fe.formToJSON=n=>Gh(_.isHTMLForm(n)?new FormData(n):n);fe.getAdapter=Fh.getAdapter;fe.HttpStatusCode=Ac;fe.default=fe;const{Axios:O2,AxiosError:M2,CanceledError:z2,isCancel:_2,CancelToken:U2,VERSION:L2,all:B2,Cancel:H2,isAxiosError:q2,spread:k2,toFormData:Y2,AxiosHeaders:V2,HttpStatusCode:G2,formToJSON:X2,getAdapter:Q2,mergeConfig:Z2}=fe,ch=n=>{let s;const o=new Set,c=(m,p)=>{const w=typeof m=="function"?m(s):m;if(!Object.is(w,s)){const E=s;s=(p!=null?p:typeof w!="object"||w===null)?w:Object.assign({},s,w),o.forEach(U=>U(s,E))}},f=()=>s,v={setState:c,getState:f,getInitialState:()=>x,subscribe:m=>(o.add(m),()=>o.delete(m))},x=s=n(c,f,v);return v},kp=n=>n?ch(n):ch,Yp=n=>n;function Vp(n,s=Yp){const o=As.useSyncExternalStore(n.subscribe,As.useCallback(()=>s(n.getState()),[n,s]),As.useCallback(()=>s(n.getInitialState()),[n,s]));return As.useDebugValue(o),o}const oh=n=>{const s=kp(n),o=c=>Vp(s,c);return Object.assign(o,s),o},em=n=>n?oh(n):oh,Pe=window.location.origin,Bs=em(n=>({Rootname:"",setRootname:s=>n({Rootname:s})})),rt=em(n=>({TransactionKey:"",setTransactionKey:s=>n({TransactionKey:s}),loadKey:()=>Ee(null,null,function*(){if(sessionStorage.getItem("transactionToken")){n({TransactionKey:sessionStorage.getItem("transactionToken")});return}yield fe.get(`${Pe}/api/get-token`).then(s=>{var o,c,f,d;s.status===200&&(sessionStorage.setItem("transactionToken",(c=(o=s.data)==null?void 0:o.data)==null?void 0:c.originSessionKey),n({TransactionKey:(d=(f=s.data)==null?void 0:f.data)==null?void 0:d.originSessionKey}))}).catch(s=>{console.error("Error fetching transaction key:",s)})})})),Gp=()=>{const[n,s]=S.useState(!1),{Rootname:o}=Bs(d=>d),{setRootname:c}=Bs(d=>d),{TransactionKey:f}=rt(d=>d);return S.useEffect(()=>{fe.get(`${Pe}/api/db/databases?transactiontoken=${f}`).then(d=>{var g;d.status===200&&c((g=d.data.data.RootName)!=null?g:"AxioDB")})},[]),r.jsx("header",{className:"bg-gradient-to-r from-blue-700 to-indigo-800 shadow-lg",children:r.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:r.jsx("div",{className:"flex items-center justify-between h-16",children:r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsxs(sa,{to:"/",className:"flex items-center",children:[r.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-9 w-9"}),r.jsxs("span",{className:"ml-2 text-white font-bold text-xl tracking-tight",children:[o," Admin Hub"]})]})}),r.jsx("div",{className:"hidden md:block ml-10",children:r.jsxs("div",{className:"flex space-x-4",children:[r.jsx(sa,{to:"/",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Dashboard"}),r.jsx(sa,{to:"/operations",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Operations"}),r.jsx(sa,{to:"/support",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Support"}),r.jsx(sa,{to:"/status",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Status"})]})})]})})})})};function Xp(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"}))}const Qp=S.forwardRef(Xp);function Zp(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"}))}const Kp=S.forwardRef(Zp);function Jp(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))}const tm=S.forwardRef(Jp);function $p(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}const Fp=S.forwardRef($p);function Wp(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}))}const Pp=S.forwardRef(Wp);function Ip(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const e2=S.forwardRef(Ip);function t2(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const l2=S.forwardRef(t2);function a2(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const n2=S.forwardRef(a2),i2=({treeDB:n})=>{const[s,o]=S.useState(!0),[c,f]=S.useState({}),[d,g]=S.useState([]),v=m=>{f(p=>it(xe({},p),{[m]:!p[m]}))};S.useEffect(()=>{const m=()=>{if(!n||!Array.isArray(n)){g([]),o(!1);return}const p=n.map((w,E)=>{const U=`db${E+1}`;return{id:U,name:w.name,type:"database",children:Array.isArray(w.collections)?w.collections.map((C,z)=>({id:`${U}_col${z+1}`,name:C.name||C,type:"collection",documentCount:C.documentCount||0,size:"0 MB"})):[]}});p.length>0&&f({[p[0].id]:!0}),g(p),o(!1)};setTimeout(()=>{m()},500)},[n]);const x=m=>{const p=c[m.id];return r.jsxs("div",{children:[r.jsxs("div",{className:`flex items-center py-2 px-3 ${m.type==="database"?"bg-blue-50 hover:bg-blue-100 border-b border-blue-100":"hover:bg-gray-50 pl-10"} cursor-pointer transition-colors`,onClick:()=>m.children&&v(m.id),children:[m.children?r.jsx("div",{className:"mr-1",children:p?r.jsx(l2,{className:"h-4 w-4 text-gray-500"}):r.jsx(n2,{className:"h-4 w-4 text-gray-500"})}):r.jsx("div",{className:"w-4 mr-1"}),m.type==="database"?r.jsx(tm,{className:"h-5 w-5 text-blue-600 mr-2"}):r.jsx(Pp,{className:"h-5 w-5 text-yellow-600 mr-2"}),r.jsx("div",{className:"flex-grow",children:r.jsx("span",{className:"font-medium",children:m.name})}),m.type==="collection"&&r.jsx("div",{className:"text-xs text-gray-500",children:r.jsxs("span",{className:"mr-2",children:[m.documentCount," docs"]})})]}),m.children&&p&&r.jsx("div",{className:"border-l border-gray-200 ml-5",children:m.children.map(x)})]},m.id)};return r.jsxs("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow",children:[r.jsxs("div",{className:"border-b border-gray-200 py-4 px-6",children:[r.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Database Structure"}),r.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Overview of databases and collections"})]}),r.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"400px"},children:s?r.jsx("div",{className:"p-6 space-y-3",children:[1,2,3].map(m=>r.jsxs("div",{className:"animate-pulse",children:[r.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-2"}),r.jsxs("div",{className:"pl-6 space-y-2",children:[r.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),r.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),r.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"})]})]},m))}):r.jsx("div",{children:d.map(x)})})]})},s2=({CacheStorageInfo:n})=>{const[s,o]=S.useState(!0);S.useEffect(()=>{(()=>{setTimeout(()=>{o(!1)},800)})()},[]);const c=n.Storage/n.Max*100;return r.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[r.jsxs("div",{className:"flex justify-between mb-3",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"In-Memory Cache"}),s?r.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):r.jsxs("p",{className:"text-3xl font-bold text-orange-600 mt-2",children:[n.Storage," ",r.jsx("span",{className:"text-lg",children:n.Unit})]}),r.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n.Max," ",n.Unit," allocated"]})]}),r.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:r.jsx(Qp,{className:"h-8 w-8 text-orange-600"})})]}),r.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:r.jsx("div",{className:"bg-orange-600 h-2.5 rounded-full",style:{width:`${s?0:c}%`}})})]})},u2=({storageInfo:n})=>{const[s,o]=S.useState(!0);S.useEffect(()=>{(()=>{setTimeout(()=>{o(!1)},800)})()},[]);const c=(n==null?void 0:n.total)/(n==null?void 0:n.machine)*100;return r.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[r.jsxs("div",{className:"flex justify-between mb-3",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Storage Used"}),s?r.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):r.jsxs("p",{className:"text-3xl font-bold text-green-600 mt-2",children:[n==null?void 0:n.total," ",r.jsx("span",{className:"text-lg",children:n==null?void 0:n.matrixUnit})]}),r.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n==null?void 0:n.machine," ",n==null?void 0:n.matrixUnit," available"]})]}),r.jsx("div",{className:"p-3 bg-green-100 rounded-full",children:r.jsx(e2,{className:"h-8 w-8 text-green-600"})})]}),r.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:r.jsx("div",{className:"bg-green-600 h-2.5 rounded-full",style:{width:`${s?0:c}%`}})})]})},r2=({totalCollections:n})=>{const[s,o]=S.useState(!0);return S.useEffect(()=>{(()=>{setTimeout(()=>{o(!1)},600)})()},[]),r.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"flex justify-between",children:[r.jsx("div",{children:s?r.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16"}):r.jsxs("p",{className:"text-2xl font-bold text-indigo-600 mt-2",children:[n," ",n<=1?"Collection":"Collections"]})}),r.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:r.jsx(Kp,{className:"h-8 w-8 text-indigo-600"})})]})})},c2=({totalDatabases:n})=>{const[s,o]=S.useState(!0);return S.useEffect(()=>{setTimeout(()=>{o(!1)},1e3)},[]),r.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"flex justify-between",children:[r.jsx("div",{children:s?r.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16 text-center"}):r.jsx("p",{className:"text-2xl font-bold text-blue-600 mt-2 text-center",children:n<=1?`${n} Database`:`${n} Databases`})}),r.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:r.jsx(tm,{className:"h-8 w-8 text-blue-600"})})]})})},o2=({totalDocuments:n})=>{const[s,o]=S.useState(!0);return S.useEffect(()=>{(()=>{setTimeout(()=>{o(!1)},700)})()},[]),r.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"flex justify-between",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Total Documents"}),s?r.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-20"}):r.jsx("p",{className:"text-3xl font-bold text-purple-600 mt-2",children:n}),r.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Across all collections"})]}),r.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:r.jsx(Fp,{className:"h-8 w-8 text-purple-600"})})]})})},f2=()=>{const[n,s]=S.useState(!0),[o,c]=S.useState(null),{TransactionKey:f}=rt(d=>d);return S.useEffect(()=>{fe.get(`${Pe}/api/dashboard-stats?transactiontoken=${f}`).then(d=>{d.status===200&&(c(d.data.data),s(!1))})},[]),r.jsxs("div",{className:"container mx-auto px-4 py-6",children:[r.jsx("div",{className:"mb-6",children:r.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"})}),n?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[1,2,3,4,5].map(d=>r.jsx("div",{className:"h-32 bg-gray-200 rounded-lg animate-pulse"},d))}):r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[r.jsx(c2,{totalDatabases:(o==null?void 0:o.totalDatabases)||0}),r.jsx(r2,{totalCollections:(o==null?void 0:o.totalCollections)||0}),r.jsx(o2,{totalDocuments:(o==null?void 0:o.totalDocuments)||0}),r.jsx(u2,{storageInfo:(o==null?void 0:o.storageInfo)||{}}),r.jsx(s2,{CacheStorageInfo:(o==null?void 0:o.cacheStorage)||{}})]}),r.jsx("div",{className:"mb-8",children:r.jsx(i2,{treeDB:(o==null?void 0:o.nodeTree)||[]})})]})},d2=({isOpen:n,onClose:s,onDatabaseCreated:o})=>{const[c,f]=S.useState(""),[d,g]=S.useState(!1),[v,x]=S.useState(""),{TransactionKey:m}=rt(E=>E),p=()=>{f(""),x(""),g(!1),s()},w=E=>Ee(null,null,function*(){var U,C;if(E.preventDefault(),!c.trim()){x("Database name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(c)){x("Database name can only contain letters, numbers, and underscores");return}g(!0),x("");try{const z=yield fe.post(`${Pe}/api/db/create-database`,{name:c},{params:{transactiontoken:m}});if(z.data.statusCode===200||z.data.statusCode===201)o(c),g(!1),p();else throw g(!1),new Error("Failed to create database")}catch(z){console.error("Error creating database:",z),x(((C=(U=z.response)==null?void 0:U.data)==null?void 0:C.message)||"Failed to create database. Please try again."),g(!1)}});return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:r.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Database"}),r.jsxs("form",{onSubmit:w,children:[r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),r.jsx("input",{type:"text",id:"databaseName",value:c,onChange:E=>f(E.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter database name",disabled:d}),v&&r.jsx("p",{className:"mt-2 text-sm text-red-600",children:v})]}),r.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[r.jsx("button",{type:"button",onClick:p,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:d,children:"Cancel"}),r.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${d?"opacity-75 cursor-not-allowed":""}`,disabled:d,children:d?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Database"})]})]})]})}):null},h2=({isOpen:n,dbName:s,onClose:o,onConfirmDelete:c})=>{const{TransactionKey:f}=rt(x=>x),[d,g]=S.useState(!1);if(!n)return null;const v=()=>Ee(null,null,function*(){var x,m;g(!0);try{const p=yield fe.delete(`${Pe}/api/db/delete-database`,{params:{transactiontoken:f,dbName:s}});if(p.status===200)console.log("Database deleted successfully:",p.data),c();else throw new Error("Failed to delete database")}catch(p){console.error("Error deleting database:",p),alert(((m=(x=p.response)==null?void 0:x.data)==null?void 0:m.message)||"Failed to delete database. Please try again.")}finally{g(!1)}});return r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:r.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6 animate-fadeIn",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Confirm Deletion"}),r.jsxs("p",{className:"text-gray-700 mb-6",children:['Are you sure you want to delete the database "',s,'"? This action cannot be undone.']}),r.jsxs("div",{className:"flex justify-end space-x-4",children:[r.jsx("button",{onClick:o,disabled:d,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",children:"Cancel"}),r.jsx("button",{onClick:v,disabled:d,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${d?"opacity-75 cursor-not-allowed":""}`,children:d?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete"})]})]})})},m2=({databases:n,onDeleteClick:s,loading:o})=>{const c=si(),[f,d]=S.useState({}),g=x=>{d(m=>it(xe({},m),{[x]:!1}))},v=x=>{c(`/collections?database=${encodeURIComponent(x)}`)};return r.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[r.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[r.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Your Databases"}),r.jsxs("p",{className:"text-sm text-gray-500",children:["Total: ",o?"Loading...":n==null?void 0:n.TotalDatabases]})]}),o?r.jsx("div",{className:"p-6",children:[1,2,3].map(x=>r.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[r.jsxs("div",{children:[r.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),r.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),r.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},x))}):r.jsx("ul",{className:"divide-y divide-gray-200",children:n!=null&&n.ListOfDatabases&&(n==null?void 0:n.ListOfDatabases.length)>0?n.ListOfDatabases.map((x,m)=>r.jsxs("li",{className:`px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-all duration-300 ${f[x]?"animate-slideIn":"animate-fadeIn"}`,onAnimationEnd:()=>g(x),children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-lg font-medium text-gray-900",children:x}),r.jsxs("p",{className:"text-sm text-gray-500",children:["Path: ",n.AllDatabasesPaths[m]]})]}),r.jsxs("div",{className:"flex space-x-2",children:[r.jsx("button",{onClick:()=>v(x),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Collections"}),r.jsx("button",{onClick:()=>s(x),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},x)):r.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No databases found. Click "Create Database" to add one.'})})]})},g2=()=>{const[n,s]=S.useState(!0),[o,c]=S.useState([]),[f,d]=S.useState(!1),[g,v]=S.useState(!1),[x,m]=S.useState(""),{TransactionKey:p}=rt(z=>z),{Rootname:w}=Bs(z=>z);S.useEffect(()=>{p&&Ee(null,null,function*(){try{const T=yield fe.get(`${Pe}/api/db/databases?transactiontoken=${p}`);T.status===200&&(c(T.data.data),s(!1))}catch(T){console.error("Error fetching databases:",T),s(!1),c([])}})},[p]);const E=z=>{m(z),d(!0)},U=()=>{c(z=>it(xe({},z),{ListOfDatabases:z.ListOfDatabases.filter(T=>T!==x),TotalDatabases:`${z.ListOfDatabases.length-1} Databases`})),d(!1),m("")},C=z=>{c(T=>it(xe({},T),{ListOfDatabases:[...T.ListOfDatabases,z],TotalDatabases:`${T.ListOfDatabases.length+1} Databases`,AllDatabasesPaths:[...T.AllDatabasesPaths,`${T.CurrentPath}/${z}`]}))};return r.jsxs("div",{className:"container mx-auto px-4 py-6",children:[r.jsxs("div",{className:"flex justify-between items-center mb-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Databases"}),r.jsxs("p",{className:"text-gray-600",children:["Manage your ",w," databases"]})]}),r.jsxs("button",{onClick:()=>v(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Database"]})]}),r.jsx(m2,{databases:o,onDeleteClick:E,loading:n}),r.jsx(d2,{isOpen:g,onClose:()=>v(!1),onDatabaseCreated:C}),r.jsx(h2,{isOpen:f,dbName:x,onClose:()=>d(!1),onConfirmDelete:U})]})},y2=({isOpen:n,onClose:s,onCollectionCreated:o,databaseName:c})=>{const[f,d]=S.useState(""),[g,v]=S.useState(!1),[x,m]=S.useState(""),[p,w]=S.useState(!1),[E,U]=S.useState(""),{TransactionKey:C}=rt(k=>k),z=()=>{d(""),v(!1),m(""),U(""),w(!1),s()},T=k=>Ee(null,null,function*(){var V,G;if(k.preventDefault(),!f.trim()){U("Collection name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(f)){U("Collection name can only contain letters, numbers, and underscores");return}if(g&&!x.trim()){U("Encryption key is required when encryption is enabled");return}w(!0),U("");try{const I=yield fe.post(`${Pe}/api/collection/create-collection`,{dbName:c,collectionName:f,crypto:g,key:g?x:""},{params:{transactiontoken:C}});if(I.data.statusCode===200||I.data.statusCode===201)o({name:f,documentCount:0,size:"N/A"}),z();else throw new Error("Failed to create collection")}catch(I){console.error("Error creating collection:",I),U(((G=(V=I.response)==null?void 0:V.data)==null?void 0:G.message)||"Failed to create collection. Please try again."),w(!1)}});return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:r.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Collection"}),r.jsxs("form",{onSubmit:T,children:[r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),r.jsx("input",{type:"text",id:"databaseName",value:c,className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm bg-gray-100 cursor-not-allowed",disabled:!0})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Collection Name"}),r.jsx("input",{type:"text",id:"collectionName",value:f,onChange:k=>d(k.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter collection name",disabled:p})]}),r.jsx("div",{className:"mb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("label",{htmlFor:"enableCrypto",className:"text-sm font-medium text-gray-700",children:"Enable Encryption"}),r.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[r.jsx("input",{type:"checkbox",id:"enableCrypto",checked:g,onChange:()=>v(!g),className:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer",disabled:p}),r.jsx("label",{htmlFor:"enableCrypto",className:`toggle-label block overflow-hidden h-6 rounded-full cursor-pointer ${g?"bg-green-500":"bg-gray-300"}`})]})]})}),g&&r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{htmlFor:"cryptoKey",className:"block text-sm font-medium text-gray-700 mb-1",children:"Encryption Key"}),r.jsx("input",{type:"password",id:"cryptoKey",value:x,onChange:k=>m(k.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter encryption key",disabled:p})]}),E&&r.jsx("p",{className:"mt-2 text-sm text-red-600",children:E}),r.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[r.jsx("button",{type:"button",onClick:z,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:p,children:"Cancel"}),r.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${p?"opacity-75 cursor-not-allowed":""}`,disabled:p,children:p?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Collection"})]})]})]})}):null},x2=({isOpen:n,onClose:s,onCollectionDeleted:o,databaseName:c,collectionName:f})=>{const[d,g]=S.useState(!1),[v,x]=S.useState(""),{TransactionKey:m}=rt(E=>E),p=()=>{x(""),g(!1),s()},w=()=>Ee(null,null,function*(){var E,U;g(!0),x("");try{if((yield fe.delete(`${Pe}/api/collection/delete-collection/?dbName=${c}&collectionName=${f}&transactiontoken=${m}`)).data.statusCode===200)o(f),p();else throw new Error("Failed to delete collection")}catch(C){console.error("Error deleting collection:",C),x(((U=(E=C.response)==null?void 0:E.data)==null?void 0:U.message)||"Failed to delete collection. Please try again."),g(!1)}});return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:r.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Delete Collection"}),r.jsxs("p",{className:"mb-6 text-gray-600",children:["Are you sure you want to delete the collection"," ",r.jsx("span",{className:"font-semibold",children:f})," from database"," ",r.jsx("span",{className:"font-semibold",children:c}),"? This action cannot be undone."]}),v&&r.jsx("p",{className:"mb-4 text-sm text-red-600",children:v}),r.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[r.jsx("button",{type:"button",onClick:p,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:d,children:"Cancel"}),r.jsx("button",{type:"button",onClick:w,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${d?"opacity-75 cursor-not-allowed":""}`,disabled:d,children:d?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Collection"})]})]})}):null},p2=()=>{const[n]=Th(),s=si(),[o,c]=S.useState(!0),[f,d]=S.useState([]),[g,v]=S.useState([]),[x,m]=S.useState(!1),[p,w]=S.useState(!1),[E,U]=S.useState(""),C=n.get("database"),{TransactionKey:z}=rt(F=>F),{Rootname:T}=Bs(F=>F),k=()=>Ee(null,null,function*(){try{const F=yield fe.get(`${Pe}/api/collection/all/?databaseName=${C}&transactiontoken=${z}`);if(F.status===200){const ce=F.data.data||{};if(ce.ListOfCollections&&Array.isArray(ce.ListOfCollections)){const de=ce.CollectionSizeMap||[],Oe=ce.collectionMetaStatus||[];v(Oe);const lt=ce.ListOfCollections.map(Ne=>{const ve=de.find(Ke=>{const qe=Ke.folderPath.split("/");return qe[qe.length-1]===Ne}),ze=Oe.find(Ke=>Ke.name===Ne);return{name:Ne,documentCount:ve?ve.fileCount:0,isEncrypted:(ze==null?void 0:ze.isEncrypted)||!1,isSchemaNeeded:(ze==null?void 0:ze.isSchemaNeeded)||!1,schema:(ze==null?void 0:ze.schema)||{}}});d(lt)}else d([]);c(!1)}}catch(F){console.error("Error fetching collections:",F),c(!1),d([])}});S.useEffect(()=>{if(!C){s("/databases");return}z&&k()},[z,C,s]);const V=()=>{s("/operations")},G=()=>{k()},I=F=>{U(F),w(!0)},X=()=>{k()};return r.jsxs("div",{className:"container mx-auto px-4 py-6",children:[r.jsxs("div",{className:"flex justify-between items-center mb-6",children:[r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center mb-2",children:r.jsx("button",{onClick:V,className:"text-blue-600 hover:text-blue-800 mr-3",children:"← Back to Databases"})}),r.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Collections"}),r.jsxs("p",{className:"text-gray-600",children:["Collections in database:"," ",r.jsx("span",{className:"font-medium",children:C})]})]}),r.jsxs("button",{onClick:()=>m(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Collection"]})]}),r.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[r.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[r.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Collections in ",C]}),r.jsxs("p",{className:"text-sm text-gray-500",children:["Total:"," ",o?"Loading...":f.length>0?`${f.length} Collections`:"0 Collections"]})]}),o?r.jsx("div",{className:"p-6",children:[1,2,3].map(F=>r.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[r.jsxs("div",{children:[r.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),r.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),r.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},F))}):r.jsx("ul",{className:"divide-y divide-gray-200",children:f.length>0?f.map(F=>r.jsxs("li",{className:"px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[r.jsxs("div",{children:[r.jsxs("h4",{className:"text-lg font-medium text-gray-900 flex items-center",children:[F.name,F.isEncrypted?r.jsx("span",{className:"ml-2 text-green-600",title:"Encrypted Collection",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}):r.jsx("span",{className:"ml-2 text-gray-400",title:"Unencrypted Collection",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{d:"M10 2a5 5 0 00-5 5v2a2 2 0 00-2 2v5a2 2 0 002 2h10a2 2 0 002-2v-5a2 2 0 00-2-2H7V7a3 3 0 015.905-.75 1 1 0 001.937-.5A5.002 5.002 0 0010 2z"})})})]}),r.jsxs("p",{className:"text-sm text-gray-500",children:[F.documentCount," documents"]})]}),r.jsxs("div",{className:"flex space-x-2",children:[r.jsx("button",{onClick:()=>s(`/collections/documents?database=${C}&collection=${F.name}`),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Documents"}),r.jsx("button",{onClick:()=>I(F.name),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},F.name)):r.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No collections found in this database. Click "Create Collection" to add one.'})})]}),x&&r.jsx(y2,{isOpen:x,onClose:()=>m(!1),onCollectionCreated:G,databaseName:C}),p&&r.jsx(x2,{isOpen:p,onClose:()=>w(!1),onCollectionDeleted:X,databaseName:C,collectionName:E})]})},v2=({isOpen:n,onClose:s,onDocumentInserted:o,databaseName:c,collectionName:f,onSuccess:d})=>{const[g,v]=S.useState(`{
66
-
67
- }`),[x,m]=S.useState(""),[p,w]=S.useState(!1),{TransactionKey:E}=rt(C=>C),U=C=>Ee(null,null,function*(){var z;C.preventDefault(),m("");try{const T=JSON.parse(g);w(!0);const k=yield fe.post(`${Pe}/api/operation/create/?dbName=${c}&collectionName=${f}&transactiontoken=${E}`,xe({},T));if(k.status===200||k.status===201){const V=(z=k.data.data)==null?void 0:z.documentId,G=it(xe({},T),{documentId:V||`doc_${Date.now()}`,updatedAt:new Date().toISOString()});o(G),s(),typeof d=="function"&&d()}else throw new Error("Failed to insert document")}catch(T){T instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error inserting document: ${T.message}`),w(!1)}});return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:r.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[r.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[r.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Insert New Document"]}),r.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 transition-colors",children:r.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),r.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[r.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-blue-50 p-3 rounded-md",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-blue-500",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),r.jsxs("p",{className:"text-sm text-blue-700",children:["Enter the document data in JSON format to insert into"," ",r.jsx("span",{className:"font-semibold",children:f})]})]}),x&&r.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:r.jsx("p",{children:x})}),r.jsxs("form",{onSubmit:U,children:[r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Document Data (JSON)"}),r.jsx("textarea",{value:g,onChange:C=>v(C.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-blue-500 focus:border-blue-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),r.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"The documentId and updatedAt fields will be automatically generated."})]}),r.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:p,className:`px-4 py-2 rounded-md text-white flex items-center ${p?"bg-green-500":"bg-green-600 hover:bg-green-700"} transition-colors shadow-md`,children:p?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Inserting..."]}):"Insert Document"})]})]})]})]})}):null},b2=({isOpen:n,onClose:s,onDocumentUpdated:o,document:c,databaseName:f,collectionName:d})=>{const[g,v]=S.useState(""),[x,m]=S.useState(""),[p,w]=S.useState(!1),{TransactionKey:E}=rt(C=>C);S.useEffect(()=>{if(c){const C=c,{documentId:z,updatedAt:T}=C,k=na(C,["documentId","updatedAt"]);v(JSON.stringify(k,null,2))}},[c]);const U=C=>Ee(null,null,function*(){var z;C.preventDefault(),m("");try{const T=JSON.parse(g);w(!0);const k=yield fe.put(`${Pe}/api/operation/update/?dbName=${f}&collectionName=${d}&documentId=${c.documentId}&transactiontoken=${E}`,xe({},T));if(k.status===200){const V=((z=k.data.data)==null?void 0:z.document)||it(xe({},T),{documentId:c.documentId,updatedAt:new Date().toISOString()});o(V),s()}else throw new Error("Failed to update document")}catch(T){T instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error updating document: ${T.message}`),w(!1)}});return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:r.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[r.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[r.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-indigo-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Update Document"]}),r.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 transition-colors",children:r.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),r.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[r.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-indigo-50 p-3 rounded-md",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),r.jsx("p",{className:"text-sm text-indigo-700",children:"Edit the document data in JSON format"})]}),x&&r.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:r.jsx("p",{children:x})}),r.jsxs("form",{onSubmit:U,children:[r.jsxs("div",{className:"mb-4",children:[r.jsxs("div",{className:"flex justify-between items-center mb-2",children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Document Data (JSON)"}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1 text-yellow-500",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),r.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["ID: ",c.documentId]})]})]}),r.jsx("textarea",{value:g,onChange:C=>v(C.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-indigo-500 focus:border-indigo-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),r.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You cannot change the document's ID. The updatedAt field will be automatically updated."})]}),r.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:p,className:`px-4 py-2 rounded-md text-white flex items-center ${p?"bg-indigo-500":"bg-indigo-600 hover:bg-indigo-700"} transition-colors shadow-md`,children:p?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Updating..."]}):"Update Document"})]})]})]})]})}):null},S2=({isOpen:n,onClose:s,onDocumentDeleted:o,documentId:c,databaseName:f,collectionName:d})=>{const[g,v]=S.useState(!1),[x,m]=S.useState(""),{TransactionKey:p}=rt(E=>E),w=()=>Ee(null,null,function*(){try{if(v(!0),(yield fe.delete(`${Pe}/api/operation/delete/by-id/?dbName=${f}&collectionName=${d}&documentId=${c}&transactiontoken=${p}`)).status===200)o(c),s();else throw new Error("Failed to delete document")}catch(E){m(`Error deleting document: ${E.message}`),v(!1)}});return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:r.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-md w-full mx-4",children:[r.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[r.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete Document"]}),r.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 transition-colors",children:r.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),r.jsxs("div",{className:"p-6",children:[r.jsx("div",{className:"bg-red-50 p-4 rounded-md mb-5",children:r.jsxs("div",{className:"flex",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("svg",{className:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),r.jsxs("div",{className:"ml-3",children:[r.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Are you sure you want to delete this document?"}),r.jsx("div",{className:"mt-2 text-sm text-red-700",children:r.jsx("p",{children:"This action cannot be undone."})})]})]})}),r.jsxs("div",{className:"mb-5",children:[r.jsx("p",{className:"text-gray-700 mb-2",children:r.jsx("span",{className:"font-medium",children:"Document ID:"})}),r.jsx("div",{className:"bg-gray-50 p-2 rounded border border-gray-200 font-mono text-sm break-all",children:c})]}),r.jsxs("div",{className:"mb-5",children:[r.jsxs("p",{className:"text-gray-700 mb-1",children:[r.jsx("span",{className:"font-medium",children:"Collection:"})," ",d]}),r.jsxs("p",{className:"text-gray-700",children:[r.jsx("span",{className:"font-medium",children:"Database:"})," ",f]})]}),x&&r.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:r.jsx("p",{children:x})}),r.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),r.jsx("button",{onClick:w,disabled:g,className:`px-4 py-2 rounded-md text-white flex items-center ${g?"bg-red-500":"bg-red-600 hover:bg-red-700"} transition-colors shadow-md`,children:g?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Document"})]})]})]})}):null},N2=({isOpen:n,onClose:s,databaseName:o,collectionName:c,onAggregationResults:f})=>{const[d,g]=S.useState('[{ "$match": {} }]'),[v,x]=S.useState(!1),[m,p]=S.useState(null),{TransactionKey:w}=rt(C=>C),E=()=>Ee(null,null,function*(){var C,z;try{x(!0),p(null);const T=JSON.parse(d),k=yield fe.post(`${Pe}/api/operation/aggregate/?dbName=${o}&collectionName=${c}`,{aggregation:T},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${w}`}});if(k.data&&k.data.data){const V=k.data.data.documents||k.data.data;f(V,T),s()}}catch(T){console.error("Aggregation error:",T),p(((z=(C=T.response)==null?void 0:C.data)==null?void 0:z.message)||T.message||"Failed to run aggregation")}finally{x(!1)}}),U=()=>{p(null),s()};return n?r.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] flex flex-col",children:[r.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex justify-between items-center bg-gradient-to-r from-indigo-50 to-blue-50",children:[r.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Run Aggregation Pipeline"}),r.jsx("button",{onClick:U,className:"text-gray-500 hover:text-gray-700 focus:outline-none",children:r.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),r.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[r.jsxs("div",{className:"mb-4",children:[r.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Enter your MongoDB aggregation pipeline as a JSON array. Example:"}),r.jsx("div",{className:"bg-gray-50 p-3 rounded-md text-xs font-mono mb-4 border border-gray-200",children:'[{ "$match": { "field": "value" } }, { "$sort": { "field": 1 } }]'}),r.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Running on ",r.jsx("span",{className:"font-semibold",children:c})," ","in database ",r.jsx("span",{className:"font-semibold",children:o})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline"}),r.jsx("textarea",{className:"w-full h-64 px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 font-mono text-sm",value:d,onChange:C=>g(C.target.value),placeholder:'[{ "$match": {} }]'})]}),m&&r.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-4",children:r.jsxs("div",{className:"flex",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),r.jsx("div",{className:"ml-3",children:r.jsx("p",{className:"text-sm text-red-700",children:m})})]})})]}),r.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end",children:[r.jsx("button",{onClick:U,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md mr-3",children:"Cancel"}),r.jsx("button",{onClick:E,disabled:v,className:`px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md flex items-center ${v?"opacity-70 cursor-not-allowed":""}`,children:v?r.jsxs(r.Fragment,{children:[r.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):r.jsxs(r.Fragment,{children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Run Aggregation"]})})]})]})}):null},fh=()=>{const[n]=Th(),s=si(),[o,c]=S.useState(!0),[f,d]=S.useState([]),[g,v]=S.useState(!0),[x,m]=S.useState(1),p=S.useRef(),w=n.get("database"),E=n.get("collection"),{TransactionKey:U}=rt(J=>J),[C,z]=S.useState(!1),[T,k]=S.useState(!1),[V,G]=S.useState(!1),[I,X]=S.useState(!1),[F,ce]=S.useState(null),[de,Oe]=S.useState(!1),[lt,Ne]=S.useState([]),[ve,ze]=S.useState([]),Ke=S.useCallback((J=1,ie=!1)=>Ee(null,null,function*(){try{c(!0);const Re=yield fe.get(`${Pe}/api/operation/all/?dbName=${w}&collectionName=${E}&page=${J}&transactiontoken=${U}`);if(Re.status===200){const ml=Re.data.data.data.documents||[];d(ie?ml:kt=>[...kt,...ml]),v(ml.length===10)}c(!1)}catch(Re){console.error("Error fetching documents:",Re),c(!1)}}),[w,E,U]);S.useEffect(()=>{if(!w||!E){s("/collections");return}Oe(!1),Ne([]),m(1),d([]),Ke(1,!0)},[w,E,s,Ke]);const qe=S.useCallback(J=>{o||de||(p.current&&p.current.disconnect(),p.current=new IntersectionObserver(ie=>{ie[0].isIntersecting&&g&&(m(Re=>Re+1),Ke(x+1))}),J&&p.current.observe(J))},[o,g,Ke,x,de]),L=()=>{s(`/collections?database=${w}`)},Z=J=>{d(ie=>[J,...ie])},ee=J=>{ce(J),k(!0)},Se=J=>{ce(J),G(!0)},N=()=>Ee(null,null,function*(){try{c(!0);const J=yield fe.post(`${Pe}/api/operation/aggregate/?dbName=${w}&collectionName=${E}`,{aggregation:lt},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${U}`}});J.data&&J.data.data&&ze(J.data.data.documents||J.data.data),c(!1)}catch(J){console.error("Error re-running aggregation:",J),c(!1)}}),Y=J=>{d(ie=>ie.map(Re=>Re.documentId===J.documentId?J:Re)),de&&N()},K=J=>{d(ie=>ie.filter(Re=>Re.documentId!==J)),de&&N()},Q=(J,ie)=>{ze(J),Ne(ie),Oe(!0)},P=()=>{Oe(!1),Ne([]),ze([]),Ke(1,!0)},ge=J=>new Date(J).toLocaleString(),ne=J=>{try{return!Array.isArray(J)||J.length===0?"No conditions":J.map((Re,ml)=>{const kt=Object.keys(Re)[0];return`${kt.replace("$","")}: ${JSON.stringify(Re[kt]).substring(0,30)}${JSON.stringify(Re[kt]).length>30?"...":""}`}).join(", ")}catch(ie){return"Invalid pipeline"}};return r.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[r.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:[r.jsxs("div",{className:"flex justify-between items-center p-6 bg-gradient-to-r from-blue-50 to-indigo-50 border-b border-gray-200",children:[r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center mb-2",children:r.jsxs("button",{onClick:L,className:"text-blue-600 hover:text-blue-800 flex items-center transition-colors font-medium",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})}),"Back to Collections"]})}),r.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Documents"}),r.jsxs("div",{className:"flex items-center mt-1 text-gray-600",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{d:"M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 002-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"})}),r.jsx("span",{className:"font-medium",children:E}),r.jsx("span",{className:"mx-2",children:"in"}),r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),r.jsx("span",{className:"font-medium",children:w})]})]}),r.jsxs("div",{className:"flex space-x-3",children:[r.jsxs("button",{onClick:()=>X(!0),className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"Run Aggregate"]}),r.jsxs("button",{onClick:()=>z(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Insert Document"]})]})]}),de&&r.jsxs("div",{className:"bg-indigo-50 px-6 py-3 border-b border-indigo-100 flex justify-between items-center",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-600 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-indigo-800",children:"Aggregation Results"}),r.jsxs("p",{className:"text-xs text-indigo-600 mt-0.5",children:["Pipeline: ",ne(lt)]})]})]}),r.jsxs("button",{onClick:P,className:"text-indigo-700 hover:text-indigo-900 text-sm font-medium flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear Aggregation"]})]}),r.jsxs("div",{className:"p-6",children:[o&&(!de&&f.length===0)?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(J=>r.jsxs("div",{className:"animate-pulse bg-white rounded-lg border border-gray-200 shadow-sm p-4",children:[r.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-3"}),r.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2 mb-2"}),r.jsx("div",{className:"h-20 bg-gray-100 rounded mb-3"}),r.jsxs("div",{className:"flex justify-end",children:[r.jsx("div",{className:"h-8 bg-gray-200 rounded w-16 mr-2"}),r.jsx("div",{className:"h-8 bg-gray-200 rounded w-16"})]})]},J))}):de?ve.length>0?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:ve.map((J,ie)=>r.jsx("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:r.jsxs("div",{className:"p-4",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),r.jsx("div",{className:"font-mono text-indigo-700 font-semibold",children:r.jsx("span",{className:"text-sm",children:J.documentId?`ID: ${J.documentId}`:`Result #${ie+1}`})})]}),J.updatedAt&&r.jsx("span",{className:"text-xs text-gray-500",title:J.updatedAt,children:ge(J.updatedAt)})]}),r.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:r.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(J).filter(([Re])=>!["documentId","updatedAt"].includes(Re))),null,2)})}),J.documentId&&r.jsxs("div",{className:"flex justify-end space-x-2",children:[r.jsx("button",{onClick:()=>ee(J),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),r.jsx("button",{onClick:()=>Se(J),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},ie))}):r.jsxs("div",{className:"text-center py-12",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your aggregation pipeline"}),r.jsx("button",{onClick:P,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Clear Aggregation"})]}):f.length>0?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:f.map((J,ie)=>r.jsx("div",{ref:!de&&ie===f.length-1?qe:null,className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:r.jsxs("div",{className:"p-4",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-yellow-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),r.jsx("div",{className:"font-mono text-indigo-700 font-semibold",title:J.documentId,children:r.jsxs("span",{className:"text-sm",children:["ID: ",J.documentId]})})]}),r.jsx("span",{className:"text-xs text-gray-500",title:J.updatedAt,children:ge(J.updatedAt)})]}),r.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:r.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(J).filter(([Re])=>!["documentId","updatedAt"].includes(Re))),null,2)})}),r.jsxs("div",{className:"flex justify-end space-x-2",children:[r.jsx("button",{onClick:()=>ee(J),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),r.jsx("button",{onClick:()=>Se(J),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},J.documentId))}):r.jsxs("div",{className:"text-center py-12",children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r.jsx("p",{className:"text-gray-500 mb-2",children:"No documents found in this collection"}),r.jsx("button",{onClick:()=>z(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Insert Your First Document"})]}),o&&f.length>0&&!de&&r.jsx("div",{className:"flex justify-center items-center py-4",children:r.jsxs("svg",{className:"animate-spin h-6 w-6 text-indigo-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),!o&&!g&&f.length>0&&!de&&r.jsx("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:"You've reached the end of the results."}),de&&ve.length>0&&r.jsxs("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:["Showing all ",ve.length," aggregation results."]})]})]}),C&&r.jsx(v2,{isOpen:C,onClose:()=>z(!1),onDocumentInserted:Z,databaseName:w,collectionName:E,onSuccess:()=>Ke(1,!0)}),T&&F&&r.jsx(b2,{isOpen:T,onClose:()=>k(!1),onDocumentUpdated:Y,document:F,databaseName:w,collectionName:E}),V&&F&&r.jsx(S2,{isOpen:V,onClose:()=>G(!1),onDocumentDeleted:K,documentId:F.documentId,databaseName:w,collectionName:E}),I&&r.jsx(N2,{isOpen:I,onClose:()=>X(!1),databaseName:w,collectionName:E,onAggregationResults:Q})]})},j2=()=>{const[n,s]=S.useState([]),[o,c]=S.useState(!0),[f,d]=S.useState(null),[g,v]=S.useState({}),{TransactionKey:x}=rt(E=>E);S.useEffect(()=>{x&&Ee(null,null,function*(){try{c(!0);const U=yield fe.get(`${Pe}/api/routes?transactiontoken=${x}`);if(U.data&&U.data.data&&Array.isArray(U.data.data)){s(U.data.data);const C={};U.data.data.forEach(z=>{C[z.groupName]=!0}),v(C)}else throw new Error("Invalid API response format");c(!1)}catch(U){console.error("Error fetching API routes:",U),d("Failed to load API reference. Please try again later."),c(!1)}})},[x]);const m=E=>{v(U=>it(xe({},U),{[E]:!U[E]}))},p=E=>{switch(E){case"GET":return"bg-blue-600";case"POST":return"bg-green-600";case"PUT":return"bg-amber-600";case"DELETE":return"bg-red-600";default:return"bg-gray-600"}},w=E=>r.jsx("pre",{className:"mt-2 p-3 bg-gray-800 text-gray-200 rounded-md overflow-x-auto text-sm",children:JSON.stringify(E,null,2)});return o?r.jsxs("div",{className:"container mx-auto px-4 py-8",children:[r.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),r.jsx("div",{className:"flex justify-center items-center py-12",children:r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})})]}):f?r.jsxs("div",{className:"container mx-auto px-4 py-8",children:[r.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),r.jsx("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded",children:r.jsx("p",{children:f})})]}):r.jsxs("div",{className:"container mx-auto px-4 py-8",children:[r.jsx("h1",{className:"text-2xl font-bold mb-2",children:"API Reference"}),r.jsx("p",{className:"text-gray-600 mb-6",children:"Complete documentation for the AxioDB REST API"}),n.length===0&&!o&&!f?r.jsx("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-700 px-4 py-3 rounded",children:r.jsx("p",{children:"No API routes found. The server might not have returned any routes."})}):r.jsx("div",{className:"space-y-6",children:n.map(E=>r.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[r.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex justify-between items-center cursor-pointer",onClick:()=>m(E.groupName),children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-medium text-gray-900",children:E.groupName}),r.jsx("p",{className:"text-sm text-gray-500",children:E.description})]}),r.jsx("div",{className:"text-gray-500",children:g[E.groupName]?r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})}):r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})})})]}),g[E.groupName]&&r.jsx("div",{className:"divide-y divide-gray-200",children:E.Paths.map((U,C)=>r.jsx("div",{className:"p-4 hover:bg-gray-50",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx("span",{className:`${p(U.method)} text-white text-xs font-bold px-2 py-1 rounded mr-3 min-w-16 text-center`,children:U.method}),r.jsxs("div",{className:"flex-1",children:[r.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded mb-2 overflow-x-auto",children:U.path}),r.jsx("p",{className:"text-gray-700 mb-2",children:U.description}),U.payload&&r.jsxs("div",{children:[r.jsx("h4",{className:"text-sm font-semibold text-gray-700 mt-2 mb-1",children:"Payload:"}),w(U.payload)]})]})]})},C))})]},E.groupName))})]})},w2=()=>{var v,x,m,p,w,E,U,C,z,T;const[n,s]=S.useState(null),[o,c]=S.useState(!0),[f,d]=S.useState(null),{TransactionKey:g}=rt(k=>k);return S.useEffect(()=>{Ee(null,null,function*(){try{const V=yield fe.get(`${Pe}/api/info`);V.status===200&&s(V.data.data)}catch(V){console.error("Error fetching author info:",V),d("Failed to load author information")}finally{c(!1)}})},[]),o?r.jsx("div",{className:"container mx-auto px-4 py-6",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8",children:r.jsxs("div",{className:"animate-pulse",children:[r.jsx("div",{className:"h-8 bg-gray-300 rounded w-1/3 mb-6"}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"h-4 bg-gray-300 rounded w-full"}),r.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3"}),r.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2"})]})]})})})}):f?r.jsx("div",{className:"container mx-auto px-4 py-6",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6",children:r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:r.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),r.jsxs("div",{className:"ml-3",children:[r.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Error"}),r.jsx("p",{className:"text-sm text-red-700 mt-1",children:f})]})]})})})}):r.jsx("div",{className:"container mx-auto px-4 py-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Need Help with AxioDB?"}),r.jsx("p",{className:"text-xl text-gray-600",children:"Get in touch with the developer for support and assistance"})]}),r.jsxs("div",{className:"bg-white rounded-xl shadow-xl overflow-hidden",children:[r.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 px-8 py-12 text-white",children:r.jsxs("div",{className:"flex items-center space-x-6",children:[r.jsxs("div",{className:"w-20 h-20 rounded-full overflow-hidden border-4 border-white border-opacity-30",children:[r.jsx("img",{src:`https://github.com/${(x=(v=n==null?void 0:n.AuthorDetails)==null?void 0:v.github)==null?void 0:x.split("/").pop()}.png`,alt:`${(m=n==null?void 0:n.AuthorDetails)==null?void 0:m.name}'s GitHub Avatar`,className:"w-full h-full object-cover",onError:k=>{k.target.style.display="none",k.target.nextElementSibling.style.display="flex"}}),r.jsx("div",{className:"w-full h-full bg-white bg-opacity-20 rounded-full hidden items-center justify-center",children:r.jsx("svg",{className:"w-10 h-10 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})})]}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-bold",children:((p=n==null?void 0:n.AuthorDetails)==null?void 0:p.name)||"Loading..."}),r.jsx("p",{className:"text-blue-100 text-lg",children:((w=n==null?void 0:n.AuthorDetails)==null?void 0:w.Designation)||"Software Engineer"}),r.jsxs("p",{className:"text-blue-100",children:[((E=n==null?void 0:n.AuthorDetails)==null?void 0:E.Country)||"India"," • Solo Developer"]})]})]})}),r.jsx("div",{className:"px-8 py-8",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Contact Information"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("a",{href:`mailto:${(U=n==null?void 0:n.AuthorDetails)==null?void 0:U.Email}`,className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[r.jsx("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-4",children:r.jsx("svg",{className:"w-5 h-5 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium text-gray-900",children:"Email"}),r.jsx("p",{className:"text-gray-600",children:(C=n==null?void 0:n.AuthorDetails)==null?void 0:C.Email})]})]}),r.jsxs("a",{href:(z=n==null?void 0:n.AuthorDetails)==null?void 0:z.LinkedIn,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[r.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-4",children:r.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.338 16.338H13.67V12.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.601 1.086-1.601 2.207v4.248H8.014v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.778 3.203 4.092v4.711zM5.005 6.575a1.548 1.548 0 11-.003-3.096 1.548 1.548 0 01.003 3.096zm-1.337 9.763H6.34v-8.59H3.667v8.59zM17.668 1H2.328C1.595 1 1 1.581 1 2.298v15.403C1 18.418 1.595 19 2.328 19h15.34c.734 0 1.332-.582 1.332-1.299V2.298C19 1.581 18.402 1 17.668 1z",clipRule:"evenodd"})})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium text-gray-900",children:"LinkedIn"}),r.jsx("p",{className:"text-gray-600",children:"Connect on LinkedIn"})]})]}),r.jsxs("a",{href:(T=n==null?void 0:n.AuthorDetails)==null?void 0:T.github,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[r.jsx("div",{className:"w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center mr-4",children:r.jsx("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z",clipRule:"evenodd"})})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium text-gray-900",children:"GitHub"}),r.jsx("p",{className:"text-gray-600",children:"View source code"})]})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Project Details"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[r.jsx("p",{className:"font-medium text-blue-900",children:"Package Name"}),r.jsx("p",{className:"text-blue-700",children:(n==null?void 0:n.Package_Name)||"axiodb"})]}),r.jsxs("div",{className:"p-4 bg-green-50 rounded-lg",children:[r.jsx("p",{className:"font-medium text-green-900",children:"Version"}),r.jsx("p",{className:"text-green-700",children:(n==null?void 0:n.AxioDB_Version)||"2.30.92"})]}),r.jsxs("div",{className:"p-4 bg-purple-50 rounded-lg",children:[r.jsx("p",{className:"font-medium text-purple-900",children:"License"}),r.jsx("p",{className:"text-purple-700",children:(n==null?void 0:n.License)||"MIT"})]})]})]})]})})]}),r.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-8 mt-8",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("svg",{className:"h-8 w-8 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),r.jsxs("div",{className:"ml-4",children:[r.jsx("h3",{className:"text-xl font-semibold text-yellow-900 mb-4",children:"Reporting Issues"}),r.jsxs("div",{className:"prose text-yellow-800",children:[r.jsx("p",{className:"mb-4",children:"If you encounter any issues with AxioDB, please help me resolve them quickly by providing detailed information:"}),r.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Detailed Description:"})," What exactly happened and what did you expect?"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Steps to Reproduce:"})," Please provide step-by-step instructions to reproduce the error"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Environment:"})," Operating system, Node.js version, AxioDB version"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Error Messages:"})," Copy the complete error message and stack trace"]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Code Sample:"})," Minimal code that reproduces the issue"]})]}),r.jsxs("div",{className:"bg-yellow-100 rounded-lg p-4 mt-4",children:[r.jsx("p",{className:"font-medium text-yellow-900",children:"Note:"}),r.jsx("p",{className:"text-yellow-800 mt-1",children:"As a solo developer, I appreciate your patience. I'll respond to issues as soon as possible and work diligently to resolve them. Your detailed bug reports help me fix issues faster!"})]})]})]})]})}),r.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mt-6",children:r.jsxs("div",{className:"flex items-center",children:[r.jsx("svg",{className:"h-6 w-6 text-blue-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold text-blue-900",children:"Expected Response Time"}),r.jsx("p",{className:"text-blue-700 mt-1",children:"I typically respond within 24-48 hours. For critical issues, I'll prioritize and respond as soon as possible."})]})]})})]})})},E2=()=>{var E,U,C,z,T,k,V;const[n,s]=S.useState(null),[o,c]=S.useState(!0),[f,d]=S.useState(null),[g,v]=S.useState(null),x=()=>Ee(null,null,function*(){try{d(null);const G=yield fe.get(`${Pe}/api/health`);G.status===200&&(s(G.data),v(new Date))}catch(G){console.error("Error fetching health status:",G),d("Failed to fetch server status")}finally{c(!1)}});S.useEffect(()=>{x();const G=setInterval(()=>{x()},3e4);return()=>clearInterval(G)},[]);const m=G=>new Date(G).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}),w=(G=>{switch(G==null?void 0:G.toLowerCase()){case"ok":return{bg:"bg-green-50",border:"border-green-200",text:"text-green-800",icon:"text-green-600",badge:"bg-green-100 text-green-800"};case"warning":return{bg:"bg-yellow-50",border:"border-yellow-200",text:"text-yellow-800",icon:"text-yellow-600",badge:"bg-yellow-100 text-yellow-800"};case"error":case"down":return{bg:"bg-red-50",border:"border-red-200",text:"text-red-800",icon:"text-red-600",badge:"bg-red-100 text-red-800"};default:return{bg:"bg-gray-50",border:"border-gray-200",text:"text-gray-800",icon:"text-gray-600",badge:"bg-gray-100 text-gray-800"}}})(((E=n==null?void 0:n.data)==null?void 0:E.status)||(f?"error":"unknown"));return o?r.jsx("div",{className:"container mx-auto px-4 py-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),r.jsx("p",{className:"text-xl text-gray-600",children:"Checking server health..."})]}),r.jsx("div",{className:"bg-white rounded-xl shadow-lg p-8",children:r.jsxs("div",{className:"animate-pulse",children:[r.jsx("div",{className:"flex items-center justify-center mb-6",children:r.jsx("div",{className:"h-16 w-16 bg-gray-300 rounded-full"})}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"h-6 bg-gray-300 rounded w-1/3 mx-auto"}),r.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2 mx-auto"}),r.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3 mx-auto"})]})]})})]})}):r.jsx("div",{className:"container mx-auto px-4 py-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),r.jsx("p",{className:"text-xl text-gray-600",children:"Real-time server health monitoring"})]}),r.jsx("div",{className:`${w.bg} ${w.border} border rounded-xl shadow-lg overflow-hidden mb-8`,children:r.jsxs("div",{className:"p-8",children:[r.jsx("div",{className:"flex items-center justify-center mb-6",children:f?r.jsx("div",{className:`w-16 h-16 ${w.icon} flex items-center justify-center`,children:r.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}):((U=n==null?void 0:n.data)==null?void 0:U.status)==="ok"?r.jsx("div",{className:`w-16 h-16 ${w.icon} flex items-center justify-center`,children:r.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}):r.jsx("div",{className:`w-16 h-16 ${w.icon} flex items-center justify-center`,children:r.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsxs("span",{className:`inline-flex items-center px-4 py-2 rounded-full text-sm font-medium ${w.badge}`,children:[r.jsx("span",{className:`w-2 h-2 ${((C=n==null?void 0:n.data)==null?void 0:C.status)==="ok"?"bg-green-400":"bg-red-400"} rounded-full mr-2 ${((z=n==null?void 0:n.data)==null?void 0:z.status)==="ok"?"animate-pulse":""}`}),f?"Server Unreachable":((k=(T=n==null?void 0:n.data)==null?void 0:T.status)==null?void 0:k.toUpperCase())||"UNKNOWN"]})}),r.jsx("h2",{className:`text-2xl font-bold ${w.text} mb-2`,children:f?"Connection Failed":(n==null?void 0:n.message)||"Status Unknown"}),((V=n==null?void 0:n.data)==null?void 0:V.timestamp)&&r.jsxs("p",{className:`${w.text} text-lg`,children:["Server Time: ",m(n.data.timestamp)]})]})]})}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[r.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx("div",{className:"w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-3",children:r.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),r.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Response Time"})]}),r.jsx("p",{className:"text-2xl font-bold text-blue-600",children:f?"N/A":"< 100ms"}),r.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"API response latency"})]}),r.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx("div",{className:"w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3",children:r.jsx("svg",{className:"w-4 h-4 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),r.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Status Code"})]}),r.jsx("p",{className:"text-2xl font-bold text-green-600",children:(n==null?void 0:n.statusCode)||(f?"Error":"N/A")}),r.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"HTTP response status"})]})]}),r.jsx("div",{className:"bg-white rounded-lg shadow-md p-6",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Auto-Refresh"}),r.jsxs("p",{className:"text-sm text-gray-600",children:["Status updates automatically every 30 seconds",g&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),"Last updated: ",g.toLocaleTimeString()]})]})]}),r.jsxs("button",{onClick:()=>{c(!0),x()},disabled:o,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[r.jsx("svg",{className:`w-4 h-4 mr-2 ${o?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),o?"Refreshing...":"Refresh Now"]})]})}),r.jsx("div",{className:"bg-gray-50 rounded-lg p-6 mt-8",children:r.jsxs("div",{className:"text-center",children:[r.jsx("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:"Service Information"}),r.jsxs("p",{className:"text-xs text-gray-600",children:["This page monitors the health and availability of the AxioDB server. If you notice any issues, please visit the ",r.jsx("a",{href:"/support",className:"text-blue-600 hover:text-blue-800",children:"support page"})," for assistance."]})]})})]})})};function R2(){const{loadKey:n}=rt(c=>c),[s,o]=S.useState(!0);return S.useEffect(()=>{Ee(null,null,function*(){try{yield n()}finally{o(!1)}})},[n]),s?r.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"spinner-border text-primary mb-3",role:"status",children:r.jsx("span",{className:"sr-only",children:"Loading..."})}),r.jsx("p",{className:"text-gray-600",children:"Loading application..."})]})}):r.jsx(Iy,{children:r.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[r.jsx(Gp,{}),r.jsx("main",{className:"flex-grow",children:r.jsxs(Dy,{children:[r.jsx(ol,{path:"/",element:r.jsx(f2,{})}),r.jsx(ol,{path:"/operations",element:r.jsx(g2,{})}),r.jsx(ol,{path:"/collections",element:r.jsx(p2,{})}),r.jsx(ol,{path:"/documents",element:r.jsx(fh,{})}),r.jsx(ol,{path:"/api",element:r.jsx(j2,{})}),r.jsx(ol,{path:"/support",element:r.jsx(w2,{})}),r.jsx(ol,{path:"/status",element:r.jsx(E2,{})}),r.jsx(ol,{path:"/collections/documents",element:r.jsx(fh,{})})]})}),r.jsx(cx,{})]})})}qg.createRoot(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(R2,{})}))});export default A2();