@dataramen/cli 0.0.52-beta.5 → 0.0.53-beta.1

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.
@@ -1,237 +0,0 @@
1
- (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const d of o.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(u){if(u.ep)return;u.ep=!0;const o=r(u);fetch(u.href,o)}})();function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qf={exports:{}},Pi={};/**
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 Y0;function Zb(){if(Y0)return Pi;Y0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(i,u,o){var d=null;if(o!==void 0&&(d=""+o),u.key!==void 0&&(d=""+u.key),"key"in u){o={};for(var m in u)m!=="key"&&(o[m]=u[m])}else o=u;return u=o.ref,{$$typeof:n,type:i,key:d,ref:u!==void 0?u:null,props:o}}return Pi.Fragment=l,Pi.jsx=r,Pi.jsxs=r,Pi}var V0;function Jb(){return V0||(V0=1,Qf.exports=Zb()),Qf.exports}var h=Jb(),Yf={exports:{}},ge={};/**
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 $0;function Pb(){if($0)return ge;$0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function j(A,Q,I){this.props=A,this.context=Q,this.refs=R,this.updater=I||C}j.prototype.isReactComponent={},j.prototype.setState=function(A,Q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Q,"setState")},j.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=j.prototype;function D(A,Q,I){this.props=A,this.context=Q,this.refs=R,this.updater=I||C}var T=D.prototype=new _;T.constructor=D,E(T,j.prototype),T.isPureReactComponent=!0;var F=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},Y=Object.prototype.hasOwnProperty;function J(A,Q,I,P,se,Ce){return I=Ce.ref,{$$typeof:n,type:A,key:Q,ref:I!==void 0?I:null,props:Ce}}function W(A,Q){return J(A.type,Q,void 0,void 0,void 0,A.props)}function ne(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function pe(A){var Q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(I){return Q[I]})}var Be=/\/+/g;function Ee(A,Q){return typeof A=="object"&&A!==null&&A.key!=null?pe(""+A.key):Q.toString(36)}function Ke(){}function ye(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Ke,Ke):(A.status="pending",A.then(function(Q){A.status==="pending"&&(A.status="fulfilled",A.value=Q)},function(Q){A.status==="pending"&&(A.status="rejected",A.reason=Q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function xe(A,Q,I,P,se){var Ce=typeof A;(Ce==="undefined"||Ce==="boolean")&&(A=null);var ce=!1;if(A===null)ce=!0;else switch(Ce){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(A.$$typeof){case n:case l:ce=!0;break;case g:return ce=A._init,xe(ce(A._payload),Q,I,P,se)}}if(ce)return se=se(A),ce=P===""?"."+Ee(A,0):P,F(se)?(I="",ce!=null&&(I=ce.replace(Be,"$&/")+"/"),xe(se,Q,I,"",function(Xe){return Xe})):se!=null&&(ne(se)&&(se=W(se,I+(se.key==null||A&&A.key===se.key?"":(""+se.key).replace(Be,"$&/")+"/")+ce)),Q.push(se)),1;ce=0;var St=P===""?".":P+":";if(F(A))for(var Ue=0;Ue<A.length;Ue++)P=A[Ue],Ce=St+Ee(P,Ue),ce+=xe(P,Q,I,Ce,se);else if(Ue=w(A),typeof Ue=="function")for(A=Ue.call(A),Ue=0;!(P=A.next()).done;)P=P.value,Ce=St+Ee(P,Ue++),ce+=xe(P,Q,I,Ce,se);else if(Ce==="object"){if(typeof A.then=="function")return xe(ye(A),Q,I,P,se);throw Q=String(A),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ce}function B(A,Q,I){if(A==null)return A;var P=[],se=0;return xe(A,P,"","",function(Ce){return Q.call(I,Ce,se++)}),P}function G(A){if(A._status===-1){var Q=A._result;Q=Q(),Q.then(function(I){(A._status===0||A._status===-1)&&(A._status=1,A._result=I)},function(I){(A._status===0||A._status===-1)&&(A._status=2,A._result=I)}),A._status===-1&&(A._status=0,A._result=Q)}if(A._status===1)return A._result.default;throw A._result}var Z=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function oe(){}return ge.Children={map:B,forEach:function(A,Q,I){B(A,function(){Q.apply(this,arguments)},I)},count:function(A){var Q=0;return B(A,function(){Q++}),Q},toArray:function(A){return B(A,function(Q){return Q})||[]},only:function(A){if(!ne(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},ge.Component=j,ge.Fragment=r,ge.Profiler=u,ge.PureComponent=D,ge.StrictMode=i,ge.Suspense=y,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ge.__COMPILER_RUNTIME={__proto__:null,c:function(A){return k.H.useMemoCache(A)}},ge.cache=function(A){return function(){return A.apply(null,arguments)}},ge.cloneElement=function(A,Q,I){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var P=E({},A.props),se=A.key,Ce=void 0;if(Q!=null)for(ce in Q.ref!==void 0&&(Ce=void 0),Q.key!==void 0&&(se=""+Q.key),Q)!Y.call(Q,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Q.ref===void 0||(P[ce]=Q[ce]);var ce=arguments.length-2;if(ce===1)P.children=I;else if(1<ce){for(var St=Array(ce),Ue=0;Ue<ce;Ue++)St[Ue]=arguments[Ue+2];P.children=St}return J(A.type,se,void 0,void 0,Ce,P)},ge.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},ge.createElement=function(A,Q,I){var P,se={},Ce=null;if(Q!=null)for(P in Q.key!==void 0&&(Ce=""+Q.key),Q)Y.call(Q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(se[P]=Q[P]);var ce=arguments.length-2;if(ce===1)se.children=I;else if(1<ce){for(var St=Array(ce),Ue=0;Ue<ce;Ue++)St[Ue]=arguments[Ue+2];se.children=St}if(A&&A.defaultProps)for(P in ce=A.defaultProps,ce)se[P]===void 0&&(se[P]=ce[P]);return J(A,Ce,void 0,void 0,null,se)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(A){return{$$typeof:m,render:A}},ge.isValidElement=ne,ge.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:G}},ge.memo=function(A,Q){return{$$typeof:p,type:A,compare:Q===void 0?null:Q}},ge.startTransition=function(A){var Q=k.T,I={};k.T=I;try{var P=A(),se=k.S;se!==null&&se(I,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(oe,Z)}catch(Ce){Z(Ce)}finally{k.T=Q}},ge.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ge.use=function(A){return k.H.use(A)},ge.useActionState=function(A,Q,I){return k.H.useActionState(A,Q,I)},ge.useCallback=function(A,Q){return k.H.useCallback(A,Q)},ge.useContext=function(A){return k.H.useContext(A)},ge.useDebugValue=function(){},ge.useDeferredValue=function(A,Q){return k.H.useDeferredValue(A,Q)},ge.useEffect=function(A,Q,I){var P=k.H;if(typeof I=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(A,Q)},ge.useId=function(){return k.H.useId()},ge.useImperativeHandle=function(A,Q,I){return k.H.useImperativeHandle(A,Q,I)},ge.useInsertionEffect=function(A,Q){return k.H.useInsertionEffect(A,Q)},ge.useLayoutEffect=function(A,Q){return k.H.useLayoutEffect(A,Q)},ge.useMemo=function(A,Q){return k.H.useMemo(A,Q)},ge.useOptimistic=function(A,Q){return k.H.useOptimistic(A,Q)},ge.useReducer=function(A,Q,I){return k.H.useReducer(A,Q,I)},ge.useRef=function(A){return k.H.useRef(A)},ge.useState=function(A){return k.H.useState(A)},ge.useSyncExternalStore=function(A,Q,I){return k.H.useSyncExternalStore(A,Q,I)},ge.useTransition=function(){return k.H.useTransition()},ge.version="19.1.0",ge}var K0;function Rd(){return K0||(K0=1,Yf.exports=Pb()),Yf.exports}var b=Rd();const $e=po(b);var Vf={exports:{}},Ii={},$f={exports:{}},Kf={};/**
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 F0;function Ib(){return F0||(F0=1,function(n){function l(B,G){var Z=B.length;B.push(G);e:for(;0<Z;){var oe=Z-1>>>1,A=B[oe];if(0<u(A,G))B[oe]=G,B[Z]=A,Z=oe;else break e}}function r(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var G=B[0],Z=B.pop();if(Z!==G){B[0]=Z;e:for(var oe=0,A=B.length,Q=A>>>1;oe<Q;){var I=2*(oe+1)-1,P=B[I],se=I+1,Ce=B[se];if(0>u(P,Z))se<A&&0>u(Ce,P)?(B[oe]=Ce,B[se]=Z,oe=se):(B[oe]=P,B[I]=Z,oe=I);else if(se<A&&0>u(Ce,Z))B[oe]=Ce,B[se]=Z,oe=se;else break e}}return G}function u(B,G){var Z=B.sortIndex-G.sortIndex;return Z!==0?Z:B.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var y=[],p=[],g=1,S=null,w=3,C=!1,E=!1,R=!1,j=!1,_=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function F(B){for(var G=r(p);G!==null;){if(G.callback===null)i(p);else if(G.startTime<=B)i(p),G.sortIndex=G.expirationTime,l(y,G);else break;G=r(p)}}function k(B){if(R=!1,F(B),!E)if(r(y)!==null)E=!0,Y||(Y=!0,Ee());else{var G=r(p);G!==null&&xe(k,G.startTime-B)}}var Y=!1,J=-1,W=5,ne=-1;function pe(){return j?!0:!(n.unstable_now()-ne<W)}function Be(){if(j=!1,Y){var B=n.unstable_now();ne=B;var G=!0;try{e:{E=!1,R&&(R=!1,D(J),J=-1),C=!0;var Z=w;try{t:{for(F(B),S=r(y);S!==null&&!(S.expirationTime>B&&pe());){var oe=S.callback;if(typeof oe=="function"){S.callback=null,w=S.priorityLevel;var A=oe(S.expirationTime<=B);if(B=n.unstable_now(),typeof A=="function"){S.callback=A,F(B),G=!0;break t}S===r(y)&&i(y),F(B)}else i(y);S=r(y)}if(S!==null)G=!0;else{var Q=r(p);Q!==null&&xe(k,Q.startTime-B),G=!1}}break e}finally{S=null,w=Z,C=!1}G=void 0}}finally{G?Ee():Y=!1}}}var Ee;if(typeof T=="function")Ee=function(){T(Be)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,ye=Ke.port2;Ke.port1.onmessage=Be,Ee=function(){ye.postMessage(null)}}else Ee=function(){_(Be,0)};function xe(B,G){J=_(function(){B(n.unstable_now())},G)}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(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(B){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var Z=w;w=G;try{return B()}finally{w=Z}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Z=w;w=B;try{return G()}finally{w=Z}},n.unstable_scheduleCallback=function(B,G,Z){var oe=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?oe+Z:oe):Z=oe,B){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=Z+A,B={id:g++,callback:G,priorityLevel:B,startTime:Z,expirationTime:A,sortIndex:-1},Z>oe?(B.sortIndex=Z,l(p,B),r(y)===null&&B===r(p)&&(R?(D(J),J=-1):R=!0,xe(k,Z-oe))):(B.sortIndex=A,l(y,B),E||C||(E=!0,Y||(Y=!0,Ee()))),B},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(B){var G=w;return function(){var Z=w;w=G;try{return B.apply(this,arguments)}finally{w=Z}}}}(Kf)),Kf}var G0;function Wb(){return G0||(G0=1,$f.exports=Ib()),$f.exports}var Ff={exports:{}},Dt={};/**
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 X0;function ex(){if(X0)return Dt;X0=1;var n=Rd();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(y,p,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:y,containerInfo:p,implementation:g}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Dt.createPortal=function(y,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(y,p,null,g)},Dt.flushSync=function(y){var p=d.T,g=i.p;try{if(d.T=null,i.p=2,y)return y()}finally{d.T=p,i.p=g,i.d.f()}},Dt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(y,p))},Dt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},Dt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,S=m(g,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:C}):g==="script"&&i.d.X(y,{crossOrigin:S,integrity:w,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);i.d.M(y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(y)},Dt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,S=m(g,p.crossOrigin);i.d.L(y,g,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Dt.preloadModule=function(y,p){if(typeof y=="string")if(p){var g=m(p.as,p.crossOrigin);i.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(y)},Dt.requestFormReset=function(y){i.d.r(y)},Dt.unstable_batchedUpdates=function(y,p){return y(p)},Dt.useFormState=function(y,p,g){return d.H.useFormState(y,p,g)},Dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Dt.version="19.1.0",Dt}var Z0;function nv(){if(Z0)return Ff.exports;Z0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Ff.exports=ex(),Ff.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 J0;function tx(){if(J0)return Ii;J0=1;var n=Wb(),l=Rd(),r=nv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 m(e){if(o(e)!==e)throw Error(i(188))}function y(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,s=t;;){var c=a.return;if(c===null)break;var f=c.alternate;if(f===null){if(s=c.return,s!==null){a=s;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===a)return m(c),e;if(f===s)return m(c),t;f=f.sibling}throw Error(i(188))}if(a.return!==s.return)a=c,s=f;else{for(var v=!1,x=c.child;x;){if(x===a){v=!0,a=c,s=f;break}if(x===s){v=!0,s=c,a=f;break}x=x.sibling}if(!v){for(x=f.child;x;){if(x===a){v=!0,a=f,s=c;break}if(x===s){v=!0,s=f,a=c;break}x=x.sibling}if(!v)throw Error(i(189))}}if(a.alternate!==s)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),T=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=Be&&e[Be]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case j:return"Profiler";case R:return"StrictMode";case k:return"Suspense";case Y:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case T:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var xe=Array.isArray,B=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},oe=[],A=-1;function Q(e){return{current:e}}function I(e){0>A||(e.current=oe[A],oe[A]=null,A--)}function P(e,t){A++,oe[A]=e.current,e.current=t}var se=Q(null),Ce=Q(null),ce=Q(null),St=Q(null);function Ue(e,t){switch(P(ce,t),P(Ce,e),P(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?y0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=y0(t),e=v0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(se),P(se,e)}function Xe(){I(se),I(Ce),I(ce)}function Qn(e){e.memoizedState!==null&&P(St,e);var t=se.current,a=v0(t,e.type);t!==a&&(P(Ce,e),P(se,a))}function Nt(e){Ce.current===e&&(I(se),I(Ce)),St.current===e&&(I(St),Fi._currentValue=Z)}var hn=Object.prototype.hasOwnProperty,ua=n.unstable_scheduleCallback,mn=n.unstable_cancelCallback,ti=n.unstable_shouldYield,qt=n.unstable_requestPaint,Bt=n.unstable_now,oa=n.unstable_getCurrentPriorityLevel,Yn=n.unstable_ImmediatePriority,Fe=n.unstable_UserBlockingPriority,Vn=n.unstable_NormalPriority,yl=n.unstable_LowPriority,Ma=n.unstable_IdlePriority,vl=n.log,Zl=n.unstable_setDisableYieldValue,pn=null,tt=null;function Yt(e){if(typeof vl=="function"&&Zl(e),tt&&typeof tt.setStrictMode=="function")try{tt.setStrictMode(pn,e)}catch{}}var st=Math.clz32?Math.clz32:La,Ua=Math.log,ni=Math.LN2;function La(e){return e>>>=0,e===0?32:31-(Ua(e)/ni|0)|0}var yn=256,jt=4194304;function He(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 ca(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var c=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~f,s!==0?c=He(s):(v&=x,v!==0?c=He(v):a||(a=x&~e,a!==0&&(c=He(a))))):(x=s&~f,x!==0?c=He(x):v!==0?c=He(v):a||(a=s&~e,a!==0&&(c=He(a)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:c}function Rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function za(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 qa(){var e=yn;return yn<<=1,(yn&4194048)===0&&(yn=256),e}function fa(){var e=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),e}function $n(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function vn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gl(e,t,a,s,c,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,N=e.expirationTimes,L=e.hiddenUpdates;for(a=v&~a;0<a;){var V=31-st(a),K=1<<V;x[V]=0,N[V]=-1;var z=L[V];if(z!==null)for(L[V]=null,V=0;V<z.length;V++){var q=z[V];q!==null&&(q.lane&=-536870913)}a&=~K}s!==0&&bl(e,s,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function bl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-st(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function it(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-st(a),c=1<<s;c&t|e[s]&t&&(e[s]|=t),a&=~c}}function At(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 ue(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _e(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:z0(e.type))}function Ht(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Tt=Math.random().toString(36).slice(2),X="__reactFiber$"+Tt,te="__reactProps$"+Tt,de="__reactContainer$"+Tt,Ie="__reactEvents$"+Tt,yt="__reactListeners$"+Tt,gn="__reactHandles$"+Tt,Wt="__reactResources$"+Tt,rt="__reactMarker$"+Tt;function Rt(e){delete e[X],delete e[te],delete e[Ie],delete e[yt],delete e[gn]}function Re(e){var t=e[X];if(t)return t;for(var a=e.parentNode;a;){if(t=a[de]||a[X]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=S0(e);e!==null;){if(a=e[X])return a;e=S0(e)}return t}e=a,a=e.parentNode}return null}function en(e){if(e=e[X]||e[de]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function xl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ba(e){var t=e[Wt];return t||(t=e[Wt]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[rt]=!0}var ai=new Set,li={};function Kn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(li[e]=t,e=0;e<t.length;e++)ai.add(t[e])}var Oe=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]*$"),bn={},Jl={};function Sl(e){return hn.call(Jl,e)?!0:hn.call(bn,e)?!1:Oe.test(e)?Jl[e]=!0:(bn[e]=!0,!1)}function Pl(e,t,a){if(Sl(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ha(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ha(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}var Uo,oh;function Il(e){if(Uo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Uo=t&&t[1]||"",oh=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Uo+e+oh}var Lo=!1;function zo(e,t){if(!e||Lo)return"";Lo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(q){var z=q}Reflect.construct(e,[],K)}else{try{K.call()}catch(q){z=q}e.call(K.prototype)}}else{try{throw Error()}catch(q){z=q}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(q){if(q&&z&&typeof q.stack=="string")return[q.stack,z.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),v=f[0],x=f[1];if(v&&x){var N=v.split(`
44
- `),L=x.split(`
45
- `);for(c=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;c<L.length&&!L[c].includes("DetermineComponentFrameRoot");)c++;if(s===N.length||c===L.length)for(s=N.length-1,c=L.length-1;1<=s&&0<=c&&N[s]!==L[c];)c--;for(;1<=s&&0<=c;s--,c--)if(N[s]!==L[c]){if(s!==1||c!==1)do if(s--,c--,0>c||N[s]!==L[c]){var V=`
46
- `+N[s].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=s&&0<=c);break}}}finally{Lo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Il(a):""}function V1(e){switch(e.tag){case 26:case 27:case 5:return Il(e.type);case 16:return Il("Lazy");case 13:return Il("Suspense");case 19:return Il("SuspenseList");case 0:case 15:return zo(e.type,!1);case 11:return zo(e.type.render,!1);case 1:return zo(e.type,!0);case 31:return Il("Activity");default:return""}}function ch(e){try{var t="";do t+=V1(e),e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $1(e){var t=fh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(v){s=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jr(e){e._valueTracker||(e._valueTracker=$1(e))}function dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=fh(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function Ar(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var K1=/[\n"\\]/g;function Sn(e){return e.replace(K1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qo(e,t,a,s,c,f,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xn(t)):e.value!==""+xn(t)&&(e.value=""+xn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Bo(e,v,xn(t)):a!=null?Bo(e,v,xn(a)):s!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+xn(x):e.removeAttribute("name")}function hh(e,t,a,s,c,f,v,x){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+xn(a):"",t=t!=null?""+xn(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function Bo(e,t,a){t==="number"&&Ar(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Wl(e,t,a,s){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&s&&(e[a].defaultSelected=!0)}else{for(a=""+xn(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function mh(e,t,a){if(t!=null&&(t=""+xn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+xn(a):""}function ph(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(i(92));if(xe(s)){if(1<s.length)throw Error(i(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=xn(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function es(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var F1=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 yh(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||F1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vh(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in t)s=t[c],t.hasOwnProperty(c)&&a[c]!==s&&yh(e,c,s)}else for(var f in t)t.hasOwnProperty(f)&&yh(e,f,t[f])}function Ho(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 G1=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"]]),X1=/^[\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 Tr(e){return X1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var ko=null;function Qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,ns=null;function gh(e){var t=en(e);if(t&&(e=t.stateNode)){var a=e[te]||null;e:switch(e=t.stateNode,t.type){case"input":if(qo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Sn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var c=s[te]||null;if(!c)throw Error(i(90));qo(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&dh(s)}break e;case"textarea":mh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Wl(e,!!a.multiple,t,!1)}}}var Yo=!1;function bh(e,t,a){if(Yo)return e(t,a);Yo=!0;try{var s=e(t);return s}finally{if(Yo=!1,(ts!==null||ns!==null)&&(mu(),ts&&(t=ts,e=ns,ns=ts=null,gh(t),e)))for(t=0;t<e.length;t++)gh(e[t])}}function si(e,t){var a=e.stateNode;if(a===null)return null;var s=a[te]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vo=!1;if(ma)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Vo=!1}var ka=null,$o=null,Rr=null;function xh(){if(Rr)return Rr;var e,t=$o,a=t.length,s,c="value"in ka?ka.value:ka.textContent,f=c.length;for(e=0;e<a&&t[e]===c[e];e++);var v=a-e;for(s=1;s<=v&&t[a-s]===c[f-s];s++);return Rr=c.slice(e,1<s?1-s:void 0)}function Or(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 Dr(){return!0}function Sh(){return!1}function Vt(e){function t(a,s,c,f,v){this._reactName=a,this._targetInst=c,this.type=s,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Dr:Sh,this.isPropagationStopped=Sh,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Dr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),t}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Vt(wl),ri=g({},wl,{view:0,detail:0}),Z1=Vt(ri),Ko,Fo,ui,Ur=g({},ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,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!==ui&&(ui&&e.type==="mousemove"?(Ko=e.screenX-ui.screenX,Fo=e.screenY-ui.screenY):Fo=Ko=0,ui=e),Ko)},movementY:function(e){return"movementY"in e?e.movementY:Fo}}),wh=Vt(Ur),J1=g({},Ur,{dataTransfer:0}),P1=Vt(J1),I1=g({},ri,{relatedTarget:0}),Go=Vt(I1),W1=g({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),eg=Vt(W1),tg=g({},wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ng=Vt(tg),ag=g({},wl,{data:0}),Eh=Vt(ag),lg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sg={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"},ig={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ig[e])?!!t[e]:!1}function Xo(){return rg}var ug=g({},ri,{key:function(e){if(e.key){var t=lg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Or(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(e){return e.type==="keypress"?Or(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Or(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),og=Vt(ug),cg=g({},Ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ch=Vt(cg),fg=g({},ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),dg=Vt(fg),hg=g({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),mg=Vt(hg),pg=g({},Ur,{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}),yg=Vt(pg),vg=g({},wl,{newState:0,oldState:0}),gg=Vt(vg),bg=[9,13,27,32],Zo=ma&&"CompositionEvent"in window,oi=null;ma&&"documentMode"in document&&(oi=document.documentMode);var xg=ma&&"TextEvent"in window&&!oi,_h=ma&&(!Zo||oi&&8<oi&&11>=oi),Nh=" ",jh=!1;function Ah(e,t){switch(e){case"keyup":return bg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function Sg(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(jh=!0,Nh);case"textInput":return e=t.data,e===Nh&&jh?null:e;default:return null}}function wg(e,t){if(as)return e==="compositionend"||!Zo&&Ah(e,t)?(e=xh(),Rr=$o=ka=null,as=!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 _h&&t.locale!=="ko"?null:t.data;default:return null}}var Eg={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 Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eg[e.type]:t==="textarea"}function Oh(e,t,a,s){ts?ns?ns.push(s):ns=[s]:ts=s,t=xu(t,"onChange"),0<t.length&&(a=new Mr("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ci=null,fi=null;function Cg(e){f0(e,0)}function Lr(e){var t=xl(e);if(dh(t))return e}function Dh(e,t){if(e==="change")return t}var Mh=!1;if(ma){var Jo;if(ma){var Po="oninput"in document;if(!Po){var Uh=document.createElement("div");Uh.setAttribute("oninput","return;"),Po=typeof Uh.oninput=="function"}Jo=Po}else Jo=!1;Mh=Jo&&(!document.documentMode||9<document.documentMode)}function Lh(){ci&&(ci.detachEvent("onpropertychange",zh),fi=ci=null)}function zh(e){if(e.propertyName==="value"&&Lr(fi)){var t=[];Oh(t,fi,e,Qo(e)),bh(Cg,t)}}function _g(e,t,a){e==="focusin"?(Lh(),ci=t,fi=a,ci.attachEvent("onpropertychange",zh)):e==="focusout"&&Lh()}function Ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lr(fi)}function jg(e,t){if(e==="click")return Lr(t)}function Ag(e,t){if(e==="input"||e==="change")return Lr(t)}function Tg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Tg;function di(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var c=a[s];if(!hn.call(t,c)||!tn(e[c],t[c]))return!1}return!0}function qh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bh(e,t){var a=qh(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qh(a)}}function Hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ar(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ar(e.document)}return t}function Io(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 Rg=ma&&"documentMode"in document&&11>=document.documentMode,ls=null,Wo=null,hi=null,ec=!1;function Qh(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ec||ls==null||ls!==Ar(s)||(s=ls,"selectionStart"in s&&Io(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),hi&&di(hi,s)||(hi=s,s=xu(Wo,"onSelect"),0<s.length&&(t=new Mr("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ls)))}function El(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ss={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionrun:El("Transition","TransitionRun"),transitionstart:El("Transition","TransitionStart"),transitioncancel:El("Transition","TransitionCancel"),transitionend:El("Transition","TransitionEnd")},tc={},Yh={};ma&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete ss.animationend.animation,delete ss.animationiteration.animation,delete ss.animationstart.animation),"TransitionEvent"in window||delete ss.transitionend.transition);function Cl(e){if(tc[e])return tc[e];if(!ss[e])return e;var t=ss[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Yh)return tc[e]=t[a];return e}var Vh=Cl("animationend"),$h=Cl("animationiteration"),Kh=Cl("animationstart"),Og=Cl("transitionrun"),Dg=Cl("transitionstart"),Mg=Cl("transitioncancel"),Fh=Cl("transitionend"),Gh=new Map,nc="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(" ");nc.push("scrollEnd");function On(e,t){Gh.set(e,t),Kn(t,[e])}var Xh=new WeakMap;function wn(e,t){if(typeof e=="object"&&e!==null){var a=Xh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ch(t)},Xh.set(e,t),t)}return{value:e,source:t,stack:ch(t)}}var En=[],is=0,ac=0;function zr(){for(var e=is,t=ac=is=0;t<e;){var a=En[t];En[t++]=null;var s=En[t];En[t++]=null;var c=En[t];En[t++]=null;var f=En[t];if(En[t++]=null,s!==null&&c!==null){var v=s.pending;v===null?c.next=c:(c.next=v.next,v.next=c),s.pending=c}f!==0&&Zh(a,c,f)}}function qr(e,t,a,s){En[is++]=e,En[is++]=t,En[is++]=a,En[is++]=s,ac|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function lc(e,t,a,s){return qr(e,t,a,s),Br(e)}function rs(e,t){return qr(e,null,null,t),Br(e)}function Zh(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var c=!1,f=e.return;f!==null;)f.childLanes|=a,s=f.alternate,s!==null&&(s.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-st(a),e=f.hiddenUpdates,s=e[c],s===null?e[c]=[t]:s.push(t),t.lane=a|536870912),f):null}function Br(e){if(50<Bi)throw Bi=0,ff=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var us={};function Ug(e,t,a,s){this.tag=e,this.key=a,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,a,s){return new Ug(e,t,a,s)}function sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var a=e.alternate;return a===null?(a=nn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Jh(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,a,s,c,f){var v=0;if(s=e,typeof e=="function")sc(e)&&(v=1);else if(typeof e=="string")v=zb(e,a,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=nn(31,a,t,c),e.elementType=ne,e.lanes=f,e;case E:return _l(a.children,c,f,t);case R:v=8,c|=24;break;case j:return e=nn(12,a,t,c|2),e.elementType=j,e.lanes=f,e;case k:return e=nn(13,a,t,c),e.elementType=k,e.lanes=f,e;case Y:return e=nn(19,a,t,c),e.elementType=Y,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case T:v=10;break e;case D:v=9;break e;case F:v=11;break e;case J:v=14;break e;case W:v=16,s=null;break e}v=29,a=Error(i(130,e===null?"null":typeof e,"")),s=null}return t=nn(v,a,t,c),t.elementType=e,t.type=s,t.lanes=f,t}function _l(e,t,a,s){return e=nn(7,e,s,t),e.lanes=a,e}function ic(e,t,a){return e=nn(6,e,null,t),e.lanes=a,e}function rc(e,t,a){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var os=[],cs=0,kr=null,Qr=0,Cn=[],_n=0,Nl=null,ya=1,va="";function jl(e,t){os[cs++]=Qr,os[cs++]=kr,kr=e,Qr=t}function Ph(e,t,a){Cn[_n++]=ya,Cn[_n++]=va,Cn[_n++]=Nl,Nl=e;var s=ya;e=va;var c=32-st(s)-1;s&=~(1<<c),a+=1;var f=32-st(t)+c;if(30<f){var v=c-c%5;f=(s&(1<<v)-1).toString(32),s>>=v,c-=v,ya=1<<32-st(t)+c|a<<c|s,va=f+e}else ya=1<<f|a<<c|s,va=e}function uc(e){e.return!==null&&(jl(e,1),Ph(e,1,0))}function oc(e){for(;e===kr;)kr=os[--cs],os[cs]=null,Qr=os[--cs],os[cs]=null;for(;e===Nl;)Nl=Cn[--_n],Cn[_n]=null,va=Cn[--_n],Cn[_n]=null,ya=Cn[--_n],Cn[_n]=null}var kt=null,nt=null,De=!1,Al=null,Fn=!1,cc=Error(i(519));function Tl(e){var t=Error(i(418,""));throw yi(wn(t,e)),cc}function Ih(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[X]=e,t[te]=s,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<ki.length;a++)je(ki[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),hh(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),jr(t);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),ph(t,s.value,s.defaultValue,s.children),jr(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||p0(t.textContent,a)?(s.popover!=null&&(je("beforetoggle",t),je("toggle",t)),s.onScroll!=null&&je("scroll",t),s.onScrollEnd!=null&&je("scrollend",t),s.onClick!=null&&(t.onclick=Su),t=!0):t=!1,t||Tl(e)}function Wh(e){for(kt=e.return;kt;)switch(kt.tag){case 5:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:kt=kt.return}}function mi(e){if(e!==kt)return!1;if(!De)return Wh(e),De=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||jf(e.type,e.memoizedProps)),a=!a),a&&nt&&Tl(e),Wh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){nt=Mn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}nt=null}}else t===27?(t=nt,nl(e.type)?(e=Of,Of=null,nt=e):nt=t):nt=kt?Mn(e.stateNode.nextSibling):null;return!0}function pi(){nt=kt=null,De=!1}function em(){var e=Al;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),Al=null),e}function yi(e){Al===null?Al=[e]:Al.push(e)}var fc=Q(null),Rl=null,ga=null;function Qa(e,t,a){P(fc,t._currentValue),t._currentValue=a}function ba(e){e._currentValue=fc.current,I(fc)}function dc(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function hc(e,t,a,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var v=c.child;f=f.firstContext;e:for(;f!==null;){var x=f;f=c;for(var N=0;N<t.length;N++)if(x.context===t[N]){f.lanes|=a,x=f.alternate,x!==null&&(x.lanes|=a),dc(f.return,a,e),s||(v=null);break e}f=x.next}}else if(c.tag===18){if(v=c.return,v===null)throw Error(i(341));v.lanes|=a,f=v.alternate,f!==null&&(f.lanes|=a),dc(v,a,e),v=null}else v=c.child;if(v!==null)v.return=c;else for(v=c;v!==null;){if(v===e){v=null;break}if(c=v.sibling,c!==null){c.return=v.return,v=c;break}v=v.return}c=v}}function vi(e,t,a,s){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var v=c.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var x=c.type;tn(c.pendingProps.value,v.value)||(e!==null?e.push(x):e=[x])}}else if(c===St.current){if(v=c.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Fi):e=[Fi])}c=c.return}e!==null&&hc(t,e,a,s),t.flags|=262144}function Yr(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){Rl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return tm(Rl,e)}function Vr(e,t){return Rl===null&&Ol(e),tm(e,t)}function tm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return a}var Lg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zg=n.unstable_scheduleCallback,qg=n.unstable_NormalPriority,mt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new Lg,data:new Map,refCount:0}}function gi(e){e.refCount--,e.refCount===0&&zg(qg,function(){e.controller.abort()})}var bi=null,pc=0,fs=0,ds=null;function Bg(e,t){if(bi===null){var a=bi=[];pc=0,fs=gf(),ds={status:"pending",value:void 0,then:function(s){a.push(s)}}}return pc++,t.then(nm,nm),t}function nm(){if(--pc===0&&bi!==null){ds!==null&&(ds.status="fulfilled");var e=bi;bi=null,fs=0,ds=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hg(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(s.status="rejected",s.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),s}var am=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Bg(e,t),am!==null&&am(e,t)};var Dl=Q(null);function yc(){var e=Dl.current;return e!==null?e:Ge.pooledCache}function $r(e,t){t===null?P(Dl,Dl.current):P(Dl,t.pool)}function lm(){var e=yc();return e===null?null:{parent:mt._currentValue,pool:e}}var xi=Error(i(460)),sm=Error(i(474)),Kr=Error(i(542)),vc={then:function(){}};function im(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fr(){}function rm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Fr,Fr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,om(e),e;default:if(typeof t.status=="string")t.then(Fr,Fr);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,om(e),e}throw Si=t,xi}}var Si=null;function um(){if(Si===null)throw Error(i(459));var e=Si;return Si=null,e}function om(e){if(e===xi||e===Kr)throw Error(i(483))}var Ya=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $a(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Le&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Br(e),Zh(e,null,a),t}return qr(e,s,t,a),Br(e)}function wi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,it(e,a)}}function xc(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var c=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?c=f=v:f=f.next=v,a=a.next}while(a!==null);f===null?c=f=t:f=f.next=t}else c=f=t;a={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Sc=!1;function Ei(){if(Sc){var e=ds;if(e!==null)throw e}}function Ci(e,t,a,s){Sc=!1;var c=e.updateQueue;Ya=!1;var f=c.firstBaseUpdate,v=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var N=x,L=N.next;N.next=null,v===null?f=L:v.next=L,v=N;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==v&&(x===null?V.firstBaseUpdate=L:x.next=L,V.lastBaseUpdate=N))}if(f!==null){var K=c.baseState;v=0,V=L=N=null,x=f;do{var z=x.lane&-536870913,q=z!==x.lane;if(q?(Ae&z)===z:(s&z)===z){z!==0&&z===fs&&(Sc=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var me=e,fe=x;z=t;var Ye=a;switch(fe.tag){case 1:if(me=fe.payload,typeof me=="function"){K=me.call(Ye,K,z);break e}K=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=fe.payload,z=typeof me=="function"?me.call(Ye,K,z):me,z==null)break e;K=g({},K,z);break e;case 2:Ya=!0}}z=x.callback,z!==null&&(e.flags|=64,q&&(e.flags|=8192),q=c.callbacks,q===null?c.callbacks=[z]:q.push(z))}else q={lane:z,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(L=V=q,N=K):V=V.next=q,v|=z;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;q=x,x=q.next,q.next=null,c.lastBaseUpdate=q,c.shared.pending=null}}while(!0);V===null&&(N=K),c.baseState=N,c.firstBaseUpdate=L,c.lastBaseUpdate=V,f===null&&(c.shared.lanes=0),Ia|=v,e.lanes=v,e.memoizedState=K}}function cm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function fm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)cm(a[e],t)}var hs=Q(null),Gr=Q(0);function dm(e,t){e=Na,P(Gr,e),P(hs,t),Na=e|t.baseLanes}function wc(){P(Gr,Na),P(hs,hs.current)}function Ec(){Na=Gr.current,I(hs),I(Gr)}var Ka=0,be=null,ke=null,ft=null,Xr=!1,ms=!1,Ml=!1,Zr=0,_i=0,ps=null,kg=0;function ot(){throw Error(i(321))}function Cc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!tn(e[a],t[a]))return!1;return!0}function _c(e,t,a,s,c,f){return Ka=f,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Zm:Jm,Ml=!1,f=a(s,c),Ml=!1,ms&&(f=mm(t,a,s,c)),hm(e),f}function hm(e){B.H=tu;var t=ke!==null&&ke.next!==null;if(Ka=0,ft=ke=be=null,Xr=!1,_i=0,ps=null,t)throw Error(i(300));e===null||vt||(e=e.dependencies,e!==null&&Yr(e)&&(vt=!0))}function mm(e,t,a,s){be=e;var c=0;do{if(ms&&(ps=null),_i=0,ms=!1,25<=c)throw Error(i(301));if(c+=1,ft=ke=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}B.H=Gg,f=t(a,s)}while(ms);return f}function Qg(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ni(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(be.flags|=1024),t}function Nc(){var e=Zr!==0;return Zr=0,e}function jc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ac(e){if(Xr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xr=!1}Ka=0,ft=ke=be=null,ms=!1,_i=Zr=0,ps=null}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?be.memoizedState=ft=e:ft=ft.next=e,ft}function dt(){if(ke===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=ft===null?be.memoizedState:ft.next;if(t!==null)ft=t,ke=e;else{if(e===null)throw be.alternate===null?Error(i(467)):Error(i(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},ft===null?be.memoizedState=ft=e:ft=ft.next=e}return ft}function Tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ni(e){var t=_i;return _i+=1,ps===null&&(ps=[]),e=rm(ps,e,t),t=be,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Zm:Jm),e}function Jr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ni(e);if(e.$$typeof===T)return Ot(e)}throw Error(i(438,String(e)))}function Rc(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=be.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Tc(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=pe;return t.index++,a}function xa(e,t){return typeof t=="function"?t(e):t}function Pr(e){var t=dt();return Oc(t,ke,e)}function Oc(e,t,a){var s=e.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=a;var c=e.baseQueue,f=s.pending;if(f!==null){if(c!==null){var v=c.next;c.next=f.next,f.next=v}t.baseQueue=c=f,s.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var x=v=null,N=null,L=t,V=!1;do{var K=L.lane&-536870913;if(K!==L.lane?(Ae&K)===K:(Ka&K)===K){var z=L.revertLane;if(z===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),K===fs&&(V=!0);else if((Ka&z)===z){L=L.next,z===fs&&(V=!0);continue}else K={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(x=N=K,v=f):N=N.next=K,be.lanes|=z,Ia|=z;K=L.action,Ml&&a(f,K),f=L.hasEagerState?L.eagerState:a(f,K)}else z={lane:K,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(x=N=z,v=f):N=N.next=z,be.lanes|=K,Ia|=K;L=L.next}while(L!==null&&L!==t);if(N===null?v=f:N.next=x,!tn(f,e.memoizedState)&&(vt=!0,V&&(a=ds,a!==null)))throw a;e.memoizedState=f,e.baseState=v,e.baseQueue=N,s.lastRenderedState=f}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Dc(e){var t=dt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var s=a.dispatch,c=a.pending,f=t.memoizedState;if(c!==null){a.pending=null;var v=c=c.next;do f=e(f,v.action),v=v.next;while(v!==c);tn(f,t.memoizedState)||(vt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,s]}function pm(e,t,a){var s=be,c=dt(),f=De;if(f){if(a===void 0)throw Error(i(407));a=a()}else a=t();var v=!tn((ke||c).memoizedState,a);v&&(c.memoizedState=a,vt=!0),c=c.queue;var x=gm.bind(null,s,c,e);if(ji(2048,8,x,[e]),c.getSnapshot!==t||v||ft!==null&&ft.memoizedState.tag&1){if(s.flags|=2048,ys(9,Ir(),vm.bind(null,s,c,a,t),null),Ge===null)throw Error(i(349));f||(Ka&124)!==0||ym(s,t,a)}return a}function ym(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=Tc(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function vm(e,t,a,s){t.value=a,t.getSnapshot=s,bm(t)&&xm(e)}function gm(e,t,a){return a(function(){bm(t)&&xm(e)})}function bm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function xm(e){var t=rs(e,2);t!==null&&un(t,e,2)}function Mc(e){var t=$t();if(typeof e=="function"){var a=e;if(e=a(),Ml){Yt(!0);try{a()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t}function Sm(e,t,a,s){return e.baseState=a,Oc(e,ke,typeof s=="function"?s:xa)}function Yg(e,t,a,s,c){if(eu(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};B.T!==null?a(!0):f.isTransition=!1,s(f),a=t.pending,a===null?(f.next=t.pending=f,wm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function wm(e,t){var a=t.action,s=t.payload,c=e.state;if(t.isTransition){var f=B.T,v={};B.T=v;try{var x=a(c,s),N=B.S;N!==null&&N(v,x),Em(e,t,x)}catch(L){Uc(e,t,L)}finally{B.T=f}}else try{f=a(c,s),Em(e,t,f)}catch(L){Uc(e,t,L)}}function Em(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Cm(e,t,s)},function(s){return Uc(e,t,s)}):Cm(e,t,a)}function Cm(e,t,a){t.status="fulfilled",t.value=a,_m(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,wm(e,a)))}function Uc(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,_m(t),t=t.next;while(t!==s)}e.action=null}function _m(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nm(e,t){return t}function jm(e,t){if(De){var a=Ge.formState;if(a!==null){e:{var s=be;if(De){if(nt){t:{for(var c=nt,f=Fn;c.nodeType!==8;){if(!f){c=null;break t}if(c=Mn(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){nt=Mn(c.nextSibling),s=c.data==="F!";break e}}Tl(s)}s=!1}s&&(t=a[0])}}return a=$t(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nm,lastRenderedState:t},a.queue=s,a=Fm.bind(null,be,s),s.dispatch=a,s=Mc(!1),f=Hc.bind(null,be,!1,s.queue),s=$t(),c={state:t,dispatch:null,action:e,pending:null},s.queue=c,a=Yg.bind(null,be,c,f,a),c.dispatch=a,s.memoizedState=e,[t,a,!1]}function Am(e){var t=dt();return Tm(t,ke,e)}function Tm(e,t,a){if(t=Oc(e,t,Nm)[0],e=Pr(xa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Ni(t)}catch(v){throw v===xi?Kr:v}else s=t;t=dt();var c=t.queue,f=c.dispatch;return a!==t.memoizedState&&(be.flags|=2048,ys(9,Ir(),Vg.bind(null,c,a),null)),[s,f,e]}function Vg(e,t){e.action=t}function Rm(e){var t=dt(),a=ke;if(a!==null)return Tm(t,a,e);dt(),t=t.memoizedState,a=dt();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function ys(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=be.updateQueue,t===null&&(t=Tc(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Ir(){return{destroy:void 0,resource:void 0}}function Om(){return dt().memoizedState}function Wr(e,t,a,s){var c=$t();s=s===void 0?null:s,be.flags|=e,c.memoizedState=ys(1|t,Ir(),a,s)}function ji(e,t,a,s){var c=dt();s=s===void 0?null:s;var f=c.memoizedState.inst;ke!==null&&s!==null&&Cc(s,ke.memoizedState.deps)?c.memoizedState=ys(t,f,a,s):(be.flags|=e,c.memoizedState=ys(1|t,f,a,s))}function Dm(e,t){Wr(8390656,8,e,t)}function Mm(e,t){ji(2048,8,e,t)}function Um(e,t){return ji(4,2,e,t)}function Lm(e,t){return ji(4,4,e,t)}function zm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qm(e,t,a){a=a!=null?a.concat([e]):null,ji(4,4,zm.bind(null,t,e),a)}function Lc(){}function Bm(e,t){var a=dt();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Cc(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function Hm(e,t){var a=dt();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Cc(t,s[1]))return s[0];if(s=e(),Ml){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[s,t],s}function zc(e,t,a){return a===void 0||(Ka&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Yp(),be.lanes|=e,Ia|=e,a)}function km(e,t,a,s){return tn(a,t)?a:hs.current!==null?(e=zc(e,a,s),tn(e,t)||(vt=!0),e):(Ka&42)===0?(vt=!0,e.memoizedState=a):(e=Yp(),be.lanes|=e,Ia|=e,t)}function Qm(e,t,a,s,c){var f=G.p;G.p=f!==0&&8>f?f:8;var v=B.T,x={};B.T=x,Hc(e,!1,t,a);try{var N=c(),L=B.S;if(L!==null&&L(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var V=Hg(N,s);Ai(e,t,V,rn(e))}else Ai(e,t,s,rn(e))}catch(K){Ai(e,t,{then:function(){},status:"rejected",reason:K},rn())}finally{G.p=f,B.T=v}}function $g(){}function qc(e,t,a,s){if(e.tag!==5)throw Error(i(476));var c=Ym(e).queue;Qm(e,c,t,Z,a===null?$g:function(){return Vm(e),a(s)})}function Ym(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vm(e){var t=Ym(e).next.queue;Ai(e,t,{},rn())}function Bc(){return Ot(Fi)}function $m(){return dt().memoizedState}function Km(){return dt().memoizedState}function Kg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=rn();e=Va(a);var s=$a(t,e,a);s!==null&&(un(s,t,a),wi(s,t,a)),t={cache:mc()},e.payload=t;return}t=t.return}}function Fg(e,t,a){var s=rn();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},eu(e)?Gm(t,a):(a=lc(e,t,a,s),a!==null&&(un(a,e,s),Xm(a,t,s)))}function Fm(e,t,a){var s=rn();Ai(e,t,a,s)}function Ai(e,t,a,s){var c={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(eu(e))Gm(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,x=f(v,a);if(c.hasEagerState=!0,c.eagerState=x,tn(x,v))return qr(e,t,c,0),Ge===null&&zr(),!1}catch{}finally{}if(a=lc(e,t,c,s),a!==null)return un(a,e,s),Xm(a,t,s),!0}return!1}function Hc(e,t,a,s){if(s={lane:2,revertLane:gf(),action:s,hasEagerState:!1,eagerState:null,next:null},eu(e)){if(t)throw Error(i(479))}else t=lc(e,a,s,2),t!==null&&un(t,e,2)}function eu(e){var t=e.alternate;return e===be||t!==null&&t===be}function Gm(e,t){ms=Xr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xm(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,it(e,a)}}var tu={readContext:Ot,use:Jr,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot},Zm={readContext:Ot,use:Jr,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Dm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Wr(4194308,4,zm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Wr(4194308,4,e,t)},useInsertionEffect:function(e,t){Wr(4,2,e,t)},useMemo:function(e,t){var a=$t();t=t===void 0?null:t;var s=e();if(Ml){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=$t();if(a!==void 0){var c=a(t);if(Ml){Yt(!0);try{a(t)}finally{Yt(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=Fg.bind(null,be,e),[s.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,a=Fm.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Lc,useDeferredValue:function(e,t){var a=$t();return zc(a,e,t)},useTransition:function(){var e=Mc(!1);return e=Qm.bind(null,be,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=be,c=$t();if(De){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ge===null)throw Error(i(349));(Ae&124)!==0||ym(s,t,a)}c.memoizedState=a;var f={value:a,getSnapshot:t};return c.queue=f,Dm(gm.bind(null,s,f,e),[e]),s.flags|=2048,ys(9,Ir(),vm.bind(null,s,f,a,t),null),a},useId:function(){var e=$t(),t=Ge.identifierPrefix;if(De){var a=va,s=ya;a=(s&~(1<<32-st(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Zr++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=kg++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Bc,useFormState:jm,useActionState:jm,useOptimistic:function(e){var t=$t();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hc.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:Rc,useCacheRefresh:function(){return $t().memoizedState=Kg.bind(null,be)}},Jm={readContext:Ot,use:Jr,useCallback:Bm,useContext:Ot,useEffect:Mm,useImperativeHandle:qm,useInsertionEffect:Um,useLayoutEffect:Lm,useMemo:Hm,useReducer:Pr,useRef:Om,useState:function(){return Pr(xa)},useDebugValue:Lc,useDeferredValue:function(e,t){var a=dt();return km(a,ke.memoizedState,e,t)},useTransition:function(){var e=Pr(xa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:pm,useId:$m,useHostTransitionStatus:Bc,useFormState:Am,useActionState:Am,useOptimistic:function(e,t){var a=dt();return Sm(a,ke,e,t)},useMemoCache:Rc,useCacheRefresh:Km},Gg={readContext:Ot,use:Jr,useCallback:Bm,useContext:Ot,useEffect:Mm,useImperativeHandle:qm,useInsertionEffect:Um,useLayoutEffect:Lm,useMemo:Hm,useReducer:Dc,useRef:Om,useState:function(){return Dc(xa)},useDebugValue:Lc,useDeferredValue:function(e,t){var a=dt();return ke===null?zc(a,e,t):km(a,ke.memoizedState,e,t)},useTransition:function(){var e=Dc(xa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:pm,useId:$m,useHostTransitionStatus:Bc,useFormState:Rm,useActionState:Rm,useOptimistic:function(e,t){var a=dt();return ke!==null?Sm(a,ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:Km},vs=null,Ti=0;function nu(e){var t=Ti;return Ti+=1,vs===null&&(vs=[]),rm(vs,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function au(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pm(e){var t=e._init;return t(e._payload)}function Im(e){function t(M,O){if(e){var U=M.deletions;U===null?(M.deletions=[O],M.flags|=16):U.push(O)}}function a(M,O){if(!e)return null;for(;O!==null;)t(M,O),O=O.sibling;return null}function s(M){for(var O=new Map;M!==null;)M.key!==null?O.set(M.key,M):O.set(M.index,M),M=M.sibling;return O}function c(M,O){return M=pa(M,O),M.index=0,M.sibling=null,M}function f(M,O,U){return M.index=U,e?(U=M.alternate,U!==null?(U=U.index,U<O?(M.flags|=67108866,O):U):(M.flags|=67108866,O)):(M.flags|=1048576,O)}function v(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function x(M,O,U,$){return O===null||O.tag!==6?(O=ic(U,M.mode,$),O.return=M,O):(O=c(O,U),O.return=M,O)}function N(M,O,U,$){var ee=U.type;return ee===E?V(M,O,U.props.children,$,U.key):O!==null&&(O.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===W&&Pm(ee)===O.type)?(O=c(O,U.props),Ri(O,U),O.return=M,O):(O=Hr(U.type,U.key,U.props,null,M.mode,$),Ri(O,U),O.return=M,O)}function L(M,O,U,$){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=rc(U,M.mode,$),O.return=M,O):(O=c(O,U.children||[]),O.return=M,O)}function V(M,O,U,$,ee){return O===null||O.tag!==7?(O=_l(U,M.mode,$,ee),O.return=M,O):(O=c(O,U),O.return=M,O)}function K(M,O,U){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=ic(""+O,M.mode,U),O.return=M,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return U=Hr(O.type,O.key,O.props,null,M.mode,U),Ri(U,O),U.return=M,U;case C:return O=rc(O,M.mode,U),O.return=M,O;case W:var $=O._init;return O=$(O._payload),K(M,O,U)}if(xe(O)||Ee(O))return O=_l(O,M.mode,U,null),O.return=M,O;if(typeof O.then=="function")return K(M,nu(O),U);if(O.$$typeof===T)return K(M,Vr(M,O),U);au(M,O)}return null}function z(M,O,U,$){var ee=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ee!==null?null:x(M,O,""+U,$);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===ee?N(M,O,U,$):null;case C:return U.key===ee?L(M,O,U,$):null;case W:return ee=U._init,U=ee(U._payload),z(M,O,U,$)}if(xe(U)||Ee(U))return ee!==null?null:V(M,O,U,$,null);if(typeof U.then=="function")return z(M,O,nu(U),$);if(U.$$typeof===T)return z(M,O,Vr(M,U),$);au(M,U)}return null}function q(M,O,U,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return M=M.get(U)||null,x(O,M,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return M=M.get($.key===null?U:$.key)||null,N(O,M,$,ee);case C:return M=M.get($.key===null?U:$.key)||null,L(O,M,$,ee);case W:var Se=$._init;return $=Se($._payload),q(M,O,U,$,ee)}if(xe($)||Ee($))return M=M.get(U)||null,V(O,M,$,ee,null);if(typeof $.then=="function")return q(M,O,U,nu($),ee);if($.$$typeof===T)return q(M,O,U,Vr(O,$),ee);au(O,$)}return null}function me(M,O,U,$){for(var ee=null,Se=null,le=O,he=O=0,bt=null;le!==null&&he<U.length;he++){le.index>he?(bt=le,le=null):bt=le.sibling;var Te=z(M,le,U[he],$);if(Te===null){le===null&&(le=bt);break}e&&le&&Te.alternate===null&&t(M,le),O=f(Te,O,he),Se===null?ee=Te:Se.sibling=Te,Se=Te,le=bt}if(he===U.length)return a(M,le),De&&jl(M,he),ee;if(le===null){for(;he<U.length;he++)le=K(M,U[he],$),le!==null&&(O=f(le,O,he),Se===null?ee=le:Se.sibling=le,Se=le);return De&&jl(M,he),ee}for(le=s(le);he<U.length;he++)bt=q(le,M,he,U[he],$),bt!==null&&(e&&bt.alternate!==null&&le.delete(bt.key===null?he:bt.key),O=f(bt,O,he),Se===null?ee=bt:Se.sibling=bt,Se=bt);return e&&le.forEach(function(rl){return t(M,rl)}),De&&jl(M,he),ee}function fe(M,O,U,$){if(U==null)throw Error(i(151));for(var ee=null,Se=null,le=O,he=O=0,bt=null,Te=U.next();le!==null&&!Te.done;he++,Te=U.next()){le.index>he?(bt=le,le=null):bt=le.sibling;var rl=z(M,le,Te.value,$);if(rl===null){le===null&&(le=bt);break}e&&le&&rl.alternate===null&&t(M,le),O=f(rl,O,he),Se===null?ee=rl:Se.sibling=rl,Se=rl,le=bt}if(Te.done)return a(M,le),De&&jl(M,he),ee;if(le===null){for(;!Te.done;he++,Te=U.next())Te=K(M,Te.value,$),Te!==null&&(O=f(Te,O,he),Se===null?ee=Te:Se.sibling=Te,Se=Te);return De&&jl(M,he),ee}for(le=s(le);!Te.done;he++,Te=U.next())Te=q(le,M,he,Te.value,$),Te!==null&&(e&&Te.alternate!==null&&le.delete(Te.key===null?he:Te.key),O=f(Te,O,he),Se===null?ee=Te:Se.sibling=Te,Se=Te);return e&&le.forEach(function(Xb){return t(M,Xb)}),De&&jl(M,he),ee}function Ye(M,O,U,$){if(typeof U=="object"&&U!==null&&U.type===E&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:e:{for(var ee=U.key;O!==null;){if(O.key===ee){if(ee=U.type,ee===E){if(O.tag===7){a(M,O.sibling),$=c(O,U.props.children),$.return=M,M=$;break e}}else if(O.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===W&&Pm(ee)===O.type){a(M,O.sibling),$=c(O,U.props),Ri($,U),$.return=M,M=$;break e}a(M,O);break}else t(M,O);O=O.sibling}U.type===E?($=_l(U.props.children,M.mode,$,U.key),$.return=M,M=$):($=Hr(U.type,U.key,U.props,null,M.mode,$),Ri($,U),$.return=M,M=$)}return v(M);case C:e:{for(ee=U.key;O!==null;){if(O.key===ee)if(O.tag===4&&O.stateNode.containerInfo===U.containerInfo&&O.stateNode.implementation===U.implementation){a(M,O.sibling),$=c(O,U.children||[]),$.return=M,M=$;break e}else{a(M,O);break}else t(M,O);O=O.sibling}$=rc(U,M.mode,$),$.return=M,M=$}return v(M);case W:return ee=U._init,U=ee(U._payload),Ye(M,O,U,$)}if(xe(U))return me(M,O,U,$);if(Ee(U)){if(ee=Ee(U),typeof ee!="function")throw Error(i(150));return U=ee.call(U),fe(M,O,U,$)}if(typeof U.then=="function")return Ye(M,O,nu(U),$);if(U.$$typeof===T)return Ye(M,O,Vr(M,U),$);au(M,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,O!==null&&O.tag===6?(a(M,O.sibling),$=c(O,U),$.return=M,M=$):(a(M,O),$=ic(U,M.mode,$),$.return=M,M=$),v(M)):a(M,O)}return function(M,O,U,$){try{Ti=0;var ee=Ye(M,O,U,$);return vs=null,ee}catch(le){if(le===xi||le===Kr)throw le;var Se=nn(29,le,null,M.mode);return Se.lanes=$,Se.return=M,Se}finally{}}}var gs=Im(!0),Wm=Im(!1),Nn=Q(null),Gn=null;function Fa(e){var t=e.alternate;P(pt,pt.current&1),P(Nn,e),Gn===null&&(t===null||hs.current!==null||t.memoizedState!==null)&&(Gn=e)}function ep(e){if(e.tag===22){if(P(pt,pt.current),P(Nn,e),Gn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Gn=e)}}else Ga()}function Ga(){P(pt,pt.current),P(Nn,Nn.current)}function Sa(e){I(Nn),Gn===e&&(Gn=null),I(pt)}var pt=Q(0);function lu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Rf(a)))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 kc(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Qc={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=rn(),c=Va(s);c.payload=t,a!=null&&(c.callback=a),t=$a(e,c,s),t!==null&&(un(t,e,s),wi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=rn(),c=Va(s);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=$a(e,c,s),t!==null&&(un(t,e,s),wi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(),s=Va(a);s.tag=2,t!=null&&(s.callback=t),t=$a(e,s,a),t!==null&&(un(t,e,a),wi(t,e,a))}};function tp(e,t,a,s,c,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,v):t.prototype&&t.prototype.isPureReactComponent?!di(a,s)||!di(c,f):!0}function np(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&Qc.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}var su=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 ap(e){su(e)}function lp(e){console.error(e)}function sp(e){su(e)}function iu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function ip(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Yc(e,t,a){return a=Va(a),a.tag=3,a.payload={element:null},a.callback=function(){iu(e,t)},a}function rp(e){return e=Va(e),e.tag=3,e}function up(e,t,a,s){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var f=s.value;e.payload=function(){return c(f)},e.callback=function(){ip(t,a,s)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){ip(t,a,s),typeof c!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function Xg(e,t,a,s,c){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&vi(t,a,c,!0),a=Nn.current,a!==null){switch(a.tag){case 13:return Gn===null?hf():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=c,s===vc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),pf(e,s,c)),!1;case 22:return a.flags|=65536,s===vc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),pf(e,s,c)),!1}throw Error(i(435,a.tag))}return pf(e,s,c),hf(),!1}if(De)return t=Nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,s!==cc&&(e=Error(i(422),{cause:s}),yi(wn(e,a)))):(s!==cc&&(t=Error(i(423),{cause:s}),yi(wn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=wn(s,a),c=Yc(e.stateNode,s,c),xc(e,c),at!==4&&(at=2)),!1;var f=Error(i(520),{cause:s});if(f=wn(f,a),qi===null?qi=[f]:qi.push(f),at!==4&&(at=2),t===null)return!0;s=wn(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=Yc(a.stateNode,s,e),xc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Wa===null||!Wa.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=rp(c),up(c,e,a,s),xc(a,c),!1}a=a.return}while(a!==null);return!1}var op=Error(i(461)),vt=!1;function wt(e,t,a,s){t.child=e===null?Wm(t,null,a,s):gs(t,e.child,a,s)}function cp(e,t,a,s,c){a=a.render;var f=t.ref;if("ref"in s){var v={};for(var x in s)x!=="ref"&&(v[x]=s[x])}else v=s;return Ol(t),s=_c(e,t,a,v,f,c),x=Nc(),e!==null&&!vt?(jc(e,t,c),wa(e,t,c)):(De&&x&&uc(t),t.flags|=1,wt(e,t,s,c),t.child)}function fp(e,t,a,s,c){if(e===null){var f=a.type;return typeof f=="function"&&!sc(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,dp(e,t,f,s,c)):(e=Hr(a.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Jc(e,c)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:di,a(v,s)&&e.ref===t.ref)return wa(e,t,c)}return t.flags|=1,e=pa(f,s),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,a,s,c){if(e!==null){var f=e.memoizedProps;if(di(f,s)&&e.ref===t.ref)if(vt=!1,t.pendingProps=s=f,Jc(e,c))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,wa(e,t,c)}return Vc(e,t,a,s,c)}function hp(e,t,a){var s=t.pendingProps,c=s.children,f=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=f!==null?f.baseLanes|a:a,e!==null){for(c=t.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;t.childLanes=f&~s}else t.childLanes=0,t.child=null;return mp(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$r(t,f!==null?f.cachePool:null),f!==null?dm(t,f):wc(),ep(t);else return t.lanes=t.childLanes=536870912,mp(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?($r(t,f.cachePool),dm(t,f),Ga(),t.memoizedState=null):(e!==null&&$r(t,null),wc(),Ga());return wt(e,t,c,a),t.child}function mp(e,t,a,s){var c=yc();return c=c===null?null:{parent:mt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&$r(t,null),wc(),ep(t),e!==null&&vi(e,t,s,!0),null}function ru(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Vc(e,t,a,s,c){return Ol(t),a=_c(e,t,a,s,void 0,c),s=Nc(),e!==null&&!vt?(jc(e,t,c),wa(e,t,c)):(De&&s&&uc(t),t.flags|=1,wt(e,t,a,c),t.child)}function pp(e,t,a,s,c,f){return Ol(t),t.updateQueue=null,a=mm(t,s,a,c),hm(e),s=Nc(),e!==null&&!vt?(jc(e,t,f),wa(e,t,f)):(De&&s&&uc(t),t.flags|=1,wt(e,t,a,f),t.child)}function yp(e,t,a,s,c){if(Ol(t),t.stateNode===null){var f=us,v=a.contextType;typeof v=="object"&&v!==null&&(f=Ot(v)),f=new a(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Qc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},gc(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?Ot(v):us,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(kc(t,a,v,s),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&Qc.enqueueReplaceState(f,f.state,null),Ci(t,s,f,c),Ei(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,N=Ul(a,x);f.props=N;var L=f.context,V=a.contextType;v=us,typeof V=="object"&&V!==null&&(v=Ot(V));var K=a.getDerivedStateFromProps;V=typeof K=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||L!==v)&&np(t,f,s,v),Ya=!1;var z=t.memoizedState;f.state=z,Ci(t,s,f,c),Ei(),L=t.memoizedState,x||z!==L||Ya?(typeof K=="function"&&(kc(t,a,K,s),L=t.memoizedState),(N=Ya||tp(t,a,N,s,z,L,v))?(V||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=L),f.props=s,f.state=L,f.context=v,s=N):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,bc(e,t),v=t.memoizedProps,V=Ul(a,v),f.props=V,K=t.pendingProps,z=f.context,L=a.contextType,N=us,typeof L=="object"&&L!==null&&(N=Ot(L)),x=a.getDerivedStateFromProps,(L=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==K||z!==N)&&np(t,f,s,N),Ya=!1,z=t.memoizedState,f.state=z,Ci(t,s,f,c),Ei();var q=t.memoizedState;v!==K||z!==q||Ya||e!==null&&e.dependencies!==null&&Yr(e.dependencies)?(typeof x=="function"&&(kc(t,a,x,s),q=t.memoizedState),(V=Ya||tp(t,a,V,s,z,q,N)||e!==null&&e.dependencies!==null&&Yr(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,q,N),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,q,N)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=q),f.props=s,f.state=q,f.context=N,s=V):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,ru(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=gs(t,e.child,null,c),t.child=gs(t,null,a,c)):wt(e,t,a,c),t.memoizedState=f.state,e=t.child):e=wa(e,t,c),e}function vp(e,t,a,s){return pi(),t.flags|=256,wt(e,t,a,s),t.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:lm()}}function Fc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=jn),e}function gp(e,t,a){var s=t.pendingProps,c=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),v&&(c=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(c?Fa(t):Ga(),De){var x=nt,N;if(N=x){e:{for(N=x,x=Fn;N.nodeType!==8;){if(!x){x=null;break e}if(N=Mn(N.nextSibling),N===null){x=null;break e}}x=N}x!==null?(t.memoizedState={dehydrated:x,treeContext:Nl!==null?{id:ya,overflow:va}:null,retryLane:536870912,hydrationErrors:null},N=nn(18,null,null,0),N.stateNode=x,N.return=t,t.child=N,kt=t,nt=null,N=!0):N=!1}N||Tl(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return Rf(x)?t.lanes=32:t.lanes=536870912,null;Sa(t)}return x=s.children,s=s.fallback,c?(Ga(),c=t.mode,x=uu({mode:"hidden",children:x},c),s=_l(s,c,a,null),x.return=t,s.return=t,x.sibling=s,t.child=x,c=t.child,c.memoizedState=Kc(a),c.childLanes=Fc(e,v,a),t.memoizedState=$c,s):(Fa(t),Gc(t,x))}if(N=e.memoizedState,N!==null&&(x=N.dehydrated,x!==null)){if(f)t.flags&256?(Fa(t),t.flags&=-257,t=Xc(e,t,a)):t.memoizedState!==null?(Ga(),t.child=e.child,t.flags|=128,t=null):(Ga(),c=s.fallback,x=t.mode,s=uu({mode:"visible",children:s.children},x),c=_l(c,x,a,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,gs(t,e.child,null,a),s=t.child,s.memoizedState=Kc(a),s.childLanes=Fc(e,v,a),t.memoizedState=$c,t=c);else if(Fa(t),Rf(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var L=v.dgst;v=L,s=Error(i(419)),s.stack="",s.digest=v,yi({value:s,source:null,stack:null}),t=Xc(e,t,a)}else if(vt||vi(e,t,a,!1),v=(a&e.childLanes)!==0,vt||v){if(v=Ge,v!==null&&(s=a&-a,s=(s&42)!==0?1:At(s),s=(s&(v.suspendedLanes|a))!==0?0:s,s!==0&&s!==N.retryLane))throw N.retryLane=s,rs(e,s),un(v,e,s),op;x.data==="$?"||hf(),t=Xc(e,t,a)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,nt=Mn(x.nextSibling),kt=t,De=!0,Al=null,Fn=!1,e!==null&&(Cn[_n++]=ya,Cn[_n++]=va,Cn[_n++]=Nl,ya=e.id,va=e.overflow,Nl=t),t=Gc(t,s.children),t.flags|=4096);return t}return c?(Ga(),c=s.fallback,x=t.mode,N=e.child,L=N.sibling,s=pa(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,L!==null?c=pa(L,c):(c=_l(c,x,a,null),c.flags|=2),c.return=t,s.return=t,s.sibling=c,t.child=s,s=c,c=t.child,x=e.child.memoizedState,x===null?x=Kc(a):(N=x.cachePool,N!==null?(L=mt._currentValue,N=N.parent!==L?{parent:L,pool:L}:N):N=lm(),x={baseLanes:x.baseLanes|a,cachePool:N}),c.memoizedState=x,c.childLanes=Fc(e,v,a),t.memoizedState=$c,s):(Fa(t),a=e.child,e=a.sibling,a=pa(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function Gc(e,t){return t=uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uu(e,t){return e=nn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xc(e,t,a){return gs(t,e.child,null,a),e=Gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bp(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),dc(e.return,t,a)}function Zc(e,t,a,s,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=s,f.tail=a,f.tailMode=c)}function xp(e,t,a){var s=t.pendingProps,c=s.revealOrder,f=s.tail;if(wt(e,t,s.children,a),s=pt.current,(s&2)!==0)s=s&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&&bp(e,a,t);else if(e.tag===19)bp(e,a,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}s&=1}switch(P(pt,s),c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&lu(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),Zc(t,!1,c,a,f);break;case"backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&lu(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}Zc(t,!0,a,null,f);break;case"together":Zc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function wa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ia|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(vi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=pa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=pa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yr(e)))}function Zg(e,t,a){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Qa(t,mt,e.memoizedState.cache),pi();break;case 27:case 5:Qn(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Qa(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Fa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?gp(e,t,a):(Fa(t),e=wa(e,t,a),e!==null?e.sibling:null);Fa(t);break;case 19:var c=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(vi(e,t,a,!1),s=(a&t.childLanes)!==0),c){if(s)return xp(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),P(pt,pt.current),s)break;return null;case 22:case 23:return t.lanes=0,hp(e,t,a);case 24:Qa(t,mt,e.memoizedState.cache)}return wa(e,t,a)}function Sp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Jc(e,a)&&(t.flags&128)===0)return vt=!1,Zg(e,t,a);vt=(e.flags&131072)!==0}else vt=!1,De&&(t.flags&1048576)!==0&&Ph(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,c=s._init;if(s=c(s._payload),t.type=s,typeof s=="function")sc(s)?(e=Ul(s,e),t.tag=1,t=yp(null,t,s,e,a)):(t.tag=0,t=Vc(null,t,s,e,a));else{if(s!=null){if(c=s.$$typeof,c===F){t.tag=11,t=cp(null,t,s,e,a);break e}else if(c===J){t.tag=14,t=fp(null,t,s,e,a);break e}}throw t=ye(s)||s,Error(i(306,t,""))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,c=Ul(s,t.pendingProps),yp(e,t,s,c,a);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));s=t.pendingProps;var f=t.memoizedState;c=f.element,bc(e,t),Ci(t,s,null,a);var v=t.memoizedState;if(s=v.cache,Qa(t,mt,s),s!==f.cache&&hc(t,[mt],a,!0),Ei(),s=v.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=vp(e,t,s,a);break e}else if(s!==c){c=wn(Error(i(424)),t),yi(c),t=vp(e,t,s,a);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(nt=Mn(e.firstChild),kt=t,De=!0,Al=null,Fn=!0,a=Wm(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(pi(),s===c){t=wa(e,t,a);break e}wt(e,t,s,a)}t=t.child}return t;case 26:return ru(e,t),e===null?(a=_0(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,s=wu(ce.current).createElement(a),s[X]=t,s[te]=e,Ct(s,a,e),ut(s),t.stateNode=s):t.memoizedState=_0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qn(t),e===null&&De&&(s=t.stateNode=w0(t.type,t.pendingProps,ce.current),kt=t,Fn=!0,c=nt,nl(t.type)?(Of=c,nt=Mn(s.firstChild)):nt=c),wt(e,t,t.pendingProps.children,a),ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((c=s=nt)&&(s=Eb(s,t.type,t.pendingProps,Fn),s!==null?(t.stateNode=s,kt=t,nt=Mn(s.firstChild),Fn=!1,c=!0):c=!1),c||Tl(t)),Qn(t),c=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,s=f.children,jf(c,f)?s=null:v!==null&&jf(c,v)&&(t.flags|=32),t.memoizedState!==null&&(c=_c(e,t,Qg,null,null,a),Fi._currentValue=c),ru(e,t),wt(e,t,s,a),t.child;case 6:return e===null&&De&&((e=a=nt)&&(a=Cb(a,t.pendingProps,Fn),a!==null?(t.stateNode=a,kt=t,nt=null,e=!0):e=!1),e||Tl(t)),null;case 13:return gp(e,t,a);case 4:return Ue(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=gs(t,null,s,a):wt(e,t,s,a),t.child;case 11:return cp(e,t,t.type,t.pendingProps,a);case 7:return wt(e,t,t.pendingProps,a),t.child;case 8:return wt(e,t,t.pendingProps.children,a),t.child;case 12:return wt(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Qa(t,t.type,s.value),wt(e,t,s.children,a),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,Ol(t),c=Ot(c),s=s(c),t.flags|=1,wt(e,t,s,a),t.child;case 14:return fp(e,t,t.type,t.pendingProps,a);case 15:return dp(e,t,t.type,t.pendingProps,a);case 19:return xp(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=uu(s,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=pa(e.child,s),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return hp(e,t,a);case 24:return Ol(t),s=Ot(mt),e===null?(c=yc(),c===null&&(c=Ge,f=mc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=a),c=f),t.memoizedState={parent:s,cache:c},gc(t),Qa(t,mt,c)):((e.lanes&a)!==0&&(bc(e,t),Ci(t,null,null,a),Ei()),c=e.memoizedState,f=t.memoizedState,c.parent!==s?(c={parent:s,cache:s},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Qa(t,mt,s)):(s=f.cache,Qa(t,mt,s),s!==c.cache&&hc(t,[mt],a,!0))),wt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ea(e){e.flags|=4}function wp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!R0(t)){if(t=Nn.current,t!==null&&((Ae&4194048)===Ae?Gn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==Gn))throw Si=vc,sm;e.flags|=8192}}function ou(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fa():536870912,e.lanes|=t,ws|=t)}function Oi(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function Jg(e,t,a){var s=t.pendingProps;switch(oc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ba(mt),Xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mi(t)?Ea(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,em())),We(t),null;case 26:return a=t.memoizedState,e===null?(Ea(t),a!==null?(We(t),wp(t,a)):(We(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Ea(t),We(t),wp(t,a)):(We(t),t.flags&=-16777217):(e.memoizedProps!==s&&Ea(t),We(t),t.flags&=-16777217),null;case 27:Nt(t),a=ce.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ea(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return We(t),null}e=se.current,mi(t)?Ih(t):(e=w0(c,s,a),t.stateNode=e,Ea(t))}return We(t),null;case 5:if(Nt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ea(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return We(t),null}if(e=se.current,mi(t))Ih(t);else{switch(c=wu(ce.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?c.createElement("select",{is:s.is}):c.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?c.createElement(a,{is:s.is}):c.createElement(a)}}e[X]=t,e[te]=s;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(Ct(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ea(t)}}return We(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Ea(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(e=ce.current,mi(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,c=kt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[X]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||p0(e.nodeValue,a)),e||Tl(t)}else e=wu(e).createTextNode(s),e[X]=t,t.stateNode=e}return We(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=mi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[X]=t}else pi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),c=!1}else c=em(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Sa(t),t):(Sa(t),null)}if(Sa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool);var f=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==c&&(s.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),ou(t,t.updateQueue),We(t),null;case 4:return Xe(),e===null&&wf(t.stateNode.containerInfo),We(t),null;case 10:return ba(t.type),We(t),null;case 19:if(I(pt),c=t.memoizedState,c===null)return We(t),null;if(s=(t.flags&128)!==0,f=c.rendering,f===null)if(s)Oi(c,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=lu(e),f!==null){for(t.flags|=128,Oi(c,!1),e=f.updateQueue,t.updateQueue=e,ou(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Jh(a,e),a=a.sibling;return P(pt,pt.current&1|2),t.child}e=e.sibling}c.tail!==null&&Bt()>du&&(t.flags|=128,s=!0,Oi(c,!1),t.lanes=4194304)}else{if(!s)if(e=lu(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,ou(t,e),Oi(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!De)return We(t),null}else 2*Bt()-c.renderingStartTime>du&&a!==536870912&&(t.flags|=128,s=!0,Oi(c,!1),t.lanes=4194304);c.isBackwards?(f.sibling=t.child,t.child=f):(e=c.last,e!==null?e.sibling=f:t.child=f,c.last=f)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Bt(),t.sibling=null,e=pt.current,P(pt,s?e&1|2:e&1),t):(We(t),null);case 22:case 23:return Sa(t),Ec(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),a=t.updateQueue,a!==null&&ou(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&I(Dl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ba(mt),We(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Pg(e,t){switch(oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ba(mt),Xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Nt(t),null;case 13:if(Sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(pt),null;case 4:return Xe(),null;case 10:return ba(t.type),null;case 22:case 23:return Sa(t),Ec(),e!==null&&I(Dl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ba(mt),null;case 25:return null;default:return null}}function Ep(e,t){switch(oc(t),t.tag){case 3:ba(mt),Xe();break;case 26:case 27:case 5:Nt(t);break;case 4:Xe();break;case 13:Sa(t);break;case 19:I(pt);break;case 10:ba(t.type);break;case 22:case 23:Sa(t),Ec(),e!==null&&I(Dl);break;case 24:ba(mt)}}function Di(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){s=void 0;var f=a.create,v=a.inst;s=f(),v.destroy=s}a=a.next}while(a!==c)}}catch(x){Ve(t,t.return,x)}}function Xa(e,t,a){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var f=c.next;s=f;do{if((s.tag&e)===e){var v=s.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,c=t;var N=a,L=x;try{L()}catch(V){Ve(c,N,V)}}}s=s.next}while(s!==f)}}catch(V){Ve(t,t.return,V)}}function Cp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{fm(t,a)}catch(s){Ve(e,e.return,s)}}}function _p(e,t,a){a.props=Ul(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Ve(e,t,s)}}function Mi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(c){Ve(e,t,c)}}function Xn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(c){Ve(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Ve(e,t,c)}else a.current=null}function Np(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(c){Ve(e,e.return,c)}}function Pc(e,t,a){try{var s=e.stateNode;gb(s,e.type,a,t),s[te]=t}catch(c){Ve(e,e.return,c)}}function jp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jp(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&&nl(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 Wc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Su));else if(s!==4&&(s===27&&nl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,a),e=e.sibling;e!==null;)Wc(e,t,a),e=e.sibling}function cu(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&nl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(cu(e,t,a),e=e.sibling;e!==null;)cu(e,t,a),e=e.sibling}function Ap(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Ct(t,s,a),t[X]=e,t[te]=a}catch(f){Ve(e,e.return,f)}}var Ca=!1,ct=!1,ef=!1,Tp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Ig(e,t){if(e=e.containerInfo,_f=Au,e=kh(e),Io(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var v=0,x=-1,N=-1,L=0,V=0,K=e,z=null;t:for(;;){for(var q;K!==a||c!==0&&K.nodeType!==3||(x=v+c),K!==f||s!==0&&K.nodeType!==3||(N=v+s),K.nodeType===3&&(v+=K.nodeValue.length),(q=K.firstChild)!==null;)z=K,K=q;for(;;){if(K===e)break t;if(z===a&&++L===c&&(x=v),z===f&&++V===s&&(N=v),(q=K.nextSibling)!==null)break;K=z,z=K.parentNode}K=q}a=x===-1||N===-1?null:{start:x,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(Nf={focusedElem:e,selectionRange:a},Au=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,c=f.memoizedProps,f=f.memoizedState,s=a.stateNode;try{var me=Ul(a.type,c,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(me,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ve(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Tf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function Rp(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Za(e,a),s&4&&Di(5,a);break;case 1:if(Za(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){Ve(a,a.return,v)}else{var c=Ul(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Ve(a,a.return,v)}}s&64&&Cp(a),s&512&&Mi(a,a.return);break;case 3:if(Za(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{fm(e,t)}catch(v){Ve(a,a.return,v)}}break;case 27:t===null&&s&4&&Ap(a);case 26:case 5:Za(e,a),t===null&&s&4&&Np(a),s&512&&Mi(a,a.return);break;case 12:Za(e,a);break;case 13:Za(e,a),s&4&&Mp(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=rb.bind(null,a),_b(e,a))));break;case 22:if(s=a.memoizedState!==null||Ca,!s){t=t!==null&&t.memoizedState!==null||ct,c=Ca;var f=ct;Ca=s,(ct=t)&&!f?Ja(e,a,(a.subtreeFlags&8772)!==0):Za(e,a),Ca=c,ct=f}break;case 30:break;default:Za(e,a)}}function Op(e){var t=e.alternate;t!==null&&(e.alternate=null,Op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(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 Ze=null,Kt=!1;function _a(e,t,a){for(a=a.child;a!==null;)Dp(e,t,a),a=a.sibling}function Dp(e,t,a){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(pn,a)}catch{}switch(a.tag){case 26:ct||Xn(a,t),_a(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Xn(a,t);var s=Ze,c=Kt;nl(a.type)&&(Ze=a.stateNode,Kt=!1),_a(e,t,a),Yi(a.stateNode),Ze=s,Kt=c;break;case 5:ct||Xn(a,t);case 6:if(s=Ze,c=Kt,Ze=null,_a(e,t,a),Ze=s,Kt=c,Ze!==null)if(Kt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(a.stateNode)}catch(f){Ve(a,t,f)}else try{Ze.removeChild(a.stateNode)}catch(f){Ve(a,t,f)}break;case 18:Ze!==null&&(Kt?(e=Ze,x0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ji(e)):x0(Ze,a.stateNode));break;case 4:s=Ze,c=Kt,Ze=a.stateNode.containerInfo,Kt=!0,_a(e,t,a),Ze=s,Kt=c;break;case 0:case 11:case 14:case 15:ct||Xa(2,a,t),ct||Xa(4,a,t),_a(e,t,a);break;case 1:ct||(Xn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&_p(a,t,s)),_a(e,t,a);break;case 21:_a(e,t,a);break;case 22:ct=(s=ct)||a.memoizedState!==null,_a(e,t,a),ct=s;break;default:_a(e,t,a)}}function Mp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ji(e)}catch(a){Ve(t,t.return,a)}}function Wg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Tp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Tp),t;default:throw Error(i(435,e.tag))}}function tf(e,t){var a=Wg(e);t.forEach(function(s){var c=ub.bind(null,e,s);a.has(s)||(a.add(s),s.then(c,c))})}function an(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var c=a[s],f=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(nl(x.type)){Ze=x.stateNode,Kt=!1;break e}break;case 5:Ze=x.stateNode,Kt=!1;break e;case 3:case 4:Ze=x.stateNode.containerInfo,Kt=!0;break e}x=x.return}if(Ze===null)throw Error(i(160));Dp(f,v,c),Ze=null,Kt=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Up(t,e),t=t.sibling}var Dn=null;function Up(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:an(t,e),ln(e),s&4&&(Xa(3,e,e.return),Di(3,e),Xa(5,e,e.return));break;case 1:an(t,e),ln(e),s&512&&(ct||a===null||Xn(a,a.return)),s&64&&Ca&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var c=Dn;if(an(t,e),ln(e),s&512&&(ct||a===null||Xn(a,a.return)),s&4){var f=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":f=c.getElementsByTagName("title")[0],(!f||f[rt]||f[X]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(s),c.head.insertBefore(f,c.querySelector("head > title"))),Ct(f,s,a),f[X]=e,ut(f),s=f;break e;case"link":var v=A0("link","href",c).get(s+(a.href||""));if(v){for(var x=0;x<v.length;x++)if(f=v[x],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(x,1);break t}}f=c.createElement(s),Ct(f,s,a),c.head.appendChild(f);break;case"meta":if(v=A0("meta","content",c).get(s+(a.content||""))){for(x=0;x<v.length;x++)if(f=v[x],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(x,1);break t}}f=c.createElement(s),Ct(f,s,a),c.head.appendChild(f);break;default:throw Error(i(468,s))}f[X]=e,ut(f),s=f}e.stateNode=s}else T0(c,e.type,e.stateNode);else e.stateNode=j0(c,s,e.memoizedProps);else f!==s?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,s===null?T0(c,e.type,e.stateNode):j0(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,a.memoizedProps)}break;case 27:an(t,e),ln(e),s&512&&(ct||a===null||Xn(a,a.return)),a!==null&&s&4&&Pc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(an(t,e),ln(e),s&512&&(ct||a===null||Xn(a,a.return)),e.flags&32){c=e.stateNode;try{es(c,"")}catch(q){Ve(e,e.return,q)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,Pc(e,c,a!==null?a.memoizedProps:c)),s&1024&&(ef=!0);break;case 6:if(an(t,e),ln(e),s&4){if(e.stateNode===null)throw Error(i(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(q){Ve(e,e.return,q)}}break;case 3:if(_u=null,c=Dn,Dn=Eu(t.containerInfo),an(t,e),Dn=c,ln(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ji(t.containerInfo)}catch(q){Ve(e,e.return,q)}ef&&(ef=!1,Lp(e));break;case 4:s=Dn,Dn=Eu(e.stateNode.containerInfo),an(t,e),ln(e),Dn=s;break;case 12:an(t,e),ln(e);break;case 13:an(t,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(uf=Bt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tf(e,s)));break;case 22:c=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,L=Ca,V=ct;if(Ca=L||c,ct=V||N,an(t,e),ct=V,Ca=L,ln(e),s&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||N||Ca||ct||Ll(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(f=N.stateNode,c)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=N.stateNode;var K=N.memoizedProps.style,z=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(q){Ve(N,N.return,q)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=c?"":N.memoizedProps}catch(q){Ve(N,N.return,q)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,tf(e,a))));break;case 19:an(t,e),ln(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tf(e,s)));break;case 30:break;case 21:break;default:an(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(jp(s)){a=s;break}s=s.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var c=a.stateNode,f=Ic(e);cu(e,f,c);break;case 5:var v=a.stateNode;a.flags&32&&(es(v,""),a.flags&=-33);var x=Ic(e);cu(e,x,v);break;case 3:case 4:var N=a.stateNode.containerInfo,L=Ic(e);Wc(e,L,N);break;default:throw Error(i(161))}}catch(V){Ve(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Lp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Za(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rp(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xa(4,t,t.return),Ll(t);break;case 1:Xn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&_p(t,t.return,a),Ll(t);break;case 27:Yi(t.stateNode);case 26:case 5:Xn(t,t.return),Ll(t);break;case 22:t.memoizedState===null&&Ll(t);break;case 30:Ll(t);break;default:Ll(t)}e=e.sibling}}function Ja(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,c=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:Ja(c,f,a),Di(4,f);break;case 1:if(Ja(c,f,a),s=f,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(L){Ve(s,s.return,L)}if(s=f,c=s.updateQueue,c!==null){var x=s.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)cm(N[c],x)}catch(L){Ve(s,s.return,L)}}a&&v&64&&Cp(f),Mi(f,f.return);break;case 27:Ap(f);case 26:case 5:Ja(c,f,a),a&&s===null&&v&4&&Np(f),Mi(f,f.return);break;case 12:Ja(c,f,a);break;case 13:Ja(c,f,a),a&&v&4&&Mp(c,f);break;case 22:f.memoizedState===null&&Ja(c,f,a),Mi(f,f.return);break;case 30:break;default:Ja(c,f,a)}t=t.sibling}}function nf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&gi(a))}function af(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e))}function Zn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zp(e,t,a,s),t=t.sibling}function zp(e,t,a,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Zn(e,t,a,s),c&2048&&Di(9,t);break;case 1:Zn(e,t,a,s);break;case 3:Zn(e,t,a,s),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e)));break;case 12:if(c&2048){Zn(e,t,a,s),e=t.stateNode;try{var f=t.memoizedProps,v=f.id,x=f.onPostCommit;typeof x=="function"&&x(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ve(t,t.return,N)}}else Zn(e,t,a,s);break;case 13:Zn(e,t,a,s);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?Zn(e,t,a,s):Ui(e,t):f._visibility&2?Zn(e,t,a,s):(f._visibility|=2,bs(e,t,a,s,(t.subtreeFlags&10256)!==0)),c&2048&&nf(v,t);break;case 24:Zn(e,t,a,s),c&2048&&af(t.alternate,t);break;default:Zn(e,t,a,s)}}function bs(e,t,a,s,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,v=t,x=a,N=s,L=v.flags;switch(v.tag){case 0:case 11:case 15:bs(f,v,x,N,c),Di(8,v);break;case 23:break;case 22:var V=v.stateNode;v.memoizedState!==null?V._visibility&2?bs(f,v,x,N,c):Ui(f,v):(V._visibility|=2,bs(f,v,x,N,c)),c&&L&2048&&nf(v.alternate,v);break;case 24:bs(f,v,x,N,c),c&&L&2048&&af(v.alternate,v);break;default:bs(f,v,x,N,c)}t=t.sibling}}function Ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,c=s.flags;switch(s.tag){case 22:Ui(a,s),c&2048&&nf(s.alternate,s);break;case 24:Ui(a,s),c&2048&&af(s.alternate,s);break;default:Ui(a,s)}t=t.sibling}}var Li=8192;function xs(e){if(e.subtreeFlags&Li)for(e=e.child;e!==null;)qp(e),e=e.sibling}function qp(e){switch(e.tag){case 26:xs(e),e.flags&Li&&e.memoizedState!==null&&Bb(Dn,e.memoizedState,e.memoizedProps);break;case 5:xs(e);break;case 3:case 4:var t=Dn;Dn=Eu(e.stateNode.containerInfo),xs(e),Dn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Li,Li=16777216,xs(e),Li=t):xs(e));break;default:xs(e)}}function Bp(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 zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];gt=s,kp(s,e)}Bp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hp(e),e=e.sibling}function Hp(e){switch(e.tag){case 0:case 11:case 15:zi(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:zi(e);break;case 12:zi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):zi(e);break;default:zi(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];gt=s,kp(s,e)}Bp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),fu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function kp(e,t){for(;gt!==null;){var a=gt;switch(a.tag){case 0:case 11:case 15:Xa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:gi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,gt=s;else e:for(a=e;gt!==null;){s=gt;var c=s.sibling,f=s.return;if(Op(s),s===a){gt=null;break e}if(c!==null){c.return=f,gt=c;break e}gt=f}}}var eb={getCacheForType:function(e){var t=Ot(mt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},tb=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ge=null,Ne=null,Ae=0,ze=0,sn=null,Pa=!1,Ss=!1,lf=!1,Na=0,at=0,Ia=0,zl=0,sf=0,jn=0,ws=0,qi=null,Ft=null,rf=!1,uf=0,du=1/0,hu=null,Wa=null,Et=0,el=null,Es=null,Cs=0,of=0,cf=null,Qp=null,Bi=0,ff=null;function rn(){if((Le&2)!==0&&Ae!==0)return Ae&-Ae;if(B.T!==null){var e=fs;return e!==0?e:gf()}return _e()}function Yp(){jn===0&&(jn=(Ae&536870912)===0||De?qa():536870912);var e=Nn.current;return e!==null&&(e.flags|=32),jn}function un(e,t,a){(e===Ge&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(_s(e,0),tl(e,Ae,jn,!1)),vn(e,a),((Le&2)===0||e!==Ge)&&(e===Ge&&((Le&2)===0&&(zl|=a),at===4&&tl(e,Ae,jn,!1)),Jn(e))}function Vp(e,t,a){if((Le&6)!==0)throw Error(i(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Rn(e,t),c=s?lb(e,t):mf(e,t,!0),f=s;do{if(c===0){Ss&&!s&&tl(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!nb(a)){c=mf(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var x=e;c=qi;var N=x.current.memoizedState.isDehydrated;if(N&&(_s(x,v).flags|=256),v=mf(x,v,!1),v!==2){if(lf&&!N){x.errorRecoveryDisabledLanes|=f,zl|=f,c=4;break e}f=Ft,Ft=c,f!==null&&(Ft===null?Ft=f:Ft.push.apply(Ft,f))}c=v}if(f=!1,c!==2)continue}}if(c===1){_s(e,0),tl(e,t,0,!0);break}e:{switch(s=e,f=c,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:tl(s,t,jn,!Pa);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=uf+300-Bt(),10<c)){if(tl(s,t,jn,!Pa),ca(s,0,!0)!==0)break e;s.timeoutHandle=g0($p.bind(null,s,a,Ft,hu,rf,t,jn,zl,ws,Pa,f,2,-0,0),c);break e}$p(s,a,Ft,hu,rf,t,jn,zl,ws,Pa,f,0,-0,0)}}break}while(!0);Jn(e)}function $p(e,t,a,s,c,f,v,x,N,L,V,K,z,q){if(e.timeoutHandle=-1,K=t.subtreeFlags,(K&8192||(K&16785408)===16785408)&&(Ki={stylesheets:null,count:0,unsuspend:qb},qp(t),K=Hb(),K!==null)){e.cancelPendingCommit=K(Pp.bind(null,e,t,f,a,s,c,v,x,N,V,1,z,q)),tl(e,f,v,!L);return}Pp(e,t,f,a,s,c,v,x,N)}function nb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var c=a[s],f=c.getSnapshot;c=c.value;try{if(!tn(f(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 tl(e,t,a,s){t&=~sf,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var c=t;0<c;){var f=31-st(c),v=1<<f;s[f]=-1,c&=~v}a!==0&&bl(e,a,t)}function mu(){return(Le&6)===0?(Hi(0),!1):!0}function df(){if(Ne!==null){if(ze===0)var e=Ne.return;else e=Ne,ga=Rl=null,Ac(e),vs=null,Ti=0,e=Ne;for(;e!==null;)Ep(e.alternate,e),e=e.return;Ne=null}}function _s(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,xb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),df(),Ge=e,Ne=a=pa(e.current,null),Ae=t,ze=0,sn=null,Pa=!1,Ss=Rn(e,t),lf=!1,ws=jn=sf=zl=Ia=at=0,Ft=qi=null,rf=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var c=31-st(s),f=1<<c;t|=e[c],s&=~f}return Na=t,zr(),a}function Kp(e,t){be=null,B.H=tu,t===xi||t===Kr?(t=um(),ze=3):t===sm?(t=um(),ze=4):ze=t===op?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sn=t,Ne===null&&(at=1,iu(e,wn(t,e.current)))}function Fp(){var e=B.H;return B.H=tu,e===null?tu:e}function Gp(){var e=B.A;return B.A=eb,e}function hf(){at=4,Pa||(Ae&4194048)!==Ae&&Nn.current!==null||(Ss=!0),(Ia&134217727)===0&&(zl&134217727)===0||Ge===null||tl(Ge,Ae,jn,!1)}function mf(e,t,a){var s=Le;Le|=2;var c=Fp(),f=Gp();(Ge!==e||Ae!==t)&&(hu=null,_s(e,t)),t=!1;var v=at;e:do try{if(ze!==0&&Ne!==null){var x=Ne,N=sn;switch(ze){case 8:df(),v=6;break e;case 3:case 2:case 9:case 6:Nn.current===null&&(t=!0);var L=ze;if(ze=0,sn=null,Ns(e,x,N,L),a&&Ss){v=0;break e}break;default:L=ze,ze=0,sn=null,Ns(e,x,N,L)}}ab(),v=at;break}catch(V){Kp(e,V)}while(!0);return t&&e.shellSuspendCounter++,ga=Rl=null,Le=s,B.H=c,B.A=f,Ne===null&&(Ge=null,Ae=0,zr()),v}function ab(){for(;Ne!==null;)Xp(Ne)}function lb(e,t){var a=Le;Le|=2;var s=Fp(),c=Gp();Ge!==e||Ae!==t?(hu=null,du=Bt()+500,_s(e,t)):Ss=Rn(e,t);e:do try{if(ze!==0&&Ne!==null){t=Ne;var f=sn;t:switch(ze){case 1:ze=0,sn=null,Ns(e,t,f,1);break;case 2:case 9:if(im(f)){ze=0,sn=null,Zp(t);break}t=function(){ze!==2&&ze!==9||Ge!==e||(ze=7),Jn(e)},f.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:im(f)?(ze=0,sn=null,Zp(t)):(ze=0,sn=null,Ns(e,t,f,7));break;case 5:var v=null;switch(Ne.tag){case 26:v=Ne.memoizedState;case 5:case 27:var x=Ne;if(!v||R0(v)){ze=0,sn=null;var N=x.sibling;if(N!==null)Ne=N;else{var L=x.return;L!==null?(Ne=L,pu(L)):Ne=null}break t}}ze=0,sn=null,Ns(e,t,f,5);break;case 6:ze=0,sn=null,Ns(e,t,f,6);break;case 8:df(),at=6;break e;default:throw Error(i(462))}}sb();break}catch(V){Kp(e,V)}while(!0);return ga=Rl=null,B.H=s,B.A=c,Le=a,Ne!==null?0:(Ge=null,Ae=0,zr(),at)}function sb(){for(;Ne!==null&&!ti();)Xp(Ne)}function Xp(e){var t=Sp(e.alternate,e,Na);e.memoizedProps=e.pendingProps,t===null?pu(e):Ne=t}function Zp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pp(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=pp(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Ac(t);default:Ep(a,t),t=Ne=Jh(t,Na),t=Sp(a,t,Na)}e.memoizedProps=e.pendingProps,t===null?pu(e):Ne=t}function Ns(e,t,a,s){ga=Rl=null,Ac(t),vs=null,Ti=0;var c=t.return;try{if(Xg(e,c,t,a,Ae)){at=1,iu(e,wn(a,e.current)),Ne=null;return}}catch(f){if(c!==null)throw Ne=c,f;at=1,iu(e,wn(a,e.current)),Ne=null;return}t.flags&32768?(De||s===1?e=!0:Ss||(Ae&536870912)!==0?e=!1:(Pa=e=!0,(s===2||s===9||s===3||s===6)&&(s=Nn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Jp(t,e)):pu(t)}function pu(e){var t=e;do{if((t.flags&32768)!==0){Jp(t,Pa);return}e=t.return;var a=Jg(t.alternate,t,Na);if(a!==null){Ne=a;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);at===0&&(at=5)}function Jp(e,t){do{var a=Pg(e.alternate,e);if(a!==null){a.flags&=32767,Ne=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=a}while(e!==null);at=6,Ne=null}function Pp(e,t,a,s,c,f,v,x,N){e.cancelPendingCommit=null;do yu();while(Et!==0);if((Le&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=ac,gl(e,a,f,v,x,N),e===Ge&&(Ne=Ge=null,Ae=0),Es=t,el=e,Cs=a,of=f,cf=c,Qp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ob(Vn,function(){return n0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null,c=G.p,G.p=2,v=Le,Le|=4;try{Ig(e,t,a)}finally{Le=v,G.p=c,B.T=s}}Et=1,Ip(),Wp(),e0()}}function Ip(){if(Et===1){Et=0;var e=el,t=Es,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var s=G.p;G.p=2;var c=Le;Le|=4;try{Up(t,e);var f=Nf,v=kh(e.containerInfo),x=f.focusedElem,N=f.selectionRange;if(v!==x&&x&&x.ownerDocument&&Hh(x.ownerDocument.documentElement,x)){if(N!==null&&Io(x)){var L=N.start,V=N.end;if(V===void 0&&(V=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(V,x.value.length);else{var K=x.ownerDocument||document,z=K&&K.defaultView||window;if(z.getSelection){var q=z.getSelection(),me=x.textContent.length,fe=Math.min(N.start,me),Ye=N.end===void 0?fe:Math.min(N.end,me);!q.extend&&fe>Ye&&(v=Ye,Ye=fe,fe=v);var M=Bh(x,fe),O=Bh(x,Ye);if(M&&O&&(q.rangeCount!==1||q.anchorNode!==M.node||q.anchorOffset!==M.offset||q.focusNode!==O.node||q.focusOffset!==O.offset)){var U=K.createRange();U.setStart(M.node,M.offset),q.removeAllRanges(),fe>Ye?(q.addRange(U),q.extend(O.node,O.offset)):(U.setEnd(O.node,O.offset),q.addRange(U))}}}}for(K=[],q=x;q=q.parentNode;)q.nodeType===1&&K.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var $=K[x];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Au=!!_f,Nf=_f=null}finally{Le=c,G.p=s,B.T=a}}e.current=t,Et=2}}function Wp(){if(Et===2){Et=0;var e=el,t=Es,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var s=G.p;G.p=2;var c=Le;Le|=4;try{Rp(e,t.alternate,t)}finally{Le=c,G.p=s,B.T=a}}Et=3}}function e0(){if(Et===4||Et===3){Et=0,qt();var e=el,t=Es,a=Cs,s=Qp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,Es=el=null,t0(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Wa=null),ue(a),t=t.stateNode,tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(pn,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=B.T,c=G.p,G.p=2,B.T=null;try{for(var f=e.onRecoverableError,v=0;v<s.length;v++){var x=s[v];f(x.value,{componentStack:x.stack})}}finally{B.T=t,G.p=c}}(Cs&3)!==0&&yu(),Jn(e),c=e.pendingLanes,(a&4194090)!==0&&(c&42)!==0?e===ff?Bi++:(Bi=0,ff=e):Bi=0,Hi(0)}}function t0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gi(t)))}function yu(e){return Ip(),Wp(),e0(),n0()}function n0(){if(Et!==5)return!1;var e=el,t=of;of=0;var a=ue(Cs),s=B.T,c=G.p;try{G.p=32>a?32:a,B.T=null,a=cf,cf=null;var f=el,v=Cs;if(Et=0,Es=el=null,Cs=0,(Le&6)!==0)throw Error(i(331));var x=Le;if(Le|=4,Hp(f.current),zp(f,f.current,v,a),Le=x,Hi(0,!1),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(pn,f)}catch{}return!0}finally{G.p=c,B.T=s,t0(e,t)}}function a0(e,t,a){t=wn(a,t),t=Yc(e.stateNode,t,2),e=$a(e,t,2),e!==null&&(vn(e,2),Jn(e))}function Ve(e,t,a){if(e.tag===3)a0(e,e,a);else for(;t!==null;){if(t.tag===3){a0(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wa===null||!Wa.has(s))){e=wn(a,e),a=rp(2),s=$a(t,a,2),s!==null&&(up(a,s,t,e),vn(s,2),Jn(s));break}}t=t.return}}function pf(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new tb;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(a)||(lf=!0,c.add(a),e=ib.bind(null,e,t,a),t.then(e,e))}function ib(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Ae&a)===a&&(at===4||at===3&&(Ae&62914560)===Ae&&300>Bt()-uf?(Le&2)===0&&_s(e,0):sf|=a,ws===Ae&&(ws=0)),Jn(e)}function l0(e,t){t===0&&(t=fa()),e=rs(e,t),e!==null&&(vn(e,t),Jn(e))}function rb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),l0(e,a)}function ub(e,t){var a=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),l0(e,a)}function ob(e,t){return ua(e,t)}var vu=null,js=null,yf=!1,gu=!1,vf=!1,ql=0;function Jn(e){e!==js&&e.next===null&&(js===null?vu=js=e:js=js.next=e),gu=!0,yf||(yf=!0,fb())}function Hi(e,t){if(!vf&&gu){vf=!0;do for(var a=!1,s=vu;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var f=0;else{var v=s.suspendedLanes,x=s.pingedLanes;f=(1<<31-st(42|e)+1)-1,f&=c&~(v&~x),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,u0(s,f))}else f=Ae,f=ca(s,s===Ge?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Rn(s,f)||(a=!0,u0(s,f));s=s.next}while(a);vf=!1}}function cb(){s0()}function s0(){gu=yf=!1;var e=0;ql!==0&&(bb()&&(e=ql),ql=0);for(var t=Bt(),a=null,s=vu;s!==null;){var c=s.next,f=i0(s,t);f===0?(s.next=null,a===null?vu=c:a.next=c,c===null&&(js=a)):(a=s,(e!==0||(f&3)!==0)&&(gu=!0)),s=c}Hi(e)}function i0(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-st(f),x=1<<v,N=c[v];N===-1?((x&a)===0||(x&s)!==0)&&(c[v]=za(x,t)):N<=t&&(e.expiredLanes|=x),f&=~x}if(t=Ge,a=Ae,a=ca(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&mn(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Rn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&mn(s),ue(a)){case 2:case 8:a=Fe;break;case 32:a=Vn;break;case 268435456:a=Ma;break;default:a=Vn}return s=r0.bind(null,e),a=ua(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&mn(s),e.callbackPriority=2,e.callbackNode=null,2}function r0(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yu()&&e.callbackNode!==a)return null;var s=Ae;return s=ca(e,e===Ge?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Vp(e,s,t),i0(e,Bt()),e.callbackNode!=null&&e.callbackNode===a?r0.bind(null,e):null)}function u0(e,t){if(yu())return null;Vp(e,t,!0)}function fb(){Sb(function(){(Le&6)!==0?ua(Yn,cb):s0()})}function gf(){return ql===0&&(ql=qa()),ql}function o0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tr(""+e)}function c0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function db(e,t,a,s,c){if(t==="submit"&&a&&a.stateNode===c){var f=o0((c[te]||null).action),v=s.submitter;v&&(t=(t=v[te]||null)?o0(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var x=new Mr("action","action",null,s,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ql!==0){var N=v?c0(c,v):new FormData(c);qc(a,{pending:!0,data:N,method:c.method,action:f},null,N)}}else typeof f=="function"&&(x.preventDefault(),N=v?c0(c,v):new FormData(c),qc(a,{pending:!0,data:N,method:c.method,action:f},f,N))},currentTarget:c}]})}}for(var bf=0;bf<nc.length;bf++){var xf=nc[bf],hb=xf.toLowerCase(),mb=xf[0].toUpperCase()+xf.slice(1);On(hb,"on"+mb)}On(Vh,"onAnimationEnd"),On($h,"onAnimationIteration"),On(Kh,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(Og,"onTransitionRun"),On(Dg,"onTransitionStart"),On(Mg,"onTransitionCancel"),On(Fh,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),pb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function f0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],c=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var v=s.length-1;0<=v;v--){var x=s[v],N=x.instance,L=x.currentTarget;if(x=x.listener,N!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=L;try{f(c)}catch(V){su(V)}c.currentTarget=null,f=N}else for(v=0;v<s.length;v++){if(x=s[v],N=x.instance,L=x.currentTarget,x=x.listener,N!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=L;try{f(c)}catch(V){su(V)}c.currentTarget=null,f=N}}}}function je(e,t){var a=t[Ie];a===void 0&&(a=t[Ie]=new Set);var s=e+"__bubble";a.has(s)||(d0(t,e,2,!1),a.add(s))}function Sf(e,t,a){var s=0;t&&(s|=4),d0(a,e,s,t)}var bu="_reactListening"+Math.random().toString(36).slice(2);function wf(e){if(!e[bu]){e[bu]=!0,ai.forEach(function(a){a!=="selectionchange"&&(pb.has(a)||Sf(a,!1,e),Sf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bu]||(t[bu]=!0,Sf("selectionchange",!1,t))}}function d0(e,t,a,s){switch(z0(t)){case 2:var c=Yb;break;case 8:c=Vb;break;default:c=zf}a=c.bind(null,t,a,e),c=void 0,!Vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function Ef(e,t,a,s,c){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var x=s.stateNode.containerInfo;if(x===c)break;if(v===4)for(v=s.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===c)return;v=v.return}for(;x!==null;){if(v=Re(x),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){s=f=v;continue e}x=x.parentNode}}s=s.return}bh(function(){var L=f,V=Qo(a),K=[];e:{var z=Gh.get(e);if(z!==void 0){var q=Mr,me=e;switch(e){case"keypress":if(Or(a)===0)break e;case"keydown":case"keyup":q=og;break;case"focusin":me="focus",q=Go;break;case"focusout":me="blur",q=Go;break;case"beforeblur":case"afterblur":q=Go;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=P1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=dg;break;case Vh:case $h:case Kh:q=eg;break;case Fh:q=mg;break;case"scroll":case"scrollend":q=Z1;break;case"wheel":q=yg;break;case"copy":case"cut":case"paste":q=ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Ch;break;case"toggle":case"beforetoggle":q=gg}var fe=(t&4)!==0,Ye=!fe&&(e==="scroll"||e==="scrollend"),M=fe?z!==null?z+"Capture":null:z;fe=[];for(var O=L,U;O!==null;){var $=O;if(U=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||U===null||M===null||($=si(O,M),$!=null&&fe.push(Qi(O,$,U))),Ye)break;O=O.return}0<fe.length&&(z=new q(z,me,null,a,V),K.push({event:z,listeners:fe}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",z&&a!==ko&&(me=a.relatedTarget||a.fromElement)&&(Re(me)||me[de]))break e;if((q||z)&&(z=V.window===V?V:(z=V.ownerDocument)?z.defaultView||z.parentWindow:window,q?(me=a.relatedTarget||a.toElement,q=L,me=me?Re(me):null,me!==null&&(Ye=o(me),fe=me.tag,me!==Ye||fe!==5&&fe!==27&&fe!==6)&&(me=null)):(q=null,me=L),q!==me)){if(fe=wh,$="onMouseLeave",M="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Ch,$="onPointerLeave",M="onPointerEnter",O="pointer"),Ye=q==null?z:xl(q),U=me==null?z:xl(me),z=new fe($,O+"leave",q,a,V),z.target=Ye,z.relatedTarget=U,$=null,Re(V)===L&&(fe=new fe(M,O+"enter",me,a,V),fe.target=U,fe.relatedTarget=Ye,$=fe),Ye=$,q&&me)t:{for(fe=q,M=me,O=0,U=fe;U;U=As(U))O++;for(U=0,$=M;$;$=As($))U++;for(;0<O-U;)fe=As(fe),O--;for(;0<U-O;)M=As(M),U--;for(;O--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=As(fe),M=As(M)}fe=null}else fe=null;q!==null&&h0(K,z,q,fe,!1),me!==null&&Ye!==null&&h0(K,Ye,me,fe,!0)}}e:{if(z=L?xl(L):window,q=z.nodeName&&z.nodeName.toLowerCase(),q==="select"||q==="input"&&z.type==="file")var ee=Dh;else if(Rh(z))if(Mh)ee=Ag;else{ee=Ng;var Se=_g}else q=z.nodeName,!q||q.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?L&&Ho(L.elementType)&&(ee=Dh):ee=jg;if(ee&&(ee=ee(e,L))){Oh(K,ee,a,V);break e}Se&&Se(e,z,L),e==="focusout"&&L&&z.type==="number"&&L.memoizedProps.value!=null&&Bo(z,"number",z.value)}switch(Se=L?xl(L):window,e){case"focusin":(Rh(Se)||Se.contentEditable==="true")&&(ls=Se,Wo=L,hi=null);break;case"focusout":hi=Wo=ls=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,Qh(K,a,V);break;case"selectionchange":if(Rg)break;case"keydown":case"keyup":Qh(K,a,V)}var le;if(Zo)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else as?Ah(e,a)&&(he="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(he="onCompositionStart");he&&(_h&&a.locale!=="ko"&&(as||he!=="onCompositionStart"?he==="onCompositionEnd"&&as&&(le=xh()):(ka=V,$o="value"in ka?ka.value:ka.textContent,as=!0)),Se=xu(L,he),0<Se.length&&(he=new Eh(he,e,null,a,V),K.push({event:he,listeners:Se}),le?he.data=le:(le=Th(a),le!==null&&(he.data=le)))),(le=xg?Sg(e,a):wg(e,a))&&(he=xu(L,"onBeforeInput"),0<he.length&&(Se=new Eh("onBeforeInput","beforeinput",null,a,V),K.push({event:Se,listeners:he}),Se.data=le)),db(K,e,L,a,V)}f0(K,t)})}function Qi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function xu(e,t){for(var a=t+"Capture",s=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=si(e,a),c!=null&&s.unshift(Qi(e,c,f)),c=si(e,t),c!=null&&s.push(Qi(e,c,f))),e.tag===3)return s;e=e.return}return[]}function As(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function h0(e,t,a,s,c){for(var f=t._reactName,v=[];a!==null&&a!==s;){var x=a,N=x.alternate,L=x.stateNode;if(x=x.tag,N!==null&&N===s)break;x!==5&&x!==26&&x!==27||L===null||(N=L,c?(L=si(a,f),L!=null&&v.unshift(Qi(a,L,N))):c||(L=si(a,f),L!=null&&v.push(Qi(a,L,N)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var yb=/\r\n?/g,vb=/\u0000|\uFFFD/g;function m0(e){return(typeof e=="string"?e:""+e).replace(yb,`
49
- `).replace(vb,"")}function p0(e,t){return t=m0(t),m0(e)===t}function Su(){}function Qe(e,t,a,s,c,f){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||es(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&es(e,""+s);break;case"className":Ha(e,"class",s);break;case"tabIndex":Ha(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(e,a,s);break;case"style":vh(e,s,f);break;case"data":if(t!=="object"){Ha(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Tr(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"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 f=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",c.name,c,null),Qe(e,t,"formEncType",c.formEncType,c,null),Qe(e,t,"formMethod",c.formMethod,c,null),Qe(e,t,"formTarget",c.formTarget,c,null)):(Qe(e,t,"encType",c.encType,c,null),Qe(e,t,"method",c.method,c,null),Qe(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Tr(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=Su);break;case"onScroll":s!=null&&je("scroll",e);break;case"onScrollEnd":s!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(a=s.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=Tr(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":je("beforetoggle",e),je("toggle",e),Pl(e,"popover",s);break;case"xlinkActuate":ha(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ha(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ha(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ha(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ha(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ha(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ha(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ha(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ha(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Pl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=G1.get(a)||a,Pl(e,a,s))}}function Cf(e,t,a,s,c,f){switch(a){case"style":vh(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(a=s.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof s=="string"?es(e,s):(typeof s=="number"||typeof s=="bigint")&&es(e,""+s);break;case"onScroll":s!=null&&je("scroll",e);break;case"onScrollEnd":s!=null&&je("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Su);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!li.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),f=e[te]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof s=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,c);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):Pl(e,a,s)}}}function Ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var s=!1,c=!1,f;for(f in a)if(a.hasOwnProperty(f)){var v=a[f];if(v!=null)switch(f){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,f,v,a,null)}}c&&Qe(e,t,"srcSet",a.srcSet,a,null),s&&Qe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var x=f=v=c=null,N=null,L=null;for(s in a)if(a.hasOwnProperty(s)){var V=a[s];if(V!=null)switch(s){case"name":c=V;break;case"type":v=V;break;case"checked":N=V;break;case"defaultChecked":L=V;break;case"value":f=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:Qe(e,t,s,V,a,null)}}hh(e,f,x,N,L,v,c,!1),jr(e);return;case"select":je("invalid",e),s=v=f=null;for(c in a)if(a.hasOwnProperty(c)&&(x=a[c],x!=null))switch(c){case"value":f=x;break;case"defaultValue":v=x;break;case"multiple":s=x;default:Qe(e,t,c,x,a,null)}t=f,a=v,e.multiple=!!s,t!=null?Wl(e,!!s,t,!1):a!=null&&Wl(e,!!s,a,!0);return;case"textarea":je("invalid",e),f=c=s=null;for(v in a)if(a.hasOwnProperty(v)&&(x=a[v],x!=null))switch(v){case"value":s=x;break;case"defaultValue":c=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:Qe(e,t,v,x,a,null)}ph(e,s,c,f),jr(e);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(s=a[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Qe(e,t,N,s,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(s=0;s<ki.length;s++)je(ki[s],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(L in a)if(a.hasOwnProperty(L)&&(s=a[L],s!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,L,s,a,null)}return;default:if(Ho(t)){for(V in a)a.hasOwnProperty(V)&&(s=a[V],s!==void 0&&Cf(e,t,V,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&Qe(e,t,x,s,a,null))}function gb(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,v=null,x=null,N=null,L=null,V=null;for(q in a){var K=a[q];if(a.hasOwnProperty(q)&&K!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=K;default:s.hasOwnProperty(q)||Qe(e,t,q,null,s,K)}}for(var z in s){var q=s[z];if(K=a[z],s.hasOwnProperty(z)&&(q!=null||K!=null))switch(z){case"type":f=q;break;case"name":c=q;break;case"checked":L=q;break;case"defaultChecked":V=q;break;case"value":v=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==K&&Qe(e,t,z,q,s,K)}}qo(e,v,x,N,L,V,f,c);return;case"select":q=v=x=z=null;for(f in a)if(N=a[f],a.hasOwnProperty(f)&&N!=null)switch(f){case"value":break;case"multiple":q=N;default:s.hasOwnProperty(f)||Qe(e,t,f,null,s,N)}for(c in s)if(f=s[c],N=a[c],s.hasOwnProperty(c)&&(f!=null||N!=null))switch(c){case"value":z=f;break;case"defaultValue":x=f;break;case"multiple":v=f;default:f!==N&&Qe(e,t,c,f,s,N)}t=x,a=v,s=q,z!=null?Wl(e,!!a,z,!1):!!s!=!!a&&(t!=null?Wl(e,!!a,t,!0):Wl(e,!!a,a?[]:"",!1));return;case"textarea":q=z=null;for(x in a)if(c=a[x],a.hasOwnProperty(x)&&c!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Qe(e,t,x,null,s,c)}for(v in s)if(c=s[v],f=a[v],s.hasOwnProperty(v)&&(c!=null||f!=null))switch(v){case"value":z=c;break;case"defaultValue":q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==f&&Qe(e,t,v,c,s,f)}mh(e,z,q);return;case"option":for(var me in a)if(z=a[me],a.hasOwnProperty(me)&&z!=null&&!s.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Qe(e,t,me,null,s,z)}for(N in s)if(z=s[N],q=a[N],s.hasOwnProperty(N)&&z!==q&&(z!=null||q!=null))switch(N){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Qe(e,t,N,z,s,q)}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 fe in a)z=a[fe],a.hasOwnProperty(fe)&&z!=null&&!s.hasOwnProperty(fe)&&Qe(e,t,fe,null,s,z);for(L in s)if(z=s[L],q=a[L],s.hasOwnProperty(L)&&z!==q&&(z!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(i(137,t));break;default:Qe(e,t,L,z,s,q)}return;default:if(Ho(t)){for(var Ye in a)z=a[Ye],a.hasOwnProperty(Ye)&&z!==void 0&&!s.hasOwnProperty(Ye)&&Cf(e,t,Ye,void 0,s,z);for(V in s)z=s[V],q=a[V],!s.hasOwnProperty(V)||z===q||z===void 0&&q===void 0||Cf(e,t,V,z,s,q);return}}for(var M in a)z=a[M],a.hasOwnProperty(M)&&z!=null&&!s.hasOwnProperty(M)&&Qe(e,t,M,null,s,z);for(K in s)z=s[K],q=a[K],!s.hasOwnProperty(K)||z===q||z==null&&q==null||Qe(e,t,K,z,s,q)}var _f=null,Nf=null;function wu(e){return e.nodeType===9?e:e.ownerDocument}function y0(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 v0(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 jf(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 Af=null;function bb(){var e=window.event;return e&&e.type==="popstate"?e===Af?!1:(Af=e,!0):(Af=null,!1)}var g0=typeof setTimeout=="function"?setTimeout:void 0,xb=typeof clearTimeout=="function"?clearTimeout:void 0,b0=typeof Promise=="function"?Promise:void 0,Sb=typeof queueMicrotask=="function"?queueMicrotask:typeof b0<"u"?function(e){return b0.resolve(null).then(e).catch(wb)}:g0;function wb(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function x0(e,t){var a=t,s=0,c=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<s&&8>s){a=s;var v=e.ownerDocument;if(a&1&&Yi(v.documentElement),a&2&&Yi(v.body),a&4)for(a=v.head,Yi(a),v=a.firstChild;v;){var x=v.nextSibling,N=v.nodeName;v[rt]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&v.rel.toLowerCase()==="stylesheet"||a.removeChild(v),v=x}}if(c===0){e.removeChild(f),Ji(t);return}c--}else a==="$"||a==="$?"||a==="$!"?c++:s=a.charCodeAt(0)-48;else s=0;a=f}while(a);Ji(t)}function Tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Tf(a),Rt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Eb(e,t,a,s){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[rt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Mn(e.nextSibling),e===null)break}return null}function Cb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Mn(e.nextSibling),e===null))return null;return e}function Rf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function _b(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Mn(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 Of=null;function S0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function w0(e,t,a){switch(t=wu(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Yi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var An=new Map,E0=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=G.d;G.d={f:Nb,r:jb,D:Ab,C:Tb,L:Rb,m:Ob,X:Mb,S:Db,M:Ub};function Nb(){var e=ja.f(),t=mu();return e||t}function jb(e){var t=en(e);t!==null&&t.tag===5&&t.type==="form"?Vm(t):ja.r(e)}var Ts=typeof document>"u"?null:document;function C0(e,t,a){var s=Ts;if(s&&typeof t=="string"&&t){var c=Sn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),E0.has(c)||(E0.add(c),e={rel:e,crossOrigin:a,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),Ct(t,"link",e),ut(t),s.head.appendChild(t)))}}function Ab(e){ja.D(e),C0("dns-prefetch",e,null)}function Tb(e,t){ja.C(e,t),C0("preconnect",e,t)}function Rb(e,t,a){ja.L(e,t,a);var s=Ts;if(s&&e&&t){var c='link[rel="preload"][as="'+Sn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Sn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Sn(a.imageSizes)+'"]')):c+='[href="'+Sn(e)+'"]';var f=c;switch(t){case"style":f=Rs(e);break;case"script":f=Os(e)}An.has(f)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),An.set(f,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Vi(f))||t==="script"&&s.querySelector($i(f))||(t=s.createElement("link"),Ct(t,"link",e),ut(t),s.head.appendChild(t)))}}function Ob(e,t){ja.m(e,t);var a=Ts;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Sn(s)+'"][href="'+Sn(e)+'"]',f=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Os(e)}if(!An.has(f)&&(e=g({rel:"modulepreload",href:e},t),An.set(f,e),a.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($i(f)))return}s=a.createElement("link"),Ct(s,"link",e),ut(s),a.head.appendChild(s)}}}function Db(e,t,a){ja.S(e,t,a);var s=Ts;if(s&&e){var c=Ba(s).hoistableStyles,f=Rs(e);t=t||"default";var v=c.get(f);if(!v){var x={loading:0,preload:null};if(v=s.querySelector(Vi(f)))x.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=An.get(f))&&Df(e,a);var N=v=s.createElement("link");ut(N),Ct(N,"link",e),N._p=new Promise(function(L,V){N.onload=L,N.onerror=V}),N.addEventListener("load",function(){x.loading|=1}),N.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Cu(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:x},c.set(f,v)}}}function Mb(e,t){ja.X(e,t);var a=Ts;if(a&&e){var s=Ba(a).hoistableScripts,c=Os(e),f=s.get(c);f||(f=a.querySelector($i(c)),f||(e=g({src:e,async:!0},t),(t=An.get(c))&&Mf(e,t),f=a.createElement("script"),ut(f),Ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(c,f))}}function Ub(e,t){ja.M(e,t);var a=Ts;if(a&&e){var s=Ba(a).hoistableScripts,c=Os(e),f=s.get(c);f||(f=a.querySelector($i(c)),f||(e=g({src:e,async:!0,type:"module"},t),(t=An.get(c))&&Mf(e,t),f=a.createElement("script"),ut(f),Ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(c,f))}}function _0(e,t,a,s){var c=(c=ce.current)?Eu(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Rs(a.href),a=Ba(c).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Rs(a.href);var f=Ba(c).hoistableStyles,v=f.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,v),(f=c.querySelector(Vi(e)))&&!f._p&&(v.instance=f,v.state.loading=5),An.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},An.set(e,a),f||Lb(c,e,a,v.state))),t&&s===null)throw Error(i(528,""));return v}if(t&&s!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Os(a),a=Ba(c).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rs(e){return'href="'+Sn(e)+'"'}function Vi(e){return'link[rel="stylesheet"]['+e+"]"}function N0(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Lb(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Ct(t,"link",a),ut(t),e.head.appendChild(t))}function Os(e){return'[src="'+Sn(e)+'"]'}function $i(e){return"script[async]"+e}function j0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Sn(a.href)+'"]');if(s)return t.instance=s,ut(s),s;var c=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ut(s),Ct(s,"style",c),Cu(s,a.precedence,e),t.instance=s;case"stylesheet":c=Rs(a.href);var f=e.querySelector(Vi(c));if(f)return t.state.loading|=4,t.instance=f,ut(f),f;s=N0(a),(c=An.get(c))&&Df(s,c),f=(e.ownerDocument||e).createElement("link"),ut(f);var v=f;return v._p=new Promise(function(x,N){v.onload=x,v.onerror=N}),Ct(f,"link",s),t.state.loading|=4,Cu(f,a.precedence,e),t.instance=f;case"script":return f=Os(a.src),(c=e.querySelector($i(f)))?(t.instance=c,ut(c),c):(s=a,(c=An.get(f))&&(s=g({},a),Mf(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),ut(c),Ct(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Cu(s,a.precedence,e));return t.instance}function Cu(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,f=c,v=0;v<s.length;v++){var x=s[v];if(x.dataset.precedence===t)f=x;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Df(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _u=null;function A0(e,t,a){if(_u===null){var s=new Map,c=_u=new Map;c.set(a,s)}else c=_u,s=c.get(a),s||(s=new Map,c.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var f=a[c];if(!(f[rt]||f[X]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(t)||"";v=e+v;var x=s.get(v);x?x.push(f):s.set(v,[f])}}return s}function T0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function zb(e,t,a){if(a===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 R0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ki=null;function qb(){}function Bb(e,t,a){if(Ki===null)throw Error(i(475));var s=Ki;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Rs(a.href),f=e.querySelector(Vi(c));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Nu.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=f,ut(f);return}f=e.ownerDocument||e,a=N0(a),(c=An.get(c))&&Df(a,c),f=f.createElement("link"),ut(f);var v=f;v._p=new Promise(function(x,N){v.onload=x,v.onerror=N}),Ct(f,"link",a),t.instance=f}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=Nu.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function Hb(){if(Ki===null)throw Error(i(475));var e=Ki;return e.stylesheets&&e.count===0&&Uf(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Uf(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function Nu(){if(this.count--,this.count===0){if(this.stylesheets)Uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ju=null;function Uf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ju=new Map,t.forEach(kb,e),ju=null,Nu.call(e))}function kb(e,t){if(!(t.state.loading&4)){var a=ju.get(e);if(a)var s=a.get(null);else{a=new Map,ju.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var v=c[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),s=v)}s&&a.set(null,s)}c=t.instance,v=c.getAttribute("data-precedence"),f=a.get(v)||s,f===s&&a.set(null,c),a.set(v,c),this.count++,s=Nu.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Fi={$$typeof:T,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Qb(e,t,a,s,c,f,v,x){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=$n(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$n(0),this.hiddenUpdates=$n(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function O0(e,t,a,s,c,f,v,x,N,L,V,K){return e=new Qb(e,t,a,v,x,N,L,K),t=1,f===!0&&(t|=24),f=nn(3,null,null,t),e.current=f,f.stateNode=e,t=mc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:a,cache:t},gc(f),e}function D0(e){return e?(e=us,e):us}function M0(e,t,a,s,c,f){c=D0(c),s.context===null?s.context=c:s.pendingContext=c,s=Va(t),s.payload={element:a},f=f===void 0?null:f,f!==null&&(s.callback=f),a=$a(e,s,t),a!==null&&(un(a,e,t),wi(a,e,t))}function U0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lf(e,t){U0(e,t),(e=e.alternate)&&U0(e,t)}function L0(e){if(e.tag===13){var t=rs(e,67108864);t!==null&&un(t,e,67108864),Lf(e,67108864)}}var Au=!0;function Yb(e,t,a,s){var c=B.T;B.T=null;var f=G.p;try{G.p=2,zf(e,t,a,s)}finally{G.p=f,B.T=c}}function Vb(e,t,a,s){var c=B.T;B.T=null;var f=G.p;try{G.p=8,zf(e,t,a,s)}finally{G.p=f,B.T=c}}function zf(e,t,a,s){if(Au){var c=qf(s);if(c===null)Ef(e,t,s,Tu,a),q0(e,s);else if(Kb(c,e,t,a,s))s.stopPropagation();else if(q0(e,s),t&4&&-1<$b.indexOf(e)){for(;c!==null;){var f=en(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=He(f.pendingLanes);if(v!==0){var x=f;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var N=1<<31-st(v);x.entanglements[1]|=N,v&=~N}Jn(f),(Le&6)===0&&(du=Bt()+500,Hi(0))}}break;case 13:x=rs(f,2),x!==null&&un(x,f,2),mu(),Lf(f,2)}if(f=qf(s),f===null&&Ef(e,t,s,Tu,a),f===c)break;c=f}c!==null&&s.stopPropagation()}else Ef(e,t,s,null,a)}}function qf(e){return e=Qo(e),Bf(e)}var Tu=null;function Bf(e){if(Tu=null,e=Re(e),e!==null){var t=o(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tu=e,null}function z0(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(oa()){case Yn:return 2;case Fe:return 8;case Vn:case yl:return 32;case Ma:return 268435456;default:return 32}default:return 32}}var Hf=!1,al=null,ll=null,sl=null,Gi=new Map,Xi=new Map,il=[],$b="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 q0(e,t){switch(e){case"focusin":case"focusout":al=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":Gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(t.pointerId)}}function Zi(e,t,a,s,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:f,targetContainers:[c]},t!==null&&(t=en(t),t!==null&&L0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Kb(e,t,a,s,c){switch(t){case"focusin":return al=Zi(al,e,t,a,s,c),!0;case"dragenter":return ll=Zi(ll,e,t,a,s,c),!0;case"mouseover":return sl=Zi(sl,e,t,a,s,c),!0;case"pointerover":var f=c.pointerId;return Gi.set(f,Zi(Gi.get(f)||null,e,t,a,s,c)),!0;case"gotpointercapture":return f=c.pointerId,Xi.set(f,Zi(Xi.get(f)||null,e,t,a,s,c)),!0}return!1}function B0(e){var t=Re(e.target);if(t!==null){var a=o(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Ht(e.priority,function(){if(a.tag===13){var s=rn();s=At(s);var c=rs(a,s);c!==null&&un(c,a,s),Lf(a,s)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=qf(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);ko=s,a.target.dispatchEvent(s),ko=null}else return t=en(a),t!==null&&L0(t),e.blockedOn=a,!1;t.shift()}return!0}function H0(e,t,a){Ru(e)&&a.delete(t)}function Fb(){Hf=!1,al!==null&&Ru(al)&&(al=null),ll!==null&&Ru(ll)&&(ll=null),sl!==null&&Ru(sl)&&(sl=null),Gi.forEach(H0),Xi.forEach(H0)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Hf||(Hf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Fb)))}var Du=null;function k0(e){Du!==e&&(Du=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Du===e&&(Du=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],c=e[t+2];if(typeof s!="function"){if(Bf(s||a)===null)continue;break}var f=en(a);f!==null&&(e.splice(t,3),t-=3,qc(f,{pending:!0,data:c,method:a.method,action:s},s,c))}}))}function Ji(e){function t(N){return Ou(N,e)}al!==null&&Ou(al,e),ll!==null&&Ou(ll,e),sl!==null&&Ou(sl,e),Gi.forEach(t),Xi.forEach(t);for(var a=0;a<il.length;a++){var s=il[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<il.length&&(a=il[0],a.blockedOn===null);)B0(a),a.blockedOn===null&&il.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var c=a[s],f=a[s+1],v=c[te]||null;if(typeof f=="function")v||k0(a);else if(v){var x=null;if(f&&f.hasAttribute("formAction")){if(c=f,v=f[te]||null)x=v.formAction;else if(Bf(c)!==null)continue}else x=v.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),k0(a)}}}function kf(e){this._internalRoot=e}Mu.prototype.render=kf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,s=rn();M0(a,s,e,t,null,null)},Mu.prototype.unmount=kf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;M0(e.current,2,null,e,null,null),mu(),t[de]=null}};function Mu(e){this._internalRoot=e}Mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_e();e={blockedOn:null,target:e,priority:t};for(var a=0;a<il.length&&t!==0&&t<il[a].priority;a++);il.splice(a,0,e),a===0&&B0(e)}};var Q0=l.version;if(Q0!=="19.1.0")throw Error(i(527,Q0,"19.1.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=y(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Gb={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uu.isDisabled&&Uu.supportsFiber)try{pn=Uu.inject(Gb),tt=Uu}catch{}}return Ii.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,s="",c=ap,f=lp,v=sp,x=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=O0(e,1,!1,null,null,a,s,c,f,v,x,null),e[de]=t.current,wf(e),new kf(t)},Ii.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var s=!1,c="",f=ap,v=lp,x=sp,N=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),t=O0(e,1,!0,t,a??null,s,c,f,v,x,N,L),t.context=D0(null),a=t.current,s=rn(),s=At(s),c=Va(s),c.callback=null,$a(a,c,s),a=s,t.current.lanes=a,vn(t,a),Jn(t),e[de]=t.current,wf(e),new Mu(t)},Ii.version="19.1.0",Ii}var P0;function nx(){if(P0)return Vf.exports;P0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Vf.exports=tx(),Vf.exports}var ax=nx();const lx=po(ax);var Wi={},I0;function sx(){if(I0)return Wi;I0=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.parse=d,Wi.serialize=p;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,o=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function d(w,C){const E=new o,R=w.length;if(R<2)return E;const j=(C==null?void 0:C.decode)||g;let _=0;do{const D=w.indexOf("=",_);if(D===-1)break;const T=w.indexOf(";",_),F=T===-1?R:T;if(D>F){_=w.lastIndexOf(";",D-1)+1;continue}const k=m(w,_,D),Y=y(w,D,k),J=w.slice(k,Y);if(E[J]===void 0){let W=m(w,D+1,F),ne=y(w,F,W);const pe=j(w.slice(W,ne));E[J]=pe}_=F+1}while(_<R);return E}function m(w,C,E){do{const R=w.charCodeAt(C);if(R!==32&&R!==9)return C}while(++C<E);return E}function y(w,C,E){for(;C>E;){const R=w.charCodeAt(--C);if(R!==32&&R!==9)return C+1}return E}function p(w,C,E){const R=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const j=R(C);if(!l.test(j))throw new TypeError(`argument val is invalid: ${C}`);let _=w+"="+j;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!S(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function g(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function S(w){return u.call(w)==="[object Date]"}return Wi}sx();var W0="popstate";function ix(n={}){function l(i,u){let{pathname:o,search:d,hash:m}=i.location;return ud("",{pathname:o,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(i,u){return typeof u=="string"?u:ur(u)}return ux(l,r,null,n)}function et(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Ln(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function rx(){return Math.random().toString(36).substring(2,10)}function ey(n,l){return{usr:n.state,key:n.key,idx:l}}function ud(n,l,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?$s(l):l,state:r,key:l&&l.key||i||rx()}}function ur({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function $s(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function ux(n,l,r,i={}){let{window:u=document.defaultView,v5Compat:o=!1}=i,d=u.history,m="POP",y=null,p=g();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function g(){return(d.state||{idx:null}).idx}function S(){m="POP";let j=g(),_=j==null?null:j-p;p=j,y&&y({action:m,location:R.location,delta:_})}function w(j,_){m="PUSH";let D=ud(R.location,j,_);p=g()+1;let T=ey(D,p),F=R.createHref(D);try{d.pushState(T,"",F)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;u.location.assign(F)}o&&y&&y({action:m,location:R.location,delta:1})}function C(j,_){m="REPLACE";let D=ud(R.location,j,_);p=g();let T=ey(D,p),F=R.createHref(D);d.replaceState(T,"",F),o&&y&&y({action:m,location:R.location,delta:0})}function E(j){return ox(j)}let R={get action(){return m},get location(){return n(u,d)},listen(j){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(W0,S),y=j,()=>{u.removeEventListener(W0,S),y=null}},createHref(j){return l(u,j)},createURL:E,encodeLocation(j){let _=E(j);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:C,go(j){return d.go(j)}};return R}function ox(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),et(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:ur(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function av(n,l,r="/"){return cx(n,l,r,!1)}function cx(n,l,r,i){let u=typeof l=="string"?$s(l):l,o=Oa(u.pathname||"/",r);if(o==null)return null;let d=lv(n);fx(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let p=wx(o);m=xx(d[y],p,i)}return m}function lv(n,l=[],r=[],i=""){let u=(o,d,m)=>{let y={relativePath:m===void 0?o.path||"":m,caseSensitive:o.caseSensitive===!0,childrenIndex:d,route:o};y.relativePath.startsWith("/")&&(et(y.relativePath.startsWith(i),`Absolute route path "${y.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(i.length));let p=Ra([i,y.relativePath]),g=r.concat(y);o.children&&o.children.length>0&&(et(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),lv(o.children,l,g,p)),!(o.path==null&&!o.index)&&l.push({path:p,score:gx(p,o.index),routesMeta:g})};return n.forEach((o,d)=>{var m;if(o.path===""||!((m=o.path)!=null&&m.includes("?")))u(o,d);else for(let y of sv(o.path))u(o,d,y)}),l}function sv(n){let l=n.split("/");if(l.length===0)return[];let[r,...i]=l,u=r.endsWith("?"),o=r.replace(/\?$/,"");if(i.length===0)return u?[o,""]:[o];let d=sv(i.join("/")),m=[];return m.push(...d.map(y=>y===""?o:[o,y].join("/"))),u&&m.push(...d),m.map(y=>n.startsWith("/")&&y===""?"/":y)}function fx(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:bx(l.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var dx=/^:[\w-]+$/,hx=3,mx=2,px=1,yx=10,vx=-2,ty=n=>n==="*";function gx(n,l){let r=n.split("/"),i=r.length;return r.some(ty)&&(i+=vx),l&&(i+=mx),r.filter(u=>!ty(u)).reduce((u,o)=>u+(dx.test(o)?hx:o===""?px:yx),i)}function bx(n,l){return n.length===l.length&&n.slice(0,-1).every((i,u)=>i===l[u])?n[n.length-1]-l[l.length-1]:0}function xx(n,l,r=!1){let{routesMeta:i}=n,u={},o="/",d=[];for(let m=0;m<i.length;++m){let y=i[m],p=m===i.length-1,g=o==="/"?l:l.slice(o.length)||"/",S=Wu({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},g),w=y.route;if(!S&&p&&r&&!i[i.length-1].route.index&&(S=Wu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},g)),!S)return null;Object.assign(u,S.params),d.push({params:u,pathname:Ra([o,S.pathname]),pathnameBase:Nx(Ra([o,S.pathnameBase])),route:w}),S.pathnameBase!=="/"&&(o=Ra([o,S.pathnameBase]))}return d}function Wu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=Sx(n.path,n.caseSensitive,n.end),u=l.match(r);if(!u)return null;let o=u[0],d=o.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:S},w)=>{if(g==="*"){let E=m[w]||"";d=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const C=m[w];return S&&!C?p[g]=void 0:p[g]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:d,pattern:n}}function Sx(n,l=!1,r=!0){Ln(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 i=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,y)=>(i.push({paramName:m,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),i]}function wx(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Ln(!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 (${l}).`),n}}function Oa(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function Ex(n,l="/"){let{pathname:r,search:i="",hash:u=""}=typeof n=="string"?$s(n):n;return{pathname:r?r.startsWith("/")?r:Cx(r,l):l,search:jx(i),hash:Ax(u)}}function Cx(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function Gf(n,l,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _x(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function iv(n){let l=_x(n);return l.map((r,i)=>i===l.length-1?r.pathname:r.pathnameBase)}function rv(n,l,r,i=!1){let u;typeof n=="string"?u=$s(n):(u={...n},et(!u.pathname||!u.pathname.includes("?"),Gf("?","pathname","search",u)),et(!u.pathname||!u.pathname.includes("#"),Gf("#","pathname","hash",u)),et(!u.search||!u.search.includes("#"),Gf("#","search","hash",u)));let o=n===""||u.pathname==="",d=o?"/":u.pathname,m;if(d==null)m=r;else{let S=l.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),S-=1;u.pathname=w.join("/")}m=S>=0?l[S]:"/"}let y=Ex(u,m),p=d&&d!=="/"&&d.endsWith("/"),g=(o||d===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(p||g)&&(y.pathname+="/"),y}var Ra=n=>n.join("/").replace(/\/\/+/g,"/"),Nx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Ax=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Tx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var uv=["POST","PUT","PATCH","DELETE"];new Set(uv);var Rx=["GET",...uv];new Set(Rx);var Ks=b.createContext(null);Ks.displayName="DataRouter";var yo=b.createContext(null);yo.displayName="DataRouterState";var ov=b.createContext({isTransitioning:!1});ov.displayName="ViewTransition";var Ox=b.createContext(new Map);Ox.displayName="Fetchers";var Dx=b.createContext(null);Dx.displayName="Await";var na=b.createContext(null);na.displayName="Navigation";var fr=b.createContext(null);fr.displayName="Location";var aa=b.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Od=b.createContext(null);Od.displayName="RouteError";function Mx(n,{relative:l}={}){et(dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=b.useContext(na),{hash:u,pathname:o,search:d}=hr(n,{relative:l}),m=o;return r!=="/"&&(m=o==="/"?r:Ra([r,o])),i.createHref({pathname:m,search:d,hash:u})}function dr(){return b.useContext(fr)!=null}function Pt(){return et(dr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(fr).location}var cv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fv(n){b.useContext(na).static||b.useLayoutEffect(n)}function Lt(){let{isDataRoute:n}=b.useContext(aa);return n?Gx():Ux()}function Ux(){et(dr(),"useNavigate() may be used only in the context of a <Router> component.");let n=b.useContext(Ks),{basename:l,navigator:r}=b.useContext(na),{matches:i}=b.useContext(aa),{pathname:u}=Pt(),o=JSON.stringify(iv(i)),d=b.useRef(!1);return fv(()=>{d.current=!0}),b.useCallback((y,p={})=>{if(Ln(d.current,cv),!d.current)return;if(typeof y=="number"){r.go(y);return}let g=rv(y,JSON.parse(o),u,p.relative==="path");n==null&&l!=="/"&&(g.pathname=g.pathname==="/"?l:Ra([l,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[l,r,o,u,n])}b.createContext(null);function Lx(){let{matches:n}=b.useContext(aa),l=n[n.length-1];return l?l.params:{}}function hr(n,{relative:l}={}){let{matches:r}=b.useContext(aa),{pathname:i}=Pt(),u=JSON.stringify(iv(r));return b.useMemo(()=>rv(n,JSON.parse(u),i,l==="path"),[n,u,i,l])}function zx(n,l){return dv(n,l)}function dv(n,l,r,i){var D;et(dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:o}=b.useContext(na),{matches:d}=b.useContext(aa),m=d[d.length-1],y=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",S=m&&m.route;{let T=S&&S.path||"";hv(p,!S||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) 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.
50
-
51
- Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let w=Pt(),C;if(l){let T=typeof l=="string"?$s(l):l;et(g==="/"||((D=T.pathname)==null?void 0:D.startsWith(g)),`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 "${g}" but pathname "${T.pathname}" was given in the \`location\` prop.`),C=T}else C=w;let E=C.pathname||"/",R=E;if(g!=="/"){let T=g.replace(/^\//,"").split("/");R="/"+E.replace(/^\//,"").split("/").slice(T.length).join("/")}let j=!o&&r&&r.matches&&r.matches.length>0?r.matches:av(n,{pathname:R});Ln(S||j!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),Ln(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.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 _=Qx(j&&j.map(T=>Object.assign({},T,{params:Object.assign({},y,T.params),pathname:Ra([g,u.encodeLocation?u.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:Ra([g,u.encodeLocation?u.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),d,r,i);return l&&_?b.createElement(fr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},_):_}function qx(){let n=Fx(),l=Tx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"ErrorBoundary")," or"," ",b.createElement("code",{style:o},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},l),r?b.createElement("pre",{style:u},r):null,d)}var Bx=b.createElement(qx,null),Hx=class extends b.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,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){console.error("React Router caught the following error during render",n,l)}render(){return this.state.error!==void 0?b.createElement(aa.Provider,{value:this.props.routeContext},b.createElement(Od.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kx({routeContext:n,match:l,children:r}){let i=b.useContext(Ks);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),b.createElement(aa.Provider,{value:n},r)}function Qx(n,l=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let u=n,o=r==null?void 0:r.errors;if(o!=null){let y=u.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);et(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let d=!1,m=-1;if(r)for(let y=0;y<u.length;y++){let p=u[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(m=y),p.route.id){let{loaderData:g,errors:S}=r,w=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!S||S[p.route.id]===void 0);if(p.route.lazy||w){d=!0,m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}return u.reduceRight((y,p,g)=>{let S,w=!1,C=null,E=null;r&&(S=o&&p.route.id?o[p.route.id]:void 0,C=p.route.errorElement||Bx,d&&(m<0&&g===0?(hv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===g&&(w=!0,E=p.route.hydrateFallbackElement||null)));let R=l.concat(u.slice(0,g+1)),j=()=>{let _;return S?_=C:w?_=E:p.route.Component?_=b.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=y,b.createElement(kx,{match:p,routeContext:{outlet:y,matches:R,isDataRoute:r!=null},children:_})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?b.createElement(Hx,{location:r.location,revalidation:r.revalidation,component:C,error:S,children:j(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):j()},null)}function Dd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yx(n){let l=b.useContext(Ks);return et(l,Dd(n)),l}function Vx(n){let l=b.useContext(yo);return et(l,Dd(n)),l}function $x(n){let l=b.useContext(aa);return et(l,Dd(n)),l}function Md(n){let l=$x(n),r=l.matches[l.matches.length-1];return et(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Kx(){return Md("useRouteId")}function Fx(){var i;let n=b.useContext(Od),l=Vx("useRouteError"),r=Md("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[r]}function Gx(){let{router:n}=Yx("useNavigate"),l=Md("useNavigate"),r=b.useRef(!1);return fv(()=>{r.current=!0}),b.useCallback(async(u,o={})=>{Ln(r.current,cv),r.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:l,...o}))},[n,l])}var ny={};function hv(n,l,r){!l&&!ny[n]&&(ny[n]=!0,Ln(!1,r))}b.memo(Xx);function Xx({routes:n,future:l,state:r}){return dv(n,void 0,r,l)}function sr(n){et(!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 Zx({basename:n="/",children:l=null,location:r,navigationType:i="POP",navigator:u,static:o=!1}){et(!dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),m=b.useMemo(()=>({basename:d,navigator:u,static:o,future:{}}),[d,u,o]);typeof r=="string"&&(r=$s(r));let{pathname:y="/",search:p="",hash:g="",state:S=null,key:w="default"}=r,C=b.useMemo(()=>{let E=Oa(y,d);return E==null?null:{location:{pathname:E,search:p,hash:g,state:S,key:w},navigationType:i}},[d,y,p,g,S,w,i]);return Ln(C!=null,`<Router basename="${d}"> is not able to match the URL "${y}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:b.createElement(na.Provider,{value:m},b.createElement(fr.Provider,{children:l,value:C}))}function Jx({children:n,location:l}){return zx(od(n),l)}function od(n,l=[]){let r=[];return b.Children.forEach(n,(i,u)=>{if(!b.isValidElement(i))return;let o=[...l,u];if(i.type===b.Fragment){r.push.apply(r,od(i.props.children,o));return}et(i.type===sr,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),et(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=od(i.props.children,o)),r.push(d)}),r}var Yu="get",Vu="application/x-www-form-urlencoded";function vo(n){return n!=null&&typeof n.tagName=="string"}function Px(n){return vo(n)&&n.tagName.toLowerCase()==="button"}function Ix(n){return vo(n)&&n.tagName.toLowerCase()==="form"}function Wx(n){return vo(n)&&n.tagName.toLowerCase()==="input"}function e2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function t2(n,l){return n.button===0&&(!l||l==="_self")&&!e2(n)}function cd(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((l,r)=>{let i=n[r];return l.concat(Array.isArray(i)?i.map(u=>[r,u]):[[r,i]])},[]))}function n2(n,l){let r=cd(n);return l&&l.forEach((i,u)=>{r.has(u)||l.getAll(u).forEach(o=>{r.append(u,o)})}),r}var Lu=null;function a2(){if(Lu===null)try{new FormData(document.createElement("form"),0),Lu=!1}catch{Lu=!0}return Lu}var l2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xf(n){return n!=null&&!l2.has(n)?(Ln(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vu}"`),null):n}function s2(n,l){let r,i,u,o,d;if(Ix(n)){let m=n.getAttribute("action");i=m?Oa(m,l):null,r=n.getAttribute("method")||Yu,u=Xf(n.getAttribute("enctype"))||Vu,o=new FormData(n)}else if(Px(n)||Wx(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=n.getAttribute("formaction")||m.getAttribute("action");if(i=y?Oa(y,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Yu,u=Xf(n.getAttribute("formenctype"))||Xf(m.getAttribute("enctype"))||Vu,o=new FormData(m,n),!a2()){let{name:p,type:g,value:S}=n;if(g==="image"){let w=p?`${p}.`:"";o.append(`${w}x`,"0"),o.append(`${w}y`,"0")}else p&&o.append(p,S)}}else{if(vo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yu,i=null,u=Vu,d=n}return o&&u==="text/plain"&&(d=o,o=void 0),{action:i,method:r.toLowerCase(),encType:u,formData:o,body:d}}function Ud(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}async function i2(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r2(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"}async function u2(n,l,r){let i=await Promise.all(n.map(async u=>{let o=l.routes[u.route.id];if(o){let d=await i2(o,r);return d.links?d.links():[]}return[]}));return d2(i.flat(1).filter(r2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function ay(n,l,r,i,u,o){let d=(y,p)=>r[p]?y.route.id!==r[p].route.id:!0,m=(y,p)=>{var g;return r[p].pathname!==y.pathname||((g=r[p].route.path)==null?void 0:g.endsWith("*"))&&r[p].params["*"]!==y.params["*"]};return o==="assets"?l.filter((y,p)=>d(y,p)||m(y,p)):o==="data"?l.filter((y,p)=>{var S;let g=i.routes[y.route.id];if(!g||!g.hasLoader)return!1;if(d(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function o2(n,l,{includeHydrateFallback:r}={}){return c2(n.map(i=>{let u=l.routes[i.route.id];if(!u)return[];let o=[u.module];return u.clientActionModule&&(o=o.concat(u.clientActionModule)),u.clientLoaderModule&&(o=o.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(o=o.concat(u.hydrateFallbackModule)),u.imports&&(o=o.concat(u.imports)),o}).flat(1))}function c2(n){return[...new Set(n)]}function f2(n){let l={},r=Object.keys(n).sort();for(let i of r)l[i]=n[i];return l}function d2(n,l){let r=new Set;return new Set(l),n.reduce((i,u)=>{let o=JSON.stringify(f2(u));return r.has(o)||(r.add(o),i.push({key:o,link:u})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var h2=new Set([100,101,204,205]);function m2(n,l){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":l&&Oa(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function mv(){let n=b.useContext(Ks);return Ud(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function p2(){let n=b.useContext(yo);return Ud(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ld=b.createContext(void 0);Ld.displayName="FrameworkContext";function pv(){let n=b.useContext(Ld);return Ud(n,"You must render this element inside a <HydratedRouter> element"),n}function y2(n,l){let r=b.useContext(Ld),[i,u]=b.useState(!1),[o,d]=b.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:g,onTouchStart:S}=l,w=b.useRef(null);b.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let R=_=>{_.forEach(D=>{d(D.isIntersecting)})},j=new IntersectionObserver(R,{threshold:.5});return w.current&&j.observe(w.current),()=>{j.disconnect()}}},[n]),b.useEffect(()=>{if(i){let R=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(R)}}},[i]);let C=()=>{u(!0)},E=()=>{u(!1),d(!1)};return r?n!=="intent"?[o,w,{}]:[o,w,{onFocus:er(m,C),onBlur:er(y,E),onMouseEnter:er(p,C),onMouseLeave:er(g,E),onTouchStart:er(S,C)}]:[!1,w,{}]}function er(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function v2({page:n,...l}){let{router:r}=mv(),i=b.useMemo(()=>av(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?b.createElement(b2,{page:n,matches:i,...l}):null}function g2(n){let{manifest:l,routeModules:r}=pv(),[i,u]=b.useState([]);return b.useEffect(()=>{let o=!1;return u2(n,l,r).then(d=>{o||u(d)}),()=>{o=!0}},[n,l,r]),i}function b2({page:n,matches:l,...r}){let i=Pt(),{manifest:u,routeModules:o}=pv(),{basename:d}=mv(),{loaderData:m,matches:y}=p2(),p=b.useMemo(()=>ay(n,l,y,u,i,"data"),[n,l,y,u,i]),g=b.useMemo(()=>ay(n,l,y,u,i,"assets"),[n,l,y,u,i]),S=b.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,R=!1;if(l.forEach(_=>{var T;let D=u.routes[_.route.id];!D||!D.hasLoader||(!p.some(F=>F.route.id===_.route.id)&&_.route.id in m&&((T=o[_.route.id])!=null&&T.shouldRevalidate)||D.hasClientLoader?R=!0:E.add(_.route.id))}),E.size===0)return[];let j=m2(n,d);return R&&E.size>0&&j.searchParams.set("_routes",l.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[j.pathname+j.search]},[d,m,i,u,p,l,n,o]),w=b.useMemo(()=>o2(g,u),[g,u]),C=g2(g);return b.createElement(b.Fragment,null,S.map(E=>b.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>b.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),C.map(({key:E,link:R})=>b.createElement("link",{key:E,...R})))}function x2(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yv&&(window.__reactRouterVersion="7.6.0")}catch{}function S2({basename:n,children:l,window:r}){let i=b.useRef();i.current==null&&(i.current=ix({window:r,v5Compat:!0}));let u=i.current,[o,d]=b.useState({action:u.action,location:u.location}),m=b.useCallback(y=>{b.startTransition(()=>d(y))},[d]);return b.useLayoutEffect(()=>u.listen(m),[u,m]),b.createElement(Zx,{basename:n,children:l,location:o.location,navigationType:o.action,navigator:u})}var vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gv=b.forwardRef(function({onClick:l,discover:r="render",prefetch:i="none",relative:u,reloadDocument:o,replace:d,state:m,target:y,to:p,preventScrollReset:g,viewTransition:S,...w},C){let{basename:E}=b.useContext(na),R=typeof p=="string"&&vv.test(p),j,_=!1;if(typeof p=="string"&&R&&(j=p,yv))try{let ne=new URL(window.location.href),pe=p.startsWith("//")?new URL(ne.protocol+p):new URL(p),Be=Oa(pe.pathname,E);pe.origin===ne.origin&&Be!=null?p=Be+pe.search+pe.hash:_=!0}catch{Ln(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=Mx(p,{relative:u}),[T,F,k]=y2(i,w),Y=_2(p,{replace:d,state:m,target:y,preventScrollReset:g,relative:u,viewTransition:S});function J(ne){l&&l(ne),ne.defaultPrevented||Y(ne)}let W=b.createElement("a",{...w,...k,href:j||D,onClick:_||o?l:J,ref:x2(C,F),target:y,"data-discover":!R&&r==="render"?"true":void 0});return T&&!R?b.createElement(b.Fragment,null,W,b.createElement(v2,{page:D})):W});gv.displayName="Link";var w2=b.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:i="",end:u=!1,style:o,to:d,viewTransition:m,children:y,...p},g){let S=hr(d,{relative:p.relative}),w=Pt(),C=b.useContext(yo),{navigator:E,basename:R}=b.useContext(na),j=C!=null&&O2(S)&&m===!0,_=E.encodeLocation?E.encodeLocation(S).pathname:S.pathname,D=w.pathname,T=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(D=D.toLowerCase(),T=T?T.toLowerCase():null,_=_.toLowerCase()),T&&R&&(T=Oa(T,R)||T);const F=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let k=D===_||!u&&D.startsWith(_)&&D.charAt(F)==="/",Y=T!=null&&(T===_||!u&&T.startsWith(_)&&T.charAt(_.length)==="/"),J={isActive:k,isPending:Y,isTransitioning:j},W=k?l:void 0,ne;typeof i=="function"?ne=i(J):ne=[i,k?"active":null,Y?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let pe=typeof o=="function"?o(J):o;return b.createElement(gv,{...p,"aria-current":W,className:ne,ref:g,style:pe,to:d,viewTransition:m},typeof y=="function"?y(J):y)});w2.displayName="NavLink";var E2=b.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:i,replace:u,state:o,method:d=Yu,action:m,onSubmit:y,relative:p,preventScrollReset:g,viewTransition:S,...w},C)=>{let E=T2(),R=R2(m,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&vv.test(m),D=T=>{if(y&&y(T),T.defaultPrevented)return;T.preventDefault();let F=T.nativeEvent.submitter,k=(F==null?void 0:F.getAttribute("formmethod"))||d;E(F||T.currentTarget,{fetcherKey:l,method:k,navigate:r,replace:u,state:o,relative:p,preventScrollReset:g,viewTransition:S})};return b.createElement("form",{ref:C,method:j,action:R,onSubmit:i?y:D,...w,"data-discover":!_&&n==="render"?"true":void 0})});E2.displayName="Form";function C2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bv(n){let l=b.useContext(Ks);return et(l,C2(n)),l}function _2(n,{target:l,replace:r,state:i,preventScrollReset:u,relative:o,viewTransition:d}={}){let m=Lt(),y=Pt(),p=hr(n,{relative:o});return b.useCallback(g=>{if(t2(g,l)){g.preventDefault();let S=r!==void 0?r:ur(y)===ur(p);m(n,{replace:S,state:i,preventScrollReset:u,relative:o,viewTransition:d})}},[y,m,p,r,i,l,n,u,o,d])}function N2(n){Ln(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let l=b.useRef(cd(n)),r=b.useRef(!1),i=Pt(),u=b.useMemo(()=>n2(i.search,r.current?null:l.current),[i.search]),o=Lt(),d=b.useCallback((m,y)=>{const p=cd(typeof m=="function"?m(u):m);r.current=!0,o("?"+p,y)},[o,u]);return[u,d]}var j2=0,A2=()=>`__${String(++j2)}__`;function T2(){let{router:n}=bv("useSubmit"),{basename:l}=b.useContext(na),r=Kx();return b.useCallback(async(i,u={})=>{let{action:o,method:d,encType:m,formData:y,body:p}=s2(i,l);if(u.navigate===!1){let g=u.fetcherKey||A2();await n.fetch(g,r,u.action||o,{preventScrollReset:u.preventScrollReset,formData:y,body:p,formMethod:u.method||d,formEncType:u.encType||m,flushSync:u.flushSync})}else await n.navigate(u.action||o,{preventScrollReset:u.preventScrollReset,formData:y,body:p,formMethod:u.method||d,formEncType:u.encType||m,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,l,r])}function R2(n,{relative:l}={}){let{basename:r}=b.useContext(na),i=b.useContext(aa);et(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),o={...hr(n||".",{relative:l})},d=Pt();if(n==null){o.search=d.search;let m=new URLSearchParams(o.search),y=m.getAll("index");if(y.some(g=>g==="")){m.delete("index"),y.filter(S=>S).forEach(S=>m.append("index",S));let g=m.toString();o.search=g?`?${g}`:""}}return(!n||n===".")&&u.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Ra([r,o.pathname])),ur(o)}function O2(n,l={}){let r=b.useContext(ov);et(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=bv("useViewTransitionState"),u=hr(n,{relative:l.relative});if(!r.isTransitioning)return!1;let o=Oa(r.currentLocation.pathname,i)||r.currentLocation.pathname,d=Oa(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Wu(u.pathname,d)!=null||Wu(u.pathname,o)!=null}[...h2];var xv=nv();const D2=po(xv);function fd(n,l){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fd(n,l)}function Fs(n,l){n.prototype=Object.create(l.prototype),n.prototype.constructor=n,fd(n,l)}var Gs=function(){function n(){this.listeners=[]}var l=n.prototype;return l.subscribe=function(i){var u=this,o=i||function(){};return this.listeners.push(o),this.onSubscribe(),function(){u.listeners=u.listeners.filter(function(d){return d!==o}),u.onUnsubscribe()}},l.hasListeners=function(){return this.listeners.length>0},l.onSubscribe=function(){},l.onUnsubscribe=function(){},n}();function we(){return we=Object.assign?Object.assign.bind():function(n){for(var l=1;l<arguments.length;l++){var r=arguments[l];for(var i in r)({}).hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},we.apply(null,arguments)}var eo=typeof window>"u";function _t(){}function M2(n,l){return typeof n=="function"?n(l):n}function dd(n){return typeof n=="number"&&n>=0&&n!==1/0}function to(n){return Array.isArray(n)?n:[n]}function Sv(n,l){return Math.max(n+(l||0)-Date.now(),0)}function $u(n,l,r){return mr(n)?typeof l=="function"?we({},r,{queryKey:n,queryFn:l}):we({},l,{queryKey:n}):n}function U2(n,l,r){return mr(n)?typeof l=="function"?we({},r,{mutationKey:n,mutationFn:l}):we({},l,{mutationKey:n}):typeof n=="function"?we({},l,{mutationFn:n}):we({},n)}function ul(n,l,r){return mr(n)?[we({},l,{queryKey:n}),r]:[n||{},l]}function L2(n,l){if(n===!0&&l===!0||n==null&&l==null)return"all";if(n===!1&&l===!1)return"none";var r=n??!l;return r?"active":"inactive"}function ly(n,l){var r=n.active,i=n.exact,u=n.fetching,o=n.inactive,d=n.predicate,m=n.queryKey,y=n.stale;if(mr(m)){if(i){if(l.queryHash!==zd(m,l.options))return!1}else if(!no(l.queryKey,m))return!1}var p=L2(r,o);if(p==="none")return!1;if(p!=="all"){var g=l.isActive();if(p==="active"&&!g||p==="inactive"&&g)return!1}return!(typeof y=="boolean"&&l.isStale()!==y||typeof u=="boolean"&&l.isFetching()!==u||d&&!d(l))}function sy(n,l){var r=n.exact,i=n.fetching,u=n.predicate,o=n.mutationKey;if(mr(o)){if(!l.options.mutationKey)return!1;if(r){if(Bl(l.options.mutationKey)!==Bl(o))return!1}else if(!no(l.options.mutationKey,o))return!1}return!(typeof i=="boolean"&&l.state.status==="loading"!==i||u&&!u(l))}function zd(n,l){var r=(l==null?void 0:l.queryKeyHashFn)||Bl;return r(n)}function Bl(n){var l=to(n);return z2(l)}function z2(n){return JSON.stringify(n,function(l,r){return hd(r)?Object.keys(r).sort().reduce(function(i,u){return i[u]=r[u],i},{}):r})}function no(n,l){return wv(to(n),to(l))}function wv(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?!Object.keys(l).some(function(r){return!wv(n[r],l[r])}):!1}function ao(n,l){if(n===l)return n;var r=Array.isArray(n)&&Array.isArray(l);if(r||hd(n)&&hd(l)){for(var i=r?n.length:Object.keys(n).length,u=r?l:Object.keys(l),o=u.length,d=r?[]:{},m=0,y=0;y<o;y++){var p=r?y:u[y];d[p]=ao(n[p],l[p]),d[p]===n[p]&&m++}return i===o&&m===i?n:d}return l}function q2(n,l){if(n&&!l||l&&!n)return!1;for(var r in n)if(n[r]!==l[r])return!1;return!0}function hd(n){if(!iy(n))return!1;var l=n.constructor;if(typeof l>"u")return!0;var r=l.prototype;return!(!iy(r)||!r.hasOwnProperty("isPrototypeOf"))}function iy(n){return Object.prototype.toString.call(n)==="[object Object]"}function mr(n){return typeof n=="string"||Array.isArray(n)}function B2(n){return new Promise(function(l){setTimeout(l,n)})}function ry(n){Promise.resolve().then(n).catch(function(l){return setTimeout(function(){throw l})})}function Ev(){if(typeof AbortController=="function")return new AbortController}var H2=function(n){Fs(l,n);function l(){var i;return i=n.call(this)||this,i.setup=function(u){var o;if(!eo&&((o=window)!=null&&o.addEventListener)){var d=function(){return u()};return window.addEventListener("visibilitychange",d,!1),window.addEventListener("focus",d,!1),function(){window.removeEventListener("visibilitychange",d),window.removeEventListener("focus",d)}}},i}var r=l.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var u;(u=this.cleanup)==null||u.call(this),this.cleanup=void 0}},r.setEventListener=function(u){var o,d=this;this.setup=u,(o=this.cleanup)==null||o.call(this),this.cleanup=u(function(m){typeof m=="boolean"?d.setFocused(m):d.onFocus()})},r.setFocused=function(u){this.focused=u,u&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(u){u()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},l}(Gs),ir=new H2,k2=function(n){Fs(l,n);function l(){var i;return i=n.call(this)||this,i.setup=function(u){var o;if(!eo&&((o=window)!=null&&o.addEventListener)){var d=function(){return u()};return window.addEventListener("online",d,!1),window.addEventListener("offline",d,!1),function(){window.removeEventListener("online",d),window.removeEventListener("offline",d)}}},i}var r=l.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var u;(u=this.cleanup)==null||u.call(this),this.cleanup=void 0}},r.setEventListener=function(u){var o,d=this;this.setup=u,(o=this.cleanup)==null||o.call(this),this.cleanup=u(function(m){typeof m=="boolean"?d.setOnline(m):d.onOnline()})},r.setOnline=function(u){this.online=u,u&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(u){u()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},l}(Gs),Ku=new k2;function Q2(n){return Math.min(1e3*Math.pow(2,n),3e4)}function lo(n){return typeof(n==null?void 0:n.cancel)=="function"}var Cv=function(l){this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent};function Fu(n){return n instanceof Cv}var _v=function(l){var r=this,i=!1,u,o,d,m;this.abort=l.abort,this.cancel=function(w){return u==null?void 0:u(w)},this.cancelRetry=function(){i=!0},this.continueRetry=function(){i=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(w,C){d=w,m=C});var y=function(C){r.isResolved||(r.isResolved=!0,l.onSuccess==null||l.onSuccess(C),o==null||o(),d(C))},p=function(C){r.isResolved||(r.isResolved=!0,l.onError==null||l.onError(C),o==null||o(),m(C))},g=function(){return new Promise(function(C){o=C,r.isPaused=!0,l.onPause==null||l.onPause()}).then(function(){o=void 0,r.isPaused=!1,l.onContinue==null||l.onContinue()})},S=function w(){if(!r.isResolved){var C;try{C=l.fn()}catch(E){C=Promise.reject(E)}u=function(R){if(!r.isResolved&&(p(new Cv(R)),r.abort==null||r.abort(),lo(C)))try{C.cancel()}catch{}},r.isTransportCancelable=lo(C),Promise.resolve(C).then(y).catch(function(E){var R,j;if(!r.isResolved){var _=(R=l.retry)!=null?R:3,D=(j=l.retryDelay)!=null?j:Q2,T=typeof D=="function"?D(r.failureCount,E):D,F=_===!0||typeof _=="number"&&r.failureCount<_||typeof _=="function"&&_(r.failureCount,E);if(i||!F){p(E);return}r.failureCount++,l.onFail==null||l.onFail(r.failureCount,E),B2(T).then(function(){if(!ir.isFocused()||!Ku.isOnline())return g()}).then(function(){i?p(E):w()})}})}};S()},Y2=function(){function n(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var l=n.prototype;return l.batch=function(i){var u;this.transactions++;try{u=i()}finally{this.transactions--,this.transactions||this.flush()}return u},l.schedule=function(i){var u=this;this.transactions?this.queue.push(i):ry(function(){u.notifyFn(i)})},l.batchCalls=function(i){var u=this;return function(){for(var o=arguments.length,d=new Array(o),m=0;m<o;m++)d[m]=arguments[m];u.schedule(function(){i.apply(void 0,d)})}},l.flush=function(){var i=this,u=this.queue;this.queue=[],u.length&&ry(function(){i.batchNotifyFn(function(){u.forEach(function(o){i.notifyFn(o)})})})},l.setNotifyFunction=function(i){this.notifyFn=i},l.setBatchNotifyFunction=function(i){this.batchNotifyFn=i},n}(),Je=new Y2,Nv=console;function so(){return Nv}function V2(n){Nv=n}var $2=function(){function n(r){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=r.meta,this.scheduleGc()}var l=n.prototype;return l.setOptions=function(i){var u;this.options=we({},this.defaultOptions,i),this.meta=i==null?void 0:i.meta,this.cacheTime=Math.max(this.cacheTime||0,(u=this.options.cacheTime)!=null?u:5*60*1e3)},l.setDefaultOptions=function(i){this.defaultOptions=i},l.scheduleGc=function(){var i=this;this.clearGcTimeout(),dd(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){i.optionalRemove()},this.cacheTime))},l.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},l.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},l.setData=function(i,u){var o,d,m=this.state.data,y=M2(i,m);return(o=(d=this.options).isDataEqual)!=null&&o.call(d,m,y)?y=m:this.options.structuralSharing!==!1&&(y=ao(m,y)),this.dispatch({data:y,type:"success",dataUpdatedAt:u==null?void 0:u.updatedAt}),y},l.setState=function(i,u){this.dispatch({type:"setState",state:i,setStateOptions:u})},l.cancel=function(i){var u,o=this.promise;return(u=this.retryer)==null||u.cancel(i),o?o.then(_t).catch(_t):Promise.resolve()},l.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},l.reset=function(){this.destroy(),this.setState(this.initialState)},l.isActive=function(){return this.observers.some(function(i){return i.options.enabled!==!1})},l.isFetching=function(){return this.state.isFetching},l.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(i){return i.getCurrentResult().isStale})},l.isStaleByTime=function(i){return i===void 0&&(i=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Sv(this.state.dataUpdatedAt,i)},l.onFocus=function(){var i,u=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});u&&u.refetch(),(i=this.retryer)==null||i.continue()},l.onOnline=function(){var i,u=this.observers.find(function(o){return o.shouldFetchOnReconnect()});u&&u.refetch(),(i=this.retryer)==null||i.continue()},l.addObserver=function(i){this.observers.indexOf(i)===-1&&(this.observers.push(i),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:i}))},l.removeObserver=function(i){this.observers.indexOf(i)!==-1&&(this.observers=this.observers.filter(function(u){return u!==i}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:i}))},l.getObserversCount=function(){return this.observers.length},l.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},l.fetch=function(i,u){var o=this,d,m,y;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(u!=null&&u.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var p;return(p=this.retryer)==null||p.continueRetry(),this.promise}}if(i&&this.setOptions(i),!this.options.queryFn){var g=this.observers.find(function(D){return D.options.queryFn});g&&this.setOptions(g.options)}var S=to(this.queryKey),w=Ev(),C={queryKey:S,pageParam:void 0,meta:this.meta};Object.defineProperty(C,"signal",{enumerable:!0,get:function(){if(w)return o.abortSignalConsumed=!0,w.signal}});var E=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(C)):Promise.reject("Missing queryFn")},R={fetchOptions:u,options:this.options,queryKey:S,state:this.state,fetchFn:E,meta:this.meta};if((d=this.options.behavior)!=null&&d.onFetch){var j;(j=this.options.behavior)==null||j.onFetch(R)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((m=R.fetchOptions)==null?void 0:m.meta)){var _;this.dispatch({type:"fetch",meta:(_=R.fetchOptions)==null?void 0:_.meta})}return this.retryer=new _v({fn:R.fetchFn,abort:w==null||(y=w.abort)==null?void 0:y.bind(w),onSuccess:function(T){o.setData(T),o.cache.config.onSuccess==null||o.cache.config.onSuccess(T,o),o.cacheTime===0&&o.optionalRemove()},onError:function(T){Fu(T)&&T.silent||o.dispatch({type:"error",error:T}),Fu(T)||(o.cache.config.onError==null||o.cache.config.onError(T,o),so().error(T)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:R.options.retry,retryDelay:R.options.retryDelay}),this.promise=this.retryer.promise,this.promise},l.dispatch=function(i){var u=this;this.state=this.reducer(this.state,i),Je.batch(function(){u.observers.forEach(function(o){o.onQueryUpdate(i)}),u.cache.notify({query:u,type:"queryUpdated",action:i})})},l.getDefaultState=function(i){var u=typeof i.initialData=="function"?i.initialData():i.initialData,o=typeof i.initialData<"u",d=o?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0,m=typeof u<"u";return{data:u,dataUpdateCount:0,dataUpdatedAt:m?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:m?"success":"idle"}},l.reducer=function(i,u){var o,d;switch(u.type){case"failed":return we({},i,{fetchFailureCount:i.fetchFailureCount+1});case"pause":return we({},i,{isPaused:!0});case"continue":return we({},i,{isPaused:!1});case"fetch":return we({},i,{fetchFailureCount:0,fetchMeta:(o=u.meta)!=null?o:null,isFetching:!0,isPaused:!1},!i.dataUpdatedAt&&{error:null,status:"loading"});case"success":return we({},i,{data:u.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:(d=u.dataUpdatedAt)!=null?d:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var m=u.error;return Fu(m)&&m.revert&&this.revertState?we({},this.revertState):we({},i,{error:m,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return we({},i,{isInvalidated:!0});case"setState":return we({},i,u.state);default:return i}},n}(),K2=function(n){Fs(l,n);function l(i){var u;return u=n.call(this)||this,u.config=i||{},u.queries=[],u.queriesMap={},u}var r=l.prototype;return r.build=function(u,o,d){var m,y=o.queryKey,p=(m=o.queryHash)!=null?m:zd(y,o),g=this.get(p);return g||(g=new $2({cache:this,queryKey:y,queryHash:p,options:u.defaultQueryOptions(o),state:d,defaultOptions:u.getQueryDefaults(y),meta:o.meta}),this.add(g)),g},r.add=function(u){this.queriesMap[u.queryHash]||(this.queriesMap[u.queryHash]=u,this.queries.push(u),this.notify({type:"queryAdded",query:u}))},r.remove=function(u){var o=this.queriesMap[u.queryHash];o&&(u.destroy(),this.queries=this.queries.filter(function(d){return d!==u}),o===u&&delete this.queriesMap[u.queryHash],this.notify({type:"queryRemoved",query:u}))},r.clear=function(){var u=this;Je.batch(function(){u.queries.forEach(function(o){u.remove(o)})})},r.get=function(u){return this.queriesMap[u]},r.getAll=function(){return this.queries},r.find=function(u,o){var d=ul(u,o),m=d[0];return typeof m.exact>"u"&&(m.exact=!0),this.queries.find(function(y){return ly(m,y)})},r.findAll=function(u,o){var d=ul(u,o),m=d[0];return Object.keys(m).length>0?this.queries.filter(function(y){return ly(m,y)}):this.queries},r.notify=function(u){var o=this;Je.batch(function(){o.listeners.forEach(function(d){d(u)})})},r.onFocus=function(){var u=this;Je.batch(function(){u.queries.forEach(function(o){o.onFocus()})})},r.onOnline=function(){var u=this;Je.batch(function(){u.queries.forEach(function(o){o.onOnline()})})},l}(Gs),F2=function(){function n(r){this.options=we({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||jv(),this.meta=r.meta}var l=n.prototype;return l.setState=function(i){this.dispatch({type:"setState",state:i})},l.addObserver=function(i){this.observers.indexOf(i)===-1&&this.observers.push(i)},l.removeObserver=function(i){this.observers=this.observers.filter(function(u){return u!==i})},l.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(_t).catch(_t)):Promise.resolve()},l.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},l.execute=function(){var i=this,u,o=this.state.status==="loading",d=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),d=d.then(function(){i.mutationCache.config.onMutate==null||i.mutationCache.config.onMutate(i.state.variables,i)}).then(function(){return i.options.onMutate==null?void 0:i.options.onMutate(i.state.variables)}).then(function(m){m!==i.state.context&&i.dispatch({type:"loading",context:m,variables:i.state.variables})})),d.then(function(){return i.executeMutation()}).then(function(m){u=m,i.mutationCache.config.onSuccess==null||i.mutationCache.config.onSuccess(u,i.state.variables,i.state.context,i)}).then(function(){return i.options.onSuccess==null?void 0:i.options.onSuccess(u,i.state.variables,i.state.context)}).then(function(){return i.options.onSettled==null?void 0:i.options.onSettled(u,null,i.state.variables,i.state.context)}).then(function(){return i.dispatch({type:"success",data:u}),u}).catch(function(m){return i.mutationCache.config.onError==null||i.mutationCache.config.onError(m,i.state.variables,i.state.context,i),so().error(m),Promise.resolve().then(function(){return i.options.onError==null?void 0:i.options.onError(m,i.state.variables,i.state.context)}).then(function(){return i.options.onSettled==null?void 0:i.options.onSettled(void 0,m,i.state.variables,i.state.context)}).then(function(){throw i.dispatch({type:"error",error:m}),m})})},l.executeMutation=function(){var i=this,u;return this.retryer=new _v({fn:function(){return i.options.mutationFn?i.options.mutationFn(i.state.variables):Promise.reject("No mutationFn found")},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:(u=this.options.retry)!=null?u:0,retryDelay:this.options.retryDelay}),this.retryer.promise},l.dispatch=function(i){var u=this;this.state=G2(this.state,i),Je.batch(function(){u.observers.forEach(function(o){o.onMutationUpdate(i)}),u.mutationCache.notify(u)})},n}();function jv(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function G2(n,l){switch(l.type){case"failed":return we({},n,{failureCount:n.failureCount+1});case"pause":return we({},n,{isPaused:!0});case"continue":return we({},n,{isPaused:!1});case"loading":return we({},n,{context:l.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:l.variables});case"success":return we({},n,{data:l.data,error:null,status:"success",isPaused:!1});case"error":return we({},n,{data:void 0,error:l.error,failureCount:n.failureCount+1,isPaused:!1,status:"error"});case"setState":return we({},n,l.state);default:return n}}var Av=function(n){Fs(l,n);function l(i){var u;return u=n.call(this)||this,u.config=i||{},u.mutations=[],u.mutationId=0,u}var r=l.prototype;return r.build=function(u,o,d){var m=new F2({mutationCache:this,mutationId:++this.mutationId,options:u.defaultMutationOptions(o),state:d,defaultOptions:o.mutationKey?u.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(m),m},r.add=function(u){this.mutations.push(u),this.notify(u)},r.remove=function(u){this.mutations=this.mutations.filter(function(o){return o!==u}),u.cancel(),this.notify(u)},r.clear=function(){var u=this;Je.batch(function(){u.mutations.forEach(function(o){u.remove(o)})})},r.getAll=function(){return this.mutations},r.find=function(u){return typeof u.exact>"u"&&(u.exact=!0),this.mutations.find(function(o){return sy(u,o)})},r.findAll=function(u){return this.mutations.filter(function(o){return sy(u,o)})},r.notify=function(u){var o=this;Je.batch(function(){o.listeners.forEach(function(d){d(u)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var u=this.mutations.filter(function(o){return o.state.isPaused});return Je.batch(function(){return u.reduce(function(o,d){return o.then(function(){return d.continue().catch(_t)})},Promise.resolve())})},l}(Gs);function X2(){return{onFetch:function(l){l.fetchFn=function(){var r,i,u,o,d,m,y=(r=l.fetchOptions)==null||(i=r.meta)==null?void 0:i.refetchPage,p=(u=l.fetchOptions)==null||(o=u.meta)==null?void 0:o.fetchMore,g=p==null?void 0:p.pageParam,S=(p==null?void 0:p.direction)==="forward",w=(p==null?void 0:p.direction)==="backward",C=((d=l.state.data)==null?void 0:d.pages)||[],E=((m=l.state.data)==null?void 0:m.pageParams)||[],R=Ev(),j=R==null?void 0:R.signal,_=E,D=!1,T=l.options.queryFn||function(){return Promise.reject("Missing queryFn")},F=function(ye,xe,B,G){return _=G?[xe].concat(_):[].concat(_,[xe]),G?[B].concat(ye):[].concat(ye,[B])},k=function(ye,xe,B,G){if(D)return Promise.reject("Cancelled");if(typeof B>"u"&&!xe&&ye.length)return Promise.resolve(ye);var Z={queryKey:l.queryKey,signal:j,pageParam:B,meta:l.meta},oe=T(Z),A=Promise.resolve(oe).then(function(I){return F(ye,B,I,G)});if(lo(oe)){var Q=A;Q.cancel=oe.cancel}return A},Y;if(!C.length)Y=k([]);else if(S){var J=typeof g<"u",W=J?g:uy(l.options,C);Y=k(C,J,W)}else if(w){var ne=typeof g<"u",pe=ne?g:Z2(l.options,C);Y=k(C,ne,pe,!0)}else(function(){_=[];var Ke=typeof l.options.getNextPageParam>"u",ye=y&&C[0]?y(C[0],0,C):!0;Y=ye?k([],Ke,E[0]):Promise.resolve(F([],E[0],C[0]));for(var xe=function(Z){Y=Y.then(function(oe){var A=y&&C[Z]?y(C[Z],Z,C):!0;if(A){var Q=Ke?E[Z]:uy(l.options,oe);return k(oe,Ke,Q)}return Promise.resolve(F(oe,E[Z],C[Z]))})},B=1;B<C.length;B++)xe(B)})();var Be=Y.then(function(Ke){return{pages:Ke,pageParams:_}}),Ee=Be;return Ee.cancel=function(){D=!0,R==null||R.abort(),lo(Y)&&Y.cancel()},Be}}}}function uy(n,l){return n.getNextPageParam==null?void 0:n.getNextPageParam(l[l.length-1],l)}function Z2(n,l){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(l[0],l)}var J2=function(){function n(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new K2,this.mutationCache=r.mutationCache||new Av,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var l=n.prototype;return l.mount=function(){var i=this;this.unsubscribeFocus=ir.subscribe(function(){ir.isFocused()&&Ku.isOnline()&&(i.mutationCache.onFocus(),i.queryCache.onFocus())}),this.unsubscribeOnline=Ku.subscribe(function(){ir.isFocused()&&Ku.isOnline()&&(i.mutationCache.onOnline(),i.queryCache.onOnline())})},l.unmount=function(){var i,u;(i=this.unsubscribeFocus)==null||i.call(this),(u=this.unsubscribeOnline)==null||u.call(this)},l.isFetching=function(i,u){var o=ul(i,u),d=o[0];return d.fetching=!0,this.queryCache.findAll(d).length},l.isMutating=function(i){return this.mutationCache.findAll(we({},i,{fetching:!0})).length},l.getQueryData=function(i,u){var o;return(o=this.queryCache.find(i,u))==null?void 0:o.state.data},l.getQueriesData=function(i){return this.getQueryCache().findAll(i).map(function(u){var o=u.queryKey,d=u.state,m=d.data;return[o,m]})},l.setQueryData=function(i,u,o){var d=$u(i),m=this.defaultQueryOptions(d);return this.queryCache.build(this,m).setData(u,o)},l.setQueriesData=function(i,u,o){var d=this;return Je.batch(function(){return d.getQueryCache().findAll(i).map(function(m){var y=m.queryKey;return[y,d.setQueryData(y,u,o)]})})},l.getQueryState=function(i,u){var o;return(o=this.queryCache.find(i,u))==null?void 0:o.state},l.removeQueries=function(i,u){var o=ul(i,u),d=o[0],m=this.queryCache;Je.batch(function(){m.findAll(d).forEach(function(y){m.remove(y)})})},l.resetQueries=function(i,u,o){var d=this,m=ul(i,u,o),y=m[0],p=m[1],g=this.queryCache,S=we({},y,{active:!0});return Je.batch(function(){return g.findAll(y).forEach(function(w){w.reset()}),d.refetchQueries(S,p)})},l.cancelQueries=function(i,u,o){var d=this,m=ul(i,u,o),y=m[0],p=m[1],g=p===void 0?{}:p;typeof g.revert>"u"&&(g.revert=!0);var S=Je.batch(function(){return d.queryCache.findAll(y).map(function(w){return w.cancel(g)})});return Promise.all(S).then(_t).catch(_t)},l.invalidateQueries=function(i,u,o){var d,m,y,p=this,g=ul(i,u,o),S=g[0],w=g[1],C=we({},S,{active:(d=(m=S.refetchActive)!=null?m:S.active)!=null?d:!0,inactive:(y=S.refetchInactive)!=null?y:!1});return Je.batch(function(){return p.queryCache.findAll(S).forEach(function(E){E.invalidate()}),p.refetchQueries(C,w)})},l.refetchQueries=function(i,u,o){var d=this,m=ul(i,u,o),y=m[0],p=m[1],g=Je.batch(function(){return d.queryCache.findAll(y).map(function(w){return w.fetch(void 0,we({},p,{meta:{refetchPage:y==null?void 0:y.refetchPage}}))})}),S=Promise.all(g).then(_t);return p!=null&&p.throwOnError||(S=S.catch(_t)),S},l.fetchQuery=function(i,u,o){var d=$u(i,u,o),m=this.defaultQueryOptions(d);typeof m.retry>"u"&&(m.retry=!1);var y=this.queryCache.build(this,m);return y.isStaleByTime(m.staleTime)?y.fetch(m):Promise.resolve(y.state.data)},l.prefetchQuery=function(i,u,o){return this.fetchQuery(i,u,o).then(_t).catch(_t)},l.fetchInfiniteQuery=function(i,u,o){var d=$u(i,u,o);return d.behavior=X2(),this.fetchQuery(d)},l.prefetchInfiniteQuery=function(i,u,o){return this.fetchInfiniteQuery(i,u,o).then(_t).catch(_t)},l.cancelMutations=function(){var i=this,u=Je.batch(function(){return i.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(u).then(_t).catch(_t)},l.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},l.executeMutation=function(i){return this.mutationCache.build(this,i).execute()},l.getQueryCache=function(){return this.queryCache},l.getMutationCache=function(){return this.mutationCache},l.getDefaultOptions=function(){return this.defaultOptions},l.setDefaultOptions=function(i){this.defaultOptions=i},l.setQueryDefaults=function(i,u){var o=this.queryDefaults.find(function(d){return Bl(i)===Bl(d.queryKey)});o?o.defaultOptions=u:this.queryDefaults.push({queryKey:i,defaultOptions:u})},l.getQueryDefaults=function(i){var u;return i?(u=this.queryDefaults.find(function(o){return no(i,o.queryKey)}))==null?void 0:u.defaultOptions:void 0},l.setMutationDefaults=function(i,u){var o=this.mutationDefaults.find(function(d){return Bl(i)===Bl(d.mutationKey)});o?o.defaultOptions=u:this.mutationDefaults.push({mutationKey:i,defaultOptions:u})},l.getMutationDefaults=function(i){var u;return i?(u=this.mutationDefaults.find(function(o){return no(i,o.mutationKey)}))==null?void 0:u.defaultOptions:void 0},l.defaultQueryOptions=function(i){if(i!=null&&i._defaulted)return i;var u=we({},this.defaultOptions.queries,this.getQueryDefaults(i==null?void 0:i.queryKey),i,{_defaulted:!0});return!u.queryHash&&u.queryKey&&(u.queryHash=zd(u.queryKey,u)),u},l.defaultQueryObserverOptions=function(i){return this.defaultQueryOptions(i)},l.defaultMutationOptions=function(i){return i!=null&&i._defaulted?i:we({},this.defaultOptions.mutations,this.getMutationDefaults(i==null?void 0:i.mutationKey),i,{_defaulted:!0})},l.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},n}(),P2=function(n){Fs(l,n);function l(i,u){var o;return o=n.call(this)||this,o.client=i,o.options=u,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(u),o}var r=l.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),oy(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return md(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return md(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(u,o){var d=this.options,m=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(u),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=d.queryKey),this.updateQuery();var y=this.hasListeners();y&&cy(this.currentQuery,m,this.options,d)&&this.executeFetch(),this.updateResult(o),y&&(this.currentQuery!==m||this.options.enabled!==d.enabled||this.options.staleTime!==d.staleTime)&&this.updateStaleTimeout();var p=this.computeRefetchInterval();y&&(this.currentQuery!==m||this.options.enabled!==d.enabled||p!==this.currentRefetchInterval)&&this.updateRefetchInterval(p)},r.getOptimisticResult=function(u){var o=this.client.defaultQueryObserverOptions(u),d=this.client.getQueryCache().build(this.client,o);return this.createResult(d,o)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(u,o){var d=this,m={},y=function(g){d.trackedProps.includes(g)||d.trackedProps.push(g)};return Object.keys(u).forEach(function(p){Object.defineProperty(m,p,{configurable:!1,enumerable:!0,get:function(){return y(p),u[p]}})}),(o.useErrorBoundary||o.suspense)&&y("error"),m},r.getNextResult=function(u){var o=this;return new Promise(function(d,m){var y=o.subscribe(function(p){p.isFetching||(y(),p.isError&&(u!=null&&u.throwOnError)?m(p.error):d(p))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(u){return this.fetch(we({},u,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))},r.fetchOptimistic=function(u){var o=this,d=this.client.defaultQueryObserverOptions(u),m=this.client.getQueryCache().build(this.client,d);return m.fetch().then(function(){return o.createResult(m,d)})},r.fetch=function(u){var o=this;return this.executeFetch(u).then(function(){return o.updateResult(),o.currentResult})},r.executeFetch=function(u){this.updateQuery();var o=this.currentQuery.fetch(this.options,u);return u!=null&&u.throwOnError||(o=o.catch(_t)),o},r.updateStaleTimeout=function(){var u=this;if(this.clearStaleTimeout(),!(eo||this.currentResult.isStale||!dd(this.options.staleTime))){var o=Sv(this.currentResult.dataUpdatedAt,this.options.staleTime),d=o+1;this.staleTimeoutId=setTimeout(function(){u.currentResult.isStale||u.updateResult()},d)}},r.computeRefetchInterval=function(){var u;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(u=this.options.refetchInterval)!=null?u:!1},r.updateRefetchInterval=function(u){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=u,!(eo||this.options.enabled===!1||!dd(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||ir.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(u,o){var d=this.currentQuery,m=this.options,y=this.currentResult,p=this.currentResultState,g=this.currentResultOptions,S=u!==d,w=S?u.state:this.currentQueryInitialState,C=S?this.currentResult:this.previousQueryResult,E=u.state,R=E.dataUpdatedAt,j=E.error,_=E.errorUpdatedAt,D=E.isFetching,T=E.status,F=!1,k=!1,Y;if(o.optimisticResults){var J=this.hasListeners(),W=!J&&oy(u,o),ne=J&&cy(u,d,o,m);(W||ne)&&(D=!0,R||(T="loading"))}if(o.keepPreviousData&&!E.dataUpdateCount&&(C!=null&&C.isSuccess)&&T!=="error")Y=C.data,R=C.dataUpdatedAt,T=C.status,F=!0;else if(o.select&&typeof E.data<"u")if(y&&E.data===(p==null?void 0:p.data)&&o.select===this.selectFn)Y=this.selectResult;else try{this.selectFn=o.select,Y=o.select(E.data),o.structuralSharing!==!1&&(Y=ao(y==null?void 0:y.data,Y)),this.selectResult=Y,this.selectError=null}catch(Ee){so().error(Ee),this.selectError=Ee}else Y=E.data;if(typeof o.placeholderData<"u"&&typeof Y>"u"&&(T==="loading"||T==="idle")){var pe;if(y!=null&&y.isPlaceholderData&&o.placeholderData===(g==null?void 0:g.placeholderData))pe=y.data;else if(pe=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof pe<"u")try{pe=o.select(pe),o.structuralSharing!==!1&&(pe=ao(y==null?void 0:y.data,pe)),this.selectError=null}catch(Ee){so().error(Ee),this.selectError=Ee}typeof pe<"u"&&(T="success",Y=pe,k=!0)}this.selectError&&(j=this.selectError,Y=this.selectResult,_=Date.now(),T="error");var Be={status:T,isLoading:T==="loading",isSuccess:T==="success",isError:T==="error",isIdle:T==="idle",data:Y,dataUpdatedAt:R,error:j,errorUpdatedAt:_,failureCount:E.fetchFailureCount,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>w.dataUpdateCount||E.errorUpdateCount>w.errorUpdateCount,isFetching:D,isRefetching:D&&T!=="loading",isLoadingError:T==="error"&&E.dataUpdatedAt===0,isPlaceholderData:k,isPreviousData:F,isRefetchError:T==="error"&&E.dataUpdatedAt!==0,isStale:qd(u,o),refetch:this.refetch,remove:this.remove};return Be},r.shouldNotifyListeners=function(u,o){if(!o)return!0;var d=this.options,m=d.notifyOnChangeProps,y=d.notifyOnChangePropsExclusions;if(!m&&!y||m==="tracked"&&!this.trackedProps.length)return!0;var p=m==="tracked"?this.trackedProps:m;return Object.keys(u).some(function(g){var S=g,w=u[S]!==o[S],C=p==null?void 0:p.some(function(R){return R===g}),E=y==null?void 0:y.some(function(R){return R===g});return w&&!E&&(!p||C)})},r.updateResult=function(u){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!q2(this.currentResult,o)){var d={cache:!0};(u==null?void 0:u.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(d.listeners=!0),this.notify(we({},d,u))}},r.updateQuery=function(){var u=this.client.getQueryCache().build(this.client,this.options);if(u!==this.currentQuery){var o=this.currentQuery;this.currentQuery=u,this.currentQueryInitialState=u.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),u.addObserver(this))}},r.onQueryUpdate=function(u){var o={};u.type==="success"?o.onSuccess=!0:u.type==="error"&&!Fu(u.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},r.notify=function(u){var o=this;Je.batch(function(){u.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):u.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),u.listeners&&o.listeners.forEach(function(d){d(o.currentResult)}),u.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},l}(Gs);function I2(n,l){return l.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&l.retryOnMount===!1)}function oy(n,l){return I2(n,l)||n.state.dataUpdatedAt>0&&md(n,l,l.refetchOnMount)}function md(n,l,r){if(l.enabled!==!1){var i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&qd(n,l)}return!1}function cy(n,l,r,i){return r.enabled!==!1&&(n!==l||i.enabled===!1)&&(!r.suspense||n.state.status!=="error")&&qd(n,r)}function qd(n,l){return n.isStaleByTime(l.staleTime)}var W2=function(n){Fs(l,n);function l(i,u){var o;return o=n.call(this)||this,o.client=i,o.setOptions(u),o.bindMethods(),o.updateResult(),o}var r=l.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(u){this.options=this.client.defaultMutationOptions(u)},r.onUnsubscribe=function(){if(!this.listeners.length){var u;(u=this.currentMutation)==null||u.removeObserver(this)}},r.onMutationUpdate=function(u){this.updateResult();var o={listeners:!0};u.type==="success"?o.onSuccess=!0:u.type==="error"&&(o.onError=!0),this.notify(o)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(u,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,we({},this.options,{variables:typeof u<"u"?u:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var u=this.currentMutation?this.currentMutation.state:jv(),o=we({},u,{isLoading:u.status==="loading",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},r.notify=function(u){var o=this;Je.batch(function(){o.mutateOptions&&(u.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):u.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),u.listeners&&o.listeners.forEach(function(d){d(o.currentResult)})})},l}(Gs),eS=D2.unstable_batchedUpdates;Je.setBatchNotifyFunction(eS);var tS=console;V2(tS);var fy=$e.createContext(void 0),Tv=$e.createContext(!1);function Rv(n){return n&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=fy),window.ReactQueryClientContext):fy}var Ov=function(){var l=$e.useContext(Rv($e.useContext(Tv)));if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},nS=function(l){var r=l.client,i=l.contextSharing,u=i===void 0?!1:i,o=l.children;$e.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var d=Rv(u);return $e.createElement(Tv.Provider,{value:u},$e.createElement(d.Provider,{value:r},o))};function aS(){var n=!1;return{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}}var lS=$e.createContext(aS()),sS=function(){return $e.useContext(lS)};function Dv(n,l,r){return typeof l=="function"?l.apply(void 0,r):typeof l=="boolean"?l:!!n}function zt(n,l,r){var i=$e.useRef(!1),u=$e.useState(0),o=u[1],d=U2(n,l,r),m=Ov(),y=$e.useRef();y.current?y.current.setOptions(d):y.current=new W2(m,d);var p=y.current.getCurrentResult();$e.useEffect(function(){i.current=!0;var S=y.current.subscribe(Je.batchCalls(function(){i.current&&o(function(w){return w+1})}));return function(){i.current=!1,S()}},[]);var g=$e.useCallback(function(S,w){y.current.mutate(S,w).catch(_t)},[]);if(p.error&&Dv(void 0,y.current.options.useErrorBoundary,[p.error]))throw p.error;return we({},p,{mutate:g,mutateAsync:p.mutate})}function iS(n,l){var r=$e.useRef(!1),i=$e.useState(0),u=i[1],o=Ov(),d=sS(),m=o.defaultQueryObserverOptions(n);m.optimisticResults=!0,m.onError&&(m.onError=Je.batchCalls(m.onError)),m.onSuccess&&(m.onSuccess=Je.batchCalls(m.onSuccess)),m.onSettled&&(m.onSettled=Je.batchCalls(m.onSettled)),m.suspense&&(typeof m.staleTime!="number"&&(m.staleTime=1e3),m.cacheTime===0&&(m.cacheTime=1)),(m.suspense||m.useErrorBoundary)&&(d.isReset()||(m.retryOnMount=!1));var y=$e.useState(function(){return new l(o,m)}),p=y[0],g=p.getOptimisticResult(m);if($e.useEffect(function(){r.current=!0,d.clearReset();var S=p.subscribe(Je.batchCalls(function(){r.current&&u(function(w){return w+1})}));return p.updateResult(),function(){r.current=!1,S()}},[d,p]),$e.useEffect(function(){p.setOptions(m,{listeners:!1})},[m,p]),m.suspense&&g.isLoading)throw p.fetchOptimistic(m).then(function(S){var w=S.data;m.onSuccess==null||m.onSuccess(w),m.onSettled==null||m.onSettled(w,null)}).catch(function(S){d.clearReset(),m.onError==null||m.onError(S),m.onSettled==null||m.onSettled(void 0,S)});if(g.isError&&!d.isReset()&&!g.isFetching&&Dv(m.suspense,m.useErrorBoundary,[g.error,p.getCurrentQuery()]))throw g.error;return m.notifyOnChangeProps==="tracked"&&(g=p.trackResult(g,m)),g}function It(n,l,r){var i=$u(n,l,r);return iS(i,P2)}function Mv(n,l){return function(){return n.apply(l,arguments)}}const{toString:rS}=Object.prototype,{getPrototypeOf:Bd}=Object,{iterator:go,toStringTag:Uv}=Symbol,bo=(n=>l=>{const r=rS.call(l);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Bn=n=>(n=n.toLowerCase(),l=>bo(l)===n),xo=n=>l=>typeof l===n,{isArray:Xs}=Array,or=xo("undefined");function uS(n){return n!==null&&!or(n)&&n.constructor!==null&&!or(n.constructor)&&Xt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Lv=Bn("ArrayBuffer");function oS(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&Lv(n.buffer),l}const cS=xo("string"),Xt=xo("function"),zv=xo("number"),So=n=>n!==null&&typeof n=="object",fS=n=>n===!0||n===!1,Gu=n=>{if(bo(n)!=="object")return!1;const l=Bd(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Uv in n)&&!(go in n)},dS=Bn("Date"),hS=Bn("File"),mS=Bn("Blob"),pS=Bn("FileList"),yS=n=>So(n)&&Xt(n.pipe),vS=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||Xt(n.append)&&((l=bo(n))==="formdata"||l==="object"&&Xt(n.toString)&&n.toString()==="[object FormData]"))},gS=Bn("URLSearchParams"),[bS,xS,SS,wS]=["ReadableStream","Request","Response","Headers"].map(Bn),ES=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(n,l,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let i,u;if(typeof n!="object"&&(n=[n]),Xs(n))for(i=0,u=n.length;i<u;i++)l.call(null,n[i],i,n);else{const o=r?Object.getOwnPropertyNames(n):Object.keys(n),d=o.length;let m;for(i=0;i<d;i++)m=o[i],l.call(null,n[m],m,n)}}function qv(n,l){l=l.toLowerCase();const r=Object.keys(n);let i=r.length,u;for(;i-- >0;)if(u=r[i],l===u.toLowerCase())return u;return null}const Hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bv=n=>!or(n)&&n!==Hl;function pd(){const{caseless:n}=Bv(this)&&this||{},l={},r=(i,u)=>{const o=n&&qv(l,u)||u;Gu(l[o])&&Gu(i)?l[o]=pd(l[o],i):Gu(i)?l[o]=pd({},i):Xs(i)?l[o]=i.slice():l[o]=i};for(let i=0,u=arguments.length;i<u;i++)arguments[i]&&pr(arguments[i],r);return l}const CS=(n,l,r,{allOwnKeys:i}={})=>(pr(l,(u,o)=>{r&&Xt(u)?n[o]=Mv(u,r):n[o]=u},{allOwnKeys:i}),n),_S=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),NS=(n,l,r,i)=>{n.prototype=Object.create(l.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:l.prototype}),r&&Object.assign(n.prototype,r)},jS=(n,l,r,i)=>{let u,o,d;const m={};if(l=l||{},n==null)return l;do{for(u=Object.getOwnPropertyNames(n),o=u.length;o-- >0;)d=u[o],(!i||i(d,n,l))&&!m[d]&&(l[d]=n[d],m[d]=!0);n=r!==!1&&Bd(n)}while(n&&(!r||r(n,l))&&n!==Object.prototype);return l},AS=(n,l,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=l.length;const i=n.indexOf(l,r);return i!==-1&&i===r},TS=n=>{if(!n)return null;if(Xs(n))return n;let l=n.length;if(!zv(l))return null;const r=new Array(l);for(;l-- >0;)r[l]=n[l];return r},RS=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Bd(Uint8Array)),OS=(n,l)=>{const i=(n&&n[go]).call(n);let u;for(;(u=i.next())&&!u.done;){const o=u.value;l.call(n,o[0],o[1])}},DS=(n,l)=>{let r;const i=[];for(;(r=n.exec(l))!==null;)i.push(r);return i},MS=Bn("HTMLFormElement"),US=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,u){return i.toUpperCase()+u}),dy=(({hasOwnProperty:n})=>(l,r)=>n.call(l,r))(Object.prototype),LS=Bn("RegExp"),Hv=(n,l)=>{const r=Object.getOwnPropertyDescriptors(n),i={};pr(r,(u,o)=>{let d;(d=l(u,o,n))!==!1&&(i[o]=d||u)}),Object.defineProperties(n,i)},zS=n=>{Hv(n,(l,r)=>{if(Xt(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=n[r];if(Xt(i)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},qS=(n,l)=>{const r={},i=u=>{u.forEach(o=>{r[o]=!0})};return Xs(n)?i(n):i(String(n).split(l)),r},BS=()=>{},HS=(n,l)=>n!=null&&Number.isFinite(n=+n)?n:l;function kS(n){return!!(n&&Xt(n.append)&&n[Uv]==="FormData"&&n[go])}const QS=n=>{const l=new Array(10),r=(i,u)=>{if(So(i)){if(l.indexOf(i)>=0)return;if(!("toJSON"in i)){l[u]=i;const o=Xs(i)?[]:{};return pr(i,(d,m)=>{const y=r(d,u+1);!or(y)&&(o[m]=y)}),l[u]=void 0,o}}return i};return r(n,0)},YS=Bn("AsyncFunction"),VS=n=>n&&(So(n)||Xt(n))&&Xt(n.then)&&Xt(n.catch),kv=((n,l)=>n?setImmediate:l?((r,i)=>(Hl.addEventListener("message",({source:u,data:o})=>{u===Hl&&o===r&&i.length&&i.shift()()},!1),u=>{i.push(u),Hl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xt(Hl.postMessage)),$S=typeof queueMicrotask<"u"?queueMicrotask.bind(Hl):typeof process<"u"&&process.nextTick||kv,KS=n=>n!=null&&Xt(n[go]),H={isArray:Xs,isArrayBuffer:Lv,isBuffer:uS,isFormData:vS,isArrayBufferView:oS,isString:cS,isNumber:zv,isBoolean:fS,isObject:So,isPlainObject:Gu,isReadableStream:bS,isRequest:xS,isResponse:SS,isHeaders:wS,isUndefined:or,isDate:dS,isFile:hS,isBlob:mS,isRegExp:LS,isFunction:Xt,isStream:yS,isURLSearchParams:gS,isTypedArray:RS,isFileList:pS,forEach:pr,merge:pd,extend:CS,trim:ES,stripBOM:_S,inherits:NS,toFlatObject:jS,kindOf:bo,kindOfTest:Bn,endsWith:AS,toArray:TS,forEachEntry:OS,matchAll:DS,isHTMLForm:MS,hasOwnProperty:dy,hasOwnProp:dy,reduceDescriptors:Hv,freezeMethods:zS,toObjectSet:qS,toCamelCase:US,noop:BS,toFiniteNumber:HS,findKey:qv,global:Hl,isContextDefined:Bv,isSpecCompliantForm:kS,toJSONObject:QS,isAsyncFn:YS,isThenable:VS,setImmediate:kv,asap:$S,isIterable:KS};function ve(n,l,r,i,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",l&&(this.code=l),r&&(this.config=r),i&&(this.request=i),u&&(this.response=u,this.status=u.status?u.status:null)}H.inherits(ve,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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Qv=ve.prototype,Yv={};["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=>{Yv[n]={value:n}});Object.defineProperties(ve,Yv);Object.defineProperty(Qv,"isAxiosError",{value:!0});ve.from=(n,l,r,i,u,o)=>{const d=Object.create(Qv);return H.toFlatObject(n,d,function(y){return y!==Error.prototype},m=>m!=="isAxiosError"),ve.call(d,n.message,l,r,i,u),d.cause=n,d.name=n.name,o&&Object.assign(d,o),d};const FS=null;function yd(n){return H.isPlainObject(n)||H.isArray(n)}function Vv(n){return H.endsWith(n,"[]")?n.slice(0,-2):n}function hy(n,l,r){return n?n.concat(l).map(function(u,o){return u=Vv(u),!r&&o?"["+u+"]":u}).join(r?".":""):l}function GS(n){return H.isArray(n)&&!n.some(yd)}const XS=H.toFlatObject(H,{},null,function(l){return/^is[A-Z]/.test(l)});function wo(n,l,r){if(!H.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,j){return!H.isUndefined(j[R])});const i=r.metaTokens,u=r.visitor||g,o=r.dots,d=r.indexes,y=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(l);if(!H.isFunction(u))throw new TypeError("visitor must be a function");function p(E){if(E===null)return"";if(H.isDate(E))return E.toISOString();if(!y&&H.isBlob(E))throw new ve("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(E)||H.isTypedArray(E)?y&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function g(E,R,j){let _=E;if(E&&!j&&typeof E=="object"){if(H.endsWith(R,"{}"))R=i?R:R.slice(0,-2),E=JSON.stringify(E);else if(H.isArray(E)&&GS(E)||(H.isFileList(E)||H.endsWith(R,"[]"))&&(_=H.toArray(E)))return R=Vv(R),_.forEach(function(T,F){!(H.isUndefined(T)||T===null)&&l.append(d===!0?hy([R],F,o):d===null?R:R+"[]",p(T))}),!1}return yd(E)?!0:(l.append(hy(j,R,o),p(E)),!1)}const S=[],w=Object.assign(XS,{defaultVisitor:g,convertValue:p,isVisitable:yd});function C(E,R){if(!H.isUndefined(E)){if(S.indexOf(E)!==-1)throw Error("Circular reference detected in "+R.join("."));S.push(E),H.forEach(E,function(_,D){(!(H.isUndefined(_)||_===null)&&u.call(l,_,H.isString(D)?D.trim():D,R,w))===!0&&C(_,R?R.concat(D):[D])}),S.pop()}}if(!H.isObject(n))throw new TypeError("data must be an object");return C(n),l}function my(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return l[i]})}function Hd(n,l){this._pairs=[],n&&wo(n,this,l)}const $v=Hd.prototype;$v.append=function(l,r){this._pairs.push([l,r])};$v.toString=function(l){const r=l?function(i){return l.call(this,i,my)}:my;return this._pairs.map(function(u){return r(u[0])+"="+r(u[1])},"").join("&")};function ZS(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kv(n,l,r){if(!l)return n;const i=r&&r.encode||ZS;H.isFunction(r)&&(r={serialize:r});const u=r&&r.serialize;let o;if(u?o=u(l,r):o=H.isURLSearchParams(l)?l.toString():new Hd(l,r).toString(i),o){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class py{constructor(){this.handlers=[]}use(l,r,i){return this.handlers.push({fulfilled:l,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){H.forEach(this.handlers,function(i){i!==null&&l(i)})}}const Fv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JS=typeof URLSearchParams<"u"?URLSearchParams:Hd,PS=typeof FormData<"u"?FormData:null,IS=typeof Blob<"u"?Blob:null,WS={isBrowser:!0,classes:{URLSearchParams:JS,FormData:PS,Blob:IS},protocols:["http","https","file","blob","url","data"]},kd=typeof window<"u"&&typeof document<"u",vd=typeof navigator=="object"&&navigator||void 0,ew=kd&&(!vd||["ReactNative","NativeScript","NS"].indexOf(vd.product)<0),tw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nw=kd&&window.location.href||"http://localhost",aw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kd,hasStandardBrowserEnv:ew,hasStandardBrowserWebWorkerEnv:tw,navigator:vd,origin:nw},Symbol.toStringTag,{value:"Module"})),Mt={...aw,...WS};function lw(n,l){return wo(n,new Mt.classes.URLSearchParams,Object.assign({visitor:function(r,i,u,o){return Mt.isNode&&H.isBuffer(r)?(this.append(i,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},l))}function sw(n){return H.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function iw(n){const l={},r=Object.keys(n);let i;const u=r.length;let o;for(i=0;i<u;i++)o=r[i],l[o]=n[o];return l}function Gv(n){function l(r,i,u,o){let d=r[o++];if(d==="__proto__")return!0;const m=Number.isFinite(+d),y=o>=r.length;return d=!d&&H.isArray(u)?u.length:d,y?(H.hasOwnProp(u,d)?u[d]=[u[d],i]:u[d]=i,!m):((!u[d]||!H.isObject(u[d]))&&(u[d]=[]),l(r,i,u[d],o)&&H.isArray(u[d])&&(u[d]=iw(u[d])),!m)}if(H.isFormData(n)&&H.isFunction(n.entries)){const r={};return H.forEachEntry(n,(i,u)=>{l(sw(i),u,r,0)}),r}return null}function rw(n,l,r){if(H.isString(n))try{return(l||JSON.parse)(n),H.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(n)}const yr={transitional:Fv,adapter:["xhr","http","fetch"],transformRequest:[function(l,r){const i=r.getContentType()||"",u=i.indexOf("application/json")>-1,o=H.isObject(l);if(o&&H.isHTMLForm(l)&&(l=new FormData(l)),H.isFormData(l))return u?JSON.stringify(Gv(l)):l;if(H.isArrayBuffer(l)||H.isBuffer(l)||H.isStream(l)||H.isFile(l)||H.isBlob(l)||H.isReadableStream(l))return l;if(H.isArrayBufferView(l))return l.buffer;if(H.isURLSearchParams(l))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let m;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return lw(l,this.formSerializer).toString();if((m=H.isFileList(l))||i.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return wo(m?{"files[]":l}:l,y&&new y,this.formSerializer)}}return o||u?(r.setContentType("application/json",!1),rw(l)):l}],transformResponse:[function(l){const r=this.transitional||yr.transitional,i=r&&r.forcedJSONParsing,u=this.responseType==="json";if(H.isResponse(l)||H.isReadableStream(l))return l;if(l&&H.isString(l)&&(i&&!this.responseType||u)){const d=!(r&&r.silentJSONParsing)&&u;try{return JSON.parse(l)}catch(m){if(d)throw m.name==="SyntaxError"?ve.from(m,ve.ERR_BAD_RESPONSE,this,null,this.response):m}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mt.classes.FormData,Blob:Mt.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],n=>{yr.headers[n]={}});const uw=H.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"]),ow=n=>{const l={};let r,i,u;return n&&n.split(`
52
- `).forEach(function(d){u=d.indexOf(":"),r=d.substring(0,u).trim().toLowerCase(),i=d.substring(u+1).trim(),!(!r||l[r]&&uw[r])&&(r==="set-cookie"?l[r]?l[r].push(i):l[r]=[i]:l[r]=l[r]?l[r]+", "+i:i)}),l},yy=Symbol("internals");function tr(n){return n&&String(n).trim().toLowerCase()}function Xu(n){return n===!1||n==null?n:H.isArray(n)?n.map(Xu):String(n)}function cw(n){const l=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(n);)l[i[1]]=i[2];return l}const fw=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Zf(n,l,r,i,u){if(H.isFunction(i))return i.call(this,l,r);if(u&&(l=r),!!H.isString(l)){if(H.isString(i))return l.indexOf(i)!==-1;if(H.isRegExp(i))return i.test(l)}}function dw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,r,i)=>r.toUpperCase()+i)}function hw(n,l){const r=H.toCamelCase(" "+l);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+r,{value:function(u,o,d){return this[i].call(this,l,u,o,d)},configurable:!0})})}let Zt=class{constructor(l){l&&this.set(l)}set(l,r,i){const u=this;function o(m,y,p){const g=tr(y);if(!g)throw new Error("header name must be a non-empty string");const S=H.findKey(u,g);(!S||u[S]===void 0||p===!0||p===void 0&&u[S]!==!1)&&(u[S||y]=Xu(m))}const d=(m,y)=>H.forEach(m,(p,g)=>o(p,g,y));if(H.isPlainObject(l)||l instanceof this.constructor)d(l,r);else if(H.isString(l)&&(l=l.trim())&&!fw(l))d(ow(l),r);else if(H.isObject(l)&&H.isIterable(l)){let m={},y,p;for(const g of l){if(!H.isArray(g))throw TypeError("Object iterator must return a key-value pair");m[p=g[0]]=(y=m[p])?H.isArray(y)?[...y,g[1]]:[y,g[1]]:g[1]}d(m,r)}else l!=null&&o(r,l,i);return this}get(l,r){if(l=tr(l),l){const i=H.findKey(this,l);if(i){const u=this[i];if(!r)return u;if(r===!0)return cw(u);if(H.isFunction(r))return r.call(this,u,i);if(H.isRegExp(r))return r.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,r){if(l=tr(l),l){const i=H.findKey(this,l);return!!(i&&this[i]!==void 0&&(!r||Zf(this,this[i],i,r)))}return!1}delete(l,r){const i=this;let u=!1;function o(d){if(d=tr(d),d){const m=H.findKey(i,d);m&&(!r||Zf(i,i[m],m,r))&&(delete i[m],u=!0)}}return H.isArray(l)?l.forEach(o):o(l),u}clear(l){const r=Object.keys(this);let i=r.length,u=!1;for(;i--;){const o=r[i];(!l||Zf(this,this[o],o,l,!0))&&(delete this[o],u=!0)}return u}normalize(l){const r=this,i={};return H.forEach(this,(u,o)=>{const d=H.findKey(i,o);if(d){r[d]=Xu(u),delete r[o];return}const m=l?dw(o):String(o).trim();m!==o&&delete r[o],r[m]=Xu(u),i[m]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const r=Object.create(null);return H.forEach(this,(i,u)=>{i!=null&&i!==!1&&(r[u]=l&&H.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,r])=>l+": "+r).join(`
53
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...r){const i=new this(l);return r.forEach(u=>i.set(u)),i}static accessor(l){const i=(this[yy]=this[yy]={accessors:{}}).accessors,u=this.prototype;function o(d){const m=tr(d);i[m]||(hw(u,d),i[m]=!0)}return H.isArray(l)?l.forEach(o):o(l),this}};Zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(Zt.prototype,({value:n},l)=>{let r=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(i){this[r]=i}}});H.freezeMethods(Zt);function Jf(n,l){const r=this||yr,i=l||r,u=Zt.from(i.headers);let o=i.data;return H.forEach(n,function(m){o=m.call(r,o,u.normalize(),l?l.status:void 0)}),u.normalize(),o}function Xv(n){return!!(n&&n.__CANCEL__)}function Zs(n,l,r){ve.call(this,n??"canceled",ve.ERR_CANCELED,l,r),this.name="CanceledError"}H.inherits(Zs,ve,{__CANCEL__:!0});function Zv(n,l,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?n(r):l(new ve("Request failed with status code "+r.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function mw(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function pw(n,l){n=n||10;const r=new Array(n),i=new Array(n);let u=0,o=0,d;return l=l!==void 0?l:1e3,function(y){const p=Date.now(),g=i[o];d||(d=p),r[u]=y,i[u]=p;let S=o,w=0;for(;S!==u;)w+=r[S++],S=S%n;if(u=(u+1)%n,u===o&&(o=(o+1)%n),p-d<l)return;const C=g&&p-g;return C?Math.round(w*1e3/C):void 0}}function yw(n,l){let r=0,i=1e3/l,u,o;const d=(p,g=Date.now())=>{r=g,u=null,o&&(clearTimeout(o),o=null),n.apply(null,p)};return[(...p)=>{const g=Date.now(),S=g-r;S>=i?d(p,g):(u=p,o||(o=setTimeout(()=>{o=null,d(u)},i-S)))},()=>u&&d(u)]}const io=(n,l,r=3)=>{let i=0;const u=pw(50,250);return yw(o=>{const d=o.loaded,m=o.lengthComputable?o.total:void 0,y=d-i,p=u(y),g=d<=m;i=d;const S={loaded:d,total:m,progress:m?d/m:void 0,bytes:y,rate:p||void 0,estimated:p&&m&&g?(m-d)/p:void 0,event:o,lengthComputable:m!=null,[l?"download":"upload"]:!0};n(S)},r)},vy=(n,l)=>{const r=n!=null;return[i=>l[0]({lengthComputable:r,total:n,loaded:i}),l[1]]},gy=n=>(...l)=>H.asap(()=>n(...l)),vw=Mt.hasStandardBrowserEnv?((n,l)=>r=>(r=new URL(r,Mt.origin),n.protocol===r.protocol&&n.host===r.host&&(l||n.port===r.port)))(new URL(Mt.origin),Mt.navigator&&/(msie|trident)/i.test(Mt.navigator.userAgent)):()=>!0,gw=Mt.hasStandardBrowserEnv?{write(n,l,r,i,u,o){const d=[n+"="+encodeURIComponent(l)];H.isNumber(r)&&d.push("expires="+new Date(r).toGMTString()),H.isString(i)&&d.push("path="+i),H.isString(u)&&d.push("domain="+u),o===!0&&d.push("secure"),document.cookie=d.join("; ")},read(n){const l=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bw(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function xw(n,l){return l?n.replace(/\/?\/$/,"")+"/"+l.replace(/^\/+/,""):n}function Jv(n,l,r){let i=!bw(l);return n&&(i||r==!1)?xw(n,l):l}const by=n=>n instanceof Zt?{...n}:n;function $l(n,l){l=l||{};const r={};function i(p,g,S,w){return H.isPlainObject(p)&&H.isPlainObject(g)?H.merge.call({caseless:w},p,g):H.isPlainObject(g)?H.merge({},g):H.isArray(g)?g.slice():g}function u(p,g,S,w){if(H.isUndefined(g)){if(!H.isUndefined(p))return i(void 0,p,S,w)}else return i(p,g,S,w)}function o(p,g){if(!H.isUndefined(g))return i(void 0,g)}function d(p,g){if(H.isUndefined(g)){if(!H.isUndefined(p))return i(void 0,p)}else return i(void 0,g)}function m(p,g,S){if(S in l)return i(p,g);if(S in n)return i(void 0,p)}const y={url:o,method:o,data:o,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:m,headers:(p,g,S)=>u(by(p),by(g),S,!0)};return H.forEach(Object.keys(Object.assign({},n,l)),function(g){const S=y[g]||u,w=S(n[g],l[g],g);H.isUndefined(w)&&S!==m||(r[g]=w)}),r}const Pv=n=>{const l=$l({},n);let{data:r,withXSRFToken:i,xsrfHeaderName:u,xsrfCookieName:o,headers:d,auth:m}=l;l.headers=d=Zt.from(d),l.url=Kv(Jv(l.baseURL,l.url,l.allowAbsoluteUrls),n.params,n.paramsSerializer),m&&d.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let y;if(H.isFormData(r)){if(Mt.hasStandardBrowserEnv||Mt.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((y=d.getContentType())!==!1){const[p,...g]=y?y.split(";").map(S=>S.trim()).filter(Boolean):[];d.setContentType([p||"multipart/form-data",...g].join("; "))}}if(Mt.hasStandardBrowserEnv&&(i&&H.isFunction(i)&&(i=i(l)),i||i!==!1&&vw(l.url))){const p=u&&o&&gw.read(o);p&&d.set(u,p)}return l},Sw=typeof XMLHttpRequest<"u",ww=Sw&&function(n){return new Promise(function(r,i){const u=Pv(n);let o=u.data;const d=Zt.from(u.headers).normalize();let{responseType:m,onUploadProgress:y,onDownloadProgress:p}=u,g,S,w,C,E;function R(){C&&C(),E&&E(),u.cancelToken&&u.cancelToken.unsubscribe(g),u.signal&&u.signal.removeEventListener("abort",g)}let j=new XMLHttpRequest;j.open(u.method.toUpperCase(),u.url,!0),j.timeout=u.timeout;function _(){if(!j)return;const T=Zt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),k={data:!m||m==="text"||m==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:T,config:n,request:j};Zv(function(J){r(J),R()},function(J){i(J),R()},k),j=null}"onloadend"in j?j.onloadend=_:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(_)},j.onabort=function(){j&&(i(new ve("Request aborted",ve.ECONNABORTED,n,j)),j=null)},j.onerror=function(){i(new ve("Network Error",ve.ERR_NETWORK,n,j)),j=null},j.ontimeout=function(){let F=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const k=u.transitional||Fv;u.timeoutErrorMessage&&(F=u.timeoutErrorMessage),i(new ve(F,k.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,n,j)),j=null},o===void 0&&d.setContentType(null),"setRequestHeader"in j&&H.forEach(d.toJSON(),function(F,k){j.setRequestHeader(k,F)}),H.isUndefined(u.withCredentials)||(j.withCredentials=!!u.withCredentials),m&&m!=="json"&&(j.responseType=u.responseType),p&&([w,E]=io(p,!0),j.addEventListener("progress",w)),y&&j.upload&&([S,C]=io(y),j.upload.addEventListener("progress",S),j.upload.addEventListener("loadend",C)),(u.cancelToken||u.signal)&&(g=T=>{j&&(i(!T||T.type?new Zs(null,n,j):T),j.abort(),j=null)},u.cancelToken&&u.cancelToken.subscribe(g),u.signal&&(u.signal.aborted?g():u.signal.addEventListener("abort",g)));const D=mw(u.url);if(D&&Mt.protocols.indexOf(D)===-1){i(new ve("Unsupported protocol "+D+":",ve.ERR_BAD_REQUEST,n));return}j.send(o||null)})},Ew=(n,l)=>{const{length:r}=n=n?n.filter(Boolean):[];if(l||r){let i=new AbortController,u;const o=function(p){if(!u){u=!0,m();const g=p instanceof Error?p:this.reason;i.abort(g instanceof ve?g:new Zs(g instanceof Error?g.message:g))}};let d=l&&setTimeout(()=>{d=null,o(new ve(`timeout ${l} of ms exceeded`,ve.ETIMEDOUT))},l);const m=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),n=null)};n.forEach(p=>p.addEventListener("abort",o));const{signal:y}=i;return y.unsubscribe=()=>H.asap(m),y}},Cw=function*(n,l){let r=n.byteLength;if(r<l){yield n;return}let i=0,u;for(;i<r;)u=i+l,yield n.slice(i,u),i=u},_w=async function*(n,l){for await(const r of Nw(n))yield*Cw(r,l)},Nw=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const l=n.getReader();try{for(;;){const{done:r,value:i}=await l.read();if(r)break;yield i}}finally{await l.cancel()}},xy=(n,l,r,i)=>{const u=_w(n,l);let o=0,d,m=y=>{d||(d=!0,i&&i(y))};return new ReadableStream({async pull(y){try{const{done:p,value:g}=await u.next();if(p){m(),y.close();return}let S=g.byteLength;if(r){let w=o+=S;r(w)}y.enqueue(new Uint8Array(g))}catch(p){throw m(p),p}},cancel(y){return m(y),u.return()}},{highWaterMark:2})},Eo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Iv=Eo&&typeof ReadableStream=="function",jw=Eo&&(typeof TextEncoder=="function"?(n=>l=>n.encode(l))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Wv=(n,...l)=>{try{return!!n(...l)}catch{return!1}},Aw=Iv&&Wv(()=>{let n=!1;const l=new Request(Mt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!l}),Sy=64*1024,gd=Iv&&Wv(()=>H.isReadableStream(new Response("").body)),ro={stream:gd&&(n=>n.body)};Eo&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!ro[l]&&(ro[l]=H.isFunction(n[l])?r=>r[l]():(r,i)=>{throw new ve(`Response type '${l}' is not supported`,ve.ERR_NOT_SUPPORT,i)})})})(new Response);const Tw=async n=>{if(n==null)return 0;if(H.isBlob(n))return n.size;if(H.isSpecCompliantForm(n))return(await new Request(Mt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(H.isArrayBufferView(n)||H.isArrayBuffer(n))return n.byteLength;if(H.isURLSearchParams(n)&&(n=n+""),H.isString(n))return(await jw(n)).byteLength},Rw=async(n,l)=>{const r=H.toFiniteNumber(n.getContentLength());return r??Tw(l)},Ow=Eo&&(async n=>{let{url:l,method:r,data:i,signal:u,cancelToken:o,timeout:d,onDownloadProgress:m,onUploadProgress:y,responseType:p,headers:g,withCredentials:S="same-origin",fetchOptions:w}=Pv(n);p=p?(p+"").toLowerCase():"text";let C=Ew([u,o&&o.toAbortSignal()],d),E;const R=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let j;try{if(y&&Aw&&r!=="get"&&r!=="head"&&(j=await Rw(g,i))!==0){let k=new Request(l,{method:"POST",body:i,duplex:"half"}),Y;if(H.isFormData(i)&&(Y=k.headers.get("content-type"))&&g.setContentType(Y),k.body){const[J,W]=vy(j,io(gy(y)));i=xy(k.body,Sy,J,W)}}H.isString(S)||(S=S?"include":"omit");const _="credentials"in Request.prototype;E=new Request(l,{...w,signal:C,method:r.toUpperCase(),headers:g.normalize().toJSON(),body:i,duplex:"half",credentials:_?S:void 0});let D=await fetch(E);const T=gd&&(p==="stream"||p==="response");if(gd&&(m||T&&R)){const k={};["status","statusText","headers"].forEach(ne=>{k[ne]=D[ne]});const Y=H.toFiniteNumber(D.headers.get("content-length")),[J,W]=m&&vy(Y,io(gy(m),!0))||[];D=new Response(xy(D.body,Sy,J,()=>{W&&W(),R&&R()}),k)}p=p||"text";let F=await ro[H.findKey(ro,p)||"text"](D,n);return!T&&R&&R(),await new Promise((k,Y)=>{Zv(k,Y,{data:F,headers:Zt.from(D.headers),status:D.status,statusText:D.statusText,config:n,request:E})})}catch(_){throw R&&R(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,n,E),{cause:_.cause||_}):ve.from(_,_&&_.code,n,E)}}),bd={http:FS,xhr:ww,fetch:Ow};H.forEach(bd,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{value:l})}catch{}Object.defineProperty(n,"adapterName",{value:l})}});const wy=n=>`- ${n}`,Dw=n=>H.isFunction(n)||n===null||n===!1,e1={getAdapter:n=>{n=H.isArray(n)?n:[n];const{length:l}=n;let r,i;const u={};for(let o=0;o<l;o++){r=n[o];let d;if(i=r,!Dw(r)&&(i=bd[(d=String(r)).toLowerCase()],i===void 0))throw new ve(`Unknown adapter '${d}'`);if(i)break;u[d||"#"+o]=i}if(!i){const o=Object.entries(u).map(([m,y])=>`adapter ${m} `+(y===!1?"is not supported by the environment":"is not available in the build"));let d=l?o.length>1?`since :
54
- `+o.map(wy).join(`
55
- `):" "+wy(o[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:bd};function Pf(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zs(null,n)}function Ey(n){return Pf(n),n.headers=Zt.from(n.headers),n.data=Jf.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),e1.getAdapter(n.adapter||yr.adapter)(n).then(function(i){return Pf(n),i.data=Jf.call(n,n.transformResponse,i),i.headers=Zt.from(i.headers),i},function(i){return Xv(i)||(Pf(n),i&&i.response&&(i.response.data=Jf.call(n,n.transformResponse,i.response),i.response.headers=Zt.from(i.response.headers))),Promise.reject(i)})}const t1="1.9.0",Co={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Co[n]=function(i){return typeof i===n||"a"+(l<1?"n ":" ")+n}});const Cy={};Co.transitional=function(l,r,i){function u(o,d){return"[Axios v"+t1+"] Transitional option '"+o+"'"+d+(i?". "+i:"")}return(o,d,m)=>{if(l===!1)throw new ve(u(d," has been removed"+(r?" in "+r:"")),ve.ERR_DEPRECATED);return r&&!Cy[d]&&(Cy[d]=!0,console.warn(u(d," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(o,d,m):!0}};Co.spelling=function(l){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${l}`),!0)};function Mw(n,l,r){if(typeof n!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let u=i.length;for(;u-- >0;){const o=i[u],d=l[o];if(d){const m=n[o],y=m===void 0||d(m,o,n);if(y!==!0)throw new ve("option "+o+" must be "+y,ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Zu={assertOptions:Mw,validators:Co},Pn=Zu.validators;let Ql=class{constructor(l){this.defaults=l||{},this.interceptors={request:new py,response:new py}}async request(l,r){try{return await this._request(l,r)}catch(i){if(i instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const o=u.stack?u.stack.replace(/^.+\n/,""):"";try{i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=`
56
- `+o):i.stack=o}catch{}}throw i}}_request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=$l(this.defaults,r);const{transitional:i,paramsSerializer:u,headers:o}=r;i!==void 0&&Zu.assertOptions(i,{silentJSONParsing:Pn.transitional(Pn.boolean),forcedJSONParsing:Pn.transitional(Pn.boolean),clarifyTimeoutError:Pn.transitional(Pn.boolean)},!1),u!=null&&(H.isFunction(u)?r.paramsSerializer={serialize:u}:Zu.assertOptions(u,{encode:Pn.function,serialize:Pn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Zu.assertOptions(r,{baseUrl:Pn.spelling("baseURL"),withXsrfToken:Pn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],E=>{delete o[E]}),r.headers=Zt.concat(d,o);const m=[];let y=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(y=y&&R.synchronous,m.unshift(R.fulfilled,R.rejected))});const p=[];this.interceptors.response.forEach(function(R){p.push(R.fulfilled,R.rejected)});let g,S=0,w;if(!y){const E=[Ey.bind(this),void 0];for(E.unshift.apply(E,m),E.push.apply(E,p),w=E.length,g=Promise.resolve(r);S<w;)g=g.then(E[S++],E[S++]);return g}w=m.length;let C=r;for(S=0;S<w;){const E=m[S++],R=m[S++];try{C=E(C)}catch(j){R.call(this,j);break}}try{g=Ey.call(this,C)}catch(E){return Promise.reject(E)}for(S=0,w=p.length;S<w;)g=g.then(p[S++],p[S++]);return g}getUri(l){l=$l(this.defaults,l);const r=Jv(l.baseURL,l.url,l.allowAbsoluteUrls);return Kv(r,l.params,l.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(l){Ql.prototype[l]=function(r,i){return this.request($l(i||{},{method:l,url:r,data:(i||{}).data}))}});H.forEach(["post","put","patch"],function(l){function r(i){return function(o,d,m){return this.request($l(m||{},{method:l,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:d}))}}Ql.prototype[l]=r(),Ql.prototype[l+"Form"]=r(!0)});let Uw=class n1{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const i=this;this.promise.then(u=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](u);i._listeners=null}),this.promise.then=u=>{let o;const d=new Promise(m=>{i.subscribe(m),o=m}).then(u);return d.cancel=function(){i.unsubscribe(o)},d},l(function(o,d,m){i.reason||(i.reason=new Zs(o,d,m),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const r=this._listeners.indexOf(l);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const l=new AbortController,r=i=>{l.abort(i)};return this.subscribe(r),l.signal.unsubscribe=()=>this.unsubscribe(r),l.signal}static source(){let l;return{token:new n1(function(u){l=u}),cancel:l}}};function Lw(n){return function(r){return n.apply(null,r)}}function zw(n){return H.isObject(n)&&n.isAxiosError===!0}const xd={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(xd).forEach(([n,l])=>{xd[l]=n});function a1(n){const l=new Ql(n),r=Mv(Ql.prototype.request,l);return H.extend(r,Ql.prototype,l,{allOwnKeys:!0}),H.extend(r,l,null,{allOwnKeys:!0}),r.create=function(u){return a1($l(n,u))},r}const lt=a1(yr);lt.Axios=Ql;lt.CanceledError=Zs;lt.CancelToken=Uw;lt.isCancel=Xv;lt.VERSION=t1;lt.toFormData=wo;lt.AxiosError=ve;lt.Cancel=lt.CanceledError;lt.all=function(l){return Promise.all(l)};lt.spread=Lw;lt.isAxiosError=zw;lt.mergeConfig=$l;lt.AxiosHeaders=Zt;lt.formToJSON=n=>Gv(H.isHTMLForm(n)?new FormData(n):n);lt.getAdapter=e1.getAdapter;lt.HttpStatusCode=xd;lt.default=lt;const{Axios:AN,AxiosError:qw,CanceledError:TN,isCancel:RN,CancelToken:ON,VERSION:DN,all:MN,Cancel:UN,isAxiosError:uo,spread:LN,toFormData:zN,AxiosHeaders:qN,HttpStatusCode:BN,formToJSON:HN,getAdapter:kN,mergeConfig:QN}=lt,Sd="__access_token__",Bw=()=>{try{const n=localStorage.getItem(Sd);return n||void 0}catch{return}},zu=n=>{n?localStorage.setItem(Sd,n):localStorage.removeItem(Sd)};let Hw={data:""},kw=n=>typeof window=="object"?((n?n.querySelector("#_goober"):window._goober)||Object.assign((n||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:n||Hw,Qw=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yw=/\/\*[^]*?\*\/| +/g,_y=/\n+/g,ol=(n,l)=>{let r="",i="",u="";for(let o in n){let d=n[o];o[0]=="@"?o[1]=="i"?r=o+" "+d+";":i+=o[1]=="f"?ol(d,o):o+"{"+ol(d,o[1]=="k"?"":l)+"}":typeof d=="object"?i+=ol(d,l?l.replace(/([^,])+/g,m=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,y=>/&/.test(y)?y.replace(/&/g,m):m?m+" "+y:y)):o):d!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),u+=ol.p?ol.p(o,d):o+":"+d+";")}return r+(l&&u?l+"{"+u+"}":u)+i},Aa={},l1=n=>{if(typeof n=="object"){let l="";for(let r in n)l+=r+l1(n[r]);return l}return n},Vw=(n,l,r,i,u)=>{let o=l1(n),d=Aa[o]||(Aa[o]=(y=>{let p=0,g=11;for(;p<y.length;)g=101*g+y.charCodeAt(p++)>>>0;return"go"+g})(o));if(!Aa[d]){let y=o!==n?n:(p=>{let g,S,w=[{}];for(;g=Qw.exec(p.replace(Yw,""));)g[4]?w.shift():g[3]?(S=g[3].replace(_y," ").trim(),w.unshift(w[0][S]=w[0][S]||{})):w[0][g[1]]=g[2].replace(_y," ").trim();return w[0]})(n);Aa[d]=ol(u?{["@keyframes "+d]:y}:y,r?"":"."+d)}let m=r&&Aa.g?Aa.g:null;return r&&(Aa.g=Aa[d]),((y,p,g,S)=>{S?p.data=p.data.replace(S,y):p.data.indexOf(y)===-1&&(p.data=g?y+p.data:p.data+y)})(Aa[d],l,i,m),d},$w=(n,l,r)=>n.reduce((i,u,o)=>{let d=l[o];if(d&&d.call){let m=d(r),y=m&&m.props&&m.props.className||/^go/.test(m)&&m;d=y?"."+y:m&&typeof m=="object"?m.props?"":ol(m,""):m===!1?"":m}return i+u+(d??"")},"");function _o(n){let l=this||{},r=n.call?n(l.p):n;return Vw(r.unshift?r.raw?$w(r,[].slice.call(arguments,1),l.p):r.reduce((i,u)=>Object.assign(i,u&&u.call?u(l.p):u),{}):r,kw(l.target),l.g,l.o,l.k)}let s1,wd,Ed;_o.bind({g:1});let Da=_o.bind({k:1});function Kw(n,l,r,i){ol.p=l,s1=n,wd=r,Ed=i}function ml(n,l){let r=this||{};return function(){let i=arguments;function u(o,d){let m=Object.assign({},o),y=m.className||u.className;r.p=Object.assign({theme:wd&&wd()},m),r.o=/ *go\d+/.test(y),m.className=_o.apply(r,i)+(y?" "+y:"");let p=n;return n[0]&&(p=m.as||n,delete m.as),Ed&&p[0]&&Ed(m),s1(p,m)}return u}}var Fw=n=>typeof n=="function",oo=(n,l)=>Fw(n)?n(l):n,Gw=(()=>{let n=0;return()=>(++n).toString()})(),i1=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let l=matchMedia("(prefers-reduced-motion: reduce)");n=!l||l.matches}return n}})(),Xw=20,r1=(n,l)=>{switch(l.type){case 0:return{...n,toasts:[l.toast,...n.toasts].slice(0,Xw)};case 1:return{...n,toasts:n.toasts.map(o=>o.id===l.toast.id?{...o,...l.toast}:o)};case 2:let{toast:r}=l;return r1(n,{type:n.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=l;return{...n,toasts:n.toasts.map(o=>o.id===i||i===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return l.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(o=>o.id!==l.toastId)};case 5:return{...n,pausedAt:l.time};case 6:let u=l.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+u}))}}},Ju=[],kl={toasts:[],pausedAt:void 0},Xl=n=>{kl=r1(kl,n),Ju.forEach(l=>{l(kl)})},Zw={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Jw=(n={})=>{let[l,r]=b.useState(kl),i=b.useRef(kl);b.useEffect(()=>(i.current!==kl&&r(kl),Ju.push(r),()=>{let o=Ju.indexOf(r);o>-1&&Ju.splice(o,1)}),[]);let u=l.toasts.map(o=>{var d,m,y;return{...n,...n[o.type],...o,removeDelay:o.removeDelay||((d=n[o.type])==null?void 0:d.removeDelay)||(n==null?void 0:n.removeDelay),duration:o.duration||((m=n[o.type])==null?void 0:m.duration)||(n==null?void 0:n.duration)||Zw[o.type],style:{...n.style,...(y=n[o.type])==null?void 0:y.style,...o.style}}});return{...l,toasts:u}},Pw=(n,l="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:l,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Gw()}),vr=n=>(l,r)=>{let i=Pw(l,n,r);return Xl({type:2,toast:i}),i.id},Qt=(n,l)=>vr("blank")(n,l);Qt.error=vr("error");Qt.success=vr("success");Qt.loading=vr("loading");Qt.custom=vr("custom");Qt.dismiss=n=>{Xl({type:3,toastId:n})};Qt.remove=n=>Xl({type:4,toastId:n});Qt.promise=(n,l,r)=>{let i=Qt.loading(l.loading,{...r,...r==null?void 0:r.loading});return typeof n=="function"&&(n=n()),n.then(u=>{let o=l.success?oo(l.success,u):void 0;return o?Qt.success(o,{id:i,...r,...r==null?void 0:r.success}):Qt.dismiss(i),u}).catch(u=>{let o=l.error?oo(l.error,u):void 0;o?Qt.error(o,{id:i,...r,...r==null?void 0:r.error}):Qt.dismiss(i)}),n};var Iw=(n,l)=>{Xl({type:1,toast:{id:n,height:l}})},Ww=()=>{Xl({type:5,time:Date.now()})},rr=new Map,e3=1e3,t3=(n,l=e3)=>{if(rr.has(n))return;let r=setTimeout(()=>{rr.delete(n),Xl({type:4,toastId:n})},l);rr.set(n,r)},n3=n=>{let{toasts:l,pausedAt:r}=Jw(n);b.useEffect(()=>{if(r)return;let o=Date.now(),d=l.map(m=>{if(m.duration===1/0)return;let y=(m.duration||0)+m.pauseDuration-(o-m.createdAt);if(y<0){m.visible&&Qt.dismiss(m.id);return}return setTimeout(()=>Qt.dismiss(m.id),y)});return()=>{d.forEach(m=>m&&clearTimeout(m))}},[l,r]);let i=b.useCallback(()=>{r&&Xl({type:6,time:Date.now()})},[r]),u=b.useCallback((o,d)=>{let{reverseOrder:m=!1,gutter:y=8,defaultPosition:p}=d||{},g=l.filter(C=>(C.position||p)===(o.position||p)&&C.height),S=g.findIndex(C=>C.id===o.id),w=g.filter((C,E)=>E<S&&C.visible).length;return g.filter(C=>C.visible).slice(...m?[w+1]:[0,w]).reduce((C,E)=>C+(E.height||0)+y,0)},[l]);return b.useEffect(()=>{l.forEach(o=>{if(o.dismissed)t3(o.id,o.removeDelay);else{let d=rr.get(o.id);d&&(clearTimeout(d),rr.delete(o.id))}})},[l]),{toasts:l,handlers:{updateHeight:Iw,startPause:Ww,endPause:i,calculateOffset:u}}},a3=Da`
57
- from {
58
- transform: scale(0) rotate(45deg);
59
- opacity: 0;
60
- }
61
- to {
62
- transform: scale(1) rotate(45deg);
63
- opacity: 1;
64
- }`,l3=Da`
65
- from {
66
- transform: scale(0);
67
- opacity: 0;
68
- }
69
- to {
70
- transform: scale(1);
71
- opacity: 1;
72
- }`,s3=Da`
73
- from {
74
- transform: scale(0) rotate(90deg);
75
- opacity: 0;
76
- }
77
- to {
78
- transform: scale(1) rotate(90deg);
79
- opacity: 1;
80
- }`,i3=ml("div")`
81
- width: 20px;
82
- opacity: 0;
83
- height: 20px;
84
- border-radius: 10px;
85
- background: ${n=>n.primary||"#ff4b4b"};
86
- position: relative;
87
- transform: rotate(45deg);
88
-
89
- animation: ${a3} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
90
- forwards;
91
- animation-delay: 100ms;
92
-
93
- &:after,
94
- &:before {
95
- content: '';
96
- animation: ${l3} 0.15s ease-out forwards;
97
- animation-delay: 150ms;
98
- position: absolute;
99
- border-radius: 3px;
100
- opacity: 0;
101
- background: ${n=>n.secondary||"#fff"};
102
- bottom: 9px;
103
- left: 4px;
104
- height: 2px;
105
- width: 12px;
106
- }
107
-
108
- &:before {
109
- animation: ${s3} 0.15s ease-out forwards;
110
- animation-delay: 180ms;
111
- transform: rotate(90deg);
112
- }
113
- `,r3=Da`
114
- from {
115
- transform: rotate(0deg);
116
- }
117
- to {
118
- transform: rotate(360deg);
119
- }
120
- `,u3=ml("div")`
121
- width: 12px;
122
- height: 12px;
123
- box-sizing: border-box;
124
- border: 2px solid;
125
- border-radius: 100%;
126
- border-color: ${n=>n.secondary||"#e0e0e0"};
127
- border-right-color: ${n=>n.primary||"#616161"};
128
- animation: ${r3} 1s linear infinite;
129
- `,o3=Da`
130
- from {
131
- transform: scale(0) rotate(45deg);
132
- opacity: 0;
133
- }
134
- to {
135
- transform: scale(1) rotate(45deg);
136
- opacity: 1;
137
- }`,c3=Da`
138
- 0% {
139
- height: 0;
140
- width: 0;
141
- opacity: 0;
142
- }
143
- 40% {
144
- height: 0;
145
- width: 6px;
146
- opacity: 1;
147
- }
148
- 100% {
149
- opacity: 1;
150
- height: 10px;
151
- }`,f3=ml("div")`
152
- width: 20px;
153
- opacity: 0;
154
- height: 20px;
155
- border-radius: 10px;
156
- background: ${n=>n.primary||"#61d345"};
157
- position: relative;
158
- transform: rotate(45deg);
159
-
160
- animation: ${o3} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
161
- forwards;
162
- animation-delay: 100ms;
163
- &:after {
164
- content: '';
165
- box-sizing: border-box;
166
- animation: ${c3} 0.2s ease-out forwards;
167
- opacity: 0;
168
- animation-delay: 200ms;
169
- position: absolute;
170
- border-right: 2px solid;
171
- border-bottom: 2px solid;
172
- border-color: ${n=>n.secondary||"#fff"};
173
- bottom: 6px;
174
- left: 6px;
175
- height: 10px;
176
- width: 6px;
177
- }
178
- `,d3=ml("div")`
179
- position: absolute;
180
- `,h3=ml("div")`
181
- position: relative;
182
- display: flex;
183
- justify-content: center;
184
- align-items: center;
185
- min-width: 20px;
186
- min-height: 20px;
187
- `,m3=Da`
188
- from {
189
- transform: scale(0.6);
190
- opacity: 0.4;
191
- }
192
- to {
193
- transform: scale(1);
194
- opacity: 1;
195
- }`,p3=ml("div")`
196
- position: relative;
197
- transform: scale(0.6);
198
- opacity: 0.4;
199
- min-width: 20px;
200
- animation: ${m3} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
- forwards;
202
- `,y3=({toast:n})=>{let{icon:l,type:r,iconTheme:i}=n;return l!==void 0?typeof l=="string"?b.createElement(p3,null,l):l:r==="blank"?null:b.createElement(h3,null,b.createElement(u3,{...i}),r!=="loading"&&b.createElement(d3,null,r==="error"?b.createElement(i3,{...i}):b.createElement(f3,{...i})))},v3=n=>`
203
- 0% {transform: translate3d(0,${n*-200}%,0) scale(.6); opacity:.5;}
204
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
205
- `,g3=n=>`
206
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
207
- 100% {transform: translate3d(0,${n*-150}%,-1px) scale(.6); opacity:0;}
208
- `,b3="0%{opacity:0;} 100%{opacity:1;}",x3="0%{opacity:1;} 100%{opacity:0;}",S3=ml("div")`
209
- display: flex;
210
- align-items: center;
211
- background: #fff;
212
- color: #363636;
213
- line-height: 1.3;
214
- will-change: transform;
215
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
216
- max-width: 350px;
217
- pointer-events: auto;
218
- padding: 8px 10px;
219
- border-radius: 8px;
220
- `,w3=ml("div")`
221
- display: flex;
222
- justify-content: center;
223
- margin: 4px 10px;
224
- color: inherit;
225
- flex: 1 1 auto;
226
- white-space: pre-line;
227
- `,E3=(n,l)=>{let r=n.includes("top")?1:-1,[i,u]=i1()?[b3,x3]:[v3(r),g3(r)];return{animation:l?`${Da(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Da(u)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},C3=b.memo(({toast:n,position:l,style:r,children:i})=>{let u=n.height?E3(n.position||l||"top-center",n.visible):{opacity:0},o=b.createElement(y3,{toast:n}),d=b.createElement(w3,{...n.ariaProps},oo(n.message,n));return b.createElement(S3,{className:n.className,style:{...u,...r,...n.style}},typeof i=="function"?i({icon:o,message:d}):b.createElement(b.Fragment,null,o,d))});Kw(b.createElement);var _3=({id:n,className:l,style:r,onHeightUpdate:i,children:u})=>{let o=b.useCallback(d=>{if(d){let m=()=>{let y=d.getBoundingClientRect().height;i(n,y)};m(),new MutationObserver(m).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[n,i]);return b.createElement("div",{ref:o,className:l,style:r},u)},N3=(n,l)=>{let r=n.includes("top"),i=r?{top:0}:{bottom:0},u=n.includes("center")?{justifyContent:"center"}:n.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:i1()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${l*(r?1:-1)}px)`,...i,...u}},j3=_o`
228
- z-index: 9999;
229
- > * {
230
- pointer-events: auto;
231
- }
232
- `,qu=16,A3=({reverseOrder:n,position:l="top-center",toastOptions:r,gutter:i,children:u,containerStyle:o,containerClassName:d})=>{let{toasts:m,handlers:y}=n3(r);return b.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:qu,left:qu,right:qu,bottom:qu,pointerEvents:"none",...o},className:d,onMouseEnter:y.startPause,onMouseLeave:y.endPause},m.map(p=>{let g=p.position||l,S=y.calculateOffset(p,{reverseOrder:n,gutter:i,defaultPosition:l}),w=N3(g,S);return b.createElement(_3,{id:p.id,key:p.id,onHeightUpdate:y.updateHeight,className:p.visible?j3:"",style:w},p.type==="custom"?oo(p.message,p):u?u(p):b.createElement(C3,{toast:p,position:g}))}))},Jt=Qt;const xt=new J2({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(n,l)=>{var r;return uo(l)&&((r=l.response)==null?void 0:r.status)===404?!1:n<3}}},mutationCache:new Av({onError:n=>{var l;uo(n)&&n.status&&n.status>=400&&n.status<500&&(l=n.response)!=null&&l.data.error&&Jt.error(n.response.data.error)}})}),T3=async()=>{const{data:n}=await Qd.post("/auth/refresh");return n.data.accessToken},R3=async n=>{const{data:l}=await Qd.post("/auth/login",n);return l.data.accessToken},If=()=>{xt.invalidateQueries({queryKey:["accessToken"]})},gr=(()=>{let n=Promise.resolve(Bw()),l=!1;const r=async()=>{await Qd.post("/auth/logout"),zu(void 0),window.location.reload()};return{get:async()=>n.then(d=>(If(),d)),refresh:()=>(l||(l=!0,n=T3().then(d=>(zu(d),d)).catch(()=>{zu(void 0),r()}).finally(()=>{l=!1,If()})),n),login:d=>(l||(l=!0,n=R3(d).then(m=>(zu(m),m)).finally(()=>{l=!1,If()})),n),logout:r}})(),u1=location.hostname.includes("app.dataramen.xyz")?"http://localhost:4466/api":"/api",Me=lt.create({baseURL:u1,withCredentials:!0});Me.interceptors.request.use(async n=>{const l=await gr.get();return l&&(n.headers.Authorization=`Bearer ${l}`),n});Me.interceptors.response.use(n=>n,n=>{var l;return uo(n)&&n.status===401&&((l=n==null?void 0:n.response)==null?void 0:l.data.error)!=="Missing auth token"&&gr.refresh(),Promise.reject(n)});const Qd=lt.create({baseURL:u1,withCredentials:!0}),pl="data-sources",o1="auth-user",O3=n=>It({queryKey:["project","datasources",n],queryFn:async()=>{const{data:l}=await Me.get(`/project/team/${n}/datasources`);return l.data},enabled:!!n}),D3=n=>It({queryKey:["project","saved-queries",n],queryFn:async()=>{const{data:l}=await Me.get(`/project/team/${n}/queries`);return l.data},enabled:!!n}),Js=n=>{const l=["project","datasources"],r=["project","saved-queries"];return Promise.all([xt.invalidateQueries(l),xt.invalidateQueries(r)])},M3=n=>{const l=["trash","team"];return xt.invalidateQueries(l)},U3=(n,l)=>It({queryKey:["project",l.teamId,"tables",n,l.selectedDataSources],queryFn:async()=>{const{data:r}=await Me.get(`/project/team/${l.teamId}/query`,{params:{size:30,search:n,selectedDataSources:l.selectedDataSources}});return r.data},enabled:!!l.teamId,staleTime:0,keepPreviousData:!0}),L3=(n,l)=>{},z3=()=>{},q3={event:L3,pageView:z3},No=n=>It([pl,n],async()=>{const{data:l}=await Me.get("/data-sources/"+n);return l.data},{enabled:!!n}),Yd=n=>It({queryKey:[pl,n.teamId],queryFn:async()=>{const{data:l}=await Me.get("/data-sources",{params:n});return l.data},enabled:n.teamId!==void 0}),Ps=n=>It({queryKey:[pl,n,"inspections"],queryFn:async()=>{const{data:l}=await Me.get(`/data-sources/${n}/inspections`);return l.data},enabled:!!n}),B3=()=>zt(async n=>{const{data:l}=await Me.post("/data-sources",n);return l.data},{onSuccess:()=>{xt.invalidateQueries([pl]),Js()},onError:()=>{}}),H3=()=>zt({mutationFn:async({dataSource:n,id:l})=>{const{data:r}=await Me.put(`/data-sources/${l}`,n);return r.data},onSuccess:()=>{xt.invalidateQueries([pl]),Js()}}),c1=()=>zt({mutationFn:async n=>{await Me.post(`/data-sources/${n}/inspect`)},onSuccess:()=>{xt.invalidateQueries([pl])}}),k3=()=>zt({mutationFn:async n=>{await Me.delete(`/data-sources/${n}`)},onSuccess:()=>{xt.invalidateQueries([pl]),Js()}}),f1=()=>It(["accessToken"],gr.get),la=()=>{const{data:n}=f1();return It({queryKey:[o1],queryFn:async()=>{const{data:l}=await Me.get("/users");return l.data},enabled:!!n,retry:(l,r)=>uo(r)&&r.code==="ERR_NETWORK"?!1:l<3})},Q3=()=>zt({mutationFn:async n=>{const{data:l}=await Me.patch("/users",n);return l.data},onSuccess:async n=>{xt.setQueryData([o1],n)}}),Y3=()=>zt({mutationFn:async n=>(await Me.post("/users",n),!0),onSuccess:()=>{xt.invalidateQueries({queryKey:["team-users"]})}}),V3="_alert_1xryn_2",$3="_info_1xryn_2",K3="_danger_1xryn_2",F3="_success_1xryn_2",G3="_warning_1xryn_2",X3="_dark_1xryn_2",Ds={alert:V3,info:$3,danger:K3,success:F3,warning:G3,dark:X3};function d1(n){var l,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(r=d1(n[l]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function ie(){for(var n,l,r=0,i="",u=arguments.length;r<u;r++)(n=arguments[r])&&(l=d1(n))&&(i&&(i+=" "),i+=l);return i}const Ut=({variant:n,noRounded:l,className:r,children:i,...u})=>h.jsx("div",{className:ie(Ds.alert,!l&&"rounded-lg",(n==="info"||!n)&&Ds.info,n==="danger"&&Ds.danger,n==="dark"&&Ds.dark,n==="warning"&&Ds.warning,n==="success"&&Ds.success,r),role:"alert",...u,children:i}),fn=n=>{const l=new Set;let r=n;const i=m=>(l.add(m),()=>l.delete(m)),u=m=>(l.forEach(y=>y(m)),!0),o=m=>{r=typeof m=="function"?m(r):m,u(r)},d=m=>()=>m?m(r):r;return[m=>b.useSyncExternalStore(i,d(m),d(m)),o,{get:()=>r,subscribe:m=>(m(r),i(m))}]};function Z3(n){const l=[];for(const r of n)for(const i of r.columns)i.ref&&(l.push({id:`${r.tableName}->${i.ref.table}.${i.ref.field}`,name:`${r.tableName} in ${i.ref.table}`,where:`${r.tableName}.${i.name} = ${i.ref.table}.${i.ref.field}`,on:{fromTable:i.ref.table,toTable:r.tableName,fromColumn:i.ref.field,toColumn:i.name}}),l.push({id:`${i.ref.table}->${r.tableName}.${i.name}`,name:`${i.ref.table} in ${r.tableName}`,where:`${i.ref.table}.${i.ref.field} = ${r.tableName}.${i.name}`,on:{fromTable:r.tableName,toTable:i.ref.table,fromColumn:i.name,toColumn:i.ref.field}}));return l}const J3=n=>It({queryKey:["hooks",n],queryFn:async()=>{const l=await xt.fetchQuery({queryKey:[pl,n,"inspections"],queryFn:async()=>{const{data:r}=await Me.get(`/data-sources/${n}/inspections`);return r.data}});return Z3(l)},enabled:!!n}),Vd=[{value:"=",label:"equals"},{value:"<>",label:"not equal"},{value:">",label:"greater than"},{value:">=",label:"greater than or equal"},{value:"<",label:"less than"},{value:"<=",label:"less than or equal"},{value:"LIKE",label:"contains"},{value:"NOT LIKE",label:"not contains"},{value:"IN",label:"in list"},{value:"NOT IN",label:"not in list"},{value:"IS NULL",label:"is null"},{value:"IS NOT NULL",label:"is not null"}],$d=Vd.reduce((n,l)=>(n[l.value]=l.label,n),{}),Kd=Vd.reduce((n,l)=>(n[l.label]=l.value,n),{}),Is=n=>n.map(l=>({label:$d[l],value:l})),P3=Is(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),I3=Is(["=","<>","LIKE","NOT LIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);Is(["=","<>","IS NULL","IS NOT NULL"]);const W3=Is(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);Is(["IS NULL","IS NOT NULL"]);Is(["IN","NOT IN"]);const h1=n=>n!=="IS NULL"&&n!=="IS NOT NULL",e4=(n,l)=>h1(n)?n==="IN"||n==="NOT IN"?l.split(",").map(r=>({value:r.trim(),isColumn:!1})):[{value:l,isColumn:!1}]:[],t4=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],n4=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],a4=["date","time","datetime","timestamp","year","date","time","time without time zone","time with time zone","timestamp","timestamp without time zone","timestamp with time zone","interval"],l4=["date","datetime","timestamp","timestamptz"].reduce((n,l)=>(n[l]=!0,n),{}),In=n=>n.fn?n.distinct===!0?`${n.fn} distinct ${n.value}`:`${n.fn} ${n.value}`:n.value;var Gt=(n=>(n.OWNER="owner",n.ADMIN="admin",n.EDITOR="editor",n.READ_ONLY="read_only",n))(Gt||{});const Ny={[Gt.READ_ONLY]:10,[Gt.EDITOR]:20,[Gt.ADMIN]:30,[Gt.OWNER]:40};function s4(n,l){if(!n||!l)return{};const r=new Set;for(const u of l)u.table&&r.add(u.table);const i={};for(const u of r){const o=n.find(d=>d.tableName===u);if(o){i[u]=[];const d=o.columns.filter(m=>m.isPrimary);for(const m of d)if(l.find(p=>p.table===u&&p.column===m.name))i[u].push(m.name);else{delete i[u];break}}}return i}function i4(n,l,r,i){const{data:u}=J3(l),{data:o}=Ps(l);return b.useMemo(()=>{const d=s4(o,n==null?void 0:n.result.columns);return{name:r,tabId:i,hooks:(()=>{const m=[];if(!u||!n||!n.result.columns)return m;for(const y of u)(n.result.tables.includes(y.on.toTable)||n.result.tables.includes(y.on.fromTable))&&m.push(y);return m})(),availableJoins:(()=>{const m=[];if(!u||!n||!n.result.columns)return m;for(const y of u)!n.result.tables.includes(y.on.toTable)&&n.result.tables.includes(y.on.fromTable)&&m.push(y);return m})(),allColumns:(n==null?void 0:n.result.allColumns)||[],dataSourceId:l,entities:Object.keys(d),getValue:(m,y)=>{var S;const p=In(y),g=(S=n==null?void 0:n.result.columns)==null?void 0:S.findIndex(w=>w.full===p);if(g!=null&&g>-1)return m[g]},getEntityKey:(m,y)=>d[m].reduce((p,g)=>{var w;const S=(w=n==null?void 0:n.result.columns)==null?void 0:w.findIndex(C=>C.column===g&&C.table===m);return S!=null&&S>-1&&p.push([g,y[S]]),p},[]),getColumnType:m=>{const y=n==null?void 0:n.result.allColumns.find(p=>p.full===m);if(y)return y.type}}},[n,l,u,o,r])}function r4(n,l){return b.useMemo(()=>({state:n,setState:l}),[n,l])}function Hs(n){return{dataSourceId:n.dataSourceId||"",page:(n==null?void 0:n.page)||0,size:(n==null?void 0:n.size)||50,table:n.table||"",filters:(n==null?void 0:n.filters)||[],joins:(n==null?void 0:n.joins)??[],orderBy:(n==null?void 0:n.orderBy)??[],columns:(n==null?void 0:n.columns)??[],groupBy:(n==null?void 0:n.groupBy)??[],aggregations:(n==null?void 0:n.aggregations)??[]}}const Pe={home:{path:"/"},workbench:{path:"/workbench"},share:{path:"/share"},login:{path:"/login"}},Fd=n=>{xt.setQueryData(["workbench-tabs"],l=>n(l||[]))},Gd=()=>It({queryKey:["workbench-tabs"],queryFn:async()=>{const{data:n}=await Me.get("/workbench-tabs");return n.data}}),u4=n=>It({queryKey:["workbench-tabs",n],queryFn:async()=>{const{data:l}=await Me.get(`/workbench-tabs/${n}`);return l.data}}),Ws=()=>zt({mutationFn:async n=>{const{data:l}=await Me.post("/workbench-tabs",n);return l.data},onSuccess:async n=>{Fd(l=>[...l,n])}}),o4=()=>zt({mutationFn:async n=>(await Me.patch(`/workbench-tabs/${n}`,{archived:!0}),!0),onMutate:n=>{Fd(l=>l.filter(r=>r.id!==n))}}),c4=()=>zt({mutationFn:async({id:n,payload:l})=>(await Me.patch(`/workbench-tabs/${n}`,l),!0),onMutate:({id:n,payload:l})=>{Fd(r=>r.map(i=>i.id!==n?i:{...i,name:l.name||i.name}))}}),f4=(n,l)=>{const{dataSourceId:r,searchAll:i,table:u,filters:o,joins:d,orderBy:m,groupBy:y,columns:p,aggregations:g,page:S=0,size:w=20}=l;return It({queryKey:["workbench-tab-runner",r,u,S,w,o,g,d,m,y,p,i],queryFn:async()=>{const{data:C}=await Me.post(`/workbench-tabs/${n}/run`,l);return C.data},retry:1,enabled:!!u&&!!r,keepPreviousData:!0,staleTime:0,cacheTime:0})},[d4,Wf,h4]=fn(void 0),m4=async()=>new Promise(n=>{Wf({onCancel:()=>{Wf(void 0),n(void 0)},onConfirm:(l,r,i)=>{Wf(void 0),n({dsId:i,id:r,type:l})}})}),br=n=>{const l=Lt(),r=Ws();return b.useEffect(()=>{var i;(i=r==null?void 0:r.data)!=null&&i.id&&l(`${Pe.workbench.path}/tab/${r.data.id}`)},[r.data]),b.useCallback(()=>{h4.get()||m4().then(u=>{(u==null?void 0:u.type)==="table"?r.mutate({name:u.id,opts:Hs({table:u.id,dataSourceId:u.dsId})}):(u==null?void 0:u.type)==="query"&&r.mutate({name:u.id,queryId:u.id})})},[l,n])},xr=n=>{const{data:l}=la();return b.useMemo(()=>l?Ny[l.teamRole]>=Ny[n]:!1,[l,n])},p4="_input_17woz_2",y4="_small_17woz_2",v4="_content_17woz_2",g4="_form_17woz_2",b4="_mode-select_17woz_2",qe={input:p4,small:y4,content:v4,form:g4,switch:"_switch_17woz_2",modeSelect:b4},x4="_modal_1nxwk_2",S4="_modal-visible_1nxwk_2",w4="_modal-invisible_1nxwk_2",E4="_backdrop_1nxwk_2",C4="_modal-container_1nxwk_2",_4="_close-button_1nxwk_2",zs={modal:x4,modalVisible:S4,modalInvisible:w4,backdrop:E4,modalContainer:C4,closeButton:_4},Hn=n=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...n},b.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 368L144 144M368 144L144 368"})),dn=({children:n,backdropClose:l,isVisible:r,onClose:i,onClosed:u,noPadding:o=!1,portal:d=!1})=>{const[m,y]=b.useState(!1),p=()=>{l&&i()},g=w=>{r||getComputedStyle(w.currentTarget).opacity==="0"&&(y(!1),u&&u())};b.useEffect(()=>{r&&y(!0)},[r]);const S=h.jsxs("div",{onTransitionEnd:g,className:ie(zs.modal,r?zs.modalVisible:zs.modalInvisible),children:[h.jsx("div",{onClick:p,className:zs.backdrop}),h.jsx("div",{className:ie(zs.modalContainer,o!==!0&&"p-4"),children:m&&n})]});return d?xv.createPortal(S,document.body):S},sa=({onClick:n})=>{const l=b.useRef(n);return l.current=n,b.useEffect(()=>{const r=i=>{var u;i.key==="Escape"&&((u=l.current)==null||u.call(l))};return window.addEventListener("keyup",r),()=>{window.removeEventListener("keyup",r)}},[]),h.jsx("button",{className:zs.closeButton,onClick:n,children:h.jsx(Hn,{width:20,height:20})})},m1=({children:n})=>h.jsx("h2",{className:"text-xl font-semibold",children:n}),Sr=n=>{const[l,r]=b.useState(n),[i,u]=b.useState([]),o=b.useRef(n),d=b.useCallback((p,g)=>{r(S=>({...S,[p]:g}))},[]),m=b.useCallback(p=>g=>{g.target.type==="checkbox"?d(p,g.target.checked):d(p,g.target.value),u(S=>S.includes(p)?S:[...S,p])},[d]),y=b.useCallback(()=>{r(o.current),u([])},[]);return[l,{set:d,change:m,reset:y,touched:i}]},N4=({form:n,change:l})=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Database URL"}),h.jsx("input",{value:n.dbUrl,onChange:l("dbUrl"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Database port"}),h.jsx("input",{value:n.dbPort,onChange:l("dbPort"),type:"number",className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"User"}),h.jsx("input",{value:n.dbUser,onChange:l("dbUser"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Password"}),h.jsx("input",{type:"password",value:n.dbPassword,onChange:l("dbPassword"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Database"}),h.jsx("input",{value:n.dbDatabase,onChange:l("dbDatabase"),className:"input"})]})]}),j4=({form:n,change:l})=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Database URL"}),h.jsx("input",{value:n.dbUrl,onChange:l("dbUrl"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Database port"}),h.jsx("input",{value:n.dbPort,onChange:l("dbPort"),type:"number",className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"User"}),h.jsx("input",{value:n.dbUser,onChange:l("dbUser"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Password"}),h.jsx("input",{type:"password",value:n.dbPassword,onChange:l("dbPassword"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Database"}),h.jsx("input",{value:n.dbDatabase,onChange:l("dbDatabase"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,qe.small),children:[h.jsx("label",{children:"Schema"}),h.jsx("input",{value:n.dbSchema,onChange:l("dbSchema"),className:"input"})]})]}),Ms=[{label:"PostgreSQL",tag:"postgres"},{label:"MySQL",tag:"mysql"}],A4=({show:n,onClose:l,dbType:r="postgres"})=>{const i=B3(),u=c1(),{data:o}=la(),[d,{change:m,set:y}]=Sr({name:"",dbType:r,dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:"",allowInsert:!1,allowUpdate:!1}),p=async()=>{const E=await i.mutateAsync({...d,dbPort:Number(d.dbPort),teamId:o.teamId,ownerId:o.id});await u.mutateAsync(E.id),l(),q3.event("Create Datasource",{dbType:d.dbType})},g=E=>{y("allowInsert",!E),y("allowUpdate",!E)},S=()=>{l()},w=i.isLoading||u.isLoading,C=!d.allowInsert&&!d.allowUpdate;return h.jsxs(dn,{isVisible:n,onClose:S,children:[h.jsx(sa,{onClick:S}),h.jsxs(Ut,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",h.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),i.isError&&h.jsx(Ut,{variant:"danger",className:"mb-2",children:h.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),i.isLoading&&h.jsx(Ut,{className:"mb-2",variant:"info",children:"Creating connection"}),u.isLoading&&h.jsx(Ut,{className:"mb-2",variant:"info",children:"Inspecting connection"}),h.jsxs("div",{className:qe.switch,children:[h.jsxs("label",{className:"button tertiary",children:[h.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:d.dbType===Ms[0].tag,onChange:()=>y("dbType",Ms[0].tag)}),h.jsx("span",{children:Ms[0].label})]}),h.jsxs("label",{className:"button tertiary",children:[h.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:d.dbType===Ms[1].tag,onChange:()=>y("dbType",Ms[1].tag)}),h.jsx("span",{children:Ms[1].label})]})]}),h.jsxs("div",{className:"overflow-y-auto mt-2",children:[h.jsx("div",{className:qe.content,children:h.jsxs("div",{className:qe.form,children:[h.jsxs("div",{className:ie(qe.input,"col-span-2"),children:[h.jsx("label",{children:"Name"}),h.jsx("input",{value:d.name,onChange:m("name"),className:"input"})]}),h.jsxs("div",{className:ie(qe.input,"col-span-2"),children:[h.jsx("label",{children:"Description"}),h.jsx("textarea",{value:d.description,onChange:m("description"),className:"input"})]}),d.dbType==="mysql"&&h.jsx(N4,{form:d,change:m}),d.dbType==="postgres"&&h.jsx(j4,{form:d,change:m})]})}),h.jsxs("div",{className:"mt-4",children:[h.jsxs("label",{className:qe.modeSelect,children:[h.jsxs("div",{children:[h.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:C,onChange:()=>g(!0)}),h.jsx("span",{className:"text-sm font-semibold",children:"Production mode"})]}),h.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",h.jsx("strong",{children:"forbidden"}),". You won't be able to insert new rows or edit existing data. Tables in this data source are read-only."]})]}),h.jsxs("label",{className:qe.modeSelect,children:[h.jsxs("div",{children:[h.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:!C,onChange:()=>g(!1)}),h.jsx("span",{className:"text-sm font-semibold",children:"Dev mode"})]}),h.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",h.jsx("strong",{children:"allowed"}),". You will be able to insert new rows and edit existing data."]})]})]})]}),h.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[h.jsx("button",{onClick:S,className:"button tertiary",disabled:w,children:"Cancel"}),h.jsx("button",{onClick:p,className:"button primary",disabled:w,children:"Create"})]})]})},T4="_data-source-entry_1p0iz_2",R4="_action-title_1p0iz_2",O4="_action-subtext_1p0iz_2",Wn={dataSourceEntry:T4,actionTitle:R4,actionSubtext:O4},D4=n=>b.createElement("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n},b.createElement("path",{d:"m24.129 23.412-.508-.484c-.251-.331-.518-.624-.809-.891l-.005-.004q-.448-.407-.931-.774-.387-.266-1.064-.641c-.371-.167-.661-.46-.818-.824l-.004-.01-.048-.024c.212-.021.406-.06.592-.115l-.023.006.57-.157c.236-.074.509-.122.792-.133h.006c.298-.012.579-.06.847-.139l-.025.006q.194-.048.399-.109t.351-.109v-.169q-.145-.217-.351-.496c-.131-.178-.278-.333-.443-.468l-.005-.004q-.629-.556-1.303-1.076c-.396-.309-.845-.624-1.311-.916l-.068-.04c-.246-.162-.528-.312-.825-.435l-.034-.012q-.448-.182-.883-.399c-.097-.048-.21-.09-.327-.119l-.011-.002c-.117-.024-.217-.084-.29-.169l-.001-.001c-.138-.182-.259-.389-.355-.609l-.008-.02q-.145-.339-.314-.651-.363-.702-.702-1.427t-.651-1.452q-.217-.484-.399-.967c-.134-.354-.285-.657-.461-.942l.013.023c-.432-.736-.863-1.364-1.331-1.961l.028.038c-.463-.584-.943-1.106-1.459-1.59l-.008-.007c-.509-.478-1.057-.934-1.632-1.356l-.049-.035q-.896-.651-1.96-1.282c-.285-.168-.616-.305-.965-.393l-.026-.006-1.113-.278-.629-.048q-.314-.024-.629-.024c-.148-.078-.275-.171-.387-.279-.11-.105-.229-.204-.353-.295l-.01-.007c-.605-.353-1.308-.676-2.043-.93l-.085-.026c-.193-.113-.425-.179-.672-.179-.176 0-.345.034-.499.095l.009-.003c-.38.151-.67.458-.795.84l-.003.01c-.073.172-.115.371-.115.581 0 .368.13.705.347.968l-.002-.003q.544.725.834 1.14.217.291.448.605c.141.188.266.403.367.63l.008.021c.056.119.105.261.141.407l.003.016q.048.206.121.448.217.556.411 1.14c.141.425.297.785.478 1.128l-.019-.04q.145.266.291.52t.314.496c.065.098.147.179.241.242l.003.002c.099.072.164.185.169.313v.001c-.114.168-.191.369-.217.586l-.001.006c-.035.253-.085.478-.153.695l.008-.03c-.223.666-.351 1.434-.351 2.231 0 .258.013.512.04.763l-.003-.031c.06.958.349 1.838.812 2.6l-.014-.025c.197.295.408.552.641.787.168.188.412.306.684.306.152 0 .296-.037.422-.103l-.005.002c.35-.126.599-.446.617-.827v-.002c.048-.474.12-.898.219-1.312l-.013.067c.024-.063.038-.135.038-.211 0-.015-.001-.03-.002-.045v.002q-.012-.109.133-.206v.048q.145.339.302.677t.326.677c.295.449.608.841.952 1.202l-.003-.003c.345.372.721.706 1.127 1.001l.022.015c.212.162.398.337.566.528l.004.004c.158.186.347.339.56.454l.01.005v-.024h.048c-.039-.087-.102-.157-.18-.205l-.002-.001c-.079-.044-.147-.088-.211-.136l.005.003q-.217-.217-.448-.484t-.423-.508q-.508-.702-.969-1.467t-.871-1.555q-.194-.387-.375-.798t-.351-.798c-.049-.099-.083-.213-.096-.334v-.005c-.006-.115-.072-.214-.168-.265l-.002-.001c-.121.206-.255.384-.408.545l.001-.001c-.159.167-.289.364-.382.58l-.005.013c-.141.342-.244.739-.289 1.154l-.002.019q-.072.641-.145 1.318l-.048.024-.024.024c-.26-.053-.474-.219-.59-.443l-.002-.005q-.182-.351-.326-.69c-.248-.637-.402-1.374-.423-2.144v-.009c-.009-.122-.013-.265-.013-.408 0-.666.105-1.308.299-1.91l-.012.044q.072-.266.314-.896t.097-.871c-.05-.165-.143-.304-.265-.41l-.001-.001c-.122-.106-.233-.217-.335-.335l-.003-.004q-.169-.244-.326-.52t-.278-.544c-.165-.382-.334-.861-.474-1.353l-.022-.089c-.159-.565-.336-1.043-.546-1.503l.026.064c-.111-.252-.24-.47-.39-.669l.006.008q-.244-.326-.436-.617-.244-.314-.484-.605c-.163-.197-.308-.419-.426-.657l-.009-.02c-.048-.097-.09-.21-.119-.327l-.002-.011c-.011-.035-.017-.076-.017-.117 0-.082.024-.159.066-.223l-.001.002c.011-.056.037-.105.073-.145.039-.035.089-.061.143-.072h.002c.085-.055.188-.088.3-.088.084 0 .165.019.236.053l-.003-.001c.219.062.396.124.569.195l-.036-.013q.459.194.847.375c.298.142.552.292.792.459l-.018-.012q.194.121.387.266t.411.291h.339q.387 0 .822.037c.293.023.564.078.822.164l-.024-.007c.481.143.894.312 1.286.515l-.041-.019q.593.302 1.125.641c.589.367 1.098.743 1.577 1.154l-.017-.014c.5.428.954.867 1.38 1.331l.01.012c.416.454.813.947 1.176 1.464l.031.047c.334.472.671 1.018.974 1.584l.042.085c.081.154.163.343.234.536l.011.033q.097.278.217.57.266.605.57 1.221t.57 1.198l.532 1.161c.187.406.396.756.639 1.079l-.011-.015c.203.217.474.369.778.422l.008.001c.368.092.678.196.978.319l-.047-.017c.143.065.327.134.516.195l.04.011c.212.065.396.151.565.259l-.009-.005c.327.183.604.363.868.559l-.021-.015q.411.302.822.57.194.145.651.423t.484.52c-.114-.004-.249-.007-.384-.007-.492 0-.976.032-1.45.094l.056-.006c-.536.072-1.022.203-1.479.39l.04-.014c-.113.049-.248.094-.388.129l-.019.004c-.142.021-.252.135-.266.277v.001c.061.076.11.164.143.26l.002.006c.034.102.075.19.125.272l-.003-.006c.119.211.247.393.391.561l-.004-.005c.141.174.3.325.476.454l.007.005q.244.194.508.399c.161.126.343.25.532.362l.024.013c.284.174.614.34.958.479l.046.016c.374.15.695.324.993.531l-.016-.011q.291.169.58.375t.556.399c.073.072.137.152.191.239l.003.005c.091.104.217.175.36.193h.003v-.048c-.088-.067-.153-.16-.184-.267l-.001-.004c-.025-.102-.062-.191-.112-.273l.002.004zm-18.576-19.205q-.194 0-.363.012c-.115.008-.222.029-.323.063l.009-.003v.024h.048q.097.145.244.326t.266.351l.387.798.048-.024c.113-.082.2-.192.252-.321l.002-.005c.052-.139.082-.301.082-.469 0-.018 0-.036-.001-.054v.003c-.045-.044-.082-.096-.108-.154l-.001-.003-.081-.182c-.053-.084-.127-.15-.214-.192l-.003-.001c-.094-.045-.174-.102-.244-.169z"})),M4=n=>b.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...n},b.createElement("title",null,"file_type_pgsql"),b.createElement("path",{d:"M29.507,18.773a1.378,1.378,0,0,0-1.144-.921,2.619,2.619,0,0,0-.913.051,8.2,8.2,0,0,1-1.406.185,27.125,27.125,0,0,0,2.872-6.83c.953-3.689.444-5.369-.151-6.13A8.239,8.239,0,0,0,22.121,2a11.773,11.773,0,0,0-3.453.484A12.858,12.858,0,0,0,16.648,2.3a6.565,6.565,0,0,0-3.518.867,16.039,16.039,0,0,0-2.484-.624,7.694,7.694,0,0,0-5.819.924C3.093,4.691,2.289,6.819,2.438,9.792A36.351,36.351,0,0,0,3.844,16.33a22.579,22.579,0,0,0,1.514,3.863A4.786,4.786,0,0,0,7.8,22.742a2.4,2.4,0,0,0,2.379-.516,2.08,2.08,0,0,0,.5.43,3.328,3.328,0,0,0,.944.4,5.069,5.069,0,0,0,3.3-.2c.006.171.011.335.014.477.006.229.013.454.021.665a11.641,11.641,0,0,0,.441,3.3c.016.043.037.107.059.176a3.975,3.975,0,0,0,.991,1.745,2.955,2.955,0,0,0,2.09.777,4.7,4.7,0,0,0,.977-.109A4.592,4.592,0,0,0,22.607,28.1c.811-1.155,1.206-2.894,1.277-5.635.009-.078.018-.152.026-.222l.017-.145.191.017.049,0a7.562,7.562,0,0,0,3.163-.548c.631-.293,2.654-1.361,2.177-2.8"}),b.createElement("path",{d:"M27.689,19.053c-3.163.652-3.38-.418-3.38-.418C27.648,13.68,29.044,7.39,27.839,5.851c-3.286-4.2-8.975-2.213-9.07-2.162l-.031.006a11.28,11.28,0,0,0-2.11-.22,5.212,5.212,0,0,0-3.34,1S3.14.294,3.612,9.733c.1,2.008,2.878,15.194,6.191,11.211,1.211-1.456,2.381-2.688,2.381-2.688a3.071,3.071,0,0,0,2.006.512l.057-.048a2.21,2.21,0,0,0,.023.567c-.854.954-.6,1.121-2.309,1.472-1.726.356-.712.989-.05,1.155a3.508,3.508,0,0,0,3.915-1.272l-.05.2c.334.268.569,1.742.53,3.079a8.481,8.481,0,0,0,.2,2.971c.264.717.526,2.329,2.769,1.849a3.307,3.307,0,0,0,2.98-3.179c.1-1.234.313-1.052.326-2.155l.174-.522c.2-1.673.032-2.213,1.186-1.962l.281.025a6.4,6.4,0,0,0,2.615-.44c1.406-.652,2.239-1.742.853-1.455h0",style:{fill:"#336791"}}),b.createElement("path",{d:"M13.882,10.631a.981.981,0,0,0-.674.1.247.247,0,0,0-.1.164.48.48,0,0,0,.117.314.881.881,0,0,0,.559.349.637.637,0,0,0,.09.006.725.725,0,0,0,.687-.467c.035-.248-.326-.414-.676-.463m9.442.008c-.027-.195-.374-.25-.7-.2s-.647.194-.62.389a.667.667,0,0,0,.62.411.592.592,0,0,0,.083-.006.8.8,0,0,0,.451-.247.5.5,0,0,0,.169-.343",style:{fill:"#fff"}}),b.createElement("path",{d:"M28.741,18.979c-.121-.365-.509-.482-1.154-.349-1.915.4-2.6.121-2.826-.044a26.327,26.327,0,0,0,3.373-7.565,14.374,14.374,0,0,0,.5-3.253,3.513,3.513,0,0,0-.509-2.2,7.482,7.482,0,0,0-6.049-2.825,10.363,10.363,0,0,0-3.5.551,8.717,8.717,0,0,0-1.968-.253,5.684,5.684,0,0,0-3.372.929,15.051,15.051,0,0,0-2.74-.718,6.978,6.978,0,0,0-5.242.805c-1.5,1.064-2.2,2.966-2.061,5.653a35.489,35.489,0,0,0,1.373,6.348c1.07,3.505,2.233,5.49,3.457,5.9a1.548,1.548,0,0,0,.491.081,2.049,2.049,0,0,0,1.563-.886q1.042-1.25,2.155-2.438a3.472,3.472,0,0,0,1.55.417l0,.042q-.14.166-.273.338c-.375.475-.452.574-1.658.823-.343.071-1.254.259-1.267.9-.014.7,1.077.991,1.2,1.022a5.144,5.144,0,0,0,1.249.162,3.634,3.634,0,0,0,2.5-.934,23.674,23.674,0,0,0,.381,5.684,2.854,2.854,0,0,0,2.729,2.1,4.378,4.378,0,0,0,.917-.1,3.462,3.462,0,0,0,3.156-3.212c.177-1.026.481-3.475.624-4.789a3.859,3.859,0,0,0,1.11.137,6.6,6.6,0,0,0,2.519-.48c.712-.331,2-1.141,1.763-1.846ZM24.051,10.1a7.968,7.968,0,0,1-.116,1.107,10.229,10.229,0,0,0-.14,1.3,9.859,9.859,0,0,0,.1,1.47,5.236,5.236,0,0,1-.229,2.986,3.882,3.882,0,0,1-.207-.426c-.058-.141-.185-.368-.359-.681-.68-1.22-2.274-4.078-1.458-5.244.243-.347.86-.7,2.408-.512ZM22.174,3.531a6.617,6.617,0,0,1,5.334,2.522c.975,1.245-.1,6.912-3.205,11.8l-.094-.119-.039-.049a5.524,5.524,0,0,0,.506-3.8,9.114,9.114,0,0,1-.1-1.352,9.572,9.572,0,0,1,.131-1.206,7.614,7.614,0,0,0,.123-1.493.619.619,0,0,0,.013-.21,8.381,8.381,0,0,0-1.912-3.6,8.61,8.61,0,0,0-3.039-2.284,10.246,10.246,0,0,1,2.28-.214ZM9.479,20.654c-.627.754-1.061.61-1.2.562-.928-.31-2.006-2.272-2.955-5.384a35.167,35.167,0,0,1-1.34-6.159c-.12-2.4.462-4.074,1.73-4.974,2.063-1.463,5.456-.587,6.819-.143-.02.019-.04.037-.059.057-2.237,2.259-2.184,6.119-2.178,6.355,0,.091.007.22.018.4a15.969,15.969,0,0,1-.081,3.226A4.08,4.08,0,0,0,11.3,18.007q.133.138.278.262c-.383.41-1.216,1.318-2.1,2.385Zm2.39-3.19a3.3,3.3,0,0,1-.865-2.764,16.7,16.7,0,0,0,.087-3.381c-.006-.095-.011-.178-.014-.243A4.3,4.3,0,0,1,14,10.223a1.188,1.188,0,0,1,.918,1.026c.646,2.989.085,4.234-.365,5.235-.093.206-.181.4-.255.6l-.058.156a10.218,10.218,0,0,0-.368,1.109,2.788,2.788,0,0,1-2-.887Zm.113,4.03a1.733,1.733,0,0,1-.523-.225,2.553,2.553,0,0,1,.557-.166c1.418-.292,1.637-.5,2.116-1.105.11-.139.234-.3.406-.489h0c.256-.287.374-.238.586-.15a.829.829,0,0,1,.408.525.585.585,0,0,1-.05.491A3.1,3.1,0,0,1,11.983,21.495ZM19.406,28.4a2.113,2.113,0,0,1-2.754-1.526,31.129,31.129,0,0,1-.3-6.853.392.392,0,0,0-.017-.124,1.643,1.643,0,0,0-.048-.23,1.589,1.589,0,0,0-.862-1.034,1.216,1.216,0,0,0-.793-.1,9.586,9.586,0,0,1,.342-1.022l.058-.157c.066-.177.148-.36.235-.554.471-1.047,1.117-2.482.416-5.722a2.044,2.044,0,0,0-2.468-1.669A5.694,5.694,0,0,0,11.328,10c-.078.04-.15.078-.216.115A8.244,8.244,0,0,1,13.03,5.163,4.711,4.711,0,0,1,16.6,3.827,7.567,7.567,0,0,1,22.381,6.59,8.774,8.774,0,0,1,23.963,9.3c-1.463-.149-2.458.14-2.962.861-1.1,1.568.6,4.612,1.416,6.075.15.268.279.5.319.6a5.432,5.432,0,0,0,.861,1.387c.077.1.152.189.208.271-.443.128-1.239.423-1.166,1.9-.058.74-.474,4.205-.686,5.43-.279,1.617-.874,2.22-2.548,2.579Zm7.242-8.288a5.714,5.714,0,0,1-1.931.4,2.422,2.422,0,0,1-1.3-.167c-.045-.919.3-1.015.66-1.117.057-.016.112-.032.166-.05a1.353,1.353,0,0,0,.11.08c.639.422,1.78.467,3.39.135l.018,0a4.334,4.334,0,0,1-1.116.72Z",style:{fill:"#fff"}})),Xd=({size:n,type:l})=>l==="mysql"?h.jsx(D4,{width:n,height:n}):h.jsx(M4,{width:n,height:n}),[U4,ks]=fn(void 0),L4=()=>{const n=br("Home");return h.jsxs("div",{className:"card-white lg:col-span-2",onClick:n,children:[h.jsxs("h2",{className:Wn.actionTitle,children:[h.jsx("span",{children:"🔎 Start new query"}),h.jsx("span",{className:"hotkey",children:"N"})]}),h.jsx("input",{className:"input mt-3 w-full",placeholder:"Search table or query to start"})]})},z4=()=>{const[n,l]=b.useState(void 0),r=xr(Gt.EDITOR),i=u=>{r?l(u):Jt.error("You don't have permission to connect new data sources in this team")};return h.jsxs("div",{children:[n&&h.jsx(A4,{show:!0,dbType:n,onClose:()=>l(void 0)}),h.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:()=>i("postgres"),children:[h.jsx("p",{className:Wn.actionTitle,children:"🧙‍♂️ Connection wizard"}),h.jsx("p",{className:Wn.actionSubtext,children:"Configure new database connection."})]})]})},q4=()=>{const n=Lt(),{data:l}=Gd(),r=br("Home"),i=()=>{l&&l.length>0?n(`${Pe.workbench.path}/tab/${l[0].id}`):r()};return h.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:i,children:[h.jsxs("h2",{className:Wn.actionTitle,children:[h.jsx("span",{children:"🛠️ Workbench"}),h.jsx("span",{className:"hotkey",children:"W"})]}),h.jsx("p",{className:Wn.actionSubtext,children:"Continue your work from where you left."})]})},B4=()=>{const{data:n}=la(),{data:l}=Yd({teamId:n==null?void 0:n.teamId}),r=i=>{ks(i)};return!l||l.length===0?null:h.jsxs("div",{className:"mt-8",children:[h.jsx("h2",{className:"font-semibold text-gray-700",children:"Data sources"}),h.jsx("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:l==null?void 0:l.map(i=>h.jsxs("div",{className:Wn.dataSourceEntry,onClick:()=>r(i.id),tabIndex:0,children:[h.jsx(Xd,{size:32,type:i.dbType}),h.jsx("p",{className:"font-semibold truncate text-gray-800 flex-1",children:i.name}),i.allowInsert?h.jsx("span",{className:"text-red-700",children:"Development"}):h.jsx("span",{className:"text-blue-700",children:"Production"})]},i.id))})]})},H4=()=>h.jsxs("div",{className:"mt-8",children:[h.jsx("h2",{className:"font-semibold text-gray-700",children:"Useful links"}),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:[h.jsxs("a",{className:"card-white hover:bg-gray-50!",href:"https://dataramen.xyz/",children:[h.jsx("p",{className:Wn.actionTitle,children:"Documentation"}),h.jsx("p",{className:Wn.actionSubtext,children:"Learn how to use DataRamen"})]}),h.jsxs("a",{className:"card-white hover:bg-gray-50!",href:"https://github.com/OleksandrDemian/dataramen",children:[h.jsx("p",{className:Wn.actionTitle,children:"Github"}),h.jsx("p",{className:Wn.actionSubtext,children:"Codebase is open sourced on Github"})]})]})]}),k4=()=>{const{data:n}=la(),{data:l}=Yd({teamId:n==null?void 0:n.teamId}),r=!!l&&l.length>0,i=!!n;return h.jsx("div",{className:"page-container h-screen max-h-screen bg-(--bg)",children:h.jsxs("div",{className:"page-content h-full pb-12 overflow-y-auto",children:[h.jsx("h2",{className:"font-semibold text-gray-700 mt-4 hidden lg:block",children:"Quick actions"}),i&&!r&&h.jsx(Ut,{variant:"warning",className:"font-semibold mt-4",children:"Connect at least one datasource to start using DataRamen"}),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:[h.jsx(L4,{}),h.jsx(z4,{}),i&&h.jsx(q4,{})]}),i&&h.jsx(B4,{}),h.jsx(H4,{})]})})},[Q4,Zd]=fn(void 0),Y4=()=>Zd(void 0);function Yl(n,l){if(n==null)return"";switch(l){case"json":case"jsonb":return JSON.stringify(n,null,2)}if(n===0||n===!1)return n.toString();switch(typeof n){case"string":return n;case"number":case"boolean":return n.toString();default:return JSON.stringify(n)}}const cl=n=>{let l=n.replace(/[_-]+/g," ");return l=l.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),l=l.toLowerCase().replace(/\b\w/g,r=>r.toUpperCase()),l},V4="_container_1ers3_2",$4="_header_1ers3_2",K4="_fields-container_1ers3_2",F4="_field-label_1ers3_2",G4="_actions_1ers3_2",nr={container:V4,header:$4,fieldsContainer:K4,fieldLabel:F4,actions:G4},dl=()=>Date.now().toString(36)+Math.random().toString(36).substring(2),X4=(n,l,r)=>It({queryKey:["entity",n,l,r],queryFn:async()=>{const i=r?r.map(([o,d])=>({id:dl(),column:o,operator:"=",value:[{value:d}],connector:"AND"})):[],{data:u}=await Me.post("/runner/select",{datasourceId:n,opts:{table:l,filters:i,joins:[],columns:[],orderBy:[],groupBy:[],aggregations:[]},size:1,page:0,name:`Select ${l}: [${r==null?void 0:r.join()}]`});return u.data},retry:1,enabled:!!l&&!!n&&!!r,staleTime:0,cacheTime:0}),Z4=()=>zt({mutationFn:async n=>{const{data:l}=await Me.post("/runner/update",n);return l.data}}),J4=()=>zt({mutationFn:async n=>{const{data:l}=await Me.post("/runner/insert",n);return l.data}}),Jd=n=>b.useMemo(()=>{var l,r,i;if(n)return n instanceof qw?(l=n.response)!=null&&l.data.error?n.response.data.error:(i=(r=n.response)==null?void 0:r.data)!=null&&i.message?n.response.data.message:n.message:n instanceof Error?n.message:"Undefined error"},[n]),P4=({data:n})=>{const[l,{change:r,touched:i}]=Sr({}),{mutateAsync:u,error:o}=J4(),d=Jd(o),{data:m}=Ps(n.dataSourceId),[y,p]=b.useState(""),g=b.useMemo(()=>m==null?void 0:m.find(C=>C.tableName===n.table),[m,n.table]),S=b.useMemo(()=>{if(!g)return[];if(!y)return g.columns.map(E=>({...E,label:cl(E.name)}));const C=y.toLowerCase();return g.columns.filter(E=>E.name.toLowerCase().includes(C)).map(E=>({...E,label:cl(E.name)}))},[y,g]),w=()=>{const C=[];for(const E of i)C.push({value:l[E],column:E});u({datasourceId:n.dataSourceId,table:n.table,values:C}).then(Y4)};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:nr.header,children:[h.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",h.jsx("span",{className:"underline",children:n.table})]}),d&&h.jsx(Ut,{variant:"danger",children:h.jsx("p",{children:d})})]}),h.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:h.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),h.jsx("div",{className:nr.container,children:h.jsx("div",{className:nr.fieldsContainer,children:S.map(C=>h.jsxs("label",{className:nr.fieldLabel,children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsxs("p",{children:[C.isPrimary?"🔐":"🏷️"," ",C.label]}),h.jsxs("p",{className:"text-blue-800 text-sm",children:["[",C.name,": ",C.type,"]"]})]}),h.jsx("input",{className:"input w-full",value:Yl(l[C.name]),onChange:r(C.name),placeholder:C.name})]},C.name))})}),h.jsxs("div",{className:nr.actions,children:[h.jsxs("label",{children:[h.jsx("span",{className:"mr-2",children:"🔎"}),h.jsx("input",{className:"input bg-white!",value:y,onChange:C=>p(C.target.value),placeholder:"Filter columns"})]}),h.jsx("span",{className:"flex-1"}),h.jsx("button",{disabled:!i.length,className:"button primary",onClick:w,children:"Run insert"})]})]})},I4=()=>{const n=Q4(),[l,r]=b.useState(void 0);b.useEffect(()=>{n&&r(n)},[n]);const i=()=>Zd(void 0);return h.jsxs(dn,{isVisible:n!=null,onClose:i,onClosed:()=>r(void 0),noPadding:!0,children:[h.jsx(sa,{onClick:i}),l&&h.jsx(P4,{data:l})]})},[W4,Pd]=fn(void 0),eE=()=>Pd(void 0),tE="_container_6aals_2",nE="_header_6aals_2",aE="_key_6aals_2",lE="_fields-container_6aals_2",sE="_field-label_6aals_2",iE="_actions_6aals_2",Us={container:tE,header:nE,key:aE,fieldsContainer:lE,fieldLabel:sE,actions:iE},rE=({data:n})=>{const[l,{change:r,set:i,reset:u,touched:o}]=Sr({}),[d,m]=b.useState(""),{data:y,isLoading:p}=X4(n.dataSourceId,n.tableName,n.entityId),{mutateAsync:g,error:S}=Z4(),w=Jd(S),C=xr(Gt.EDITOR),{data:E}=Ps(n.dataSourceId),{data:R}=No(n.dataSourceId),j=b.useMemo(()=>E==null?void 0:E.find(k=>k.tableName===n.tableName),[n.tableName,E]),_=b.useMemo(()=>{if(!j)return[];if(!d)return j.columns.map(Y=>({...Y,label:cl(Y.name)}));const k=d.toLowerCase();return j.columns.filter(Y=>Y.name.toLowerCase().includes(k)).map(Y=>({...Y,label:cl(Y.name)}))},[d,j]);b.useEffect(()=>{const k=y==null?void 0:y.rows[0];if(u(),k&&(y!=null&&y.columns))for(let Y=0;Y<y.columns.length;Y++){const J=y.columns[Y];i(J.column,Yl(k[Y]))}},[y,i,u]);const D=()=>{const k=[];for(const Y of o)k.push({value:l[Y],column:Y});g({datasourceId:n.dataSourceId,table:n.tableName,filters:n.entityId.map(Y=>({id:dl(),value:[{value:Y[1]}],column:Y[0],connector:"AND",operator:"="})),values:k}).then(eE)},T=n.entityId.map(([k,Y])=>`${k} = ${Y}`).join(", ")||"",F=!(R!=null&&R.allowUpdate)||!C;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:Us.header,children:[h.jsxs("p",{className:"text-lg font-semibold",children:[F?"View":"Edit"," row in ",h.jsx("span",{className:"underline",children:n==null?void 0:n.tableName})]}),h.jsx("span",{className:Us.key,children:T}),w&&h.jsx(Ut,{variant:"danger",children:h.jsx("p",{children:w})})]}),!F&&h.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:h.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),h.jsx("div",{className:Us.container,children:h.jsx("div",{className:Us.fieldsContainer,children:_.map(k=>h.jsxs("label",{className:Us.fieldLabel,children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsxs("p",{children:[k.isPrimary?"🔐":"🏷️"," ",k.label]}),h.jsxs("p",{className:"text-blue-800 text-sm",children:["[",k.name,": ",k.type,"]"]})]}),h.jsx("input",{disabled:k.isPrimary||p||F,className:"input w-full",value:Yl(l[k.name]),onChange:r(k.name),placeholder:k.name})]},k.name))})}),h.jsxs("div",{className:Us.actions,children:[h.jsxs("label",{children:[h.jsx("span",{className:"mr-2",children:"🔎"}),h.jsx("input",{className:"input bg-white!",value:d,onChange:k=>m(k.target.value),placeholder:"Filter columns"})]}),h.jsx("span",{className:"flex-1"}),!F&&h.jsx("button",{disabled:!o.length,className:"button primary",onClick:D,children:"Run update"})]})]})},uE=()=>{const n=W4(),[l,r]=b.useState(void 0);b.useEffect(()=>{n&&r(n)},[n]);const i=()=>Pd(void 0);return h.jsxs(dn,{isVisible:n!=null,onClose:i,onClosed:()=>r(void 0),noPadding:!0,children:[h.jsx(sa,{onClick:i}),l&&h.jsx(rE,{data:l})]})},[oE,ed]=fn(void 0),p1=async n=>new Promise(l=>{ed({message:n,onCancel:()=>{l(!1),ed(void 0)},onConfirm:()=>{l(!0),ed(void 0)}})}),cE=({confirm:n})=>h.jsxs("div",{children:[h.jsx("p",{children:n.message}),h.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[h.jsx("button",{className:"button tertiary",onClick:n.onCancel,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:n.onConfirm,children:"Confirm"})]})]}),fE=()=>{const n=oE(),[l,r]=b.useState(void 0);return b.useEffect(()=>{n&&r(n)},[n]),h.jsx(dn,{isVisible:!!n,onClose:()=>n==null?void 0:n.onCancel(),onClosed:()=>r(void 0),children:l&&h.jsx(cE,{confirm:l})})},[dE,Pu]=fn(void 0),wr=async(n,l,r)=>new Promise(i=>{Pu({message:n,defaultValue:l,alert:r,onCancel:()=>{Pu(void 0),i(void 0)},onConfirm:u=>{Pu(void 0),i(u)}})}),hE="_root_12mtw_1",mE={root:hE},pE=({data:n})=>{const[l,r]=b.useState("");b.useEffect(()=>{n.defaultValue&&r(n.defaultValue)},[n]);const i=o=>{r(o.target.value)},u=o=>{o.key==="Enter"&&(o.preventDefault(),n.onConfirm(l)),o.key==="Escape"&&(o.preventDefault(),n.onCancel())};return h.jsxs("div",{className:mE.root,children:[h.jsx("h2",{className:"text-xl font-semibold",children:n.message}),n.alert&&h.jsx(Ut,{variant:n.alert.type,className:"mt-2",children:n.alert.message}),h.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:l,onChange:i,onKeyDown:u}),h.jsxs("div",{className:"flex justify-end gap-2",children:[h.jsx("button",{className:"button tertiary",onClick:n.onCancel,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:()=>n.onConfirm(l),children:"Confirm"})]})]})},yE=()=>{const n=dE(),[l,r]=b.useState(void 0);return b.useEffect(()=>{n&&r(n)},[n]),h.jsx(dn,{isVisible:!!n,onClose:()=>Pu(void 0),onClosed:()=>r(void 0),children:l&&h.jsx(pE,{data:l})})},[vE,gE]=fn(void 0),y1=n=>{gE(n)},bE="_textarea_m55hi_2",xE={textarea:bE},SE=()=>{const n=vE(),l=()=>{n&&(navigator.clipboard.writeText(n.toString()),Jt.success("Copied!"))},r=()=>y1(void 0);return h.jsxs(dn,{isVisible:!!n,onClose:r,backdropClose:!0,children:[h.jsx("textarea",{className:xE.textarea,readOnly:!0,defaultValue:n==null?void 0:n.toString()}),h.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[h.jsx("button",{className:"button primary",onClick:l,children:"Copy"}),h.jsx("button",{className:"button tertiary",onClick:r,children:"Close"})]})]})},wE="_tabs_1hifh_2",EE="_mobile_1hifh_2",CE="_tab_1hifh_2",_E="_active_1hifh_2",NE="_close-button_1hifh_2",ar={tabs:wE,mobile:EE,tab:CE,active:_E,closeButton:NE},jy=n=>window.matchMedia(n).matches;function Id(n,{defaultValue:l=!1,initializeWithValue:r=!0}={}){const[i,u]=b.useState(()=>r?jy(n):l);return b.useLayoutEffect(()=>{const o=window.matchMedia(n);function d(){u(()=>jy(n))}return d(),o.addListener?o.addListener(d):o.addEventListener("change",d),()=>{o.removeListener?o.removeListener(d):o.removeEventListener("change",d)}},[n]),i}const jo={laptop:"(min-width: 1024px)"},jE=()=>window.matchMedia(jo.laptop).matches,AE="_table_12z00_2",TE="_semi-transparent_12z00_2",RE="_table-loading_12z00_2",OE="_table-empty_12z00_2",DE="_table-row-cells_12z00_2",ME="_header-cell_12z00_2",UE="_header-actions_12z00_2",LE="_cell_12z00_2",zE="_cell-actions_12z00_2",qE="_table-config_12z00_2",BE="_table-action_12z00_2",HE="_blue_12z00_2",kE="_red_12z00_2",QE="_modal_12z00_2",YE="_size_12z00_2",VE="_options-container_12z00_2",$E="_underlying-rows-btn_12z00_2",KE="_option-item_12z00_2",ae={table:AE,semiTransparent:TE,tableLoading:RE,tableEmpty:OE,tableRowCells:DE,headerCell:ME,headerActions:UE,cell:LE,cellActions:zE,tableConfig:qE,tableAction:BE,blue:HE,red:kE,modal:QE,size:YE,optionsContainer:VE,underlyingRowsBtn:$E,optionItem:KE},ia=b.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),ht=b.createContext({state:Hs({}),setState:()=>{}}),kn=b.createContext({}),v1=()=>{const[n,l]=b.useState();return b.useMemo(()=>({show:!!n,position:n,open:i=>{i.preventDefault(),l({x:i.clientX-1,y:i.clientY-1})},close:()=>{l(void 0)}}),[n])},FE=n=>{if(n==="ASC")return"DESC";if(n!=="DESC")return"ASC"},GE=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(i=>{l(u=>{const o=u.orderBy[0];if(o&&o.column===i){const d=FE(o.direction);return d?{...u,orderBy:[{column:i,direction:d}]}:{...u,orderBy:[]}}return{...u,orderBy:[{column:i,direction:"ASC"}]}})},[l]);return{orderBy:n.orderBy,updateOrderBy:r}};function XE(n){var r;const l=(r=n.target)==null?void 0:r.dataset;if(l){if(l.copyCol&&l.copyRow)return{col:parseInt(l.copyCol),row:parseInt(l.copyRow),action:"copy"};if(l.showCol&&l.showRow)return{col:parseInt(l.showCol),row:parseInt(l.showRow),action:"show"};if(l.filterCol&&l.filterRow)return{col:parseInt(l.filterCol),row:parseInt(l.filterRow),action:"filter"}}}function td(n,l,r){var o,d,m;const i=(d=(o=n==null?void 0:n.rows)==null?void 0:o[l])==null?void 0:d[r],u=(m=n==null?void 0:n.columns)==null?void 0:m[r];return{value:i,column:u}}const ZE=()=>{const{data:n}=b.useContext(kn),{getColumnType:l}=b.useContext(ia),{setState:r}=b.useContext(ht),i=m=>{const{value:y,column:p}=td(n==null?void 0:n.result,m.row,m.col);if(p){const g=Yl(y,l(p.full));navigator.clipboard.writeText(g),Jt.success("Copied!")}},u=m=>{const{value:y,column:p}=td(n==null?void 0:n.result,m.row,m.col);if(p){const g=Yl(y,l(p.full));y1(g)}},o=m=>{const{value:y,column:p}=td(n==null?void 0:n.result,m.row,m.col);let g=(p==null?void 0:p.full)||"",S;if((p==null?void 0:p.table)===""){Jt.error("Filtering on aggregated column is not supported yet");return}if(g){let w;if(y==null)w={id:dl(),isEnabled:!0,column:g,connector:"AND",operator:"IS NULL"};else{const C=Yl(y,l(g));w={id:dl(),isEnabled:!0,column:g,connector:"AND",operator:"=",fn:S,value:[{value:C}]}}r(C=>({...C,filters:[...C.filters,w]})),Jt.success(`Added new filter on column ${p==null?void 0:p.alias}`)}};return m=>{const y=XE(m);y&&(y.action==="copy"?i(y):y.action==="show"?u(y):y.action==="filter"&&o(y))}},JE="_container_1n8id_2",PE="_content_1n8id_2",IE="_backdrop_1n8id_2",nd={container:JE,content:PE,backdrop:IE},g1=({children:n,handler:l})=>{const r=b.useRef(l.close);r.current=l.close;const i=b.useMemo(()=>{if(!l.position)return;const u={};if(typeof window<"u"){const o=l.position.y>window.innerHeight/2,d=l.position.x>window.innerWidth/2;o?u.bottom=window.innerHeight-l.position.y:u.top=l.position.y,jE()?d?u.right=window.innerWidth-l.position.x:u.left=l.position.x:(u.right=36,u.left=36)}return u},[l]);return b.useEffect(()=>{const u=o=>{o.code==="Escape"&&r.current()};return window.addEventListener("keyup",u),()=>{window.removeEventListener("keyup",u)}},[]),i?h.jsxs("div",{className:nd.container,children:[h.jsx("div",{className:nd.backdrop,onClick:u=>{u.stopPropagation(),u.preventDefault(),l.close()}}),h.jsx("div",{className:nd.content,style:i,children:n})]}):null},WE="_table_1ijay_2",eC="_root_1ijay_2",tC="_content_1ijay_2",nC="_sub_1ijay_2",Bu={table:WE,root:eC,content:tC,sub:nC},b1=({hook:n,onClick:l})=>h.jsxs("button",{className:Bu.root,onClick:l,title:n.where,children:[h.jsx("span",{children:"📄"}),h.jsxs("div",{className:Bu.content,children:[h.jsxs("p",{className:Bu.table,children:[" ",n.on.toTable]}),h.jsxs("span",{className:Bu.sub,children:[n.on.toColumn," = ",n.on.fromTable,".",n.on.fromColumn]})]})]},n.where),Kl=(n,l)=>n!=null&&n>l,aC=({handler:n,rowIndex:l})=>{const{hooks:r,entities:i,dataSourceId:u,getEntityKey:o,getValue:d}=b.useContext(ia),{state:m}=b.useContext(ht),{data:y}=b.useContext(kn),[p,g]=b.useState(""),[S,w]=b.useState(""),C=b.useMemo(()=>y==null?void 0:y.result.rows[l],[y,l]),E=Ws(),R=Lt(),j=()=>{C&&E.mutateAsync({name:"⬇️ "+m.table,opts:Hs({joins:m.joins,table:m.table,dataSourceId:m.dataSourceId,filters:[...m.filters,...m.groupBy.map(Y=>({id:dl(),connector:"AND",column:Y.value,operator:"=",value:[{value:d(C,Y)}]}))]})}).then(Y=>{R(`${Pe.workbench.path}/tab/${Y.id}`),n.close()})},_=Y=>{if(!C)return;const J=d(C,{value:`${Y.on.fromTable}.${Y.on.fromColumn}`});E.mutateAsync({name:`↗️ ${Y.on.toColumn} equals ${J}`,opts:Hs({joins:m.joins,table:Y.on.toTable,dataSourceId:u,filters:[{id:dl(),column:Y.on.toTable+"."+Y.on.toColumn,operator:J==null?"IS NULL":"=",connector:"AND",value:J!=null?[{value:J,isColumn:!1}]:void 0}]})}).then(W=>{R(`${Pe.workbench.path}/tab/${W.id}`),n.close()})},D=Y=>{if(!C)return;const J=o(Y,C);n.close(),Pd({tableName:Y,dataSourceId:u,entityId:J}),n.close()},T=b.useMemo(()=>p?i.filter(Y=>Y.includes(p)):i,[i,p]),F=b.useMemo(()=>{if(!y)return[];const Y=S.toLowerCase();return r.filter(J=>y.result.columns.some(ne=>ne.column===J.on.fromColumn&&ne.table===J.on.fromTable)?J.on.toTable.toLowerCase().includes(Y):!1)},[S,r,y]),k=m.groupBy.length>0;return h.jsxs(g1,{handler:n,children:[i.length>0&&h.jsxs("div",{className:ae.optionsContainer,children:[h.jsxs("label",{className:"flex items-center gap-2 border-b border-b-gray-200 p-2 bg-(--bg)",children:[h.jsx("span",{className:"font-semibold",children:"📝"}),h.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:p,onChange:Y=>g(Y.target.value)})]}),h.jsx("div",{className:"flex flex-col overflow-y-auto",children:Kl(T.length,0)?T.map(Y=>h.jsx("button",{className:ie(ae.optionItem,"font-semibold"),onClick:()=>D(Y),children:h.jsxs("span",{children:["📄 ",Y]})},Y)):h.jsx("p",{className:"text-center p-2 text-gray-800",children:"Empty"})})]}),r.length>0&&h.jsxs("div",{className:ae.optionsContainer,children:[h.jsxs("label",{className:"flex items-center gap-2 border-b border-b-gray-200 p-2 bg-(--bg)",children:[h.jsx("span",{className:"font-semibold",children:"↗️"}),h.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:S,onChange:Y=>w(Y.target.value)})]}),h.jsx("div",{className:"flex flex-col overflow-y-auto",children:F.length>0?F.map(Y=>h.jsx(b1,{hook:Y,onClick:()=>_(Y)},Y.where)):h.jsx("p",{className:"text-center p-2 text-gray-800",children:"Empty"})})]}),k&&h.jsx("button",{onClick:j,className:ae.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},lC={ASC:"⬆️",DESC:"⬇️"},sC=()=>{const{data:n}=b.useContext(kn),{orderBy:l,updateOrderBy:r}=GE(),i=(n==null?void 0:n.result.columns)||[],u=l[0];return h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("td",{className:"p-1 text-center w-8 text-sm text-gray-600",children:"#"}),i.map(o=>h.jsxs("td",{className:ae.headerCell,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:"text-xs truncate",children:o.table||"-"}),h.jsx("p",{className:"text-sm font-bold truncate",children:o.column})]}),h.jsx("div",{className:ae.headerActions,children:h.jsx("button",{onClick:()=>r(o.full),children:(u==null?void 0:u.column)===o.full?lC[u.direction]:"↕️"})})]},o.full))]})})};function iC({value:n,row:l,col:r}){if(n==="")return h.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(n==null)return h.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const i=Yl(n);return h.jsxs(h.Fragment,{children:[h.jsx("span",{"data-row":l,className:"truncate block pointer-events-none",children:i}),h.jsxs("div",{className:ae.cellActions,children:[h.jsx("button",{"data-copy-col":r,"data-copy-row":l,children:"📋"}),h.jsx("button",{"data-show-col":r,"data-show-row":l,children:"👀"}),h.jsx("button",{"data-filter-col":r,"data-filter-row":l,children:"🔎"})]})]})}const rC=b.memo(({row:n,isLastRow:l,index:r,offset:i})=>h.jsxs("tr",{className:ie(ae.tableRowCells,l&&"rounded-b-lg"),children:[h.jsx("td",{className:"p-1 text-center align-middle text-xs w-8 text-blue-500",children:r+1+i}),n.map((u,o)=>h.jsx("td",{className:ae.cell,"data-row":r,children:h.jsx(iC,{value:u,col:o,row:r})},o))]})),uC=()=>{var C,E;const{data:n,error:l,isLoading:r,isFetching:i}=b.useContext(kn),{state:{page:u,size:o}}=b.useContext(ht),d=Jd(l),m=ZE(),y=v1(),[p,g]=b.useState(void 0),S=R=>{var D;const j=(D=R.target)==null?void 0:D.dataset,_=j==null?void 0:j.row;_!=null&&(g(parseInt(_)),y.open(R))},w=u*o;return h.jsxs(h.Fragment,{children:[p!=null&&y.show&&h.jsx(aC,{handler:y,rowIndex:p}),d&&h.jsx(Ut,{className:"my-4",variant:"danger",children:d}),r&&h.jsx("div",{className:ae.tableLoading,children:"Loading data"}),n&&h.jsxs("table",{className:ie(ae.table,i&&ae.semiTransparent),onContextMenu:S,onClick:m,children:[h.jsx(sC,{}),h.jsxs("tbody",{children:[((C=n.result.rows)==null?void 0:C.length)<1&&h.jsx("tr",{className:ae.tableEmpty,children:h.jsx("td",{colSpan:n.result.columns.length+1,children:"No data"})}),(E=n.result.rows)==null?void 0:E.map((R,j)=>h.jsx(rC,{index:j,offset:w,row:R,isLastRow:j===n.result.rows.length-1},j))]})]})]})},oC="_root_17luq_2",cC="_root-show_17luq_2",fC="_content-desktop_17luq_2",dC="_content-mobile_17luq_2",hC="_card_17luq_2",mC="_cards-list_17luq_2",pC="_sub-text_17luq_2",yC="_text_17luq_2",vC="_section-title_17luq_2",gC="_sidebar-action_17luq_2",bC="_sidebar-add-action_17luq_2",xC="_section-container_17luq_2",SC="_close-button_17luq_2",wC="_section-open-btn_17luq_2",EC="_show_17luq_2",re={root:oC,rootShow:cC,contentDesktop:fC,contentMobile:dC,card:hC,cardsList:mC,subText:pC,text:yC,sectionTitle:vC,sidebarAction:gC,sidebarAddAction:bC,sectionContainer:xC,closeButton:SC,sectionOpenBtn:wC,show:EC};function CC(n,l){if(!n&&!l)return!0;if(!n||!l||n.length!==l.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==l[r])return!1;return!0}const x1=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(u=>{l(o=>({...o,filters:u}))},[l]),i=b.useCallback(u=>{l(o=>({...o,filters:o.filters.filter(d=>!(u.column===d.column&&u.operator===d.operator&&CC(u.value,d.value)))}))},[l]);return{filters:n.filters,removeFilter:i,setFilters:r}},_C=(n,l)=>n.type!==l.type||n.on!==l.on||n.table!==l.table,NC=(n,l)=>n.type===l.type&&n.on===l.on&&n.table===l.table,S1=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(i=>{l(u=>{const o=u.joins;if(o.some(m=>NC(m,i))){const m=i.table+".";return{...u,joins:o.filter(y=>_C(y,i)),columns:u.columns.filter(y=>!y.value.startsWith(m)),groupBy:u.groupBy.filter(y=>!y.value.startsWith(m)),orderBy:u.orderBy.filter(y=>!y.column.startsWith(m)),aggregations:u.aggregations.filter(y=>!y.value.startsWith(m)),filters:u.filters.filter(y=>!y.column.startsWith(m))}}return{...u,joins:[...o,i]}})},[l]);return{joins:n.joins,toggle:r}},Ao=n=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...n},b.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})),qs=new Map,jC=n=>{const l=[];return n.ctrlKey&&l.push("CTRL"),n.altKey&&l.push("ALT"),n.shiftKey&&l.push("SHIFT"),n.metaKey&&l.push("META"),l.push(n.key.toLowerCase()),l.join("+")},AC=n=>{var i,u,o;const l=(u=(i=n.target)==null?void 0:i.tagName)==null?void 0:u.toLowerCase();if(n.ctrlKey||n.altKey||n.metaKey||["input","textarea","select"].includes(l)||(o=n.target)!=null&&o.isContentEditable)return;const r=qs.get(jC(n));r&&r.length>0&&r[r.length-1].callback()},TC=(n,l,r="")=>{const i=n.toLowerCase(),u=qs.get(n);return u?qs.set(n,[...u,{callback:l,label:r}]):qs.set(i,[{callback:l,label:r}]),()=>{const o=n.toLowerCase(),d=qs.get(o);d&&qs.set(o,d.filter(m=>m.callback!==l))}};window.addEventListener("keyup",AC);function on(n,l,r){const i=b.useRef({callback:l,label:r});i.current.callback=l,b.useEffect(()=>TC(n,()=>{i.current.callback()},i.current.label),[n])}const RC=()=>{const n=br("Hotkey"),l=Lt(),r=Pt(),{data:i}=la(),{data:u}=Gd();on("n",()=>{i&&n()},"📖 New query"),on("w",()=>{i&&(u&&u.length>0?l(`${Pe.workbench.path}/tab/${u[0].id}`):n())},"🛠️ Open Workbench"),on("h",()=>{r.pathname!==Pe.home.path&&l(Pe.home.path)},"🏠 Go home")},[OC,DC]=fn(!1),Wd=()=>DC(n=>!n),MC="_sidebar_108tq_2",UC="_sidebar-visible_108tq_2",LC="_sidebar-container_108tq_2",zC="_sidebar-invisible_108tq_2",qC="_backdrop_108tq_2",lr={sidebar:MC,sidebarVisible:UC,sidebarContainer:LC,sidebarInvisible:zC,backdrop:qC},w1=({children:n,backdropClose:l,isVisible:r,onClose:i,onClosed:u,contentClassName:o})=>{const[d,m]=b.useState(!1),y=b.useRef(i);y.current=i;const p=()=>{l&&i()},g=S=>{r||getComputedStyle(S.currentTarget).opacity==="0"&&(m(!1),u&&u())};return b.useEffect(()=>{r&&m(!0)},[r]),b.useEffect(()=>{const S=w=>{r&&w.key==="Escape"&&y.current()};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[r]),h.jsxs("div",{onTransitionEnd:g,className:ie(lr.sidebar,r?lr.sidebarVisible:lr.sidebarInvisible),children:[h.jsx("div",{onClick:p,className:lr.backdrop}),h.jsx("div",{className:ie(lr.sidebarContainer,o),children:d&&n})]})},[To,eh]=fn({filters:!1,joins:!1,columns:!1,groupBy:!1,aggregate:!1}),Un=n=>eh(l=>({...l,[n]:!0})),Ro=n=>eh(l=>({...l,[n]:!1})),co=n=>eh(l=>({...l,[n]:!l[n]})),BC=()=>{const n=OC();return Id(jo.laptop)?h.jsx("div",{className:ie(re.root,n&&re.rootShow),children:h.jsxs("div",{className:ie(re.contentDesktop,"no-scrollbar"),children:[h.jsx(Ty,{}),h.jsx(Ay,{}),h.jsx(Ly,{}),h.jsx(Uy,{}),h.jsx(My,{}),h.jsx(Oy,{}),h.jsx(Dy,{}),h.jsx(Ry,{})]})}):h.jsx(w1,{isVisible:n,onClose:Wd,backdropClose:!0,children:h.jsxs("div",{className:re.contentMobile,children:[h.jsx(Ty,{}),h.jsx(Ay,{}),h.jsx(Ly,{}),h.jsx(Uy,{}),h.jsx(My,{}),h.jsx(Oy,{}),h.jsx(Dy,{}),h.jsx(Ry,{})]})})};function Er({onShow:n,show:l,title:r,items:i}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("p",{className:re.sectionTitle,children:r}),i>0&&h.jsxs("button",{className:ie(re.sectionOpenBtn,l&&re.show),onClick:n,children:[h.jsx("span",{children:i}),h.jsx(Ao,{width:16,height:16})]})]})}function Ay(){const{name:n,tabId:l}=b.useContext(ia),{data:r}=b.useContext(kn),i=c4(),u=()=>{l&&wr("New tab name",n).then(d=>{d&&i.mutate({id:l,payload:{name:d}})})},o=()=>{r!=null&&r.result.query&&(navigator.clipboard.writeText(r.result.query),Jt.success("Query copied to clipboard"))};return on("r",u,"Rename tab"),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-1 px-2 mb-4",children:[h.jsx("button",{className:re.sidebarAction,onClick:u,children:h.jsx("span",{children:"✏️ Rename tab"})}),h.jsx("button",{className:re.sidebarAction,onClick:o,children:h.jsx("span",{children:"🖋️ Copy SQL"})})]})}function Ty(){const{state:n}=b.useContext(ht),{data:l}=No(n.dataSourceId);return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx("div",{className:re.card,children:h.jsxs("div",{children:[h.jsx("p",{className:re.subText,children:"📄 Table"}),h.jsx("p",{className:ie(re.text,"text-blue-600"),children:n.table})]})}),h.jsx("div",{className:ie(re.card,"mt-2"),children:h.jsxs("div",{children:[h.jsx("p",{className:re.subText,children:"📦 Data source"}),h.jsx("p",{className:ie(re.text,"text-blue-600"),children:l==null?void 0:l.name})]})})]})}function Ry(){const{state:n,setState:l}=b.useContext(ht),[r,i]=b.useState(!0),u=o=>{l(d=>({...d,groupBy:d.groupBy.filter(m=>In(m)!==o)}))};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Er,{title:"📚 Group by",show:r,onShow:()=>i(!r),items:n.groupBy.length}),r&&n.groupBy.length>0&&h.jsx("div",{className:re.cardsList,children:n.groupBy.map(o=>h.jsxs("div",{className:re.card,children:[h.jsx("span",{className:re.text,children:In(o)}),h.jsx("button",{className:re.closeButton,onClick:()=>u(In(o)),children:h.jsx(Hn,{width:20,height:20})})]},In(o)))}),h.jsxs("button",{className:re.sidebarAddAction,onClick:()=>Un("groupBy"),children:[h.jsx("span",{className:"hotkey",children:"G"}),h.jsx("span",{children:"Add group by"})]})]})}function Oy(){const{state:n,setState:l}=b.useContext(ht),[r,i]=b.useState(!1),u=d=>{l(m=>({...m,columns:m.columns.filter(y=>In(y)!==d)}))},o=n.aggregations.length>0||n.groupBy.length>0;return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Er,{title:"👀 Columns",show:r,onShow:()=>i(!r),items:o?0:n.columns.length}),o&&h.jsx(Ut,{variant:"warning",className:"border border-yellow-800 my-2",children:h.jsx("span",{className:re.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!o&&r&&n.columns.length>0&&h.jsx("div",{className:re.cardsList,children:n.columns.map(d=>h.jsxs("div",{className:re.card,children:[h.jsx("span",{className:re.text,children:In(d)}),h.jsx("button",{className:re.closeButton,onClick:()=>u(In(d)),children:h.jsx(Hn,{width:20,height:20})})]}))}),!o&&h.jsxs("button",{className:re.sidebarAddAction,onClick:()=>Un("columns"),children:[h.jsx("span",{className:"hotkey",children:"C"}),h.jsx("span",{children:"Show/Hide columns"})]})]})}function Dy(){const{state:n,setState:l}=b.useContext(ht),[r,i]=b.useState(!0),u=o=>{const d=In(o);l(m=>({...m,aggregations:m.aggregations.filter(y=>y.fn!==o.fn||y.value!==o.value),orderBy:m.orderBy.filter(y=>y.column!==d)}))};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Er,{title:"🔢 Aggregations",show:r,onShow:()=>i(!r),items:n.aggregations.length}),r&&n.aggregations.length>0&&h.jsx("div",{className:re.cardsList,children:n.aggregations.map(o=>h.jsxs("div",{className:re.card,children:[h.jsxs("span",{className:re.text,children:[o.fn," ",o.value]}),h.jsx("button",{className:re.closeButton,onClick:()=>u(o),children:h.jsx(Hn,{width:20,height:20})})]}))}),h.jsxs("button",{className:re.sidebarAddAction,onClick:()=>Un("aggregate"),children:[h.jsx("span",{className:"hotkey",children:"A"}),h.jsx("span",{children:"Aggregate data"})]})]})}const HC=n=>(n==null?void 0:n.map(l=>l.value).join(", "))||"";function My(){const{state:n}=b.useContext(ht),{removeFilter:l}=x1(),[r,i]=b.useState(!0),u=()=>{Un("filters")};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Er,{title:"🎚️ Filters",show:r,onShow:()=>i(!r),items:n.filters.length}),r&&n.filters.length>0&&h.jsx("div",{className:re.cardsList,children:n.filters.map((o,d)=>h.jsxs("div",{className:re.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:ie(re.subText,"truncate"),children:o.column}),h.jsxs("p",{className:ie(re.text,"truncate"),children:[$d[o.operator]," ",HC(o.value)]})]}),h.jsx("button",{className:re.closeButton,onClick:()=>l(o),children:h.jsx(Hn,{width:20,height:20})})]},d))}),h.jsxs("button",{className:re.sidebarAddAction,onClick:u,children:[h.jsx("span",{className:"hotkey",children:"F"}),h.jsx("span",{children:"Filter data"})]})]})}function Uy(){const{toggle:n}=S1(),{availableJoins:l}=b.useContext(ia),{state:r}=b.useContext(ht),[i,u]=b.useState(!0);return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Er,{title:"📄 Joins",show:i,onShow:()=>u(!i),items:r.joins.length}),i&&r.joins.length>0&&h.jsx("div",{className:re.cardsList,children:r.joins.map((o,d)=>h.jsxs("div",{className:re.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsxs("p",{className:ie(re.subText,"truncate"),children:["on ",o.on]}),h.jsx("p",{className:re.text,children:o.table})]}),d===r.joins.length-1&&h.jsx("button",{className:re.closeButton,onClick:()=>n(o),children:h.jsx(Hn,{width:20,height:20})})]},o.table+o.on))}),l.length>0&&h.jsxs("button",{onClick:()=>Un("joins"),className:re.sidebarAddAction,children:[h.jsx("span",{className:"hotkey",children:"J"}),h.jsx("span",{children:"Join table"})]})]})}function Ly(){const{state:n,setState:l}=b.useContext(ht);if(!n.orderBy.length)return null;const r=i=>{l(u=>({...u,orderBy:u.orderBy.filter(o=>o.column!==i.column&&o.direction!==i.direction)}))};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx("p",{className:re.sectionTitle,children:"Order by"}),h.jsx("div",{className:re.cardsList,children:n.orderBy.map((i,u)=>h.jsxs("div",{className:re.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:ie(re.subText,"truncate"),children:i.direction}),h.jsx("p",{className:re.text,children:i.column})]}),h.jsx("button",{className:re.closeButton,onClick:()=>r(i),children:h.jsx(Hn,{width:20,height:20})})]},u))})]})}const E1=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(u=>{l(o=>({...o,page:u}))},[l]),i=b.useCallback(u=>{l(o=>({...o,size:u}))},[l]);return{page:n.page,size:n.size,setSize:i,setPage:r}},kC=()=>zt({mutationFn:async n=>{const{data:l}=await Me.post("/saved-queries",n);return l.data},onSuccess:()=>{xt.invalidateQueries(["queries"]),Js()}}),QC=()=>zt({mutationFn:async n=>Me.delete("/saved-queries/"+n),onSuccess:()=>{Js()}}),YC=()=>zt({mutationFn:async({id:n,payload:l})=>{const{data:r}=await Me.patch("/queries/"+n,l);return r.data},onSuccess:n=>{xt.invalidateQueries(["query",n.id]),Js(),M3(),n.isTrash}}),Qs=Math.min,Vl=Math.max,fo=Math.round,Hu=Math.floor,ea=n=>({x:n,y:n}),VC={left:"right",right:"left",bottom:"top",top:"bottom"},$C={start:"end",end:"start"};function Cd(n,l,r){return Vl(n,Qs(l,r))}function Cr(n,l){return typeof n=="function"?n(l):n}function Fl(n){return n.split("-")[0]}function _r(n){return n.split("-")[1]}function C1(n){return n==="x"?"y":"x"}function th(n){return n==="y"?"height":"width"}function fl(n){return["top","bottom"].includes(Fl(n))?"y":"x"}function nh(n){return C1(fl(n))}function KC(n,l,r){r===void 0&&(r=!1);const i=_r(n),u=nh(n),o=th(u);let d=u==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[o]>l.floating[o]&&(d=ho(d)),[d,ho(d)]}function FC(n){const l=ho(n);return[_d(n),l,_d(l)]}function _d(n){return n.replace(/start|end/g,l=>$C[l])}function GC(n,l,r){const i=["left","right"],u=["right","left"],o=["top","bottom"],d=["bottom","top"];switch(n){case"top":case"bottom":return r?l?u:i:l?i:u;case"left":case"right":return l?o:d;default:return[]}}function XC(n,l,r,i){const u=_r(n);let o=GC(Fl(n),r==="start",i);return u&&(o=o.map(d=>d+"-"+u),l&&(o=o.concat(o.map(_d)))),o}function ho(n){return n.replace(/left|right|bottom|top/g,l=>VC[l])}function ZC(n){return{top:0,right:0,bottom:0,left:0,...n}}function _1(n){return typeof n!="number"?ZC(n):{top:n,right:n,bottom:n,left:n}}function mo(n){const{x:l,y:r,width:i,height:u}=n;return{width:i,height:u,top:r,left:l,right:l+i,bottom:r+u,x:l,y:r}}function zy(n,l,r){let{reference:i,floating:u}=n;const o=fl(l),d=nh(l),m=th(d),y=Fl(l),p=o==="y",g=i.x+i.width/2-u.width/2,S=i.y+i.height/2-u.height/2,w=i[m]/2-u[m]/2;let C;switch(y){case"top":C={x:g,y:i.y-u.height};break;case"bottom":C={x:g,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:S};break;case"left":C={x:i.x-u.width,y:S};break;default:C={x:i.x,y:i.y}}switch(_r(l)){case"start":C[d]-=w*(r&&p?-1:1);break;case"end":C[d]+=w*(r&&p?-1:1);break}return C}const JC=async(n,l,r)=>{const{placement:i="bottom",strategy:u="absolute",middleware:o=[],platform:d}=r,m=o.filter(Boolean),y=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:n,floating:l,strategy:u}),{x:g,y:S}=zy(p,i,y),w=i,C={},E=0;for(let R=0;R<m.length;R++){const{name:j,fn:_}=m[R],{x:D,y:T,data:F,reset:k}=await _({x:g,y:S,initialPlacement:i,placement:w,strategy:u,middlewareData:C,rects:p,platform:d,elements:{reference:n,floating:l}});g=D??g,S=T??S,C={...C,[j]:{...C[j],...F}},k&&E<=50&&(E++,typeof k=="object"&&(k.placement&&(w=k.placement),k.rects&&(p=k.rects===!0?await d.getElementRects({reference:n,floating:l,strategy:u}):k.rects),{x:g,y:S}=zy(p,w,y)),R=-1)}return{x:g,y:S,placement:w,strategy:u,middlewareData:C}};async function N1(n,l){var r;l===void 0&&(l={});const{x:i,y:u,platform:o,rects:d,elements:m,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:S="floating",altBoundary:w=!1,padding:C=0}=Cr(l,n),E=_1(C),j=m[w?S==="floating"?"reference":"floating":S],_=mo(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(j)))==null||r?j:j.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(m.floating)),boundary:p,rootBoundary:g,strategy:y})),D=S==="floating"?{x:i,y:u,width:d.floating.width,height:d.floating.height}:d.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(m.floating)),F=await(o.isElement==null?void 0:o.isElement(T))?await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1}:{x:1,y:1},k=mo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:D,offsetParent:T,strategy:y}):D);return{top:(_.top-k.top+E.top)/F.y,bottom:(k.bottom-_.bottom+E.bottom)/F.y,left:(_.left-k.left+E.left)/F.x,right:(k.right-_.right+E.right)/F.x}}const PC=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:i,placement:u,rects:o,platform:d,elements:m,middlewareData:y}=l,{element:p,padding:g=0}=Cr(n,l)||{};if(p==null)return{};const S=_1(g),w={x:r,y:i},C=nh(u),E=th(C),R=await d.getDimensions(p),j=C==="y",_=j?"top":"left",D=j?"bottom":"right",T=j?"clientHeight":"clientWidth",F=o.reference[E]+o.reference[C]-w[C]-o.floating[E],k=w[C]-o.reference[C],Y=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let J=Y?Y[T]:0;(!J||!await(d.isElement==null?void 0:d.isElement(Y)))&&(J=m.floating[T]||o.floating[E]);const W=F/2-k/2,ne=J/2-R[E]/2-1,pe=Qs(S[_],ne),Be=Qs(S[D],ne),Ee=pe,Ke=J-R[E]-Be,ye=J/2-R[E]/2+W,xe=Cd(Ee,ye,Ke),B=!y.arrow&&_r(u)!=null&&ye!==xe&&o.reference[E]/2-(ye<Ee?pe:Be)-R[E]/2<0,G=B?ye<Ee?ye-Ee:ye-Ke:0;return{[C]:w[C]+G,data:{[C]:xe,centerOffset:ye-xe-G,...B&&{alignmentOffset:G}},reset:B}}}),IC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,i;const{placement:u,middlewareData:o,rects:d,initialPlacement:m,platform:y,elements:p}=l,{mainAxis:g=!0,crossAxis:S=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:R=!0,...j}=Cr(n,l);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const _=Fl(u),D=fl(m),T=Fl(m)===m,F=await(y.isRTL==null?void 0:y.isRTL(p.floating)),k=w||(T||!R?[ho(m)]:FC(m)),Y=E!=="none";!w&&Y&&k.push(...XC(m,R,E,F));const J=[m,...k],W=await N1(l,j),ne=[];let pe=((i=o.flip)==null?void 0:i.overflows)||[];if(g&&ne.push(W[_]),S){const ye=KC(u,d,F);ne.push(W[ye[0]],W[ye[1]])}if(pe=[...pe,{placement:u,overflows:ne}],!ne.every(ye=>ye<=0)){var Be,Ee;const ye=(((Be=o.flip)==null?void 0:Be.index)||0)+1,xe=J[ye];if(xe&&(!(S==="alignment"?D!==fl(xe):!1)||pe.every(Z=>Z.overflows[0]>0&&fl(Z.placement)===D)))return{data:{index:ye,overflows:pe},reset:{placement:xe}};let B=(Ee=pe.filter(G=>G.overflows[0]<=0).sort((G,Z)=>G.overflows[1]-Z.overflows[1])[0])==null?void 0:Ee.placement;if(!B)switch(C){case"bestFit":{var Ke;const G=(Ke=pe.filter(Z=>{if(Y){const oe=fl(Z.placement);return oe===D||oe==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(oe=>oe>0).reduce((oe,A)=>oe+A,0)]).sort((Z,oe)=>Z[1]-oe[1])[0])==null?void 0:Ke[0];G&&(B=G);break}case"initialPlacement":B=m;break}if(u!==B)return{reset:{placement:B}}}return{}}}};async function WC(n,l){const{placement:r,platform:i,elements:u}=n,o=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=Fl(r),m=_r(r),y=fl(r)==="y",p=["left","top"].includes(d)?-1:1,g=o&&y?-1:1,S=Cr(l,n);let{mainAxis:w,crossAxis:C,alignmentAxis:E}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return m&&typeof E=="number"&&(C=m==="end"?E*-1:E),y?{x:C*g,y:w*p}:{x:w*p,y:C*g}}const e_=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,i;const{x:u,y:o,placement:d,middlewareData:m}=l,y=await WC(l,n);return d===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:u+y.x,y:o+y.y,data:{...y,placement:d}}}}},t_=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:i,placement:u}=l,{mainAxis:o=!0,crossAxis:d=!1,limiter:m={fn:j=>{let{x:_,y:D}=j;return{x:_,y:D}}},...y}=Cr(n,l),p={x:r,y:i},g=await N1(l,y),S=fl(Fl(u)),w=C1(S);let C=p[w],E=p[S];if(o){const j=w==="y"?"top":"left",_=w==="y"?"bottom":"right",D=C+g[j],T=C-g[_];C=Cd(D,C,T)}if(d){const j=S==="y"?"top":"left",_=S==="y"?"bottom":"right",D=E+g[j],T=E-g[_];E=Cd(D,E,T)}const R=m.fn({...l,[w]:C,[S]:E});return{...R,data:{x:R.x-r,y:R.y-i,enabled:{[w]:o,[S]:d}}}}}};function Oo(){return typeof window<"u"}function ei(n){return j1(n)?(n.nodeName||"").toLowerCase():"#document"}function cn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function ra(n){var l;return(l=(j1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function j1(n){return Oo()?n instanceof Node||n instanceof cn(n).Node:!1}function zn(n){return Oo()?n instanceof Element||n instanceof cn(n).Element:!1}function ta(n){return Oo()?n instanceof HTMLElement||n instanceof cn(n).HTMLElement:!1}function qy(n){return!Oo()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof cn(n).ShadowRoot}function Nr(n){const{overflow:l,overflowX:r,overflowY:i,display:u}=qn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+r)&&!["inline","contents"].includes(u)}function n_(n){return["table","td","th"].includes(ei(n))}function Do(n){return[":popover-open",":modal"].some(l=>{try{return n.matches(l)}catch{return!1}})}function ah(n){const l=lh(),r=zn(n)?qn(n):n;return["transform","translate","scale","rotate","perspective"].some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!l&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!l&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function a_(n){let l=hl(n);for(;ta(l)&&!Ys(l);){if(ah(l))return l;if(Do(l))return null;l=hl(l)}return null}function lh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ys(n){return["html","body","#document"].includes(ei(n))}function qn(n){return cn(n).getComputedStyle(n)}function Mo(n){return zn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function hl(n){if(ei(n)==="html")return n;const l=n.assignedSlot||n.parentNode||qy(n)&&n.host||ra(n);return qy(l)?l.host:l}function A1(n){const l=hl(n);return Ys(l)?n.ownerDocument?n.ownerDocument.body:n.body:ta(l)&&Nr(l)?l:A1(l)}function cr(n,l,r){var i;l===void 0&&(l=[]),r===void 0&&(r=!0);const u=A1(n),o=u===((i=n.ownerDocument)==null?void 0:i.body),d=cn(u);if(o){const m=Nd(d);return l.concat(d,d.visualViewport||[],Nr(u)?u:[],m&&r?cr(m):[])}return l.concat(u,cr(u,[],r))}function Nd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function T1(n){const l=qn(n);let r=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const u=ta(n),o=u?n.offsetWidth:r,d=u?n.offsetHeight:i,m=fo(r)!==o||fo(i)!==d;return m&&(r=o,i=d),{width:r,height:i,$:m}}function sh(n){return zn(n)?n:n.contextElement}function Bs(n){const l=sh(n);if(!ta(l))return ea(1);const r=l.getBoundingClientRect(),{width:i,height:u,$:o}=T1(l);let d=(o?fo(r.width):r.width)/i,m=(o?fo(r.height):r.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const l_=ea(0);function R1(n){const l=cn(n);return!lh()||!l.visualViewport?l_:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function s_(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==cn(n)?!1:l}function Gl(n,l,r,i){l===void 0&&(l=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),o=sh(n);let d=ea(1);l&&(i?zn(i)&&(d=Bs(i)):d=Bs(n));const m=s_(o,r,i)?R1(o):ea(0);let y=(u.left+m.x)/d.x,p=(u.top+m.y)/d.y,g=u.width/d.x,S=u.height/d.y;if(o){const w=cn(o),C=i&&zn(i)?cn(i):i;let E=w,R=Nd(E);for(;R&&i&&C!==E;){const j=Bs(R),_=R.getBoundingClientRect(),D=qn(R),T=_.left+(R.clientLeft+parseFloat(D.paddingLeft))*j.x,F=_.top+(R.clientTop+parseFloat(D.paddingTop))*j.y;y*=j.x,p*=j.y,g*=j.x,S*=j.y,y+=T,p+=F,E=cn(R),R=Nd(E)}}return mo({width:g,height:S,x:y,y:p})}function ih(n,l){const r=Mo(n).scrollLeft;return l?l.left+r:Gl(ra(n)).left+r}function O1(n,l,r){r===void 0&&(r=!1);const i=n.getBoundingClientRect(),u=i.left+l.scrollLeft-(r?0:ih(n,i)),o=i.top+l.scrollTop;return{x:u,y:o}}function i_(n){let{elements:l,rect:r,offsetParent:i,strategy:u}=n;const o=u==="fixed",d=ra(i),m=l?Do(l.floating):!1;if(i===d||m&&o)return r;let y={scrollLeft:0,scrollTop:0},p=ea(1);const g=ea(0),S=ta(i);if((S||!S&&!o)&&((ei(i)!=="body"||Nr(d))&&(y=Mo(i)),ta(i))){const C=Gl(i);p=Bs(i),g.x=C.x+i.clientLeft,g.y=C.y+i.clientTop}const w=d&&!S&&!o?O1(d,y,!0):ea(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-y.scrollLeft*p.x+g.x+w.x,y:r.y*p.y-y.scrollTop*p.y+g.y+w.y}}function r_(n){return Array.from(n.getClientRects())}function u_(n){const l=ra(n),r=Mo(n),i=n.ownerDocument.body,u=Vl(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),o=Vl(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let d=-r.scrollLeft+ih(n);const m=-r.scrollTop;return qn(i).direction==="rtl"&&(d+=Vl(l.clientWidth,i.clientWidth)-u),{width:u,height:o,x:d,y:m}}function o_(n,l){const r=cn(n),i=ra(n),u=r.visualViewport;let o=i.clientWidth,d=i.clientHeight,m=0,y=0;if(u){o=u.width,d=u.height;const p=lh();(!p||p&&l==="fixed")&&(m=u.offsetLeft,y=u.offsetTop)}return{width:o,height:d,x:m,y}}function c_(n,l){const r=Gl(n,!0,l==="fixed"),i=r.top+n.clientTop,u=r.left+n.clientLeft,o=ta(n)?Bs(n):ea(1),d=n.clientWidth*o.x,m=n.clientHeight*o.y,y=u*o.x,p=i*o.y;return{width:d,height:m,x:y,y:p}}function By(n,l,r){let i;if(l==="viewport")i=o_(n,r);else if(l==="document")i=u_(ra(n));else if(zn(l))i=c_(l,r);else{const u=R1(n);i={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return mo(i)}function D1(n,l){const r=hl(n);return r===l||!zn(r)||Ys(r)?!1:qn(r).position==="fixed"||D1(r,l)}function f_(n,l){const r=l.get(n);if(r)return r;let i=cr(n,[],!1).filter(m=>zn(m)&&ei(m)!=="body"),u=null;const o=qn(n).position==="fixed";let d=o?hl(n):n;for(;zn(d)&&!Ys(d);){const m=qn(d),y=ah(d);!y&&m.position==="fixed"&&(u=null),(o?!y&&!u:!y&&m.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||Nr(d)&&!y&&D1(n,d))?i=i.filter(g=>g!==d):u=m,d=hl(d)}return l.set(n,i),i}function d_(n){let{element:l,boundary:r,rootBoundary:i,strategy:u}=n;const d=[...r==="clippingAncestors"?Do(l)?[]:f_(l,this._c):[].concat(r),i],m=d[0],y=d.reduce((p,g)=>{const S=By(l,g,u);return p.top=Vl(S.top,p.top),p.right=Qs(S.right,p.right),p.bottom=Qs(S.bottom,p.bottom),p.left=Vl(S.left,p.left),p},By(l,m,u));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function h_(n){const{width:l,height:r}=T1(n);return{width:l,height:r}}function m_(n,l,r){const i=ta(l),u=ra(l),o=r==="fixed",d=Gl(n,!0,o,l);let m={scrollLeft:0,scrollTop:0};const y=ea(0);function p(){y.x=ih(u)}if(i||!i&&!o)if((ei(l)!=="body"||Nr(u))&&(m=Mo(l)),i){const C=Gl(l,!0,o,l);y.x=C.x+l.clientLeft,y.y=C.y+l.clientTop}else u&&p();o&&!i&&u&&p();const g=u&&!i&&!o?O1(u,m):ea(0),S=d.left+m.scrollLeft-y.x-g.x,w=d.top+m.scrollTop-y.y-g.y;return{x:S,y:w,width:d.width,height:d.height}}function ad(n){return qn(n).position==="static"}function Hy(n,l){if(!ta(n)||qn(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return ra(n)===r&&(r=r.ownerDocument.body),r}function M1(n,l){const r=cn(n);if(Do(n))return r;if(!ta(n)){let u=hl(n);for(;u&&!Ys(u);){if(zn(u)&&!ad(u))return u;u=hl(u)}return r}let i=Hy(n,l);for(;i&&n_(i)&&ad(i);)i=Hy(i,l);return i&&Ys(i)&&ad(i)&&!ah(i)?r:i||a_(n)||r}const p_=async function(n){const l=this.getOffsetParent||M1,r=this.getDimensions,i=await r(n.floating);return{reference:m_(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function y_(n){return qn(n).direction==="rtl"}const v_={convertOffsetParentRelativeRectToViewportRelativeRect:i_,getDocumentElement:ra,getClippingRect:d_,getOffsetParent:M1,getElementRects:p_,getClientRects:r_,getDimensions:h_,getScale:Bs,isElement:zn,isRTL:y_};function U1(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function g_(n,l){let r=null,i;const u=ra(n);function o(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function d(m,y){m===void 0&&(m=!1),y===void 0&&(y=1),o();const p=n.getBoundingClientRect(),{left:g,top:S,width:w,height:C}=p;if(m||l(),!w||!C)return;const E=Hu(S),R=Hu(u.clientWidth-(g+w)),j=Hu(u.clientHeight-(S+C)),_=Hu(g),T={rootMargin:-E+"px "+-R+"px "+-j+"px "+-_+"px",threshold:Vl(0,Qs(1,y))||1};let F=!0;function k(Y){const J=Y[0].intersectionRatio;if(J!==y){if(!F)return d();J?d(!1,J):i=setTimeout(()=>{d(!1,1e-7)},1e3)}J===1&&!U1(p,n.getBoundingClientRect())&&d(),F=!1}try{r=new IntersectionObserver(k,{...T,root:u.ownerDocument})}catch{r=new IntersectionObserver(k,T)}r.observe(n)}return d(!0),o}function b_(n,l,r,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:o=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=sh(n),g=u||o?[...p?cr(p):[],...cr(l)]:[];g.forEach(_=>{u&&_.addEventListener("scroll",r,{passive:!0}),o&&_.addEventListener("resize",r)});const S=p&&m?g_(p,r):null;let w=-1,C=null;d&&(C=new ResizeObserver(_=>{let[D]=_;D&&D.target===p&&C&&(C.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=C)==null||T.observe(l)})),r()}),p&&!y&&C.observe(p),C.observe(l));let E,R=y?Gl(n):null;y&&j();function j(){const _=Gl(n);R&&!U1(R,_)&&r(),R=_,E=requestAnimationFrame(j)}return r(),()=>{var _;g.forEach(D=>{u&&D.removeEventListener("scroll",r),o&&D.removeEventListener("resize",r)}),S==null||S(),(_=C)==null||_.disconnect(),C=null,y&&cancelAnimationFrame(E)}}const x_=e_,S_=t_,w_=IC,E_=PC,ky=(n,l,r)=>{const i=new Map,u={platform:v_,...r},o={...u.platform,_c:i};return JC(n,l,{...u,platform:o})};var ld={exports:{}};/*!
233
- Copyright (c) 2018 Jed Watson.
234
- Licensed under the MIT License (MIT), see
235
- http://jedwatson.github.io/classnames
236
- */var Qy;function C_(){return Qy||(Qy=1,function(n){(function(){var l={}.hasOwnProperty;function r(){for(var o="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(o=u(o,i(m)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var d="";for(var m in o)l.call(o,m)&&o[m]&&(d=u(d,m));return d}function u(o,d){return d?o?o+" "+d:o+d:o}n.exports?(r.default=r,n.exports=r):window.classNames=r})()}(ld)),ld.exports}var __=C_();const jd=po(__);var Yy={};const N_="react-tooltip-core-styles",j_="react-tooltip-base-styles",Vy={core:!1,base:!1};function $y({css:n,id:l=j_,type:r="base",ref:i}){var u,o;if(!n||typeof document>"u"||Vy[r]||r==="core"&&typeof process<"u"&&(!((u=process==null?void 0:Yy)===null||u===void 0)&&u.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:Yy)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(l=N_),i||(i={});const{insertAt:d}=i;if(document.getElementById(l))return;const m=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.id=l,y.type="text/css",d==="top"&&m.firstChild?m.insertBefore(y,m.firstChild):m.appendChild(y),y.styleSheet?y.styleSheet.cssText=n:y.appendChild(document.createTextNode(n)),Vy[r]=!0}const Ky=async({elementReference:n=null,tooltipReference:l=null,tooltipArrowReference:r=null,place:i="top",offset:u=10,strategy:o="absolute",middlewares:d=[x_(Number(u)),w_({fallbackAxisSideDirection:"start"}),S_({padding:5})],border:m,arrowSize:y=8})=>{if(!n)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(l===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const p=d;return r?(p.push(E_({element:r,padding:5})),ky(n,l,{placement:i,strategy:o,middleware:p}).then(({x:g,y:S,placement:w,middlewareData:C})=>{var E,R;const j={left:`${g}px`,top:`${S}px`,border:m},{x:_,y:D}=(E=C.arrow)!==null&&E!==void 0?E:{x:0,y:0},T=(R={top:"bottom",right:"left",bottom:"top",left:"right"}[w.split("-")[0]])!==null&&R!==void 0?R:"bottom",F=m&&{borderBottom:m,borderRight:m};let k=0;if(m){const Y=`${m}`.match(/(\d+)px/);k=Y!=null&&Y[1]?Number(Y[1]):1}return{tooltipStyles:j,tooltipArrowStyles:{left:_!=null?`${_}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",...F,[T]:`-${y/2+k}px`},place:w}})):ky(n,l,{placement:"bottom",strategy:o,middleware:p}).then(({x:g,y:S,placement:w})=>({tooltipStyles:{left:`${g}px`,top:`${S}px`},tooltipArrowStyles:{},place:w}))},Fy=(n,l)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(n,l),Gy=(n,l,r)=>{let i=null;const u=function(...o){const d=()=>{i=null};!i&&(n.apply(this,o),i=setTimeout(d,l))};return u.cancel=()=>{i&&(clearTimeout(i),i=null)},u},Xy=n=>n!==null&&!Array.isArray(n)&&typeof n=="object",Ad=(n,l)=>{if(n===l)return!0;if(Array.isArray(n)&&Array.isArray(l))return n.length===l.length&&n.every((u,o)=>Ad(u,l[o]));if(Array.isArray(n)!==Array.isArray(l))return!1;if(!Xy(n)||!Xy(l))return n===l;const r=Object.keys(n),i=Object.keys(l);return r.length===i.length&&r.every(u=>Ad(n[u],l[u]))},A_=n=>{if(!(n instanceof HTMLElement||n instanceof SVGElement))return!1;const l=getComputedStyle(n);return["overflow","overflow-x","overflow-y"].some(r=>{const i=l.getPropertyValue(r);return i==="auto"||i==="scroll"})},Zy=n=>{if(!n)return null;let l=n.parentElement;for(;l;){if(A_(l))return l;l=l.parentElement}return document.scrollingElement||document.documentElement},T_=typeof window<"u"?b.useLayoutEffect:b.useEffect,Tn=n=>{n.current&&(clearTimeout(n.current),n.current=null)},R_="DEFAULT_TOOLTIP_ID",O_={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},D_=b.createContext({getTooltipData:()=>O_});function L1(n=R_){return b.useContext(D_).getTooltipData(n)}var Ls={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},sd={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const M_=({forwardRef:n,id:l,className:r,classNameArrow:i,variant:u="dark",anchorId:o,anchorSelect:d,place:m="top",offset:y=10,events:p=["hover"],openOnClick:g=!1,positionStrategy:S="absolute",middlewares:w,wrapper:C,delayShow:E=0,delayHide:R=0,float:j=!1,hidden:_=!1,noArrow:D=!1,clickable:T=!1,closeOnEsc:F=!1,closeOnScroll:k=!1,closeOnResize:Y=!1,openEvents:J,closeEvents:W,globalCloseEvents:ne,imperativeModeOnly:pe,style:Be,position:Ee,afterShow:Ke,afterHide:ye,disableTooltip:xe,content:B,contentWrapperRef:G,isOpen:Z,defaultIsOpen:oe=!1,setIsOpen:A,activeAnchor:Q,setActiveAnchor:I,border:P,opacity:se,arrowColor:Ce,arrowSize:ce=8,role:St="tooltip"})=>{var Ue;const Xe=b.useRef(null),Qn=b.useRef(null),Nt=b.useRef(null),hn=b.useRef(null),ua=b.useRef(null),[mn,ti]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:m}),[qt,Bt]=b.useState(!1),[oa,Yn]=b.useState(!1),[Fe,Vn]=b.useState(null),yl=b.useRef(!1),Ma=b.useRef(null),{anchorRefs:vl,setActiveAnchor:Zl}=L1(l),pn=b.useRef(!1),[tt,Yt]=b.useState([]),st=b.useRef(!1),Ua=g||p.includes("click"),ni=Ua||(J==null?void 0:J.click)||(J==null?void 0:J.dblclick)||(J==null?void 0:J.mousedown),La=J?{...J}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!J&&Ua&&Object.assign(La,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const yn=W?{...W}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!W&&Ua&&Object.assign(yn,{mouseleave:!1,blur:!1,mouseout:!1});const jt=ne?{...ne}:{escape:F||!1,scroll:k||!1,resize:Y||!1,clickOutsideAnchor:ni||!1};pe&&(Object.assign(La,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(yn,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(jt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),T_(()=>(st.current=!0,()=>{st.current=!1}),[]);const He=X=>{st.current&&(X&&Yn(!0),setTimeout(()=>{st.current&&(A==null||A(X),Z===void 0&&Bt(X))},10))};b.useEffect(()=>{if(Z===void 0)return()=>null;Z&&Yn(!0);const X=setTimeout(()=>{Bt(Z)},10);return()=>{clearTimeout(X)}},[Z]),b.useEffect(()=>{if(qt!==yl.current)if(Tn(ua),yl.current=qt,qt)Ke==null||Ke();else{const X=(te=>{const de=te.match(/^([\d.]+)(ms|s)$/);if(!de)return 0;const[,Ie,yt]=de;return Number(Ie)*(yt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ua.current=setTimeout(()=>{Yn(!1),Vn(null),ye==null||ye()},X+25)}},[qt]);const ca=X=>{ti(te=>Ad(te,X)?te:X)},Rn=(X=E)=>{Tn(Nt),oa?He(!0):Nt.current=setTimeout(()=>{He(!0)},X)},za=(X=R)=>{Tn(hn),hn.current=setTimeout(()=>{pn.current||He(!1)},X)},qa=X=>{var te;if(!X)return;const de=(te=X.currentTarget)!==null&&te!==void 0?te:X.target;if(!(de!=null&&de.isConnected))return I(null),void Zl({current:null});E?Rn():He(!0),I(de),Zl({current:de}),Tn(hn)},fa=()=>{T?za(R||100):R?za():He(!1),Tn(Nt)},$n=({x:X,y:te})=>{var de;const Ie={getBoundingClientRect:()=>({x:X,y:te,width:0,height:0,top:te,left:X,right:X,bottom:te})};Ky({place:(de=Fe==null?void 0:Fe.place)!==null&&de!==void 0?de:m,offset:y,elementReference:Ie,tooltipReference:Xe.current,tooltipArrowReference:Qn.current,strategy:S,middlewares:w,border:P,arrowSize:ce}).then(yt=>{ca(yt)})},vn=X=>{if(!X)return;const te=X,de={x:te.clientX,y:te.clientY};$n(de),Ma.current=de},gl=X=>{var te;if(!qt)return;const de=X.target;de.isConnected&&(!((te=Xe.current)===null||te===void 0)&&te.contains(de)||[document.querySelector(`[id='${o}']`),...tt].some(Ie=>Ie==null?void 0:Ie.contains(de))||(He(!1),Tn(Nt)))},bl=Gy(qa,50),it=Gy(fa,50),At=X=>{it.cancel(),bl(X)},ue=()=>{bl.cancel(),it()},_e=b.useCallback(()=>{var X,te;const de=(X=Fe==null?void 0:Fe.position)!==null&&X!==void 0?X:Ee;de?$n(de):j?Ma.current&&$n(Ma.current):Q!=null&&Q.isConnected&&Ky({place:(te=Fe==null?void 0:Fe.place)!==null&&te!==void 0?te:m,offset:y,elementReference:Q,tooltipReference:Xe.current,tooltipArrowReference:Qn.current,strategy:S,middlewares:w,border:P,arrowSize:ce}).then(Ie=>{st.current&&ca(Ie)})},[qt,Q,B,Be,m,Fe==null?void 0:Fe.place,y,S,Ee,Fe==null?void 0:Fe.position,j,ce]);b.useEffect(()=>{var X,te;const de=new Set(vl);tt.forEach(Oe=>{xe!=null&&xe(Oe)||de.add({current:Oe})});const Ie=document.querySelector(`[id='${o}']`);Ie&&!(xe!=null&&xe(Ie))&&de.add({current:Ie});const yt=()=>{He(!1)},gn=Zy(Q),Wt=Zy(Xe.current);jt.scroll&&(window.addEventListener("scroll",yt),gn==null||gn.addEventListener("scroll",yt),Wt==null||Wt.addEventListener("scroll",yt));let rt=null;jt.resize?window.addEventListener("resize",yt):Q&&Xe.current&&(rt=b_(Q,Xe.current,_e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Rt=Oe=>{Oe.key==="Escape"&&He(!1)};jt.escape&&window.addEventListener("keydown",Rt),jt.clickOutsideAnchor&&window.addEventListener("click",gl);const Re=[],en=Oe=>!!(Oe!=null&&Oe.target&&(Q!=null&&Q.contains(Oe.target))),xl=Oe=>{qt&&en(Oe)||qa(Oe)},Ba=Oe=>{qt&&en(Oe)&&fa()},ut=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ai=["click","dblclick","mousedown","mouseup"];Object.entries(La).forEach(([Oe,bn])=>{bn&&(ut.includes(Oe)?Re.push({event:Oe,listener:At}):ai.includes(Oe)&&Re.push({event:Oe,listener:xl}))}),Object.entries(yn).forEach(([Oe,bn])=>{bn&&(ut.includes(Oe)?Re.push({event:Oe,listener:ue}):ai.includes(Oe)&&Re.push({event:Oe,listener:Ba}))}),j&&Re.push({event:"pointermove",listener:vn});const li=()=>{pn.current=!0},Kn=()=>{pn.current=!1,fa()},da=T&&(yn.mouseout||yn.mouseleave);return da&&((X=Xe.current)===null||X===void 0||X.addEventListener("mouseover",li),(te=Xe.current)===null||te===void 0||te.addEventListener("mouseout",Kn)),Re.forEach(({event:Oe,listener:bn})=>{de.forEach(Jl=>{var Sl;(Sl=Jl.current)===null||Sl===void 0||Sl.addEventListener(Oe,bn)})}),()=>{var Oe,bn;jt.scroll&&(window.removeEventListener("scroll",yt),gn==null||gn.removeEventListener("scroll",yt),Wt==null||Wt.removeEventListener("scroll",yt)),jt.resize?window.removeEventListener("resize",yt):rt==null||rt(),jt.clickOutsideAnchor&&window.removeEventListener("click",gl),jt.escape&&window.removeEventListener("keydown",Rt),da&&((Oe=Xe.current)===null||Oe===void 0||Oe.removeEventListener("mouseover",li),(bn=Xe.current)===null||bn===void 0||bn.removeEventListener("mouseout",Kn)),Re.forEach(({event:Jl,listener:Sl})=>{de.forEach(Pl=>{var Ha;(Ha=Pl.current)===null||Ha===void 0||Ha.removeEventListener(Jl,Sl)})})}},[Q,_e,oa,vl,tt,J,W,ne,Ua,E,R]),b.useEffect(()=>{var X,te;let de=(te=(X=Fe==null?void 0:Fe.anchorSelect)!==null&&X!==void 0?X:d)!==null&&te!==void 0?te:"";!de&&l&&(de=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`);const Ie=new MutationObserver(yt=>{const gn=[],Wt=[];yt.forEach(rt=>{if(rt.type==="attributes"&&rt.attributeName==="data-tooltip-id"&&(rt.target.getAttribute("data-tooltip-id")===l?gn.push(rt.target):rt.oldValue===l&&Wt.push(rt.target)),rt.type==="childList"){if(Q){const Rt=[...rt.removedNodes].filter(Re=>Re.nodeType===1);if(de)try{Wt.push(...Rt.filter(Re=>Re.matches(de))),Wt.push(...Rt.flatMap(Re=>[...Re.querySelectorAll(de)]))}catch{}Rt.some(Re=>{var en;return!!(!((en=Re==null?void 0:Re.contains)===null||en===void 0)&&en.call(Re,Q))&&(Yn(!1),He(!1),I(null),Tn(Nt),Tn(hn),!0)})}if(de)try{const Rt=[...rt.addedNodes].filter(Re=>Re.nodeType===1);gn.push(...Rt.filter(Re=>Re.matches(de))),gn.push(...Rt.flatMap(Re=>[...Re.querySelectorAll(de)]))}catch{}}}),(gn.length||Wt.length)&&Yt(rt=>[...rt.filter(Rt=>!Wt.includes(Rt)),...gn])});return Ie.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ie.disconnect()}},[l,d,Fe==null?void 0:Fe.anchorSelect,Q]),b.useEffect(()=>{_e()},[_e]),b.useEffect(()=>{if(!(G!=null&&G.current))return()=>null;const X=new ResizeObserver(()=>{setTimeout(()=>_e())});return X.observe(G.current),()=>{X.disconnect()}},[B,G==null?void 0:G.current]),b.useEffect(()=>{var X;const te=document.querySelector(`[id='${o}']`),de=[...tt,te];Q&&de.includes(Q)||I((X=tt[0])!==null&&X!==void 0?X:te)},[o,tt,Q]),b.useEffect(()=>(oe&&He(!0),()=>{Tn(Nt),Tn(hn)}),[]),b.useEffect(()=>{var X;let te=(X=Fe==null?void 0:Fe.anchorSelect)!==null&&X!==void 0?X:d;if(!te&&l&&(te=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`),te)try{const de=Array.from(document.querySelectorAll(te));Yt(de)}catch{Yt([])}},[l,d,Fe==null?void 0:Fe.anchorSelect]),b.useEffect(()=>{Nt.current&&(Tn(Nt),Rn(E))},[E]);const Ht=(Ue=Fe==null?void 0:Fe.content)!==null&&Ue!==void 0?Ue:B,Tt=qt&&Object.keys(mn.tooltipStyles).length>0;return b.useImperativeHandle(n,()=>({open:X=>{if(X!=null&&X.anchorSelect)try{document.querySelector(X.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${X.anchorSelect}" is not a valid CSS selector`)}Vn(X??null),X!=null&&X.delay?Rn(X.delay):He(!0)},close:X=>{X!=null&&X.delay?za(X.delay):He(!1)},activeAnchor:Q,place:mn.place,isOpen:!!(oa&&!_&&Ht&&Tt)})),oa&&!_&&Ht?$e.createElement(C,{id:l,role:St,className:jd("react-tooltip",Ls.tooltip,sd.tooltip,sd[u],r,`react-tooltip__place-${mn.place}`,Ls[Tt?"show":"closing"],Tt?"react-tooltip__show":"react-tooltip__closing",S==="fixed"&&Ls.fixed,T&&Ls.clickable),onTransitionEnd:X=>{Tn(ua),qt||X.propertyName!=="opacity"||(Yn(!1),Vn(null),ye==null||ye())},style:{...Be,...mn.tooltipStyles,opacity:se!==void 0&&Tt?se:void 0},ref:Xe},Ht,$e.createElement(C,{className:jd("react-tooltip-arrow",Ls.arrow,sd.arrow,i,D&&Ls.noArrow),style:{...mn.tooltipArrowStyles,background:Ce?`linear-gradient(to right bottom, transparent 50%, ${Ce} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Qn})):null},U_=({content:n})=>$e.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),rh=$e.forwardRef(({id:n,anchorId:l,anchorSelect:r,content:i,html:u,render:o,className:d,classNameArrow:m,variant:y="dark",place:p="top",offset:g=10,wrapper:S="div",children:w=null,events:C=["hover"],openOnClick:E=!1,positionStrategy:R="absolute",middlewares:j,delayShow:_=0,delayHide:D=0,float:T=!1,hidden:F=!1,noArrow:k=!1,clickable:Y=!1,closeOnEsc:J=!1,closeOnScroll:W=!1,closeOnResize:ne=!1,openEvents:pe,closeEvents:Be,globalCloseEvents:Ee,imperativeModeOnly:Ke=!1,style:ye,position:xe,isOpen:B,defaultIsOpen:G=!1,disableStyleInjection:Z=!1,border:oe,opacity:A,arrowColor:Q,arrowSize:I,setIsOpen:P,afterShow:se,afterHide:Ce,disableTooltip:ce,role:St="tooltip"},Ue)=>{const[Xe,Qn]=b.useState(i),[Nt,hn]=b.useState(u),[ua,mn]=b.useState(p),[ti,qt]=b.useState(y),[Bt,oa]=b.useState(g),[Yn,Fe]=b.useState(_),[Vn,yl]=b.useState(D),[Ma,vl]=b.useState(T),[Zl,pn]=b.useState(F),[tt,Yt]=b.useState(S),[st,Ua]=b.useState(C),[ni,La]=b.useState(R),[yn,jt]=b.useState(null),[He,ca]=b.useState(null),Rn=b.useRef(Z),{anchorRefs:za,activeAnchor:qa}=L1(n),fa=it=>it==null?void 0:it.getAttributeNames().reduce((At,ue)=>{var _e;return ue.startsWith("data-tooltip-")&&(At[ue.replace(/^data-tooltip-/,"")]=(_e=it==null?void 0:it.getAttribute(ue))!==null&&_e!==void 0?_e:null),At},{}),$n=it=>{const At={place:ue=>{var _e;mn((_e=ue)!==null&&_e!==void 0?_e:p)},content:ue=>{Qn(ue??i)},html:ue=>{hn(ue??u)},variant:ue=>{var _e;qt((_e=ue)!==null&&_e!==void 0?_e:y)},offset:ue=>{oa(ue===null?g:Number(ue))},wrapper:ue=>{var _e;Yt((_e=ue)!==null&&_e!==void 0?_e:S)},events:ue=>{const _e=ue==null?void 0:ue.split(" ");Ua(_e??C)},"position-strategy":ue=>{var _e;La((_e=ue)!==null&&_e!==void 0?_e:R)},"delay-show":ue=>{Fe(ue===null?_:Number(ue))},"delay-hide":ue=>{yl(ue===null?D:Number(ue))},float:ue=>{vl(ue===null?T:ue==="true")},hidden:ue=>{pn(ue===null?F:ue==="true")},"class-name":ue=>{jt(ue)}};Object.values(At).forEach(ue=>ue(null)),Object.entries(it).forEach(([ue,_e])=>{var Ht;(Ht=At[ue])===null||Ht===void 0||Ht.call(At,_e)})};b.useEffect(()=>{Qn(i)},[i]),b.useEffect(()=>{hn(u)},[u]),b.useEffect(()=>{mn(p)},[p]),b.useEffect(()=>{qt(y)},[y]),b.useEffect(()=>{oa(g)},[g]),b.useEffect(()=>{Fe(_)},[_]),b.useEffect(()=>{yl(D)},[D]),b.useEffect(()=>{vl(T)},[T]),b.useEffect(()=>{pn(F)},[F]),b.useEffect(()=>{La(R)},[R]),b.useEffect(()=>{Rn.current!==Z&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[Z]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:Z==="core",disableBase:Z}}))},[]),b.useEffect(()=>{var it;const At=new Set(za);let ue=r;if(!ue&&n&&(ue=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),ue)try{document.querySelectorAll(ue).forEach(te=>{At.add({current:te})})}catch{console.warn(`[react-tooltip] "${ue}" is not a valid CSS selector`)}const _e=document.querySelector(`[id='${l}']`);if(_e&&At.add({current:_e}),!At.size)return()=>null;const Ht=(it=He??_e)!==null&&it!==void 0?it:qa.current,Tt=new MutationObserver(te=>{te.forEach(de=>{var Ie;if(!Ht||de.type!=="attributes"||!(!((Ie=de.attributeName)===null||Ie===void 0)&&Ie.startsWith("data-tooltip-")))return;const yt=fa(Ht);$n(yt)})}),X={attributes:!0,childList:!1,subtree:!1};if(Ht){const te=fa(Ht);$n(te),Tt.observe(Ht,X)}return()=>{Tt.disconnect()}},[za,qa,He,l,r]),b.useEffect(()=>{ye!=null&&ye.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),oe&&!Fy("border",`${oe}`)&&console.warn(`[react-tooltip] "${oe}" is not a valid \`border\`.`),ye!=null&&ye.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),A&&!Fy("opacity",`${A}`)&&console.warn(`[react-tooltip] "${A}" is not a valid \`opacity\`.`)},[]);let vn=w;const gl=b.useRef(null);if(o){const it=o({content:(He==null?void 0:He.getAttribute("data-tooltip-content"))||Xe||null,activeAnchor:He});vn=it?$e.createElement("div",{ref:gl,className:"react-tooltip-content-wrapper"},it):null}else Xe&&(vn=Xe);Nt&&(vn=$e.createElement(U_,{content:Nt}));const bl={forwardRef:Ue,id:n,anchorId:l,anchorSelect:r,className:jd(d,yn),classNameArrow:m,content:vn,contentWrapperRef:gl,place:ua,variant:ti,offset:Bt,wrapper:tt,events:st,openOnClick:E,positionStrategy:ni,middlewares:j,delayShow:Yn,delayHide:Vn,float:Ma,hidden:Zl,noArrow:k,clickable:Y,closeOnEsc:J,closeOnScroll:W,closeOnResize:ne,openEvents:pe,closeEvents:Be,globalCloseEvents:Ee,imperativeModeOnly:Ke,style:ye,position:xe,isOpen:B,defaultIsOpen:G,border:oe,opacity:A,arrowColor:Q,arrowSize:I,setIsOpen:P,afterShow:se,afterHide:Ce,disableTooltip:ce,activeAnchor:He,setActiveAnchor:it=>ca(it),role:St};return $e.createElement(M_,{...bl})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",n=>{n.detail.disableCore||$y({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),n.detail.disableBase||$y({css:`
237
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function L_(){return h.jsxs("div",{className:"flex items-center bg-white border-b border-gray-200 overflow-auto no-scrollbar",children:[h.jsx(z_,{}),h.jsx(B_,{}),h.jsx(H_,{})]})}function z_(){const{dataSourceId:n,name:l}=b.useContext(ia),{data:r}=No(n),{data:i}=b.useContext(kn),u=xr(Gt.EDITOR),o=kC(),d=()=>{var y,p;(y=i==null?void 0:i.result.columns)!=null&&y[0].table&&Zd({table:(p=i==null?void 0:i.result.columns)==null?void 0:p[0].table,dataSourceId:n})},m=async()=>{const y=await wr("Query name",l);!y||!(i!=null&&i.result.queryHistoryId)||o.mutate({name:y,queryId:i.result.queryHistoryId})};return on("s",m,"Save query"),h.jsxs("div",{className:ae.tableConfig,children:[h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Manage filters",onClick:()=>Un("filters"),className:ie(ae.tableAction,ae.blue),children:[h.jsx("span",{children:"Filter"}),h.jsx("span",{className:"hotkey",children:"F"})]}),h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Join tables",onClick:()=>Un("joins"),className:ie(ae.tableAction,ae.blue),children:[h.jsx("span",{children:"Join"}),h.jsx("span",{className:"hotkey",children:"J"})]}),h.jsx(k_,{}),h.jsxs("button",{"data-tooltip-id":"explorer-more-actions",className:ie(ae.tableAction,ae.blue),children:[h.jsx("span",{className:"whitespace-nowrap",children:"More actions"}),h.jsx(Ao,{width:16,height:16,className:"rotate-90"})]}),h.jsxs(rh,{id:"explorer-more-actions",className:"z-10 shadow-md flex flex-col",clickable:!0,variant:"light",opacity:1,children:[h.jsxs("button",{onClick:()=>Un("columns"),className:ie(ae.tableAction,ae.modal,ae.blue,"justify-between"),children:[h.jsx("span",{children:"Columns"}),h.jsx("span",{className:"hotkey",children:"C"})]}),h.jsxs("button",{onClick:()=>Un("groupBy"),className:ie(ae.tableAction,ae.modal,ae.blue,"justify-between"),children:[h.jsx("span",{children:"Group by"}),h.jsx("span",{className:"hotkey",children:"G"})]}),h.jsxs("button",{onClick:()=>Un("aggregate"),className:ie(ae.tableAction,ae.modal,ae.blue,"justify-between"),children:[h.jsx("span",{children:"Aggregate"}),h.jsx("span",{className:"hotkey",children:"A"})]}),h.jsxs("button",{onClick:Wd,className:ie(ae.tableAction,ae.modal,ae.blue,"justify-between"),children:[h.jsx("span",{children:"Query editor"}),h.jsx("span",{className:"hotkey",children:"E"})]}),u&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"h-0.5 my-2 bg-gray-100"}),h.jsxs("button",{onClick:m,className:ie(ae.tableAction,ae.modal,ae.blue),children:[h.jsx("span",{children:"Save query"}),h.jsx("span",{className:"hotkey",children:"S"})]}),(r==null?void 0:r.allowInsert)===!0&&h.jsx("button",{onClick:d,className:ie(ae.tableAction,ae.modal,ae.blue),children:"Insert new row"})]})]})]})}const q_=[5,10,20,50,100,200];function B_(){const{name:n}=b.useContext(ia),{state:l}=b.useContext(ht),{refetch:r,data:i}=b.useContext(kn),{size:u,setSize:o}=E1(),d=Ws(),m=Lt(),y=(window==null?void 0:window.location.hostname)!=="localhost",p=()=>{d.mutateAsync({name:n,opts:l}).then(S=>{m(`${Pe.workbench.path}/tab/${S.id}`)})},g=()=>{if(i!=null&&i.result.queryHistoryId){const S=new URL(window.location.href);S.pathname=Pe.share.path,S.searchParams.set("shareId",i.result.queryHistoryId),navigator.clipboard.writeText(S.toString()),Jt.success("Share link copied to clipboard")}};return on("e",Wd,"Show editor sidebar"),h.jsxs("div",{className:ae.tableConfig,children:[h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:r,className:ie(ae.tableAction,ae.blue),children:"Refresh"}),y&&h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Share query",onClick:g,className:ie(ae.tableAction,ae.blue),children:"Share"}),h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Clone in a new tab",onClick:p,className:ie(ae.tableAction,ae.blue),children:"Clone"}),h.jsxs("button",{"data-tooltip-id":"rows-num",className:ie(ae.tableAction,ae.size,ae.blue),children:[h.jsxs("span",{className:"whitespace-nowrap",children:[u," rows"]}),h.jsx(Ao,{width:16,height:16,className:"rotate-90"})]}),h.jsx(rh,{id:"rows-num",className:"z-10 shadow-md flex",clickable:!0,variant:"light",opacity:1,children:q_.map(S=>h.jsx("button",{onClick:()=>o(S),className:ie(ae.tableAction,ae.blue),children:h.jsx("span",{children:S})}))})]})}function H_(){const{page:n,size:l,setPage:r}=E1(),{data:i}=b.useContext(kn),u=(i==null?void 0:i.result.rows.length)===l;return h.jsxs("div",{className:ae.tableConfig,children:[h.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:n<=0,className:ie(ae.tableAction,ae.blue),onClick:()=>r(n-1),children:"Prev"}),h.jsx("span",{className:"text-sm bg-gray-50 rounded-md px-2 border border-gray-200",children:n+1}),h.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!u,className:ie(ae.tableAction,ae.blue),onClick:()=>r(n+1),children:"Next"})]})}function k_(){const{state:n,setState:l}=b.useContext(ht),r=()=>{l(u=>({...u,searchAll:void 0}))},i=()=>{wr("Search all text values for",n.searchAll||"",{type:"info",message:"This will search all text values using LIKE operator (numbers, dates and other non string values are not searched)."}).then(u=>{u!==void 0&&l(o=>({...o,searchAll:u.length>0?u:void 0}))})};return on("k",i,"Search text"),n.searchAll?h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:r,className:ie(ae.tableAction,ae.red),children:h.jsxs("span",{className:"truncate px-1",children:["❌ ",n.searchAll]})}):h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:i,className:ie(ae.tableAction,ae.blue),children:[h.jsx("span",{className:"whitespace-nowrap",children:"Search text"}),h.jsx("span",{className:"hotkey",children:"K"})]})}const Q_="_drop-container_ar1cs_2",Y_="_item_ar1cs_2",Jy={dropContainer:Q_,item:Y_},Td=({dataSourceId:n,focusId:l,placeholder:r="Column",onChange:i,value:u,autoFocus:o,allowTables:d})=>{const{data:m}=Ps(n),y=b.useRef(null),p=b.useMemo(()=>{if(!m)return[];let _=m;return d&&(_=m.filter(D=>d.includes(D.tableName))),_.flatMap(D=>D.columns.map(T=>({value:D.tableName+"."+T.name,label:T.name,table:D.tableName,searchValue:T.name.toLowerCase()})))},[m,d]),g=b.useMemo(()=>{const _=u.toLowerCase()||"",D=[];for(let T=0;T<p.length&&D.length<10;T++)p[T].searchValue.includes(_)&&D.push(p[T]);return D},[p,u]),[S,w]=b.useState(!1),[C,E]=b.useState(0),R=_=>{var D;if(_.key==="ArrowDown")_.preventDefault(),E(T=>(T+1)%g.length);else if(_.key==="ArrowUp")_.preventDefault(),E(T=>(T-1+g.length)%g.length);else if(_.key==="Enter"&&C>=0&&C<g.length){_.preventDefault();const T=g[C].value;w(!1);const F=p.findIndex(k=>k.value===T)>-1;i(((D=g[C])==null?void 0:D.value)||T,F,!0)}};b.useEffect(()=>{var D;const _=(D=y.current)==null?void 0:D.querySelector('[data-is-active="true"]');_&&_.scrollIntoView({behavior:"smooth",block:"nearest"})},[C]);const j=_=>{const D=_.currentTarget.value,T=p.findIndex(F=>F.value===D)>-1;i(D,T,!1)};return h.jsxs("div",{className:"relative",onFocus:()=>w(!0),onBlur:()=>w(!1),children:[h.jsx("input",{autoFocus:o,onKeyDown:R,value:u,onChange:j,className:"input w-full",placeholder:r,"data-focus":l}),S&&g.length>0&&h.jsx("div",{className:Jy.dropContainer,ref:y,tabIndex:-1,children:g.map((_,D)=>h.jsxs("div",{className:Jy.item,"data-is-active":C===D,onMouseDownCapture:T=>{T.preventDefault(),w(!1),i(_.value,!0,!0)},children:[h.jsx("span",{className:"text-xs font-semibold truncate",children:_.table}),h.jsx("p",{className:"truncate text-sm",children:_.label})]},D))})]})},V_="_drop-container_pkty5_2",$_="_item_pkty5_2",Py={dropContainer:V_,item:$_};function K_(n){return t4.includes(n)?I3:n4.includes(n)?P3:a4.includes(n)?W3:Vd}const F_=({value:n,onChange:l,autoFocus:r,focusId:i,colType:u})=>{const o=b.useMemo(()=>{const w=n.toLowerCase()||"";return K_(u||"").filter(C=>C.label.includes(w))},[n,u]),d=b.useRef(null),[m,y]=b.useState(!1),[p,g]=b.useState(0),S=w=>{var C;w.key==="ArrowDown"?(w.preventDefault(),g(E=>(E+1)%o.length)):w.key==="ArrowUp"?(w.preventDefault(),g(E=>(E-1+o.length)%o.length)):w.key==="Enter"&&(p>=0&&p<o.length?(w.preventDefault(),y(!1),l(((C=o[p])==null?void 0:C.label)||"",!0)):l(n,!0))};return b.useEffect(()=>{var C;const w=(C=d.current)==null?void 0:C.querySelector('[data-is-active="true"]');w&&w.scrollIntoView({behavior:"smooth",block:"nearest"})},[p]),h.jsxs("div",{className:"relative",children:[h.jsx("input",{onKeyDown:S,value:n,onChange:w=>l(w.target.value,!1),className:"input w-full",placeholder:"Operator",autoFocus:r,onFocus:()=>y(!0),onBlur:()=>y(!1),"data-focus":i}),m&&o.length>0&&h.jsx("ul",{className:Py.dropContainer,ref:d,tabIndex:-1,children:o.map((w,C)=>h.jsx("li",{className:Py.item,"data-is-active":p===C,onMouseDownCapture:E=>{E.preventDefault(),y(!1),l(w.label,!0)},children:w.label},C))})]})},G_="_actions_1tyj8_2",X_="_filter-actions_1tyj8_2",z1={actions:G_,filterActions:X_},Z_=["=","<",">",">=","<>","!=","<="];function J_(n){for(let l=0;l<n.length;l++){const r=n[l];if(!r.operator.length&&!r.value.length&&!r.column.length)continue;if(!r.column.includes("."))return Jt.error(`Filter #${l+1} has invalid column value`),!1;const i=Kd[r.operator];if(!i)return Jt.error(`Filter #${l+1} has invalid operator`),!1;if(r.isColumnRef&&!Z_.includes(i))return Jt.error(`Filter #${l+1} cannot reference another column because it uses '${r.operator}' operator`),!1}return!0}function P_(n){const l=[];return n.forEach(r=>{if(!r.operator.length||!r.column.length||r.operator!=="is null"&&r.operator!=="is not null"&&!r.value.length)return;const i=Kd[r.operator];l.push({id:r.id,value:r.isColumnRef?[{value:r.value,isColumn:!0}]:e4(i,r.value),operator:i,column:r.column,isEnabled:r.isEnabled,connector:"AND"})}),l}function I_(n){let l="";if(n.value)for(let r=0;r<n.value.length;r++)l+=n.value[r].value,r<n.value.length-1&&(l+=", ");return l}const W_=({filter:n,dataSourceId:l,allowedTables:r,inspections:i,autoFocus:u,onChangeColumn:o,onChangeOperator:d,onChangeValue:m,onRemoveFilter:y,triggerIsEnabled:p,onIsColumnChange:g})=>{const S=b.useMemo(()=>{if(!i)return"";let w=null;for(const C of i)for(const E of C.columns)C.tableName+"."+E.name===n.column&&(w=E);return w!=null&&w.type?w.type:""},[n.column,i]);return h.jsxs("div",{className:"flex gap-2 items-center",children:[h.jsx("label",{children:h.jsx("input",{type:"checkbox",checked:n.isEnabled!==!1,onClick:()=>p(n.id)})}),h.jsx("label",{className:"w-full",children:h.jsx(Td,{dataSourceId:l,onChange:w=>o(n.id,w),value:n.column,allowTables:r,focusId:"column",autoFocus:u})}),h.jsx("label",{children:h.jsx(F_,{onChange:w=>d(n.id,w),focusId:"operator",colType:S,value:n.operator})}),h1(Kd[n.operator])&&h.jsx("label",{className:"w-full",children:n.isColumnRef?h.jsx(Td,{dataSourceId:l,onChange:w=>m(n.id,w),value:n.value,allowTables:r,focusId:"value",placeholder:"Search column"}):h.jsx("input",{className:"input w-full",placeholder:"Filter value",value:n.value,onChange:w=>m(n.id,w.currentTarget.value),"data-focus":"value"})}),h.jsxs("div",{className:z1.filterActions,children:[h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"If enabled, the value will reference another column instead of being raw string",className:ie("p-0.5 cursor-pointer rounded-lg border",n.isColumnRef?"bg-blue-50 border-blue-200":"bg-white border-white"),onClick:()=>g(n.id,!n.isColumnRef),children:"🏷️"}),h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove filter",className:"p-0.5 text-sm cursor-pointer",onClick:()=>y(n.id),children:h.jsx(Hn,{width:20,height:20,className:"text-red-600"})})]})]})},e6=()=>{const{state:n}=b.useContext(ht),{setFilters:l}=x1(),r=To(j=>j.filters),{data:i}=Ps(n.dataSourceId),u=b.useMemo(()=>[n.table,...n.joins.map(j=>j.table)],[n.table,n.joins]),[o,d]=b.useState([]),m=(j,_)=>{d(D=>[...D.map(T=>T.id===j?{...T,column:_}:T)])},y=(j,_)=>{d(D=>[...D.map(T=>T.id===j?{...T,operator:_}:T)])},p=(j,_)=>{d(D=>[...D.map(T=>T.id===j?{...T,value:_}:T)])},g=()=>{d(j=>[...j,{id:dl(),value:"",column:"",operator:"",isColumnRef:!1,isEnabled:!0}])},S=(j,_)=>{d(D=>[...D.map(T=>T.id===j?{...T,isColumnRef:_}:T)])},w=j=>{d(_=>_.filter(D=>D.id!==j))},C=()=>Ro("filters"),E=()=>{J_(o)&&(l(P_(o)),C())},R=j=>{d(_=>_.map(D=>D.id===j?{...D,isEnabled:!D.isEnabled}:D))};return b.useEffect(()=>{if(!r){d([]);return}d(()=>{const j=n.filters.map(_=>{var D,T;return{id:_.id,value:I_(_),column:_.column,operator:$d[_.operator],isColumnRef:!!((T=(D=_.value)==null?void 0:D[0])!=null&&T.isColumn),isEnabled:_.isEnabled}});return j.push({id:dl(),value:"",column:"",operator:"",isColumnRef:!1,isEnabled:!0}),j})},[r]),on("f",()=>{co("filters")},"Add new filter"),on("ctrl+f",()=>{alert("Save filters")},"Save filters"),h.jsxs(dn,{isVisible:r,onClose:C,portal:!0,children:[h.jsx(sa,{onClick:C}),h.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),h.jsxs("div",{className:"flex gap-4 flex-col w-full lg:w-lg my-4",children:[o.length<1&&h.jsx("p",{className:"p-1 text-center rounded-lg bg-gray-50 border border-gray-200",children:"No filters"}),o.map((j,_)=>h.jsx(W_,{filter:j,dataSourceId:n.dataSourceId,allowedTables:u,inspections:i||[],onChangeColumn:m,onChangeOperator:y,onChangeValue:p,onRemoveFilter:w,onIsColumnChange:S,triggerIsEnabled:R,autoFocus:_===o.length-1},j.id))]}),h.jsxs("div",{className:z1.actions,children:[h.jsx("button",{className:"button tertiary",onClick:g,children:"Add filter"}),h.jsx("button",{className:"button primary",onClick:E,children:"Apply filters"})]})]})},t6="_card_gn18s_2",n6="_cards-list_gn18s_2",a6="_join-modal_gn18s_2",l6="_close-button_gn18s_2",ku={card:t6,cardsList:n6,joinModal:a6,closeButton:l6},s6=()=>{const{isFetching:n}=b.useContext(kn),l=To(p=>p.joins),{toggle:r,joins:i}=S1(),{availableJoins:u}=b.useContext(ia),[o,d]=b.useState(""),m=b.useMemo(()=>{const p=o.toLowerCase();return u.filter(g=>g.on.toTable.toLowerCase().includes(p))},[u,o]),y=()=>Ro("joins");return on("j",()=>{u.length>0?Un("joins"):Jt.error("No available tables to join")},"Add new join"),h.jsxs(dn,{isVisible:l,onClose:y,portal:!0,children:[h.jsx(sa,{onClick:y}),h.jsxs("div",{className:ku.joinModal,children:[h.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),i.length>0&&h.jsx("div",{className:ku.cardsList,children:i.map((p,g)=>h.jsxs("div",{className:ku.card,children:[h.jsxs("p",{className:"text-sm truncate",children:[p.table," on ",p.on]}),g===i.length-1&&h.jsx("button",{className:ku.closeButton,onClick:()=>r(p),disabled:n,children:h.jsx(Hn,{width:20,height:20})})]},p.table+p.on))}),u.length>0?h.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:p=>d(p.target.value),value:o,disabled:n}):h.jsx(Ut,{variant:"warning",children:h.jsx("p",{className:"text-sm truncate",children:"No more tables to join"})}),h.jsx("div",{className:`flex flex-col mt-2 overflow-y-auto ${n?"opacity-40":""}`,children:m.map(p=>h.jsx(b1,{hook:p,onClick:()=>{n||(r({table:p.on.toTable,type:"LEFT",on:p.where}),d(""))}},p.where))})]})]})};function i6(n){return n.reduce((l,r)=>(l[r]=!0,l),{})}function Iy(n){return n.reduce((l,r)=>(l[r]=!0,l),{})}const r6="_container_1i04c_2",u6="_column-label_1i04c_2",o6="_not-active_1i04c_2",Iu={container:r6,columnLabel:u6,notActive:o6};function c6(n){if(!n)return[];const l={};return n.forEach(r=>{l[r.table]?l[r.table].push({value:r.full,ogColumn:r.column,label:cl(r.column),type:r.type}):l[r.table]=[{value:r.full,ogColumn:r.column,label:cl(r.column),type:r.type}],l4[r.type]&&["YEAR","MONTH","DAY"].forEach(i=>{l[r.table].push({value:i+" "+r.full,ogColumn:r.column,label:i+" "+cl(r.column),type:"number",nested:!0})})}),Object.entries(l).reduce((r,[i,u])=>(r.push({name:cl(i),columns:u}),r),[])}function f6(n,l){const r=l.toLowerCase();return n.map(i=>{const u=i.columns.filter(o=>o.label.toLowerCase().includes(r)||o.ogColumn.toLowerCase().includes(r));return{...i,columns:u}}).filter(i=>i.columns.length>0)}const d6=({column:n,selected:l,onCheck:r})=>h.jsxs("label",{className:ie(Iu.columnLabel,l?Iu.active:Iu.notActive,n.nested&&"pl-5!"),children:[h.jsx("input",{type:"checkbox",checked:l[n.value],name:n.value,onChange:r}),h.jsxs("p",{className:"flex justify-between w-full",children:[h.jsx("span",{"data-tooltip-content":n.value,"data-tooltip-id":"default",children:n.label}),h.jsx("span",{className:"text-blue-600",children:n.type})]})]},n.value),h6={columns:"c",groupBy:"g"},Wy=({mode:n})=>{const l=To(_=>_[n]),{allColumns:r}=b.useContext(ia),{state:i,setState:u}=b.useContext(ht),[o,d]=b.useState({}),[m,y]=b.useState(""),p=b.useMemo(()=>c6(r),[r]),g=i.aggregations.length>0||i.groupBy.length>0,S=b.useMemo(()=>m?f6(p,m):p,[m,p]),w=_=>{d(D=>({...D,[_.target.name]:_.target.checked}))},C=_=>{const D=_.target.checked;d(T=>{for(const F of r)T[F.full]=D;return{...T}})},E=()=>{Ro(n)},R=()=>{const _=[];for(const[D,T]of Object.entries(o))if(T){const[F,k]=D.split(" ");_.push({value:k||F,fn:k?F:void 0})}u(D=>({...D,[n]:_})),E()},j=b.useMemo(()=>{for(const _ of r)if(!o[_.full])return!1;return!0},[o,r]);return on(h6[n],()=>{n==="columns"?g?Jt.error("Columns are ignored when there is at least one aggregation or group by"):co("columns"):co("groupBy")},"Manage "+n),b.useEffect(()=>{if(!l){d({});return}d(()=>i6(i[n].map(_=>_.fn?_.fn+" "+_.value:_.value)))},[l,d]),h.jsxs(dn,{isVisible:l,onClose:E,portal:!0,children:[h.jsx(sa,{onClick:E}),h.jsxs("div",{className:Iu.container,children:[h.jsx("h2",{className:"text-lg font-semibold",children:n==="groupBy"?"Group by":"Show columns"}),h.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:m,onChange:_=>y(_.target.value)}),h.jsx("div",{className:"overflow-y-auto",children:S.map(_=>h.jsxs("div",{className:"my-2",children:[h.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",_.name]}),_.columns.map(D=>h.jsx(d6,{column:D,selected:o,onCheck:w},D.value))]},_.name))}),h.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[h.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[h.jsx("input",{type:"checkbox",checked:j,onChange:C}),h.jsx("span",{children:"Select all"})]}),h.jsx("span",{className:"flex-1"}),h.jsx("button",{className:"button tertiary",onClick:E,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:R,children:"Apply"})]})]})]})},m6="_options-container_gye2b_2",p6={optionsContainer:m6},id="COUNT all",y6=n=>n.distinct?[n.fn,"DISTINCT",n.value].join(" "):[n.fn,n.value].join(" "),v6=()=>{const n=To(E=>E.aggregate),{dataSourceId:l}=b.useContext(ia),{setState:r,state:i}=b.useContext(ht),{data:u}=b.useContext(kn),[o,d]=b.useState({fn:"",col:""}),m=E=>d({...o,fn:E.currentTarget.value}),y=E=>d({...o,col:E}),p=()=>Ro("aggregate"),g=()=>{const E=o.fn===id?{value:"*",fn:"COUNT"}:{fn:o.fn,value:o.col,distinct:o.fn==="COUNT"};r(R=>({...R,aggregations:[...R.aggregations,E]}))},S=o.fn===id,w=S?!1:!o.col||!o.fn,C=E=>{const R=In(E);r(j=>({...j,aggregations:j.aggregations.filter(_=>_.fn!==E.fn||_.value!==E.value),orderBy:j.orderBy.filter(_=>_.column!==R)}))};return on("a",()=>{co("aggregate")},"Aggregate data"),h.jsxs(dn,{isVisible:n,onClose:p,backdropClose:!0,portal:!0,children:[h.jsx(sa,{onClick:p}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),Kl(i.aggregations.length,0)&&h.jsx("div",{className:"flex flex-col gap-1 mt-4",children:i.aggregations.map((E,R)=>h.jsxs("p",{className:"p-2 rounded-md bg-gray-50 flex items-center justify-between",children:[h.jsx("span",{children:y6(E)}),h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove aggregation",className:"p-0.5 text-sm cursor-pointer",onClick:()=>C(E),children:h.jsx(Hn,{width:20,height:20,className:"text-red-600"})})]},R))}),h.jsxs("div",{className:p6.optionsContainer,children:[h.jsxs("label",{className:ie(S&&"col-span-2"),children:[h.jsx("p",{className:"font-semibold text-xs",children:"Function"}),h.jsxs("select",{className:"input w-full",value:o.fn,onChange:m,autoFocus:!0,children:[h.jsx("option",{value:"",disabled:!0,children:"Select function"}),h.jsx("option",{value:id,children:"Count all rows"}),h.jsx("option",{value:"COUNT",children:"Count"}),h.jsx("option",{value:"SUM",children:"Sum"}),h.jsx("option",{value:"MAX",children:"Max"}),h.jsx("option",{value:"MIN",children:"Min"}),h.jsx("option",{value:"AVG",children:"Avg"})]})]}),!S&&h.jsxs("label",{children:[h.jsx("p",{className:"font-semibold text-xs",children:"Column"}),h.jsx(Td,{dataSourceId:l,allowTables:(u==null?void 0:u.result.tables)||[],onChange:y,value:o.col})]}),h.jsx("button",{className:"button primary",disabled:w,onClick:g,children:"Add"})]})]})]})},g6=({options:n,updater:l,name:r,tabId:i})=>{const u=r4(n,l),o=f4(i,u.state),d=i4(o.data,u.state.dataSourceId,r,i);return h.jsx(ia,{value:d,children:h.jsx(ht,{value:u,children:h.jsxs(kn,{value:o,children:[h.jsx(L_,{}),h.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[h.jsxs("div",{className:"m-2 flex-1 overflow-auto pb-24 lg:pb-12 no-scrollbar",children:[h.jsx("div",{className:"pb-0.5 sticky bottom-0"}),h.jsx(uC,{})]}),h.jsx(e6,{}),h.jsx(s6,{}),h.jsx(Wy,{mode:"columns"}),h.jsx(Wy,{mode:"groupBy"}),h.jsx(v6,{}),h.jsx(BC,{})]})]})})})},q1=()=>h.jsxs("div",{role:"status",children:[h.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),h.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),h.jsx("span",{className:"sr-only",children:"Loading..."})]}),b6=({id:n})=>{const{data:l}=u4(n),r=b.useCallback(i=>{if(!l)return;const u=i(Hs(l.opts));xt.setQueryData(["workbench-tabs",l.id],{...l,opts:{...l.opts,...u}})},[l]);return l?h.jsx(g6,{updater:r,options:l.opts,name:l.name,tabId:l.id}):h.jsx("div",{className:"flex-1 flex justify-center items-center",children:h.jsx(q1,{})})},x6=()=>{const{id:n}=Lx(),l=Lt(),{data:r}=Gd(),i=o4(),u=Id(jo.laptop),o=m=>{m.stopPropagation(),m.preventDefault();const y=m.currentTarget.getAttribute("data-tab-id");y&&i.mutate(y)},d=m=>{m.button===1&&i.mutate(m.currentTarget.dataset.tabId)};return h.jsxs("div",{className:"h-screen max-h-screen bg-(--bg) flex flex-col",children:[n&&h.jsx(b6,{id:n}),h.jsx("div",{className:ie(ar.tabs,"no-scrollbar",!u&&ar.mobile),children:r==null?void 0:r.map(m=>h.jsxs("div",{onClick:()=>l(`${Pe.workbench.path}/tab/${m.id}`),className:ie(ar.tab,m.id===n&&ar.active),"data-tab-id":m.id,"data-tooltip-id":"tab","data-tooltip-content":m.name,onAuxClick:d,children:[h.jsxs("span",{className:"truncate w-full",children:["📄 ",m.name]}),h.jsx("button",{"data-tab-id":m.id,className:ar.closeButton,onClick:o,children:h.jsx(Hn,{width:20,height:20})})]},m.id))})]})},S6="_root_1xnyn_2",w6="_down_1xnyn_2",E6="_chevron_1xnyn_2",C6="_table-name-container_1xnyn_2",_6="_link_1xnyn_2",N6="_table-name_1xnyn_2",j6="_ul_1xnyn_2",A6="_column-type_1xnyn_2",Ta={root:S6,down:w6,chevron:E6,tableNameContainer:C6,link:_6,tableName:N6,ul:j6,columnType:A6},[YN,T6]=fn(!1),B1=()=>T6(!1),R6=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function O6(n,l){if(l&&n.toLowerCase().includes(l))return"bg-yellow-200"}const D6=({insp:n,filter:l,expanded:r})=>{const i=b.useMemo(()=>r?n.columns:l.length<1?[]:n.columns.filter(u=>u.name.toLowerCase().includes(l)),[n,l,r]);return h.jsx("ul",{className:Ta.ul,children:i.map(u=>h.jsx(h.Fragment,{children:h.jsxs("li",{children:[u.isPrimary?"🔐":"🏷️"," ",h.jsx("span",{className:O6(u.name,l),children:u.name})," ",h.jsxs("span",{className:Ta.columnType,children:["[",u.type,"]"]}),u.ref&&h.jsxs("span",{children:[" ➡️ ",h.jsx("span",{className:Ta.columnType,children:u.ref.table}),".",u.ref.field]})]},u.name+u.type)}))},n.id)};function M6({id:n}){const{data:l}=No(n),{data:r}=Ps(n),i=Lt(),u=H3(),o=c1(),d=k3(),m=Ws(),y=b.useMemo(()=>l!=null&&l.lastInspected?R6.format(new Date(l.lastInspected)):"--",[l]),[p,g]=b.useState({}),[S,w]=b.useState(""),[C,E]=b.useState("table"),R=xr(Gt.EDITOR),j=S.toLowerCase(),_=b.useMemo(()=>{if(!j||!r)return r||[];const W=[];for(const ne of r){if(ne.tableName.toLowerCase().includes(j)){W.push(ne);continue}C!=="table"&&ne.columns.findIndex(pe=>pe.name.toLowerCase().includes(j))>=0&&W.push(ne)}return W},[j,r,C]),D=W=>{g(ne=>({...ne,[W]:!ne[W]}))},T=W=>{m.mutateAsync({name:W,opts:Hs({table:W,dataSourceId:n})}).then(ne=>{ks(void 0),B1(),i(`${Pe.workbench.path}/tab/${ne.id}`)})},F=()=>{o.mutate(n)},k=async()=>{const W=await wr("Enter name",l==null?void 0:l.name);W&&u.mutate({id:n,dataSource:{name:W}})},Y=async()=>{await p1("Are you sure you want to delete this data source?")&&(d.mutate(n),ks(void 0))},J=C==="column";return h.jsxs("div",{className:Ta.root,children:[h.jsxs("h3",{className:"page-head flex gap-2",children:[l&&h.jsx(Xd,{size:32,type:l.dbType}),h.jsx("span",{className:"truncate",children:l==null?void 0:l.name})]}),h.jsx("p",{className:"mt-2 text-xs text-gray-800",children:"Last DB inspection"}),h.jsx("p",{className:"text-sm font-semibold",children:y}),R&&h.jsxs("div",{className:"mt-2 flex gap-2",children:[h.jsx("button",{disabled:o.isLoading,onClick:F,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),h.jsx("button",{disabled:o.isLoading,onClick:k,className:"button tertiary",children:"Rename"}),h.jsx("button",{disabled:o.isLoading,onClick:Y,className:"button tertiary",children:"Delete"})]}),h.jsxs("div",{className:"flex gap-2 items-center mb-2 mt-4",children:[h.jsxs("select",{className:"input",value:C,onChange:W=>E(W.currentTarget.value),children:[h.jsx("option",{value:"table",children:"Table"}),h.jsx("option",{value:"column",children:"Column"})]}),h.jsx("input",{className:"input flex-1 bg-gray-50",placeholder:J?"Search column":"Search table",value:S,onChange:W=>w(W.target.value),autoFocus:!0})]}),h.jsx("div",{className:"overflow-y-auto",children:_==null?void 0:_.map(W=>h.jsxs("div",{children:[h.jsxs("div",{className:Ta.tableNameContainer,children:[h.jsx("button",{className:ie(Ta.chevron,p[W.id]&&Ta.down),onClick:()=>D(W.id),children:h.jsx(Ao,{width:16,height:16})}),h.jsx("button",{className:ie(Ta.tableName,"flex-1"),onClick:()=>D(W.id),children:W.tableName}),h.jsx("button",{className:Ta.link,onClick:()=>T(W.tableName),children:"↗️"})]}),(p[W.id]||S.length>0)&&h.jsx(D6,{insp:W,filter:J?j:"",expanded:p[W.id]})]},W.id))})]})}const U6=()=>{const n=U4(),[l,r]=b.useState(void 0);b.useEffect(()=>{n&&r(n)},[n]);const i=()=>ks(void 0);return h.jsx(w1,{isVisible:n!=null,onClose:i,onClosed:()=>r(void 0),backdropClose:!0,children:l&&h.jsx(M6,{id:l})})};function L6(n,l=500){const[r,i]=b.useState(n);return b.useEffect(()=>{const u=setTimeout(()=>i(n),l);return()=>clearTimeout(u)},[n,l]),r}const z6="_search_1o91e_2",q6="_entry_1o91e_2",B6="_ds_1o91e_2",H6="_ds-entry_1o91e_2",Qu={search:z6,entry:q6,ds:B6,dsEntry:H6};function k6(n,l,r){try{const i=r.getItem(n);if(i)return JSON.parse(i)}catch(i){console.warn("Failed to restore tabs",i)}return l}const Q6=({storage:n=localStorage,localStorageKey:l,initialData:r})=>{const i=fn(k6(l,r,n));return i[2].subscribe(u=>{n.setItem(l,JSON.stringify(u))}),i},[Y6,V6]=Q6({initialData:[],localStorageKey:"selected-data-sources-v1"}),$6=n=>V6(l=>{const r=l.indexOf(n);return r>-1?(l.splice(r,1),[...l]):[...l,n]}),K6={table:"📄",query:"📖"},F6=({onTable:n,onQuery:l,autoFocus:r})=>{const[i,u]=b.useState(""),[o,d]=b.useState(-1),m=L6(i,200),y=Y6(),{data:p}=la(),{data:g}=Yd({teamId:p==null?void 0:p.teamId}),S=b.useMemo(()=>{const _=[],D=Iy(y);if(!g||g.length===0)return[];for(const T of g)D[T.id]&&_.push(T.id);return _},[y,g]),{data:w}=U3(m,{teamId:p==null?void 0:p.teamId,selectedDataSources:S}),C=_=>{_.type==="table"?n(_.name,_.dataSourceId):_.type==="query"&&l(_.id,_.dataSourceId)},E=_=>{var D;w&&(_.key==="ArrowDown"?(_.preventDefault(),d(T=>(T+1)%w.length)):_.key==="ArrowUp"?(_.preventDefault(),d(T=>(T-1+w.length)%w.length)):_.key==="Enter"&&o>=0&&(D=w[o])!=null&&D.name&&(_.preventDefault(),C(w[o])))},R=_=>{const D=_.currentTarget.dataset.tableId,T=w==null?void 0:w.find(F=>F.id===D);T&&C(T)},j=b.useMemo(()=>Iy(y),[y]);return h.jsxs("div",{className:"overflow-hidden flex flex-col w-full lg:w-lg",children:[Kl(g==null?void 0:g.length,0)&&h.jsx("div",{className:"flex overflow-x-auto mb-2 gap-2 no-scrollbar",children:g.map(_=>h.jsxs("label",{className:Qu.dsEntry,children:[h.jsx("input",{type:"checkbox",checked:j[_.id]===!0,onChange:()=>$6(_.id)}),h.jsx("span",{children:_.name})]},_.id))}),h.jsx("input",{className:Qu.search,placeholder:"Search table or saved query to start from",value:i,onChange:_=>u(_.target.value),onKeyDown:E,autoFocus:r}),Kl(w==null?void 0:w.length,0)&&h.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:w.map((_,D)=>h.jsxs("button",{className:Qu.entry,"data-is-active":o===D,"data-table-id":_.id,onClick:R,children:[h.jsxs("p",{className:"font-semibold",children:[K6[_.type]," ",_.name]}),h.jsxs("p",{className:Qu.ds,children:["📦 ",_.dataSourceName]})]},_.id))})]})},G6=()=>{const n=d4(),l=(u,o)=>{n==null||n.onConfirm("table",u,o)},r=(u,o)=>{n==null||n.onConfirm("query",u,o)},i=()=>{n==null||n.onCancel()};return h.jsxs(dn,{isVisible:!!n,onClose:i,children:[h.jsx(sa,{onClick:i}),h.jsx(F6,{autoFocus:!0,onTable:l,onQuery:r})]})},X6=()=>{const n=Pt();b.useEffect(()=>{},[n.pathname])},[Z6,H1]=fn(!1),rd=()=>H1(!1),k1=()=>H1(!0),J6=({repeatPassword:n,password:l})=>l.length<1?null:l.length<8?h.jsx(Ut,{variant:"warning",children:"New password should be at least 8 characters long"}):l!==n?h.jsx(Ut,{variant:"warning",children:"Repeat password should match new password"}):null,P6=()=>{const n=Z6(),{data:l}=la(),{mutateAsync:r,isLoading:i}=Q3(),u=Lt(),[{password:o,repeatPassword:d},{change:m,touched:y,reset:p}]=Sr({password:"",repeatPassword:""}),g=()=>{u("/"),gr.logout().then(()=>{rd()})},S=()=>{r({password:o}).then(()=>{p(),Jt.success("Password successfully updated!")})},w=o.length<8||o!==d||i,C=y.includes("password");return h.jsxs(dn,{isVisible:n,onClose:rd,children:[h.jsx(sa,{onClick:rd}),h.jsxs("div",{className:"w-full lg:w-lg flex flex-col gap-2",children:[h.jsx(m1,{children:"Account settings"}),h.jsxs("label",{children:[h.jsx("p",{className:"text-xs font-semibold mb-1",children:"Username"}),h.jsx("input",{className:"input w-full",readOnly:!0,disabled:!0,value:l==null?void 0:l.username})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[h.jsxs("label",{children:[h.jsx("p",{className:"text-xs font-semibold mb-1",children:"Change password"}),h.jsx("input",{className:"input w-full",type:"password",name:"newPassword",autoComplete:"new-password",value:o,onChange:m("password")})]}),h.jsxs("label",{children:[h.jsx("p",{className:"text-xs font-semibold mb-1",children:"Repeat password"}),h.jsx("input",{className:"input w-full",type:"password",value:d,onChange:m("repeatPassword")})]})]}),C&&h.jsx(J6,{password:o,repeatPassword:d}),h.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[h.jsx("button",{className:"button tertiary",disabled:w,onClick:S,children:"Update password"}),h.jsx("button",{className:"button danger",onClick:g,children:"Log out"})]})]})]})},[I6,Q1]=fn(!1),Y1=()=>Q1(!0),ev=()=>Q1(!1),W6=n=>It({queryKey:["team-users"],queryFn:async()=>{const{data:l}=await Me.get("/teams/"+n+"/users");return l.data},enabled:!!n}),eN=()=>zt({mutationFn:async({role:n,teamId:l,userId:r})=>(await Me.patch("/teams/"+l+"/user-role",{role:n,userId:r}),!0),onSuccess:()=>{xt.invalidateQueries({queryKey:["team-users"]})}}),tN=()=>zt({mutationFn:async({teamId:n,userId:l})=>(await Me.delete("/teams/"+n,{params:{userId:l}}),!0),onSuccess:()=>{xt.invalidateQueries({queryKey:["team-users"]})}}),nN="_user-entry_djyod_2",aN="_select-container_djyod_2",tv={userEntry:nN,selectContainer:aN},lN=()=>{const n=I6(),{data:l}=la(),{data:r}=W6(l==null?void 0:l.teamId),{mutate:i,isLoading:u}=Y3(),{mutate:o,isLoading:d}=eN(),{mutate:m,isLoading:y}=tN(),[p,{change:g,reset:S}]=Sr({password:"",username:""}),w=()=>{i({username:p.username,password:p.password,teamId:(l==null?void 0:l.teamId)||""}),S()},C=(_,D)=>{o({teamId:l.teamId,role:D,userId:_})},E=_=>{p1("Are you sure you want to remove this user?").then(D=>{D&&m({userId:_,teamId:l.teamId})})},R=xr(Gt.ADMIN),j=u||d||y;return h.jsxs(dn,{isVisible:n,onClose:ev,backdropClose:!0,children:[h.jsx(sa,{onClick:ev}),h.jsxs("div",{className:"w-full lg:w-lg flex flex-col overflow-hidden",children:[h.jsx(m1,{children:"Manage users"}),Kl(r==null?void 0:r.length,0)&&h.jsx("div",{className:"mt-4 overflow-y-auto flex-1",children:r.map(_=>h.jsxs("div",{className:tv.userEntry,children:[h.jsx("div",{className:tv.selectContainer,children:h.jsxs("select",{value:_.role,disabled:!R||j,onChange:D=>C(_.id,D.currentTarget.value),children:[h.jsx("option",{value:Gt.OWNER,children:"Owner"}),h.jsx("option",{value:Gt.ADMIN,children:"Admin"}),h.jsx("option",{value:Gt.EDITOR,children:"Editor"}),h.jsx("option",{value:Gt.READ_ONLY,children:"Reader"})]})}),h.jsx("p",{className:"flex-1 mx-2",children:_.name}),R&&h.jsx("button",{className:"p-1 cursor-pointer text-red-500 text-sm",onClick:()=>E(_.id),children:"❌"})]},_.id))}),R&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold",children:"Create new user"}),h.jsxs("div",{className:"flex flex-col lg:flex-row gap-2 lg:items-center mt-2",children:[h.jsx("input",{className:"input flex-1",onChange:g("username"),value:p.username,placeholder:"Username",disabled:j}),h.jsx("input",{className:"input",onChange:g("password"),value:p.password,type:"password",name:"newPassword",autoComplete:"new-password",placeholder:"Password",disabled:j}),h.jsx("button",{className:"button primary",onClick:w,disabled:j,children:"Create user"})]}),h.jsx("p",{className:"text-xs mt-1 text-gray-600",children:"You should create default password for the new account. The user should change it after the first login."})]})]})]})},sN=()=>{const[n,l]=b.useState(""),[r,i]=b.useState(""),[u,o]=b.useState(),[d,m]=b.useState(!1),y=Lt(),p=g=>{g.preventDefault(),o(void 0),gr.login({password:r,username:n}).then(()=>{y("/",{replace:!0})}).catch(o)};return h.jsx("div",{className:"page-container bg-(--bg) h-screen",children:h.jsx("div",{className:"page-content items-center",children:h.jsxs("form",{className:"flex flex-col gap-2 w-full lg:w-lg",onSubmit:p,children:[h.jsx("p",{className:"font-semibold text-xl min-w-md",children:"Login"}),u&&h.jsx(Ut,{variant:"danger",children:"Failed to login. Please verify your credentials"}),h.jsx("input",{value:n,onChange:g=>l(g.currentTarget.value),className:"input",placeholder:"User name"}),h.jsx("input",{value:r,onChange:g=>i(g.currentTarget.value),className:"input",type:"password",placeholder:"Password"}),h.jsx("button",{type:"submit",className:"button primary",children:"Login"}),d?h.jsxs(Ut,{className:"w-full border border-blue-500",children:[h.jsx("p",{children:"If this is your first login, the default credentials are:"}),h.jsxs("ul",{className:"mt-2",children:[h.jsxs("li",{children:["Username: ",h.jsx("strong",{children:"admin"})]}),h.jsxs("li",{children:["Password: ",h.jsx("strong",{children:"admin"})]})]}),h.jsx("p",{className:"mt-2",children:"Please make sure to change the default password to a secure one."})]}):h.jsx("button",{className:"button tertiary",onClick:()=>m(!0),children:"First login?"})]})})})},iN=()=>{const n=Lt(),{pathname:l}=Pt(),{data:r,isLoading:i}=f1();b.useEffect(()=>{!r&&!i&&l!==Pe.login.path&&n(Pe.login.path)},[r,i,n,l])},rN=()=>{const[n]=N2(),l=Lt(),r=Ws(),i=n.get("shareId");return b.useEffect(()=>{i&&r.mutateAsync({queryId:i}).then(u=>{l(`${Pe.workbench.path}/tab/${u.id}`,{replace:!0})})},[i]),h.jsxs("div",{className:"page-container flex items-center justify-center h-screen",children:[r.isLoading&&h.jsxs("div",{className:"flex items-center flex-col gap-2",children:[h.jsx(q1,{}),h.jsx("p",{children:"Fetching query information"})]}),r.isError&&h.jsx(Ut,{variant:"danger",children:"Failed to load query information"})]})};function uN(){return RC(),X6(),iN(),h.jsxs(h.Fragment,{children:[h.jsxs(Jx,{children:[h.jsx(sr,{path:Pe.home.path,element:h.jsx(k4,{})}),h.jsx(sr,{path:`${Pe.workbench.path}/tab/:id`,element:h.jsx(x6,{})}),h.jsx(sr,{path:Pe.login.path,element:h.jsx(sN,{})}),h.jsx(sr,{path:Pe.share.path,element:h.jsx(rN,{})})]}),h.jsx(I4,{}),h.jsx(uE,{}),h.jsx(SE,{}),h.jsx(U6,{}),h.jsx(G6,{}),h.jsx(P6,{}),h.jsx(lN,{}),h.jsx(yE,{}),h.jsx(fE,{})]})}const oN="_desktop-layout_14ng7_2",cN="_mobile-layout_14ng7_2",fN="_nav_14ng7_2",dN="_main_14ng7_2",hN="_header_14ng7_2",Vs={desktopLayout:oN,mobileLayout:cN,nav:fN,main:dN,header:hN},mN="_container_13ez9_2",pN="_menu_13ez9_2",uh={container:mN,menu:pN},yN=({name:n,id:l,onRename:r,onDelete:i,onOpen:u})=>{const o=v1();return h.jsxs("button",{className:uh.menu,onContextMenu:o.open,onClick:()=>u(l),children:[h.jsx(g1,{handler:o,children:h.jsxs("div",{className:"context-menu-container",children:[h.jsx("button",{onClick:d=>{d.preventDefault(),d.stopPropagation(),o.close(),r(l)},className:"context-menu-item",children:"✏️ Rename"}),h.jsx("button",{onClick:d=>{d.preventDefault(),d.stopPropagation(),o.close(),i(l)},className:"context-menu-item",children:"🗑️ Delete"})]})}),h.jsxs("span",{children:["📖 ",n]})]})},vN=({dataSource:n,index:l})=>{const r=()=>{ks(n.id)};return on(l.toString(),()=>{ks(i=>{if(i!==n.id)return n.id})},n.name),h.jsxs("button",{className:uh.menu,onClick:r,children:[h.jsx(Xd,{size:20,type:n.dbType}),h.jsx("p",{className:"truncate flex-1 text-left mx-1.5",children:n.name}),h.jsx("span",{className:"hotkey",children:l})]})},gN=()=>{const n=Lt(),{data:l}=la(),{data:r}=O3(l==null?void 0:l.teamId),{data:i}=D3(l==null?void 0:l.teamId),u=Ws(),o=YC(),d=QC(),m=g=>{u.mutateAsync({queryId:g}).then(S=>{n(`${Pe.workbench.path}/tab/${S.id}`)})},y=async g=>{const S=i==null?void 0:i.find(C=>C.id===g),w=await wr("New name?",S==null?void 0:S.name);w&&o.mutate({id:g,payload:{name:w}})},p=g=>{var w;const S=(w=i==null?void 0:i.find(C=>C.id===g))==null?void 0:w.savedQueryId;S&&d.mutate(S)};return h.jsx("div",{className:uh.container,children:h.jsxs("div",{className:"flex-1 overflow-y-auto",children:[Kl(r==null?void 0:r.length,0)&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"DATA SOURCES"}),r.map((g,S)=>h.jsx(vN,{dataSource:g,index:S+1},g.id))]}),Kl(i==null?void 0:i.length,0)&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"SAVED QUERIES"}),i.map(g=>h.jsx(yN,{onDelete:p,onRename:y,onOpen:m,name:g.name,id:g.id},g.savedQueryId))]})]})})},bN=()=>{const n=Lt(),{pathname:l}=Pt(),{data:r}=la(),i=br("Desktop nav"),u=()=>{B1(),l!==Pe.home.path&&n(Pe.home.path)};return h.jsxs("nav",{className:Vs.nav,children:[r&&h.jsxs("div",{className:Vs.header,children:[h.jsxs("button",{onClick:u,className:"flex justify-between items-center",children:[h.jsx("span",{children:"🏠 Home"}),h.jsx("span",{className:"hotkey",children:"H"})]}),h.jsxs("button",{onClick:i,className:"flex justify-between items-center",children:[h.jsx("span",{children:"🔎 New query"}),h.jsx("span",{className:"hotkey",children:"N"})]}),h.jsxs("button",{onClick:k1,children:["🪪 ",r.username]}),h.jsx("button",{onClick:Y1,children:"👥 Manage users"})]}),h.jsx(gN,{})]})},xN="_root_rywu1_2",SN={root:xN},wN=()=>{const{pathname:n}=Pt(),l=Lt(),r=br("Mobile nav"),i=()=>{n!==Pe.home.path&&l(Pe.home.path)};return h.jsxs("div",{className:SN.root,children:[h.jsxs("button",{onClick:i,children:[h.jsx("p",{children:"🏠"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Home"})]}),h.jsxs("button",{onClick:r,children:[h.jsx("p",{children:"🔎"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"New query"})]}),h.jsxs("button",{onClick:k1,children:[h.jsx("p",{children:"🪪"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Account"})]}),h.jsxs("button",{onClick:Y1,children:[h.jsx("p",{children:"👥"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Users"})]})]})},EN=({children:n,isLogin:l})=>h.jsxs("div",{className:Vs.desktopLayout,children:[h.jsx(rh,{id:"default",className:"z-100"}),!l&&h.jsx(bN,{}),h.jsx("main",{className:Vs.main,children:n})]}),CN=({children:n,isLogin:l})=>h.jsxs("div",{className:Vs.mobileLayout,children:[h.jsx("main",{className:Vs.main,children:n}),!l&&h.jsx(wN,{})]}),_N=({children:n})=>{const l=Id(jo.laptop),{pathname:r}=Pt(),i=r===Pe.login.path;return l?h.jsx(EN,{isLogin:i,children:n}):h.jsx(CN,{isLogin:i,children:n})};lx.createRoot(document.getElementById("root")).render(h.jsxs($e.StrictMode,{children:[h.jsx(A3,{}),h.jsx(nS,{client:xt,children:h.jsx(S2,{children:h.jsx(_N,{children:h.jsx(uN,{})})})})]}));