@dataramen/cli 0.0.49-beta.2 → 0.0.50-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.
@@ -0,0 +1,237 @@
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();function yu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Kf={exports:{}},Wi={};/**
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 P0;function ax(){if(P0)return Wi;P0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:u}}return Wi.Fragment=l,Wi.jsx=r,Wi.jsxs=r,Wi}var I0;function lx(){return I0||(I0=1,Kf.exports=ax()),Kf.exports}var h=lx(),Gf={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 W0;function sx(){if(W0)return ge;W0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=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 E(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function N(T,Q,P){this.props=T,this.context=Q,this.refs=A,this.updater=P||C}N.prototype.isReactComponent={},N.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Q,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=N.prototype;function O(T,Q,P){this.props=T,this.context=Q,this.refs=A,this.updater=P||C}var D=O.prototype=new _;D.constructor=O,w(D,N.prototype),D.isPureReactComponent=!0;var Y=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function I(T,Q,P,J,ae,Ce){return P=Ce.ref,{$$typeof:n,type:T,key:Q,ref:P!==void 0?P:null,props:Ce}}function W(T,Q){return I(T.type,Q,void 0,void 0,void 0,T.props)}function ie(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function pe(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(P){return Q[P]})}var ze=/\/+/g;function Ee(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?pe(""+T.key):Q.toString(36)}function Fe(){}function ye(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Fe,Fe):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function xe(T,Q,P,J,ae){var Ce=typeof T;(Ce==="undefined"||Ce==="boolean")&&(T=null);var ce=!1;if(T===null)ce=!0;else switch(Ce){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(T.$$typeof){case n:case l:ce=!0;break;case g:return ce=T._init,xe(ce(T._payload),Q,P,J,ae)}}if(ce)return ae=ae(T),ce=J===""?"."+Ee(T,0):J,Y(ae)?(P="",ce!=null&&(P=ce.replace(ze,"$&/")+"/"),xe(ae,Q,P,"",function(Ze){return Ze})):ae!=null&&(ie(ae)&&(ae=W(ae,P+(ae.key==null||T&&T.key===ae.key?"":(""+ae.key).replace(ze,"$&/")+"/")+ce)),Q.push(ae)),1;ce=0;var St=J===""?".":J+":";if(Y(T))for(var Me=0;Me<T.length;Me++)J=T[Me],Ce=St+Ee(J,Me),ce+=xe(J,Q,P,Ce,ae);else if(Me=E(T),typeof Me=="function")for(T=Me.call(T),Me=0;!(J=T.next()).done;)J=J.value,Ce=St+Ee(J,Me++),ce+=xe(J,Q,P,Ce,ae);else if(Ce==="object"){if(typeof T.then=="function")return xe(ye(T),Q,P,J,ae);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ce}function B(T,Q,P){if(T==null)return T;var J=[],ae=0;return xe(T,J,"","",function(Ce){return Q.call(P,Ce,ae++)}),J}function F(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(P){(T._status===0||T._status===-1)&&(T._status=1,T._result=P)},function(P){(T._status===0||T._status===-1)&&(T._status=2,T._result=P)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var Z=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function ue(){}return ge.Children={map:B,forEach:function(T,Q,P){B(T,function(){Q.apply(this,arguments)},P)},count:function(T){var Q=0;return B(T,function(){Q++}),Q},toArray:function(T){return B(T,function(Q){return Q})||[]},only:function(T){if(!ie(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ge.Component=N,ge.Fragment=r,ge.Profiler=o,ge.PureComponent=O,ge.StrictMode=s,ge.Suspense=y,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ge.__COMPILER_RUNTIME={__proto__:null,c:function(T){return H.H.useMemoCache(T)}},ge.cache=function(T){return function(){return T.apply(null,arguments)}},ge.cloneElement=function(T,Q,P){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=w({},T.props),ae=T.key,Ce=void 0;if(Q!=null)for(ce in Q.ref!==void 0&&(Ce=void 0),Q.key!==void 0&&(ae=""+Q.key),Q)!$.call(Q,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Q.ref===void 0||(J[ce]=Q[ce]);var ce=arguments.length-2;if(ce===1)J.children=P;else if(1<ce){for(var St=Array(ce),Me=0;Me<ce;Me++)St[Me]=arguments[Me+2];J.children=St}return I(T.type,ae,void 0,void 0,Ce,J)},ge.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},ge.createElement=function(T,Q,P){var J,ae={},Ce=null;if(Q!=null)for(J in Q.key!==void 0&&(Ce=""+Q.key),Q)$.call(Q,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=Q[J]);var ce=arguments.length-2;if(ce===1)ae.children=P;else if(1<ce){for(var St=Array(ce),Me=0;Me<ce;Me++)St[Me]=arguments[Me+2];ae.children=St}if(T&&T.defaultProps)for(J in ce=T.defaultProps,ce)ae[J]===void 0&&(ae[J]=ce[J]);return I(T,Ce,void 0,void 0,null,ae)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(T){return{$$typeof:m,render:T}},ge.isValidElement=ie,ge.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:F}},ge.memo=function(T,Q){return{$$typeof:p,type:T,compare:Q===void 0?null:Q}},ge.startTransition=function(T){var Q=H.T,P={};H.T=P;try{var J=T(),ae=H.S;ae!==null&&ae(P,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ue,Z)}catch(Ce){Z(Ce)}finally{H.T=Q}},ge.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ge.use=function(T){return H.H.use(T)},ge.useActionState=function(T,Q,P){return H.H.useActionState(T,Q,P)},ge.useCallback=function(T,Q){return H.H.useCallback(T,Q)},ge.useContext=function(T){return H.H.useContext(T)},ge.useDebugValue=function(){},ge.useDeferredValue=function(T,Q){return H.H.useDeferredValue(T,Q)},ge.useEffect=function(T,Q,P){var J=H.H;if(typeof P=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(T,Q)},ge.useId=function(){return H.H.useId()},ge.useImperativeHandle=function(T,Q,P){return H.H.useImperativeHandle(T,Q,P)},ge.useInsertionEffect=function(T,Q){return H.H.useInsertionEffect(T,Q)},ge.useLayoutEffect=function(T,Q){return H.H.useLayoutEffect(T,Q)},ge.useMemo=function(T,Q){return H.H.useMemo(T,Q)},ge.useOptimistic=function(T,Q){return H.H.useOptimistic(T,Q)},ge.useReducer=function(T,Q,P){return H.H.useReducer(T,Q,P)},ge.useRef=function(T){return H.H.useRef(T)},ge.useState=function(T){return H.H.useState(T)},ge.useSyncExternalStore=function(T,Q,P){return H.H.useSyncExternalStore(T,Q,P)},ge.useTransition=function(){return H.H.useTransition()},ge.version="19.1.0",ge}var ey;function Ld(){return ey||(ey=1,Gf.exports=sx()),Gf.exports}var b=Ld();const Ge=yu(b);var Ff={exports:{}},er={},$f={exports:{}},Xf={};/**
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 ty;function ix(){return ty||(ty=1,function(n){function l(B,F){var Z=B.length;B.push(F);e:for(;0<Z;){var ue=Z-1>>>1,T=B[ue];if(0<o(T,F))B[ue]=F,B[Z]=T,Z=ue;else break e}}function r(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var F=B[0],Z=B.pop();if(Z!==F){B[0]=Z;e:for(var ue=0,T=B.length,Q=T>>>1;ue<Q;){var P=2*(ue+1)-1,J=B[P],ae=P+1,Ce=B[ae];if(0>o(J,Z))ae<T&&0>o(Ce,J)?(B[ue]=Ce,B[ae]=Z,ue=ae):(B[ue]=J,B[P]=Z,ue=P);else if(ae<T&&0>o(Ce,Z))B[ue]=Ce,B[ae]=Z,ue=ae;else break e}}return F}function o(B,F){var Z=B.sortIndex-F.sortIndex;return Z!==0?Z:B.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var y=[],p=[],g=1,S=null,E=3,C=!1,w=!1,A=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function Y(B){for(var F=r(p);F!==null;){if(F.callback===null)s(p);else if(F.startTime<=B)s(p),F.sortIndex=F.expirationTime,l(y,F);else break;F=r(p)}}function H(B){if(A=!1,Y(B),!w)if(r(y)!==null)w=!0,$||($=!0,Ee());else{var F=r(p);F!==null&&xe(H,F.startTime-B)}}var $=!1,I=-1,W=5,ie=-1;function pe(){return N?!0:!(n.unstable_now()-ie<W)}function ze(){if(N=!1,$){var B=n.unstable_now();ie=B;var F=!0;try{e:{w=!1,A&&(A=!1,O(I),I=-1),C=!0;var Z=E;try{t:{for(Y(B),S=r(y);S!==null&&!(S.expirationTime>B&&pe());){var ue=S.callback;if(typeof ue=="function"){S.callback=null,E=S.priorityLevel;var T=ue(S.expirationTime<=B);if(B=n.unstable_now(),typeof T=="function"){S.callback=T,Y(B),F=!0;break t}S===r(y)&&s(y),Y(B)}else s(y);S=r(y)}if(S!==null)F=!0;else{var Q=r(p);Q!==null&&xe(H,Q.startTime-B),F=!1}}break e}finally{S=null,E=Z,C=!1}F=void 0}}finally{F?Ee():$=!1}}}var Ee;if(typeof D=="function")Ee=function(){D(ze)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,ye=Fe.port2;Fe.port1.onmessage=ze,Ee=function(){ye.postMessage(null)}}else Ee=function(){_(ze,0)};function xe(B,F){I=_(function(){B(n.unstable_now())},F)}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 E},n.unstable_next=function(B){switch(E){case 1:case 2:case 3:var F=3;break;default:F=E}var Z=E;E=F;try{return B()}finally{E=Z}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(B,F){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Z=E;E=B;try{return F()}finally{E=Z}},n.unstable_scheduleCallback=function(B,F,Z){var ue=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ue+Z:ue):Z=ue,B){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=Z+T,B={id:g++,callback:F,priorityLevel:B,startTime:Z,expirationTime:T,sortIndex:-1},Z>ue?(B.sortIndex=Z,l(p,B),r(y)===null&&B===r(p)&&(A?(O(I),I=-1):A=!0,xe(H,Z-ue))):(B.sortIndex=T,l(y,B),w||C||(w=!0,$||($=!0,Ee()))),B},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(B){var F=E;return function(){var Z=E;E=F;try{return B.apply(this,arguments)}finally{E=Z}}}}(Xf)),Xf}var ny;function rx(){return ny||(ny=1,$f.exports=ix()),$f.exports}var Zf={exports:{}},Mt={};/**
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 ay;function ox(){if(ay)return Mt;ay=1;var n=Ld();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 s={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},o=Symbol.for("react.portal");function u(y,p,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,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 Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Mt.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 u(y,p,null,g)},Mt.flushSync=function(y){var p=d.T,g=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=g,s.d.f()}},Mt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},Mt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Mt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,S=m(g,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:E,fetchPriority:C}):g==="script"&&s.d.X(y,{crossOrigin:S,integrity:E,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Mt.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);s.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&&s.d.M(y)},Mt.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);s.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})}},Mt.preloadModule=function(y,p){if(typeof y=="string")if(p){var g=m(p.as,p.crossOrigin);s.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 s.d.m(y)},Mt.requestFormReset=function(y){s.d.r(y)},Mt.unstable_batchedUpdates=function(y,p){return y(p)},Mt.useFormState=function(y,p,g){return d.H.useFormState(y,p,g)},Mt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Mt.version="19.1.0",Mt}var ly;function fv(){if(ly)return Zf.exports;ly=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(),Zf.exports=ox(),Zf.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 sy;function ux(){if(sy)return er;sy=1;var n=rx(),l=Ld(),r=fv();function s(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(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(u(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var c=a.return;if(c===null)break;var f=c.alternate;if(f===null){if(i=c.return,i!==null){a=i;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===a)return m(c),e;if(f===i)return m(c),t;f=f.sibling}throw Error(s(188))}if(a.return!==i.return)a=c,i=f;else{for(var v=!1,x=c.child;x;){if(x===a){v=!0,a=c,i=f;break}if(x===i){v=!0,i=c,a=f;break}x=x.sibling}if(!v){for(x=f.child;x;){if(x===a){v=!0,a=f,i=c;break}if(x===i){v=!0,i=f,a=c;break}x=x.sibling}if(!v)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(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"),E=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),D=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),ze=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=ze&&e[ze]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case $:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case D:return(e.displayName||"Context")+".Provider";case O:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I: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,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ue=[],T=-1;function Q(e){return{current:e}}function P(e){0>T||(e.current=ue[T],ue[T]=null,T--)}function J(e,t){T++,ue[T]=e.current,e.current=t}var ae=Q(null),Ce=Q(null),ce=Q(null),St=Q(null);function Me(e,t){switch(J(ce,t),J(Ce,e),J(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_0(t),e=N0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(ae),J(ae,e)}function Ze(){P(ae),P(Ce),P(ce)}function Vn(e){e.memoizedState!==null&&J(St,e);var t=ae.current,a=N0(t,e.type);t!==a&&(J(Ce,e),J(ae,a))}function jt(e){Ce.current===e&&(P(ae),P(Ce)),St.current===e&&(P(St),Xi._currentValue=Z)}var hn=Object.prototype.hasOwnProperty,ua=n.unstable_scheduleCallback,mn=n.unstable_cancelCallback,ai=n.unstable_shouldYield,zt=n.unstable_requestPaint,Bt=n.unstable_now,ca=n.unstable_getCurrentPriorityLevel,Kn=n.unstable_ImmediatePriority,$e=n.unstable_UserBlockingPriority,Gn=n.unstable_NormalPriority,bl=n.unstable_LowPriority,qa=n.unstable_IdlePriority,xl=n.log,Il=n.unstable_setDisableYieldValue,pn=null,tt=null;function Yt(e){if(typeof xl=="function"&&Il(e),tt&&typeof tt.setStrictMode=="function")try{tt.setStrictMode(pn,e)}catch{}}var st=Math.clz32?Math.clz32:Ba,za=Math.log,li=Math.LN2;function Ba(e){return e>>>=0,e===0?32:31-(za(e)/li|0)|0}var yn=256,At=4194304;function Be(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 fa(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var c=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=i&134217727;return x!==0?(i=x&~f,i!==0?c=Be(i):(v&=x,v!==0?c=Be(v):a||(a=x&~e,a!==0&&(c=Be(a))))):(x=i&~f,x!==0?c=Be(x):v!==0?c=Be(v):a||(a=i&~e,a!==0&&(c=Be(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 On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ha(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 ka(){var e=yn;return yn<<=1,(yn&4194048)===0&&(yn=256),e}function da(){var e=At;return At<<=1,(At&62914560)===0&&(At=4194304),e}function Fn(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 Sl(e,t,a,i,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,j=e.expirationTimes,L=e.hiddenUpdates;for(a=v&~a;0<a;){var V=31-st(a),G=1<<V;x[V]=0,j[V]=-1;var q=L[V];if(q!==null)for(L[V]=null,V=0;V<q.length;V++){var z=q[V];z!==null&&(z.lane&=-536870913)}a&=~G}i!==0&&wl(e,i,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function wl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-st(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&4194090}function it(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-st(a),c=1<<i;c&t|e[i]&t&&(e[i]|=t),a&=~c}}function Tt(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 oe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _e(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:G0(e.type))}function Ht(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var Rt=Math.random().toString(36).slice(2),X="__reactFiber$"+Rt,te="__reactProps$"+Rt,de="__reactContainer$"+Rt,We="__reactEvents$"+Rt,vt="__reactListeners$"+Rt,gn="__reactHandles$"+Rt,Wt="__reactResources$"+Rt,rt="__reactMarker$"+Rt;function Ot(e){delete e[X],delete e[te],delete e[We],delete e[vt],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=R0(e);e!==null;){if(a=e[X])return a;e=R0(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 El(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Qa(e){var t=e[Wt];return t||(t=e[Wt]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[rt]=!0}var si=new Set,ii={};function $n(e,t){ha(e,t),ha(e+"Capture",t)}function ha(e,t){for(ii[e]=t,e=0;e<t.length;e++)si.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={},Wl={};function Cl(e){return hn.call(Wl,e)?!0:hn.call(bn,e)?!1:Oe.test(e)?Wl[e]=!0:(bn[e]=!0,!1)}function es(e,t,a){if(Cl(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ya(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 ma(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}var zu,gh;function ts(e){if(zu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);zu=t&&t[1]||"",gh=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+zu+e+gh}var Bu=!1;function Hu(e,t){if(!e||Bu)return"";Bu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(z){var q=z}Reflect.construct(e,[],G)}else{try{G.call()}catch(z){q=z}e.call(G.prototype)}}else{try{throw Error()}catch(z){q=z}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(z){if(z&&q&&typeof z.stack=="string")return[z.stack,q.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),v=f[0],x=f[1];if(v&&x){var j=v.split(`
44
+ `),L=x.split(`
45
+ `);for(c=i=0;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;for(;c<L.length&&!L[c].includes("DetermineComponentFrameRoot");)c++;if(i===j.length||c===L.length)for(i=j.length-1,c=L.length-1;1<=i&&0<=c&&j[i]!==L[c];)c--;for(;1<=i&&0<=c;i--,c--)if(j[i]!==L[c]){if(i!==1||c!==1)do if(i--,c--,0>c||j[i]!==L[c]){var V=`
46
+ `+j[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=c);break}}}finally{Bu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ts(a):""}function P1(e){switch(e.tag){case 26:case 27:case 5:return ts(e.type);case 16:return ts("Lazy");case 13:return ts("Suspense");case 19:return ts("SuspenseList");case 0:case 15:return Hu(e.type,!1);case 11:return Hu(e.type.render,!1);case 1:return Hu(e.type,!0);case 31:return ts("Activity");default:return""}}function bh(e){try{var t="";do t+=P1(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 xh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function I1(e){var t=xh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+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){i=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jr(e){e._valueTracker||(e._valueTracker=I1(e))}function Sh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=xh(e)?e.checked?"true":"false":e.value),e=i,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 W1=/[\n"\\]/g;function Sn(e){return e.replace(W1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(e,t,a,i,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?Qu(e,v,xn(t)):a!=null?Qu(e,v,xn(a)):i!=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 wh(e,t,a,i,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}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=x?e.checked:!!i,e.defaultChecked=!!i,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function Qu(e,t,a){t==="number"&&Ar(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ns(e,t,a,i){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&&i&&(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,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Eh(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 Ch(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(xe(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=xn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i)}function as(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var eg=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 _h(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||eg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nh(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&a[c]!==i&&_h(e,c,i)}else for(var f in t)t.hasOwnProperty(f)&&_h(e,f,t[f])}function Yu(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 tg=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"]]),ng=/^[\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 ng.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Vu=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,ss=null;function jh(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(ku(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 i=a[t];if(i!==e&&i.form===e.form){var c=i[te]||null;if(!c)throw Error(s(90));ku(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Sh(i)}break e;case"textarea":Eh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ns(e,!!a.multiple,t,!1)}}}var Gu=!1;function Ah(e,t,a){if(Gu)return e(t,a);Gu=!0;try{var i=e(t);return i}finally{if(Gu=!1,(ls!==null||ss!==null)&&(po(),ls&&(t=ls,e=ss,ss=ls=null,jh(t),e)))for(t=0;t<e.length;t++)jh(e[t])}}function ri(e,t){var a=e.stateNode;if(a===null)return null;var i=a[te]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var pa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(pa)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Fu=!1}var Va=null,$u=null,Rr=null;function Th(){if(Rr)return Rr;var e,t=$u,a=t.length,i,c="value"in Va?Va.value:Va.textContent,f=c.length;for(e=0;e<a&&t[e]===c[e];e++);var v=a-e;for(i=1;i<=v&&t[a-i]===c[f-i];i++);return Rr=c.slice(e,1<i?1-i: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 Rh(){return!1}function Vt(e){function t(a,i,c,f,v){this._reactName=a,this._targetInst=c,this.type=i,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:Rh,this.isPropagationStopped=Rh,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 _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Vt(_l),ui=g({},_l,{view:0,detail:0}),ag=Vt(ui),Xu,Zu,ci,Ur=g({},ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pu,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!==ci&&(ci&&e.type==="mousemove"?(Xu=e.screenX-ci.screenX,Zu=e.screenY-ci.screenY):Zu=Xu=0,ci=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Zu}}),Oh=Vt(Ur),lg=g({},Ur,{dataTransfer:0}),sg=Vt(lg),ig=g({},ui,{relatedTarget:0}),Ju=Vt(ig),rg=g({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),og=Vt(rg),ug=g({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cg=Vt(ug),fg=g({},_l,{data:0}),Dh=Vt(fg),dg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hg={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"},mg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mg[e])?!!t[e]:!1}function Pu(){return pg}var yg=g({},ui,{key:function(e){if(e.key){var t=dg[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"?hg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pu,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}}),vg=Vt(yg),gg=g({},Ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mh=Vt(gg),bg=g({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pu}),xg=Vt(bg),Sg=g({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),wg=Vt(Sg),Eg=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}),Cg=Vt(Eg),_g=g({},_l,{newState:0,oldState:0}),Ng=Vt(_g),jg=[9,13,27,32],Iu=pa&&"CompositionEvent"in window,fi=null;pa&&"documentMode"in document&&(fi=document.documentMode);var Ag=pa&&"TextEvent"in window&&!fi,Uh=pa&&(!Iu||fi&&8<fi&&11>=fi),Lh=" ",qh=!1;function zh(e,t){switch(e){case"keyup":return jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var is=!1;function Tg(e,t){switch(e){case"compositionend":return Bh(t);case"keypress":return t.which!==32?null:(qh=!0,Lh);case"textInput":return e=t.data,e===Lh&&qh?null:e;default:return null}}function Rg(e,t){if(is)return e==="compositionend"||!Iu&&zh(e,t)?(e=Th(),Rr=$u=Va=null,is=!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 Uh&&t.locale!=="ko"?null:t.data;default:return null}}var Og={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 Hh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Og[e.type]:t==="textarea"}function kh(e,t,a,i){ls?ss?ss.push(i):ss=[i]:ls=i,t=So(t,"onChange"),0<t.length&&(a=new Mr("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var di=null,hi=null;function Dg(e){x0(e,0)}function Lr(e){var t=El(e);if(Sh(t))return e}function Qh(e,t){if(e==="change")return t}var Yh=!1;if(pa){var Wu;if(pa){var ec="oninput"in document;if(!ec){var Vh=document.createElement("div");Vh.setAttribute("oninput","return;"),ec=typeof Vh.oninput=="function"}Wu=ec}else Wu=!1;Yh=Wu&&(!document.documentMode||9<document.documentMode)}function Kh(){di&&(di.detachEvent("onpropertychange",Gh),hi=di=null)}function Gh(e){if(e.propertyName==="value"&&Lr(hi)){var t=[];kh(t,hi,e,Ku(e)),Ah(Dg,t)}}function Mg(e,t,a){e==="focusin"?(Kh(),di=t,hi=a,di.attachEvent("onpropertychange",Gh)):e==="focusout"&&Kh()}function Ug(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lr(hi)}function Lg(e,t){if(e==="click")return Lr(t)}function qg(e,t){if(e==="input"||e==="change")return Lr(t)}function zg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:zg;function mi(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),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var c=a[i];if(!hn.call(t,c)||!tn(e[c],t[c]))return!1}return!0}function Fh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $h(e,t){var a=Fh(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Fh(a)}}function Xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zh(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 tc(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 Bg=pa&&"documentMode"in document&&11>=document.documentMode,rs=null,nc=null,pi=null,ac=!1;function Jh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ac||rs==null||rs!==Ar(i)||(i=rs,"selectionStart"in i&&tc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),pi&&mi(pi,i)||(pi=i,i=So(nc,"onSelect"),0<i.length&&(t=new Mr("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=rs)))}function Nl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var os={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},lc={},Ph={};pa&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function jl(e){if(lc[e])return lc[e];if(!os[e])return e;var t=os[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ph)return lc[e]=t[a];return e}var Ih=jl("animationend"),Wh=jl("animationiteration"),em=jl("animationstart"),Hg=jl("transitionrun"),kg=jl("transitionstart"),Qg=jl("transitioncancel"),tm=jl("transitionend"),nm=new Map,sc="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(" ");sc.push("scrollEnd");function Dn(e,t){nm.set(e,t),$n(t,[e])}var am=new WeakMap;function wn(e,t){if(typeof e=="object"&&e!==null){var a=am.get(e);return a!==void 0?a:(t={value:e,source:t,stack:bh(t)},am.set(e,t),t)}return{value:e,source:t,stack:bh(t)}}var En=[],us=0,ic=0;function qr(){for(var e=us,t=ic=us=0;t<e;){var a=En[t];En[t++]=null;var i=En[t];En[t++]=null;var c=En[t];En[t++]=null;var f=En[t];if(En[t++]=null,i!==null&&c!==null){var v=i.pending;v===null?c.next=c:(c.next=v.next,v.next=c),i.pending=c}f!==0&&lm(a,c,f)}}function zr(e,t,a,i){En[us++]=e,En[us++]=t,En[us++]=a,En[us++]=i,ic|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function rc(e,t,a,i){return zr(e,t,a,i),Br(e)}function cs(e,t){return zr(e,null,null,t),Br(e)}function lm(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var c=!1,f=e.return;f!==null;)f.childLanes|=a,i=f.alternate,i!==null&&(i.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,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=a|536870912),f):null}function Br(e){if(50<ki)throw ki=0,mf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fs={};function Yg(e,t,a,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,a,i){return new Yg(e,t,a,i)}function oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ya(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 sm(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,i,c,f){var v=0;if(i=e,typeof e=="function")oc(e)&&(v=1);else if(typeof e=="string")v=Kb(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=nn(31,a,t,c),e.elementType=ie,e.lanes=f,e;case w:return Al(a.children,c,f,t);case A:v=8,c|=24;break;case N:return e=nn(12,a,t,c|2),e.elementType=N,e.lanes=f,e;case H:return e=nn(13,a,t,c),e.elementType=H,e.lanes=f,e;case $:return e=nn(19,a,t,c),e.elementType=$,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case D:v=10;break e;case O:v=9;break e;case Y:v=11;break e;case I:v=14;break e;case W:v=16,i=null;break e}v=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=nn(v,a,t,c),t.elementType=e,t.type=i,t.lanes=f,t}function Al(e,t,a,i){return e=nn(7,e,i,t),e.lanes=a,e}function uc(e,t,a){return e=nn(6,e,null,t),e.lanes=a,e}function cc(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 ds=[],hs=0,kr=null,Qr=0,Cn=[],_n=0,Tl=null,va=1,ga="";function Rl(e,t){ds[hs++]=Qr,ds[hs++]=kr,kr=e,Qr=t}function im(e,t,a){Cn[_n++]=va,Cn[_n++]=ga,Cn[_n++]=Tl,Tl=e;var i=va;e=ga;var c=32-st(i)-1;i&=~(1<<c),a+=1;var f=32-st(t)+c;if(30<f){var v=c-c%5;f=(i&(1<<v)-1).toString(32),i>>=v,c-=v,va=1<<32-st(t)+c|a<<c|i,ga=f+e}else va=1<<f|a<<c|i,ga=e}function fc(e){e.return!==null&&(Rl(e,1),im(e,1,0))}function dc(e){for(;e===kr;)kr=ds[--hs],ds[hs]=null,Qr=ds[--hs],ds[hs]=null;for(;e===Tl;)Tl=Cn[--_n],Cn[_n]=null,ga=Cn[--_n],Cn[_n]=null,va=Cn[--_n],Cn[_n]=null}var kt=null,nt=null,De=!1,Ol=null,Xn=!1,hc=Error(s(519));function Dl(e){var t=Error(s(418,""));throw gi(wn(t,e)),hc}function rm(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[X]=e,t[te]=i,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<Yi.length;a++)je(Yi[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),wh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),jr(t);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Ch(t,i.value,i.defaultValue,i.children),jr(t)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||C0(t.textContent,a)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=wo),t=!0):t=!1,t||Dl(e)}function om(e){for(kt=e.return;kt;)switch(kt.tag){case 5:case 13:Xn=!1;return;case 27:case 3:Xn=!0;return;default:kt=kt.return}}function yi(e){if(e!==kt)return!1;if(!De)return om(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")||Rf(e.type,e.memoizedProps)),a=!a),a&&nt&&Dl(e),om(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){nt=Un(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}nt=null}}else t===27?(t=nt,sl(e.type)?(e=Uf,Uf=null,nt=e):nt=t):nt=kt?Un(e.stateNode.nextSibling):null;return!0}function vi(){nt=kt=null,De=!1}function um(){var e=Ol;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),Ol=null),e}function gi(e){Ol===null?Ol=[e]:Ol.push(e)}var mc=Q(null),Ml=null,ba=null;function Ka(e,t,a){J(mc,t._currentValue),t._currentValue=a}function xa(e){e._currentValue=mc.current,P(mc)}function pc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function yc(e,t,a,i){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 j=0;j<t.length;j++)if(x.context===t[j]){f.lanes|=a,x=f.alternate,x!==null&&(x.lanes|=a),pc(f.return,a,e),i||(v=null);break e}f=x.next}}else if(c.tag===18){if(v=c.return,v===null)throw Error(s(341));v.lanes|=a,f=v.alternate,f!==null&&(f.lanes|=a),pc(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 bi(e,t,a,i){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(s(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(s(387));v.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Xi):e=[Xi])}c=c.return}e!==null&&yc(t,e,a,i),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 Ul(e){Ml=e,ba=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return cm(Ml,e)}function Vr(e,t){return Ml===null&&Ul(e),cm(e,t)}function cm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ba===null){if(e===null)throw Error(s(308));ba=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ba=ba.next=t;return a}var Vg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Kg=n.unstable_scheduleCallback,Gg=n.unstable_NormalPriority,mt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vc(){return{controller:new Vg,data:new Map,refCount:0}}function xi(e){e.refCount--,e.refCount===0&&Kg(Gg,function(){e.controller.abort()})}var Si=null,gc=0,ms=0,ps=null;function Fg(e,t){if(Si===null){var a=Si=[];gc=0,ms=Sf(),ps={status:"pending",value:void 0,then:function(i){a.push(i)}}}return gc++,t.then(fm,fm),t}function fm(){if(--gc===0&&Si!==null){ps!==null&&(ps.status="fulfilled");var e=Si;Si=null,ms=0,ps=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $g(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),i}var dm=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fg(e,t),dm!==null&&dm(e,t)};var Ll=Q(null);function bc(){var e=Ll.current;return e!==null?e:Xe.pooledCache}function Kr(e,t){t===null?J(Ll,Ll.current):J(Ll,t.pool)}function hm(){var e=bc();return e===null?null:{parent:mt._currentValue,pool:e}}var wi=Error(s(460)),mm=Error(s(474)),Gr=Error(s(542)),xc={then:function(){}};function pm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fr(){}function ym(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,gm(e),e;default:if(typeof t.status=="string")t.then(Fr,Fr);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e}throw Ei=t,wi}}var Ei=null;function vm(){if(Ei===null)throw Error(s(459));var e=Ei;return Ei=null,e}function gm(e){if(e===wi||e===Gr)throw Error(s(483))}var Ga=!1;function Sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wc(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 Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $a(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ue&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Br(e),lm(e,null,a),t}return zr(e,i,t,a),Br(e)}function Ci(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,it(e,a)}}function Ec(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){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:i.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Cc=!1;function _i(){if(Cc){var e=ps;if(e!==null)throw e}}function Ni(e,t,a,i){Cc=!1;var c=e.updateQueue;Ga=!1;var f=c.firstBaseUpdate,v=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var j=x,L=j.next;j.next=null,v===null?f=L:v.next=L,v=j;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==v&&(x===null?V.firstBaseUpdate=L:x.next=L,V.lastBaseUpdate=j))}if(f!==null){var G=c.baseState;v=0,V=L=j=null,x=f;do{var q=x.lane&-536870913,z=q!==x.lane;if(z?(Ae&q)===q:(i&q)===q){q!==0&&q===ms&&(Cc=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var me=e,fe=x;q=t;var Qe=a;switch(fe.tag){case 1:if(me=fe.payload,typeof me=="function"){G=me.call(Qe,G,q);break e}G=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=fe.payload,q=typeof me=="function"?me.call(Qe,G,q):me,q==null)break e;G=g({},G,q);break e;case 2:Ga=!0}}q=x.callback,q!==null&&(e.flags|=64,z&&(e.flags|=8192),z=c.callbacks,z===null?c.callbacks=[q]:z.push(q))}else z={lane:q,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(L=V=z,j=G):V=V.next=z,v|=q;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;z=x,x=z.next,z.next=null,c.lastBaseUpdate=z,c.shared.pending=null}}while(!0);V===null&&(j=G),c.baseState=j,c.firstBaseUpdate=L,c.lastBaseUpdate=V,f===null&&(c.shared.lanes=0),tl|=v,e.lanes=v,e.memoizedState=G}}function bm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function xm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)bm(a[e],t)}var ys=Q(null),$r=Q(0);function Sm(e,t){e=ja,J($r,e),J(ys,t),ja=e|t.baseLanes}function _c(){J($r,ja),J(ys,ys.current)}function Nc(){ja=$r.current,P(ys),P($r)}var Xa=0,be=null,He=null,ft=null,Xr=!1,vs=!1,ql=!1,Zr=0,ji=0,gs=null,Xg=0;function ut(){throw Error(s(321))}function jc(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 Ac(e,t,a,i,c,f){return Xa=f,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?lp:sp,ql=!1,f=a(i,c),ql=!1,vs&&(f=Em(t,a,i,c)),wm(e),f}function wm(e){B.H=to;var t=He!==null&&He.next!==null;if(Xa=0,ft=He=be=null,Xr=!1,ji=0,gs=null,t)throw Error(s(300));e===null||gt||(e=e.dependencies,e!==null&&Yr(e)&&(gt=!0))}function Em(e,t,a,i){be=e;var c=0;do{if(vs&&(gs=null),ji=0,vs=!1,25<=c)throw Error(s(301));if(c+=1,ft=He=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=tb,f=t(a,i)}while(vs);return f}function Zg(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ai(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(be.flags|=1024),t}function Tc(){var e=Zr!==0;return Zr=0,e}function Rc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Oc(e){if(Xr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xr=!1}Xa=0,ft=He=be=null,vs=!1,ji=Zr=0,gs=null}function Kt(){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(He===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=ft===null?be.memoizedState:ft.next;if(t!==null)ft=t,He=e;else{if(e===null)throw be.alternate===null?Error(s(467)):Error(s(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},ft===null?be.memoizedState=ft=e:ft=ft.next=e}return ft}function Dc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ai(e){var t=ji;return ji+=1,gs===null&&(gs=[]),e=ym(gs,e,t),t=be,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?lp:sp),e}function Jr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ai(e);if(e.$$typeof===D)return Dt(e)}throw Error(s(438,String(e)))}function Mc(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Dc(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=pe;return t.index++,a}function Sa(e,t){return typeof t=="function"?t(e):t}function Pr(e){var t=dt();return Uc(t,He,e)}function Uc(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var c=e.baseQueue,f=i.pending;if(f!==null){if(c!==null){var v=c.next;c.next=f.next,f.next=v}t.baseQueue=c=f,i.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var x=v=null,j=null,L=t,V=!1;do{var G=L.lane&-536870913;if(G!==L.lane?(Ae&G)===G:(Xa&G)===G){var q=L.revertLane;if(q===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),G===ms&&(V=!0);else if((Xa&q)===q){L=L.next,q===ms&&(V=!0);continue}else G={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},j===null?(x=j=G,v=f):j=j.next=G,be.lanes|=q,tl|=q;G=L.action,ql&&a(f,G),f=L.hasEagerState?L.eagerState:a(f,G)}else q={lane:G,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},j===null?(x=j=q,v=f):j=j.next=q,be.lanes|=G,tl|=G;L=L.next}while(L!==null&&L!==t);if(j===null?v=f:j.next=x,!tn(f,e.memoizedState)&&(gt=!0,V&&(a=ps,a!==null)))throw a;e.memoizedState=f,e.baseState=v,e.baseQueue=j,i.lastRenderedState=f}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Lc(e){var t=dt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=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)||(gt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,i]}function Cm(e,t,a){var i=be,c=dt(),f=De;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=t();var v=!tn((He||c).memoizedState,a);v&&(c.memoizedState=a,gt=!0),c=c.queue;var x=jm.bind(null,i,c,e);if(Ti(2048,8,x,[e]),c.getSnapshot!==t||v||ft!==null&&ft.memoizedState.tag&1){if(i.flags|=2048,bs(9,Ir(),Nm.bind(null,i,c,a,t),null),Xe===null)throw Error(s(349));f||(Xa&124)!==0||_m(i,t,a)}return a}function _m(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=Dc(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nm(e,t,a,i){t.value=a,t.getSnapshot=i,Am(t)&&Tm(e)}function jm(e,t,a){return a(function(){Am(t)&&Tm(e)})}function Am(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Tm(e){var t=cs(e,2);t!==null&&on(t,e,2)}function qc(e){var t=Kt();if(typeof e=="function"){var a=e;if(e=a(),ql){Yt(!0);try{a()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:e},t}function Rm(e,t,a,i){return e.baseState=a,Uc(e,He,typeof i=="function"?i:Sa)}function Jg(e,t,a,i,c){if(eo(e))throw Error(s(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,i(f),a=t.pending,a===null?(f.next=t.pending=f,Om(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Om(e,t){var a=t.action,i=t.payload,c=e.state;if(t.isTransition){var f=B.T,v={};B.T=v;try{var x=a(c,i),j=B.S;j!==null&&j(v,x),Dm(e,t,x)}catch(L){zc(e,t,L)}finally{B.T=f}}else try{f=a(c,i),Dm(e,t,f)}catch(L){zc(e,t,L)}}function Dm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Mm(e,t,i)},function(i){return zc(e,t,i)}):Mm(e,t,a)}function Mm(e,t,a){t.status="fulfilled",t.value=a,Um(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Om(e,a)))}function zc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Um(t),t=t.next;while(t!==i)}e.action=null}function Um(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lm(e,t){return t}function qm(e,t){if(De){var a=Xe.formState;if(a!==null){e:{var i=be;if(De){if(nt){t:{for(var c=nt,f=Xn;c.nodeType!==8;){if(!f){c=null;break t}if(c=Un(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){nt=Un(c.nextSibling),i=c.data==="F!";break e}}Dl(i)}i=!1}i&&(t=a[0])}}return a=Kt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lm,lastRenderedState:t},a.queue=i,a=tp.bind(null,be,i),i.dispatch=a,i=qc(!1),f=Yc.bind(null,be,!1,i.queue),i=Kt(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,a=Jg.bind(null,be,c,f,a),c.dispatch=a,i.memoizedState=e,[t,a,!1]}function zm(e){var t=dt();return Bm(t,He,e)}function Bm(e,t,a){if(t=Uc(e,t,Lm)[0],e=Pr(Sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ai(t)}catch(v){throw v===wi?Gr:v}else i=t;t=dt();var c=t.queue,f=c.dispatch;return a!==t.memoizedState&&(be.flags|=2048,bs(9,Ir(),Pg.bind(null,c,a),null)),[i,f,e]}function Pg(e,t){e.action=t}function Hm(e){var t=dt(),a=He;if(a!==null)return Bm(t,a,e);dt(),t=t.memoizedState,a=dt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function bs(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=be.updateQueue,t===null&&(t=Dc(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Ir(){return{destroy:void 0,resource:void 0}}function km(){return dt().memoizedState}function Wr(e,t,a,i){var c=Kt();i=i===void 0?null:i,be.flags|=e,c.memoizedState=bs(1|t,Ir(),a,i)}function Ti(e,t,a,i){var c=dt();i=i===void 0?null:i;var f=c.memoizedState.inst;He!==null&&i!==null&&jc(i,He.memoizedState.deps)?c.memoizedState=bs(t,f,a,i):(be.flags|=e,c.memoizedState=bs(1|t,f,a,i))}function Qm(e,t){Wr(8390656,8,e,t)}function Ym(e,t){Ti(2048,8,e,t)}function Vm(e,t){return Ti(4,2,e,t)}function Km(e,t){return Ti(4,4,e,t)}function Gm(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 Fm(e,t,a){a=a!=null?a.concat([e]):null,Ti(4,4,Gm.bind(null,t,e),a)}function Bc(){}function $m(e,t){var a=dt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&jc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Xm(e,t){var a=dt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&jc(t,i[1]))return i[0];if(i=e(),ql){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[i,t],i}function Hc(e,t,a){return a===void 0||(Xa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Pp(),be.lanes|=e,tl|=e,a)}function Zm(e,t,a,i){return tn(a,t)?a:ys.current!==null?(e=Hc(e,a,i),tn(e,t)||(gt=!0),e):(Xa&42)===0?(gt=!0,e.memoizedState=a):(e=Pp(),be.lanes|=e,tl|=e,t)}function Jm(e,t,a,i,c){var f=F.p;F.p=f!==0&&8>f?f:8;var v=B.T,x={};B.T=x,Yc(e,!1,t,a);try{var j=c(),L=B.S;if(L!==null&&L(x,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var V=$g(j,i);Ri(e,t,V,rn(e))}else Ri(e,t,i,rn(e))}catch(G){Ri(e,t,{then:function(){},status:"rejected",reason:G},rn())}finally{F.p=f,B.T=v}}function Ig(){}function kc(e,t,a,i){if(e.tag!==5)throw Error(s(476));var c=Pm(e).queue;Jm(e,c,t,Z,a===null?Ig:function(){return Im(e),a(i)})}function Pm(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:Sa,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Im(e){var t=Pm(e).next.queue;Ri(e,t,{},rn())}function Qc(){return Dt(Xi)}function Wm(){return dt().memoizedState}function ep(){return dt().memoizedState}function Wg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=rn();e=Fa(a);var i=$a(t,e,a);i!==null&&(on(i,t,a),Ci(i,t,a)),t={cache:vc()},e.payload=t;return}t=t.return}}function eb(e,t,a){var i=rn();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},eo(e)?np(t,a):(a=rc(e,t,a,i),a!==null&&(on(a,e,i),ap(a,t,i)))}function tp(e,t,a){var i=rn();Ri(e,t,a,i)}function Ri(e,t,a,i){var c={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(eo(e))np(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 zr(e,t,c,0),Xe===null&&qr(),!1}catch{}finally{}if(a=rc(e,t,c,i),a!==null)return on(a,e,i),ap(a,t,i),!0}return!1}function Yc(e,t,a,i){if(i={lane:2,revertLane:Sf(),action:i,hasEagerState:!1,eagerState:null,next:null},eo(e)){if(t)throw Error(s(479))}else t=rc(e,a,i,2),t!==null&&on(t,e,2)}function eo(e){var t=e.alternate;return e===be||t!==null&&t===be}function np(e,t){vs=Xr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ap(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,it(e,a)}}var to={readContext:Dt,use:Jr,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut},lp={readContext:Dt,use:Jr,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:Qm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Wr(4194308,4,Gm.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=Kt();t=t===void 0?null:t;var i=e();if(ql){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Kt();if(a!==void 0){var c=a(t);if(ql){Yt(!0);try{a(t)}finally{Yt(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=eb.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=qc(e);var t=e.queue,a=tp.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Bc,useDeferredValue:function(e,t){var a=Kt();return Hc(a,e,t)},useTransition:function(){var e=qc(!1);return e=Jm.bind(null,be,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=be,c=Kt();if(De){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Xe===null)throw Error(s(349));(Ae&124)!==0||_m(i,t,a)}c.memoizedState=a;var f={value:a,getSnapshot:t};return c.queue=f,Qm(jm.bind(null,i,f,e),[e]),i.flags|=2048,bs(9,Ir(),Nm.bind(null,i,f,a,t),null),a},useId:function(){var e=Kt(),t=Xe.identifierPrefix;if(De){var a=ga,i=va;a=(i&~(1<<32-st(i)-1)).toString(32)+a,t="«"+t+"R"+a,a=Zr++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Xg++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Qc,useFormState:qm,useActionState:qm,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Yc.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mc,useCacheRefresh:function(){return Kt().memoizedState=Wg.bind(null,be)}},sp={readContext:Dt,use:Jr,useCallback:$m,useContext:Dt,useEffect:Ym,useImperativeHandle:Fm,useInsertionEffect:Vm,useLayoutEffect:Km,useMemo:Xm,useReducer:Pr,useRef:km,useState:function(){return Pr(Sa)},useDebugValue:Bc,useDeferredValue:function(e,t){var a=dt();return Zm(a,He.memoizedState,e,t)},useTransition:function(){var e=Pr(Sa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:Cm,useId:Wm,useHostTransitionStatus:Qc,useFormState:zm,useActionState:zm,useOptimistic:function(e,t){var a=dt();return Rm(a,He,e,t)},useMemoCache:Mc,useCacheRefresh:ep},tb={readContext:Dt,use:Jr,useCallback:$m,useContext:Dt,useEffect:Ym,useImperativeHandle:Fm,useInsertionEffect:Vm,useLayoutEffect:Km,useMemo:Xm,useReducer:Lc,useRef:km,useState:function(){return Lc(Sa)},useDebugValue:Bc,useDeferredValue:function(e,t){var a=dt();return He===null?Hc(a,e,t):Zm(a,He.memoizedState,e,t)},useTransition:function(){var e=Lc(Sa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:Cm,useId:Wm,useHostTransitionStatus:Qc,useFormState:Hm,useActionState:Hm,useOptimistic:function(e,t){var a=dt();return He!==null?Rm(a,He,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mc,useCacheRefresh:ep},xs=null,Oi=0;function no(e){var t=Oi;return Oi+=1,xs===null&&(xs=[]),ym(xs,e,t)}function Di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ao(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ip(e){var t=e._init;return t(e._payload)}function rp(e){function t(M,R){if(e){var U=M.deletions;U===null?(M.deletions=[R],M.flags|=16):U.push(R)}}function a(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function i(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function c(M,R){return M=ya(M,R),M.index=0,M.sibling=null,M}function f(M,R,U){return M.index=U,e?(U=M.alternate,U!==null?(U=U.index,U<R?(M.flags|=67108866,R):U):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function v(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function x(M,R,U,K){return R===null||R.tag!==6?(R=uc(U,M.mode,K),R.return=M,R):(R=c(R,U),R.return=M,R)}function j(M,R,U,K){var ee=U.type;return ee===w?V(M,R,U.props.children,K,U.key):R!==null&&(R.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===W&&ip(ee)===R.type)?(R=c(R,U.props),Di(R,U),R.return=M,R):(R=Hr(U.type,U.key,U.props,null,M.mode,K),Di(R,U),R.return=M,R)}function L(M,R,U,K){return R===null||R.tag!==4||R.stateNode.containerInfo!==U.containerInfo||R.stateNode.implementation!==U.implementation?(R=cc(U,M.mode,K),R.return=M,R):(R=c(R,U.children||[]),R.return=M,R)}function V(M,R,U,K,ee){return R===null||R.tag!==7?(R=Al(U,M.mode,K,ee),R.return=M,R):(R=c(R,U),R.return=M,R)}function G(M,R,U){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=uc(""+R,M.mode,U),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case E:return U=Hr(R.type,R.key,R.props,null,M.mode,U),Di(U,R),U.return=M,U;case C:return R=cc(R,M.mode,U),R.return=M,R;case W:var K=R._init;return R=K(R._payload),G(M,R,U)}if(xe(R)||Ee(R))return R=Al(R,M.mode,U,null),R.return=M,R;if(typeof R.then=="function")return G(M,no(R),U);if(R.$$typeof===D)return G(M,Vr(M,R),U);ao(M,R)}return null}function q(M,R,U,K){var ee=R!==null?R.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ee!==null?null:x(M,R,""+U,K);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case E:return U.key===ee?j(M,R,U,K):null;case C:return U.key===ee?L(M,R,U,K):null;case W:return ee=U._init,U=ee(U._payload),q(M,R,U,K)}if(xe(U)||Ee(U))return ee!==null?null:V(M,R,U,K,null);if(typeof U.then=="function")return q(M,R,no(U),K);if(U.$$typeof===D)return q(M,R,Vr(M,U),K);ao(M,U)}return null}function z(M,R,U,K,ee){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return M=M.get(U)||null,x(R,M,""+K,ee);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case E:return M=M.get(K.key===null?U:K.key)||null,j(R,M,K,ee);case C:return M=M.get(K.key===null?U:K.key)||null,L(R,M,K,ee);case W:var Se=K._init;return K=Se(K._payload),z(M,R,U,K,ee)}if(xe(K)||Ee(K))return M=M.get(U)||null,V(R,M,K,ee,null);if(typeof K.then=="function")return z(M,R,U,no(K),ee);if(K.$$typeof===D)return z(M,R,U,Vr(R,K),ee);ao(R,K)}return null}function me(M,R,U,K){for(var ee=null,Se=null,ne=R,he=R=0,xt=null;ne!==null&&he<U.length;he++){ne.index>he?(xt=ne,ne=null):xt=ne.sibling;var Te=q(M,ne,U[he],K);if(Te===null){ne===null&&(ne=xt);break}e&&ne&&Te.alternate===null&&t(M,ne),R=f(Te,R,he),Se===null?ee=Te:Se.sibling=Te,Se=Te,ne=xt}if(he===U.length)return a(M,ne),De&&Rl(M,he),ee;if(ne===null){for(;he<U.length;he++)ne=G(M,U[he],K),ne!==null&&(R=f(ne,R,he),Se===null?ee=ne:Se.sibling=ne,Se=ne);return De&&Rl(M,he),ee}for(ne=i(ne);he<U.length;he++)xt=z(ne,M,he,U[he],K),xt!==null&&(e&&xt.alternate!==null&&ne.delete(xt.key===null?he:xt.key),R=f(xt,R,he),Se===null?ee=xt:Se.sibling=xt,Se=xt);return e&&ne.forEach(function(cl){return t(M,cl)}),De&&Rl(M,he),ee}function fe(M,R,U,K){if(U==null)throw Error(s(151));for(var ee=null,Se=null,ne=R,he=R=0,xt=null,Te=U.next();ne!==null&&!Te.done;he++,Te=U.next()){ne.index>he?(xt=ne,ne=null):xt=ne.sibling;var cl=q(M,ne,Te.value,K);if(cl===null){ne===null&&(ne=xt);break}e&&ne&&cl.alternate===null&&t(M,ne),R=f(cl,R,he),Se===null?ee=cl:Se.sibling=cl,Se=cl,ne=xt}if(Te.done)return a(M,ne),De&&Rl(M,he),ee;if(ne===null){for(;!Te.done;he++,Te=U.next())Te=G(M,Te.value,K),Te!==null&&(R=f(Te,R,he),Se===null?ee=Te:Se.sibling=Te,Se=Te);return De&&Rl(M,he),ee}for(ne=i(ne);!Te.done;he++,Te=U.next())Te=z(ne,M,he,Te.value,K),Te!==null&&(e&&Te.alternate!==null&&ne.delete(Te.key===null?he:Te.key),R=f(Te,R,he),Se===null?ee=Te:Se.sibling=Te,Se=Te);return e&&ne.forEach(function(nx){return t(M,nx)}),De&&Rl(M,he),ee}function Qe(M,R,U,K){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case E:e:{for(var ee=U.key;R!==null;){if(R.key===ee){if(ee=U.type,ee===w){if(R.tag===7){a(M,R.sibling),K=c(R,U.props.children),K.return=M,M=K;break e}}else if(R.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===W&&ip(ee)===R.type){a(M,R.sibling),K=c(R,U.props),Di(K,U),K.return=M,M=K;break e}a(M,R);break}else t(M,R);R=R.sibling}U.type===w?(K=Al(U.props.children,M.mode,K,U.key),K.return=M,M=K):(K=Hr(U.type,U.key,U.props,null,M.mode,K),Di(K,U),K.return=M,M=K)}return v(M);case C:e:{for(ee=U.key;R!==null;){if(R.key===ee)if(R.tag===4&&R.stateNode.containerInfo===U.containerInfo&&R.stateNode.implementation===U.implementation){a(M,R.sibling),K=c(R,U.children||[]),K.return=M,M=K;break e}else{a(M,R);break}else t(M,R);R=R.sibling}K=cc(U,M.mode,K),K.return=M,M=K}return v(M);case W:return ee=U._init,U=ee(U._payload),Qe(M,R,U,K)}if(xe(U))return me(M,R,U,K);if(Ee(U)){if(ee=Ee(U),typeof ee!="function")throw Error(s(150));return U=ee.call(U),fe(M,R,U,K)}if(typeof U.then=="function")return Qe(M,R,no(U),K);if(U.$$typeof===D)return Qe(M,R,Vr(M,U),K);ao(M,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,R!==null&&R.tag===6?(a(M,R.sibling),K=c(R,U),K.return=M,M=K):(a(M,R),K=uc(U,M.mode,K),K.return=M,M=K),v(M)):a(M,R)}return function(M,R,U,K){try{Oi=0;var ee=Qe(M,R,U,K);return xs=null,ee}catch(ne){if(ne===wi||ne===Gr)throw ne;var Se=nn(29,ne,null,M.mode);return Se.lanes=K,Se.return=M,Se}finally{}}}var Ss=rp(!0),op=rp(!1),Nn=Q(null),Zn=null;function Za(e){var t=e.alternate;J(pt,pt.current&1),J(Nn,e),Zn===null&&(t===null||ys.current!==null||t.memoizedState!==null)&&(Zn=e)}function up(e){if(e.tag===22){if(J(pt,pt.current),J(Nn,e),Zn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Zn=e)}}else Ja()}function Ja(){J(pt,pt.current),J(Nn,Nn.current)}function wa(e){P(Nn),Zn===e&&(Zn=null),P(pt)}var pt=Q(0);function lo(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==="$?"||Mf(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 Vc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Kc={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=rn(),c=Fa(i);c.payload=t,a!=null&&(c.callback=a),t=$a(e,c,i),t!==null&&(on(t,e,i),Ci(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=rn(),c=Fa(i);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=$a(e,c,i),t!==null&&(on(t,e,i),Ci(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(),i=Fa(a);i.tag=2,t!=null&&(i.callback=t),t=$a(e,i,a),t!==null&&(on(t,e,a),Ci(t,e,a))}};function cp(e,t,a,i,c,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,v):t.prototype&&t.prototype.isPureReactComponent?!mi(a,i)||!mi(c,f):!0}function fp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Kc.enqueueReplaceState(t,t.state,null)}function zl(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}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 so=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 dp(e){so(e)}function hp(e){console.error(e)}function mp(e){so(e)}function io(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function pp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Gc(e,t,a){return a=Fa(a),a.tag=3,a.payload={element:null},a.callback=function(){io(e,t)},a}function yp(e){return e=Fa(e),e.tag=3,e}function vp(e,t,a,i){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var f=i.value;e.payload=function(){return c(f)},e.callback=function(){pp(t,a,i)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){pp(t,a,i),typeof c!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var x=i.stack;this.componentDidCatch(i.value,{componentStack:x!==null?x:""})})}function nb(e,t,a,i,c){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&bi(t,a,c,!0),a=Nn.current,a!==null){switch(a.tag){case 13:return Zn===null?yf():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=c,i===xc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),gf(e,i,c)),!1;case 22:return a.flags|=65536,i===xc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),gf(e,i,c)),!1}throw Error(s(435,a.tag))}return gf(e,i,c),yf(),!1}if(De)return t=Nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==hc&&(e=Error(s(422),{cause:i}),gi(wn(e,a)))):(i!==hc&&(t=Error(s(423),{cause:i}),gi(wn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=wn(i,a),c=Gc(e.stateNode,i,c),Ec(e,c),at!==4&&(at=2)),!1;var f=Error(s(520),{cause:i});if(f=wn(f,a),Hi===null?Hi=[f]:Hi.push(f),at!==4&&(at=2),t===null)return!0;i=wn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=Gc(a.stateNode,i,e),Ec(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"&&(nl===null||!nl.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=yp(c),vp(c,e,a,i),Ec(a,c),!1}a=a.return}while(a!==null);return!1}var gp=Error(s(461)),gt=!1;function wt(e,t,a,i){t.child=e===null?op(t,null,a,i):Ss(t,e.child,a,i)}function bp(e,t,a,i,c){a=a.render;var f=t.ref;if("ref"in i){var v={};for(var x in i)x!=="ref"&&(v[x]=i[x])}else v=i;return Ul(t),i=Ac(e,t,a,v,f,c),x=Tc(),e!==null&&!gt?(Rc(e,t,c),Ea(e,t,c)):(De&&x&&fc(t),t.flags|=1,wt(e,t,i,c),t.child)}function xp(e,t,a,i,c){if(e===null){var f=a.type;return typeof f=="function"&&!oc(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Sp(e,t,f,i,c)):(e=Hr(a.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Wc(e,c)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:mi,a(v,i)&&e.ref===t.ref)return Ea(e,t,c)}return t.flags|=1,e=ya(f,i),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,a,i,c){if(e!==null){var f=e.memoizedProps;if(mi(f,i)&&e.ref===t.ref)if(gt=!1,t.pendingProps=i=f,Wc(e,c))(e.flags&131072)!==0&&(gt=!0);else return t.lanes=e.lanes,Ea(e,t,c)}return Fc(e,t,a,i,c)}function wp(e,t,a){var i=t.pendingProps,c=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=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&~i}else t.childLanes=0,t.child=null;return Ep(e,t,i,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kr(t,f!==null?f.cachePool:null),f!==null?Sm(t,f):_c(),up(t);else return t.lanes=t.childLanes=536870912,Ep(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Kr(t,f.cachePool),Sm(t,f),Ja(),t.memoizedState=null):(e!==null&&Kr(t,null),_c(),Ja());return wt(e,t,c,a),t.child}function Ep(e,t,a,i){var c=bc();return c=c===null?null:{parent:mt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Kr(t,null),_c(),up(t),e!==null&&bi(e,t,i,!0),null}function ro(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Fc(e,t,a,i,c){return Ul(t),a=Ac(e,t,a,i,void 0,c),i=Tc(),e!==null&&!gt?(Rc(e,t,c),Ea(e,t,c)):(De&&i&&fc(t),t.flags|=1,wt(e,t,a,c),t.child)}function Cp(e,t,a,i,c,f){return Ul(t),t.updateQueue=null,a=Em(t,i,a,c),wm(e),i=Tc(),e!==null&&!gt?(Rc(e,t,f),Ea(e,t,f)):(De&&i&&fc(t),t.flags|=1,wt(e,t,a,f),t.child)}function _p(e,t,a,i,c){if(Ul(t),t.stateNode===null){var f=fs,v=a.contextType;typeof v=="object"&&v!==null&&(f=Dt(v)),f=new a(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Kc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Sc(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?Dt(v):fs,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(Vc(t,a,v,i),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&&Kc.enqueueReplaceState(f,f.state,null),Ni(t,i,f,c),_i(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,j=zl(a,x);f.props=j;var L=f.context,V=a.contextType;v=fs,typeof V=="object"&&V!==null&&(v=Dt(V));var G=a.getDerivedStateFromProps;V=typeof G=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||L!==v)&&fp(t,f,i,v),Ga=!1;var q=t.memoizedState;f.state=q,Ni(t,i,f,c),_i(),L=t.memoizedState,x||q!==L||Ga?(typeof G=="function"&&(Vc(t,a,G,i),L=t.memoizedState),(j=Ga||cp(t,a,j,i,q,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=i,t.memoizedState=L),f.props=i,f.state=L,f.context=v,i=j):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,wc(e,t),v=t.memoizedProps,V=zl(a,v),f.props=V,G=t.pendingProps,q=f.context,L=a.contextType,j=fs,typeof L=="object"&&L!==null&&(j=Dt(L)),x=a.getDerivedStateFromProps,(L=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==G||q!==j)&&fp(t,f,i,j),Ga=!1,q=t.memoizedState,f.state=q,Ni(t,i,f,c),_i();var z=t.memoizedState;v!==G||q!==z||Ga||e!==null&&e.dependencies!==null&&Yr(e.dependencies)?(typeof x=="function"&&(Vc(t,a,x,i),z=t.memoizedState),(V=Ga||cp(t,a,V,i,q,z,j)||e!==null&&e.dependencies!==null&&Yr(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,z,j),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,z,j)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=z),f.props=i,f.state=z,f.context=j,i=V):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,ro(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Ss(t,e.child,null,c),t.child=Ss(t,null,a,c)):wt(e,t,a,c),t.memoizedState=f.state,e=t.child):e=Ea(e,t,c),e}function Np(e,t,a,i){return vi(),t.flags|=256,wt(e,t,a,i),t.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:hm()}}function Zc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=jn),e}function jp(e,t,a){var i=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?Za(t):Ja(),De){var x=nt,j;if(j=x){e:{for(j=x,x=Xn;j.nodeType!==8;){if(!x){x=null;break e}if(j=Un(j.nextSibling),j===null){x=null;break e}}x=j}x!==null?(t.memoizedState={dehydrated:x,treeContext:Tl!==null?{id:va,overflow:ga}:null,retryLane:536870912,hydrationErrors:null},j=nn(18,null,null,0),j.stateNode=x,j.return=t,t.child=j,kt=t,nt=null,j=!0):j=!1}j||Dl(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return Mf(x)?t.lanes=32:t.lanes=536870912,null;wa(t)}return x=i.children,i=i.fallback,c?(Ja(),c=t.mode,x=oo({mode:"hidden",children:x},c),i=Al(i,c,a,null),x.return=t,i.return=t,x.sibling=i,t.child=x,c=t.child,c.memoizedState=Xc(a),c.childLanes=Zc(e,v,a),t.memoizedState=$c,i):(Za(t),Jc(t,x))}if(j=e.memoizedState,j!==null&&(x=j.dehydrated,x!==null)){if(f)t.flags&256?(Za(t),t.flags&=-257,t=Pc(e,t,a)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),c=i.fallback,x=t.mode,i=oo({mode:"visible",children:i.children},x),c=Al(c,x,a,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Ss(t,e.child,null,a),i=t.child,i.memoizedState=Xc(a),i.childLanes=Zc(e,v,a),t.memoizedState=$c,t=c);else if(Za(t),Mf(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var L=v.dgst;v=L,i=Error(s(419)),i.stack="",i.digest=v,gi({value:i,source:null,stack:null}),t=Pc(e,t,a)}else if(gt||bi(e,t,a,!1),v=(a&e.childLanes)!==0,gt||v){if(v=Xe,v!==null&&(i=a&-a,i=(i&42)!==0?1:Tt(i),i=(i&(v.suspendedLanes|a))!==0?0:i,i!==0&&i!==j.retryLane))throw j.retryLane=i,cs(e,i),on(v,e,i),gp;x.data==="$?"||yf(),t=Pc(e,t,a)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,nt=Un(x.nextSibling),kt=t,De=!0,Ol=null,Xn=!1,e!==null&&(Cn[_n++]=va,Cn[_n++]=ga,Cn[_n++]=Tl,va=e.id,ga=e.overflow,Tl=t),t=Jc(t,i.children),t.flags|=4096);return t}return c?(Ja(),c=i.fallback,x=t.mode,j=e.child,L=j.sibling,i=ya(j,{mode:"hidden",children:i.children}),i.subtreeFlags=j.subtreeFlags&65011712,L!==null?c=ya(L,c):(c=Al(c,x,a,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,x=e.child.memoizedState,x===null?x=Xc(a):(j=x.cachePool,j!==null?(L=mt._currentValue,j=j.parent!==L?{parent:L,pool:L}:j):j=hm(),x={baseLanes:x.baseLanes|a,cachePool:j}),c.memoizedState=x,c.childLanes=Zc(e,v,a),t.memoizedState=$c,i):(Za(t),a=e.child,e=a.sibling,a=ya(a,{mode:"visible",children:i.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 Jc(e,t){return t=oo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function oo(e,t){return e=nn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Pc(e,t,a){return Ss(t,e.child,null,a),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ap(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),pc(e.return,t,a)}function Ic(e,t,a,i,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=a,f.tailMode=c)}function Tp(e,t,a){var i=t.pendingProps,c=i.revealOrder,f=i.tail;if(wt(e,t,i.children,a),i=pt.current,(i&2)!==0)i=i&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&&Ap(e,a,t);else if(e.tag===19)Ap(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}i&=1}switch(J(pt,i),c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&lo(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),Ic(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&&lo(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}Ic(t,!0,a,null,f);break;case"together":Ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(bi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ya(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ya(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Wc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yr(e)))}function ab(e,t,a){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),Ka(t,mt,e.memoizedState.cache),vi();break;case 27:case 5:Vn(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:Ka(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Za(t),t.flags|=128,null):(a&t.child.childLanes)!==0?jp(e,t,a):(Za(t),e=Ea(e,t,a),e!==null?e.sibling:null);Za(t);break;case 19:var c=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(bi(e,t,a,!1),i=(a&t.childLanes)!==0),c){if(i)return Tp(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(pt,pt.current),i)break;return null;case 22:case 23:return t.lanes=0,wp(e,t,a);case 24:Ka(t,mt,e.memoizedState.cache)}return Ea(e,t,a)}function Rp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!Wc(e,a)&&(t.flags&128)===0)return gt=!1,ab(e,t,a);gt=(e.flags&131072)!==0}else gt=!1,De&&(t.flags&1048576)!==0&&im(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,c=i._init;if(i=c(i._payload),t.type=i,typeof i=="function")oc(i)?(e=zl(i,e),t.tag=1,t=_p(null,t,i,e,a)):(t.tag=0,t=Fc(null,t,i,e,a));else{if(i!=null){if(c=i.$$typeof,c===Y){t.tag=11,t=bp(null,t,i,e,a);break e}else if(c===I){t.tag=14,t=xp(null,t,i,e,a);break e}}throw t=ye(i)||i,Error(s(306,t,""))}}return t;case 0:return Fc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,c=zl(i,t.pendingProps),_p(e,t,i,c,a);case 3:e:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var f=t.memoizedState;c=f.element,wc(e,t),Ni(t,i,null,a);var v=t.memoizedState;if(i=v.cache,Ka(t,mt,i),i!==f.cache&&yc(t,[mt],a,!0),_i(),i=v.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Np(e,t,i,a);break e}else if(i!==c){c=wn(Error(s(424)),t),gi(c),t=Np(e,t,i,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=Un(e.firstChild),kt=t,De=!0,Ol=null,Xn=!0,a=op(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vi(),i===c){t=Ea(e,t,a);break e}wt(e,t,i,a)}t=t.child}return t;case 26:return ro(e,t),e===null?(a=U0(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,i=Eo(ce.current).createElement(a),i[X]=t,i[te]=e,Ct(i,a,e),ot(i),t.stateNode=i):t.memoizedState=U0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vn(t),e===null&&De&&(i=t.stateNode=O0(t.type,t.pendingProps,ce.current),kt=t,Xn=!0,c=nt,sl(t.type)?(Uf=c,nt=Un(i.firstChild)):nt=c),wt(e,t,t.pendingProps.children,a),ro(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((c=i=nt)&&(i=Ob(i,t.type,t.pendingProps,Xn),i!==null?(t.stateNode=i,kt=t,nt=Un(i.firstChild),Xn=!1,c=!0):c=!1),c||Dl(t)),Vn(t),c=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,i=f.children,Rf(c,f)?i=null:v!==null&&Rf(c,v)&&(t.flags|=32),t.memoizedState!==null&&(c=Ac(e,t,Zg,null,null,a),Xi._currentValue=c),ro(e,t),wt(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=nt)&&(a=Db(a,t.pendingProps,Xn),a!==null?(t.stateNode=a,kt=t,nt=null,e=!0):e=!1),e||Dl(t)),null;case 13:return jp(e,t,a);case 4:return Me(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ss(t,null,i,a):wt(e,t,i,a),t.child;case 11:return bp(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 i=t.pendingProps,Ka(t,t.type,i.value),wt(e,t,i.children,a),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,Ul(t),c=Dt(c),i=i(c),t.flags|=1,wt(e,t,i,a),t.child;case 14:return xp(e,t,t.type,t.pendingProps,a);case 15:return Sp(e,t,t.type,t.pendingProps,a);case 19:return Tp(e,t,a);case 31:return i=t.pendingProps,a=t.mode,i={mode:i.mode,children:i.children},e===null?(a=oo(i,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=ya(e.child,i),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return wp(e,t,a);case 24:return Ul(t),i=Dt(mt),e===null?(c=bc(),c===null&&(c=Xe,f=vc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=a),c=f),t.memoizedState={parent:i,cache:c},Sc(t),Ka(t,mt,c)):((e.lanes&a)!==0&&(wc(e,t),Ni(t,null,null,a),_i()),c=e.memoizedState,f=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Ka(t,mt,i)):(i=f.cache,Ka(t,mt,i),i!==c.cache&&yc(t,[mt],a,!0))),wt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Ca(e){e.flags|=4}function Op(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!H0(t)){if(t=Nn.current,t!==null&&((Ae&4194048)===Ae?Zn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==Zn))throw Ei=xc,mm;e.flags|=8192}}function uo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?da():536870912,e.lanes|=t,_s|=t)}function Mi(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 i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function lb(e,t,a){var i=t.pendingProps;switch(dc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),xa(mt),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(yi(t)?Ca(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,um())),et(t),null;case 26:return a=t.memoizedState,e===null?(Ca(t),a!==null?(et(t),Op(t,a)):(et(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Ca(t),et(t),Op(t,a)):(et(t),t.flags&=-16777217):(e.memoizedProps!==i&&Ca(t),et(t),t.flags&=-16777217),null;case 27:jt(t),a=ce.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ca(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return et(t),null}e=ae.current,yi(t)?rm(t):(e=O0(c,i,a),t.stateNode=e,Ca(t))}return et(t),null;case 5:if(jt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ca(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return et(t),null}if(e=ae.current,yi(t))rm(t);else{switch(c=Eo(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 i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?c.createElement(a,{is:i.is}):c.createElement(a)}}e[X]=t,e[te]=i;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,i),a){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ca(t)}}return et(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ca(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ce.current,yi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,c=kt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[X]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||C0(e.nodeValue,a)),e||Dl(t)}else e=Eo(e).createTextNode(i),e[X]=t,t.stateNode=e}return et(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=yi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[X]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),c=!1}else c=um(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(wa(t),t):(wa(t),null)}if(wa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=i!==null,e=e!==null&&e.memoizedState!==null,a){i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool);var f=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==c&&(i.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),uo(t,t.updateQueue),et(t),null;case 4:return Ze(),e===null&&_f(t.stateNode.containerInfo),et(t),null;case 10:return xa(t.type),et(t),null;case 19:if(P(pt),c=t.memoizedState,c===null)return et(t),null;if(i=(t.flags&128)!==0,f=c.rendering,f===null)if(i)Mi(c,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=lo(e),f!==null){for(t.flags|=128,Mi(c,!1),e=f.updateQueue,t.updateQueue=e,uo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)sm(a,e),a=a.sibling;return J(pt,pt.current&1|2),t.child}e=e.sibling}c.tail!==null&&Bt()>ho&&(t.flags|=128,i=!0,Mi(c,!1),t.lanes=4194304)}else{if(!i)if(e=lo(f),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,uo(t,e),Mi(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!De)return et(t),null}else 2*Bt()-c.renderingStartTime>ho&&a!==536870912&&(t.flags|=128,i=!0,Mi(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,J(pt,i?e&1|2:e&1),t):(et(t),null);case 22:case 23:return wa(t),Nc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),a=t.updateQueue,a!==null&&uo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&P(Ll),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xa(mt),et(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function sb(e,t){switch(dc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(mt),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return jt(t),null;case 13:if(wa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(pt),null;case 4:return Ze(),null;case 10:return xa(t.type),null;case 22:case 23:return wa(t),Nc(),e!==null&&P(Ll),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xa(mt),null;case 25:return null;default:return null}}function Dp(e,t){switch(dc(t),t.tag){case 3:xa(mt),Ze();break;case 26:case 27:case 5:jt(t);break;case 4:Ze();break;case 13:wa(t);break;case 19:P(pt);break;case 10:xa(t.type);break;case 22:case 23:wa(t),Nc(),e!==null&&P(Ll);break;case 24:xa(mt)}}function Ui(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){i=void 0;var f=a.create,v=a.inst;i=f(),v.destroy=i}a=a.next}while(a!==c)}}catch(x){Ke(t,t.return,x)}}function Pa(e,t,a){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&e)===e){var v=i.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,c=t;var j=a,L=x;try{L()}catch(V){Ke(c,j,V)}}}i=i.next}while(i!==f)}}catch(V){Ke(t,t.return,V)}}function Mp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{xm(t,a)}catch(i){Ke(e,e.return,i)}}}function Up(e,t,a){a.props=zl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ke(e,t,i)}}function Li(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(c){Ke(e,t,c)}}function Jn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(c){Ke(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){Ke(e,t,c)}else a.current=null}function Lp(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(c){Ke(e,e.return,c)}}function ef(e,t,a){try{var i=e.stateNode;Nb(i,e.type,a,t),i[te]=t}catch(c){Ke(e,e.return,c)}}function qp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qp(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&&sl(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 nf(e,t,a){var i=e.tag;if(i===5||i===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=wo));else if(i!==4&&(i===27&&sl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(nf(e,t,a),e=e.sibling;e!==null;)nf(e,t,a),e=e.sibling}function co(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&sl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(co(e,t,a),e=e.sibling;e!==null;)co(e,t,a),e=e.sibling}function zp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Ct(t,i,a),t[X]=e,t[te]=a}catch(f){Ke(e,e.return,f)}}var _a=!1,ct=!1,af=!1,Bp=typeof WeakSet=="function"?WeakSet:Set,bt=null;function ib(e,t){if(e=e.containerInfo,Af=To,e=Zh(e),tc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var c=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var v=0,x=-1,j=-1,L=0,V=0,G=e,q=null;t:for(;;){for(var z;G!==a||c!==0&&G.nodeType!==3||(x=v+c),G!==f||i!==0&&G.nodeType!==3||(j=v+i),G.nodeType===3&&(v+=G.nodeValue.length),(z=G.firstChild)!==null;)q=G,G=z;for(;;){if(G===e)break t;if(q===a&&++L===c&&(x=v),q===f&&++V===i&&(j=v),(z=G.nextSibling)!==null)break;G=q,q=G.parentNode}G=z}a=x===-1||j===-1?null:{start:x,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(Tf={focusedElem:e,selectionRange:a},To=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,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,i=a.stateNode;try{var me=zl(a.type,c,a.elementType===a.type);e=i.getSnapshotBeforeUpdate(me,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ke(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Df(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Df(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function Hp(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Ia(e,a),i&4&&Ui(5,a);break;case 1:if(Ia(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){Ke(a,a.return,v)}else{var c=zl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Ke(a,a.return,v)}}i&64&&Mp(a),i&512&&Li(a,a.return);break;case 3:if(Ia(e,a),i&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{xm(e,t)}catch(v){Ke(a,a.return,v)}}break;case 27:t===null&&i&4&&zp(a);case 26:case 5:Ia(e,a),t===null&&i&4&&Lp(a),i&512&&Li(a,a.return);break;case 12:Ia(e,a);break;case 13:Ia(e,a),i&4&&Yp(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=pb.bind(null,a),Mb(e,a))));break;case 22:if(i=a.memoizedState!==null||_a,!i){t=t!==null&&t.memoizedState!==null||ct,c=_a;var f=ct;_a=i,(ct=t)&&!f?Wa(e,a,(a.subtreeFlags&8772)!==0):Ia(e,a),_a=c,ct=f}break;case 30:break;default:Ia(e,a)}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(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 Je=null,Gt=!1;function Na(e,t,a){for(a=a.child;a!==null;)Qp(e,t,a),a=a.sibling}function Qp(e,t,a){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(pn,a)}catch{}switch(a.tag){case 26:ct||Jn(a,t),Na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Jn(a,t);var i=Je,c=Gt;sl(a.type)&&(Je=a.stateNode,Gt=!1),Na(e,t,a),Ki(a.stateNode),Je=i,Gt=c;break;case 5:ct||Jn(a,t);case 6:if(i=Je,c=Gt,Je=null,Na(e,t,a),Je=i,Gt=c,Je!==null)if(Gt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(f){Ke(a,t,f)}else try{Je.removeChild(a.stateNode)}catch(f){Ke(a,t,f)}break;case 18:Je!==null&&(Gt?(e=Je,T0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ii(e)):T0(Je,a.stateNode));break;case 4:i=Je,c=Gt,Je=a.stateNode.containerInfo,Gt=!0,Na(e,t,a),Je=i,Gt=c;break;case 0:case 11:case 14:case 15:ct||Pa(2,a,t),ct||Pa(4,a,t),Na(e,t,a);break;case 1:ct||(Jn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Up(a,t,i)),Na(e,t,a);break;case 21:Na(e,t,a);break;case 22:ct=(i=ct)||a.memoizedState!==null,Na(e,t,a),ct=i;break;default:Na(e,t,a)}}function Yp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){Ke(t,t.return,a)}}function rb(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bp),t;default:throw Error(s(435,e.tag))}}function lf(e,t){var a=rb(e);t.forEach(function(i){var c=yb.bind(null,e,i);a.has(i)||(a.add(i),i.then(c,c))})}function an(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var c=a[i],f=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(sl(x.type)){Je=x.stateNode,Gt=!1;break e}break;case 5:Je=x.stateNode,Gt=!1;break e;case 3:case 4:Je=x.stateNode.containerInfo,Gt=!0;break e}x=x.return}if(Je===null)throw Error(s(160));Qp(f,v,c),Je=null,Gt=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Vp(t,e),t=t.sibling}var Mn=null;function Vp(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:an(t,e),ln(e),i&4&&(Pa(3,e,e.return),Ui(3,e),Pa(5,e,e.return));break;case 1:an(t,e),ln(e),i&512&&(ct||a===null||Jn(a,a.return)),i&64&&_a&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var c=Mn;if(an(t,e),ln(e),i&512&&(ct||a===null||Jn(a,a.return)),i&4){var f=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){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(i),c.head.insertBefore(f,c.querySelector("head > title"))),Ct(f,i,a),f[X]=e,ot(f),i=f;break e;case"link":var v=z0("link","href",c).get(i+(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(i),Ct(f,i,a),c.head.appendChild(f);break;case"meta":if(v=z0("meta","content",c).get(i+(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(i),Ct(f,i,a),c.head.appendChild(f);break;default:throw Error(s(468,i))}f[X]=e,ot(f),i=f}e.stateNode=i}else B0(c,e.type,e.stateNode);else e.stateNode=q0(c,i,e.memoizedProps);else f!==i?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,i===null?B0(c,e.type,e.stateNode):q0(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ef(e,e.memoizedProps,a.memoizedProps)}break;case 27:an(t,e),ln(e),i&512&&(ct||a===null||Jn(a,a.return)),a!==null&&i&4&&ef(e,e.memoizedProps,a.memoizedProps);break;case 5:if(an(t,e),ln(e),i&512&&(ct||a===null||Jn(a,a.return)),e.flags&32){c=e.stateNode;try{as(c,"")}catch(z){Ke(e,e.return,z)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,ef(e,c,a!==null?a.memoizedProps:c)),i&1024&&(af=!0);break;case 6:if(an(t,e),ln(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(z){Ke(e,e.return,z)}}break;case 3:if(No=null,c=Mn,Mn=Co(t.containerInfo),an(t,e),Mn=c,ln(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(z){Ke(e,e.return,z)}af&&(af=!1,Kp(e));break;case 4:i=Mn,Mn=Co(e.stateNode.containerInfo),an(t,e),ln(e),Mn=i;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)&&(ff=Bt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lf(e,i)));break;case 22:c=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,L=_a,V=ct;if(_a=L||c,ct=V||j,an(t,e),ct=V,_a=L,ln(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||j||_a||ct||Bl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(f=j.stateNode,c)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=j.stateNode;var G=j.memoizedProps.style,q=G!=null&&G.hasOwnProperty("display")?G.display:null;x.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(z){Ke(j,j.return,z)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=c?"":j.memoizedProps}catch(z){Ke(j,j.return,z)}}}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}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,lf(e,a))));break;case 19:an(t,e),ln(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lf(e,i)));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,i=e.return;i!==null;){if(qp(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var c=a.stateNode,f=tf(e);co(e,f,c);break;case 5:var v=a.stateNode;a.flags&32&&(as(v,""),a.flags&=-33);var x=tf(e);co(e,x,v);break;case 3:case 4:var j=a.stateNode.containerInfo,L=tf(e);nf(e,L,j);break;default:throw Error(s(161))}}catch(V){Ke(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Kp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hp(e,t.alternate,t),t=t.sibling}function Bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pa(4,t,t.return),Bl(t);break;case 1:Jn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Up(t,t.return,a),Bl(t);break;case 27:Ki(t.stateNode);case 26:case 5:Jn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(t)}e=e.sibling}}function Wa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:Wa(c,f,a),Ui(4,f);break;case 1:if(Wa(c,f,a),i=f,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(L){Ke(i,i.return,L)}if(i=f,c=i.updateQueue,c!==null){var x=i.stateNode;try{var j=c.shared.hiddenCallbacks;if(j!==null)for(c.shared.hiddenCallbacks=null,c=0;c<j.length;c++)bm(j[c],x)}catch(L){Ke(i,i.return,L)}}a&&v&64&&Mp(f),Li(f,f.return);break;case 27:zp(f);case 26:case 5:Wa(c,f,a),a&&i===null&&v&4&&Lp(f),Li(f,f.return);break;case 12:Wa(c,f,a);break;case 13:Wa(c,f,a),a&&v&4&&Yp(c,f);break;case 22:f.memoizedState===null&&Wa(c,f,a),Li(f,f.return);break;case 30:break;default:Wa(c,f,a)}t=t.sibling}}function sf(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&&xi(a))}function rf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xi(e))}function Pn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gp(e,t,a,i),t=t.sibling}function Gp(e,t,a,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Pn(e,t,a,i),c&2048&&Ui(9,t);break;case 1:Pn(e,t,a,i);break;case 3:Pn(e,t,a,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xi(e)));break;case 12:if(c&2048){Pn(e,t,a,i),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(j){Ke(t,t.return,j)}}else Pn(e,t,a,i);break;case 13:Pn(e,t,a,i);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?Pn(e,t,a,i):qi(e,t):f._visibility&2?Pn(e,t,a,i):(f._visibility|=2,ws(e,t,a,i,(t.subtreeFlags&10256)!==0)),c&2048&&sf(v,t);break;case 24:Pn(e,t,a,i),c&2048&&rf(t.alternate,t);break;default:Pn(e,t,a,i)}}function ws(e,t,a,i,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,v=t,x=a,j=i,L=v.flags;switch(v.tag){case 0:case 11:case 15:ws(f,v,x,j,c),Ui(8,v);break;case 23:break;case 22:var V=v.stateNode;v.memoizedState!==null?V._visibility&2?ws(f,v,x,j,c):qi(f,v):(V._visibility|=2,ws(f,v,x,j,c)),c&&L&2048&&sf(v.alternate,v);break;case 24:ws(f,v,x,j,c),c&&L&2048&&rf(v.alternate,v);break;default:ws(f,v,x,j,c)}t=t.sibling}}function qi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,c=i.flags;switch(i.tag){case 22:qi(a,i),c&2048&&sf(i.alternate,i);break;case 24:qi(a,i),c&2048&&rf(i.alternate,i);break;default:qi(a,i)}t=t.sibling}}var zi=8192;function Es(e){if(e.subtreeFlags&zi)for(e=e.child;e!==null;)Fp(e),e=e.sibling}function Fp(e){switch(e.tag){case 26:Es(e),e.flags&zi&&e.memoizedState!==null&&Fb(Mn,e.memoizedState,e.memoizedProps);break;case 5:Es(e);break;case 3:case 4:var t=Mn;Mn=Co(e.stateNode.containerInfo),Es(e),Mn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=zi,zi=16777216,Es(e),zi=t):Es(e));break;default:Es(e)}}function $p(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 Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];bt=i,Zp(i,e)}$p(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xp(e),e=e.sibling}function Xp(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Pa(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fo(e)):Bi(e);break;default:Bi(e)}}function fo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];bt=i,Zp(i,e)}$p(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pa(8,t,t.return),fo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fo(t));break;default:fo(t)}e=e.sibling}}function Zp(e,t){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Pa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:xi(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,bt=i;else e:for(a=e;bt!==null;){i=bt;var c=i.sibling,f=i.return;if(kp(i),i===a){bt=null;break e}if(c!==null){c.return=f,bt=c;break e}bt=f}}}var ob={getCacheForType:function(e){var t=Dt(mt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},ub=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Xe=null,Ne=null,Ae=0,Le=0,sn=null,el=!1,Cs=!1,of=!1,ja=0,at=0,tl=0,Hl=0,uf=0,jn=0,_s=0,Hi=null,Ft=null,cf=!1,ff=0,ho=1/0,mo=null,nl=null,Et=0,al=null,Ns=null,js=0,df=0,hf=null,Jp=null,ki=0,mf=null;function rn(){if((Ue&2)!==0&&Ae!==0)return Ae&-Ae;if(B.T!==null){var e=ms;return e!==0?e:Sf()}return _e()}function Pp(){jn===0&&(jn=(Ae&536870912)===0||De?ka():536870912);var e=Nn.current;return e!==null&&(e.flags|=32),jn}function on(e,t,a){(e===Xe&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(As(e,0),ll(e,Ae,jn,!1)),vn(e,a),((Ue&2)===0||e!==Xe)&&(e===Xe&&((Ue&2)===0&&(Hl|=a),at===4&&ll(e,Ae,jn,!1)),In(e))}function Ip(e,t,a){if((Ue&6)!==0)throw Error(s(327));var i=!a&&(t&124)===0&&(t&e.expiredLanes)===0||On(e,t),c=i?db(e,t):vf(e,t,!0),f=i;do{if(c===0){Cs&&!i&&ll(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!cb(a)){c=vf(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=Hi;var j=x.current.memoizedState.isDehydrated;if(j&&(As(x,v).flags|=256),v=vf(x,v,!1),v!==2){if(of&&!j){x.errorRecoveryDisabledLanes|=f,Hl|=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){As(e,0),ll(e,t,0,!0);break}e:{switch(i=e,f=c,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ll(i,t,jn,!el);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=ff+300-Bt(),10<c)){if(ll(i,t,jn,!el),fa(i,0,!0)!==0)break e;i.timeoutHandle=j0(Wp.bind(null,i,a,Ft,mo,cf,t,jn,Hl,_s,el,f,2,-0,0),c);break e}Wp(i,a,Ft,mo,cf,t,jn,Hl,_s,el,f,0,-0,0)}}break}while(!0);In(e)}function Wp(e,t,a,i,c,f,v,x,j,L,V,G,q,z){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&($i={stylesheets:null,count:0,unsuspend:Gb},Fp(t),G=$b(),G!==null)){e.cancelPendingCommit=G(i0.bind(null,e,t,f,a,i,c,v,x,j,V,1,q,z)),ll(e,f,v,!L);return}i0(e,t,f,a,i,c,v,x,j)}function cb(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 i=0;i<a.length;i++){var c=a[i],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 ll(e,t,a,i){t&=~uf,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var f=31-st(c),v=1<<f;i[f]=-1,c&=~v}a!==0&&wl(e,a,t)}function po(){return(Ue&6)===0?(Qi(0),!1):!0}function pf(){if(Ne!==null){if(Le===0)var e=Ne.return;else e=Ne,ba=Ml=null,Oc(e),xs=null,Oi=0,e=Ne;for(;e!==null;)Dp(e.alternate,e),e=e.return;Ne=null}}function As(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ab(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pf(),Xe=e,Ne=a=ya(e.current,null),Ae=t,Le=0,sn=null,el=!1,Cs=On(e,t),of=!1,_s=jn=uf=Hl=tl=at=0,Ft=Hi=null,cf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-st(i),f=1<<c;t|=e[c],i&=~f}return ja=t,qr(),a}function e0(e,t){be=null,B.H=to,t===wi||t===Gr?(t=vm(),Le=3):t===mm?(t=vm(),Le=4):Le=t===gp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sn=t,Ne===null&&(at=1,io(e,wn(t,e.current)))}function t0(){var e=B.H;return B.H=to,e===null?to:e}function n0(){var e=B.A;return B.A=ob,e}function yf(){at=4,el||(Ae&4194048)!==Ae&&Nn.current!==null||(Cs=!0),(tl&134217727)===0&&(Hl&134217727)===0||Xe===null||ll(Xe,Ae,jn,!1)}function vf(e,t,a){var i=Ue;Ue|=2;var c=t0(),f=n0();(Xe!==e||Ae!==t)&&(mo=null,As(e,t)),t=!1;var v=at;e:do try{if(Le!==0&&Ne!==null){var x=Ne,j=sn;switch(Le){case 8:pf(),v=6;break e;case 3:case 2:case 9:case 6:Nn.current===null&&(t=!0);var L=Le;if(Le=0,sn=null,Ts(e,x,j,L),a&&Cs){v=0;break e}break;default:L=Le,Le=0,sn=null,Ts(e,x,j,L)}}fb(),v=at;break}catch(V){e0(e,V)}while(!0);return t&&e.shellSuspendCounter++,ba=Ml=null,Ue=i,B.H=c,B.A=f,Ne===null&&(Xe=null,Ae=0,qr()),v}function fb(){for(;Ne!==null;)a0(Ne)}function db(e,t){var a=Ue;Ue|=2;var i=t0(),c=n0();Xe!==e||Ae!==t?(mo=null,ho=Bt()+500,As(e,t)):Cs=On(e,t);e:do try{if(Le!==0&&Ne!==null){t=Ne;var f=sn;t:switch(Le){case 1:Le=0,sn=null,Ts(e,t,f,1);break;case 2:case 9:if(pm(f)){Le=0,sn=null,l0(t);break}t=function(){Le!==2&&Le!==9||Xe!==e||(Le=7),In(e)},f.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:pm(f)?(Le=0,sn=null,l0(t)):(Le=0,sn=null,Ts(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||H0(v)){Le=0,sn=null;var j=x.sibling;if(j!==null)Ne=j;else{var L=x.return;L!==null?(Ne=L,yo(L)):Ne=null}break t}}Le=0,sn=null,Ts(e,t,f,5);break;case 6:Le=0,sn=null,Ts(e,t,f,6);break;case 8:pf(),at=6;break e;default:throw Error(s(462))}}hb();break}catch(V){e0(e,V)}while(!0);return ba=Ml=null,B.H=i,B.A=c,Ue=a,Ne!==null?0:(Xe=null,Ae=0,qr(),at)}function hb(){for(;Ne!==null&&!ai();)a0(Ne)}function a0(e){var t=Rp(e.alternate,e,ja);e.memoizedProps=e.pendingProps,t===null?yo(e):Ne=t}function l0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Cp(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=Cp(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Oc(t);default:Dp(a,t),t=Ne=sm(t,ja),t=Rp(a,t,ja)}e.memoizedProps=e.pendingProps,t===null?yo(e):Ne=t}function Ts(e,t,a,i){ba=Ml=null,Oc(t),xs=null,Oi=0;var c=t.return;try{if(nb(e,c,t,a,Ae)){at=1,io(e,wn(a,e.current)),Ne=null;return}}catch(f){if(c!==null)throw Ne=c,f;at=1,io(e,wn(a,e.current)),Ne=null;return}t.flags&32768?(De||i===1?e=!0:Cs||(Ae&536870912)!==0?e=!1:(el=e=!0,(i===2||i===9||i===3||i===6)&&(i=Nn.current,i!==null&&i.tag===13&&(i.flags|=16384))),s0(t,e)):yo(t)}function yo(e){var t=e;do{if((t.flags&32768)!==0){s0(t,el);return}e=t.return;var a=lb(t.alternate,t,ja);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 s0(e,t){do{var a=sb(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 i0(e,t,a,i,c,f,v,x,j){e.cancelPendingCommit=null;do vo();while(Et!==0);if((Ue&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=ic,Sl(e,a,f,v,x,j),e===Xe&&(Ne=Xe=null,Ae=0),Ns=t,al=e,js=a,df=f,hf=c,Jp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,vb(Gn,function(){return f0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null,c=F.p,F.p=2,v=Ue,Ue|=4;try{ib(e,t,a)}finally{Ue=v,F.p=c,B.T=i}}Et=1,r0(),o0(),u0()}}function r0(){if(Et===1){Et=0;var e=al,t=Ns,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var i=F.p;F.p=2;var c=Ue;Ue|=4;try{Vp(t,e);var f=Tf,v=Zh(e.containerInfo),x=f.focusedElem,j=f.selectionRange;if(v!==x&&x&&x.ownerDocument&&Xh(x.ownerDocument.documentElement,x)){if(j!==null&&tc(x)){var L=j.start,V=j.end;if(V===void 0&&(V=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(V,x.value.length);else{var G=x.ownerDocument||document,q=G&&G.defaultView||window;if(q.getSelection){var z=q.getSelection(),me=x.textContent.length,fe=Math.min(j.start,me),Qe=j.end===void 0?fe:Math.min(j.end,me);!z.extend&&fe>Qe&&(v=Qe,Qe=fe,fe=v);var M=$h(x,fe),R=$h(x,Qe);if(M&&R&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==R.node||z.focusOffset!==R.offset)){var U=G.createRange();U.setStart(M.node,M.offset),z.removeAllRanges(),fe>Qe?(z.addRange(U),z.extend(R.node,R.offset)):(U.setEnd(R.node,R.offset),z.addRange(U))}}}}for(G=[],z=x;z=z.parentNode;)z.nodeType===1&&G.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<G.length;x++){var K=G[x];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}To=!!Af,Tf=Af=null}finally{Ue=c,F.p=i,B.T=a}}e.current=t,Et=2}}function o0(){if(Et===2){Et=0;var e=al,t=Ns,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var i=F.p;F.p=2;var c=Ue;Ue|=4;try{Hp(e,t.alternate,t)}finally{Ue=c,F.p=i,B.T=a}}Et=3}}function u0(){if(Et===4||Et===3){Et=0,zt();var e=al,t=Ns,a=js,i=Jp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,Ns=al=null,c0(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(nl=null),oe(a),t=t.stateNode,tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(pn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=B.T,c=F.p,F.p=2,B.T=null;try{for(var f=e.onRecoverableError,v=0;v<i.length;v++){var x=i[v];f(x.value,{componentStack:x.stack})}}finally{B.T=t,F.p=c}}(js&3)!==0&&vo(),In(e),c=e.pendingLanes,(a&4194090)!==0&&(c&42)!==0?e===mf?ki++:(ki=0,mf=e):ki=0,Qi(0)}}function c0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xi(t)))}function vo(e){return r0(),o0(),u0(),f0()}function f0(){if(Et!==5)return!1;var e=al,t=df;df=0;var a=oe(js),i=B.T,c=F.p;try{F.p=32>a?32:a,B.T=null,a=hf,hf=null;var f=al,v=js;if(Et=0,Ns=al=null,js=0,(Ue&6)!==0)throw Error(s(331));var x=Ue;if(Ue|=4,Xp(f.current),Gp(f,f.current,v,a),Ue=x,Qi(0,!1),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(pn,f)}catch{}return!0}finally{F.p=c,B.T=i,c0(e,t)}}function d0(e,t,a){t=wn(a,t),t=Gc(e.stateNode,t,2),e=$a(e,t,2),e!==null&&(vn(e,2),In(e))}function Ke(e,t,a){if(e.tag===3)d0(e,e,a);else for(;t!==null;){if(t.tag===3){d0(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(nl===null||!nl.has(i))){e=wn(a,e),a=yp(2),i=$a(t,a,2),i!==null&&(vp(a,i,t,e),vn(i,2),In(i));break}}t=t.return}}function gf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new ub;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(a)||(of=!0,c.add(a),e=mb.bind(null,e,t,a),t.then(e,e))}function mb(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Xe===e&&(Ae&a)===a&&(at===4||at===3&&(Ae&62914560)===Ae&&300>Bt()-ff?(Ue&2)===0&&As(e,0):uf|=a,_s===Ae&&(_s=0)),In(e)}function h0(e,t){t===0&&(t=da()),e=cs(e,t),e!==null&&(vn(e,t),In(e))}function pb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),h0(e,a)}function yb(e,t){var a=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),h0(e,a)}function vb(e,t){return ua(e,t)}var go=null,Rs=null,bf=!1,bo=!1,xf=!1,kl=0;function In(e){e!==Rs&&e.next===null&&(Rs===null?go=Rs=e:Rs=Rs.next=e),bo=!0,bf||(bf=!0,bb())}function Qi(e,t){if(!xf&&bo){xf=!0;do for(var a=!1,i=go;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var f=0;else{var v=i.suspendedLanes,x=i.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,v0(i,f))}else f=Ae,f=fa(i,i===Xe?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||On(i,f)||(a=!0,v0(i,f));i=i.next}while(a);xf=!1}}function gb(){m0()}function m0(){bo=bf=!1;var e=0;kl!==0&&(jb()&&(e=kl),kl=0);for(var t=Bt(),a=null,i=go;i!==null;){var c=i.next,f=p0(i,t);f===0?(i.next=null,a===null?go=c:a.next=c,c===null&&(Rs=a)):(a=i,(e!==0||(f&3)!==0)&&(bo=!0)),i=c}Qi(e)}function p0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-st(f),x=1<<v,j=c[v];j===-1?((x&a)===0||(x&i)!==0)&&(c[v]=Ha(x,t)):j<=t&&(e.expiredLanes|=x),f&=~x}if(t=Xe,a=Ae,a=fa(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&mn(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||On(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&mn(i),oe(a)){case 2:case 8:a=$e;break;case 32:a=Gn;break;case 268435456:a=qa;break;default:a=Gn}return i=y0.bind(null,e),a=ua(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&mn(i),e.callbackPriority=2,e.callbackNode=null,2}function y0(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vo()&&e.callbackNode!==a)return null;var i=Ae;return i=fa(e,e===Xe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ip(e,i,t),p0(e,Bt()),e.callbackNode!=null&&e.callbackNode===a?y0.bind(null,e):null)}function v0(e,t){if(vo())return null;Ip(e,t,!0)}function bb(){Tb(function(){(Ue&6)!==0?ua(Kn,gb):m0()})}function Sf(){return kl===0&&(kl=ka()),kl}function g0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tr(""+e)}function b0(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 xb(e,t,a,i,c){if(t==="submit"&&a&&a.stateNode===c){var f=g0((c[te]||null).action),v=i.submitter;v&&(t=(t=v[te]||null)?g0(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var x=new Mr("action","action",null,i,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(kl!==0){var j=v?b0(c,v):new FormData(c);kc(a,{pending:!0,data:j,method:c.method,action:f},null,j)}}else typeof f=="function"&&(x.preventDefault(),j=v?b0(c,v):new FormData(c),kc(a,{pending:!0,data:j,method:c.method,action:f},f,j))},currentTarget:c}]})}}for(var wf=0;wf<sc.length;wf++){var Ef=sc[wf],Sb=Ef.toLowerCase(),wb=Ef[0].toUpperCase()+Ef.slice(1);Dn(Sb,"on"+wb)}Dn(Ih,"onAnimationEnd"),Dn(Wh,"onAnimationIteration"),Dn(em,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(Hg,"onTransitionRun"),Dn(kg,"onTransitionStart"),Dn(Qg,"onTransitionCancel"),Dn(tm,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$n("onBeforeInput",["compositionend","keypress","textInput","paste"]),$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yi="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(" "),Eb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yi));function x0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],c=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var v=i.length-1;0<=v;v--){var x=i[v],j=x.instance,L=x.currentTarget;if(x=x.listener,j!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=L;try{f(c)}catch(V){so(V)}c.currentTarget=null,f=j}else for(v=0;v<i.length;v++){if(x=i[v],j=x.instance,L=x.currentTarget,x=x.listener,j!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=L;try{f(c)}catch(V){so(V)}c.currentTarget=null,f=j}}}}function je(e,t){var a=t[We];a===void 0&&(a=t[We]=new Set);var i=e+"__bubble";a.has(i)||(S0(t,e,2,!1),a.add(i))}function Cf(e,t,a){var i=0;t&&(i|=4),S0(a,e,i,t)}var xo="_reactListening"+Math.random().toString(36).slice(2);function _f(e){if(!e[xo]){e[xo]=!0,si.forEach(function(a){a!=="selectionchange"&&(Eb.has(a)||Cf(a,!1,e),Cf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xo]||(t[xo]=!0,Cf("selectionchange",!1,t))}}function S0(e,t,a,i){switch(G0(t)){case 2:var c=Jb;break;case 8:c=Pb;break;default:c=Hf}a=c.bind(null,t,a,e),c=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?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 Nf(e,t,a,i,c){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var v=i.tag;if(v===3||v===4){var x=i.stateNode.containerInfo;if(x===c)break;if(v===4)for(v=i.return;v!==null;){var j=v.tag;if((j===3||j===4)&&v.stateNode.containerInfo===c)return;v=v.return}for(;x!==null;){if(v=Re(x),v===null)return;if(j=v.tag,j===5||j===6||j===26||j===27){i=f=v;continue e}x=x.parentNode}}i=i.return}Ah(function(){var L=f,V=Ku(a),G=[];e:{var q=nm.get(e);if(q!==void 0){var z=Mr,me=e;switch(e){case"keypress":if(Or(a)===0)break e;case"keydown":case"keyup":z=vg;break;case"focusin":me="focus",z=Ju;break;case"focusout":me="blur",z=Ju;break;case"beforeblur":case"afterblur":z=Ju;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":z=Oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=sg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=xg;break;case Ih:case Wh:case em:z=og;break;case tm:z=wg;break;case"scroll":case"scrollend":z=ag;break;case"wheel":z=Cg;break;case"copy":case"cut":case"paste":z=cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Mh;break;case"toggle":case"beforetoggle":z=Ng}var fe=(t&4)!==0,Qe=!fe&&(e==="scroll"||e==="scrollend"),M=fe?q!==null?q+"Capture":null:q;fe=[];for(var R=L,U;R!==null;){var K=R;if(U=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||U===null||M===null||(K=ri(R,M),K!=null&&fe.push(Vi(R,K,U))),Qe)break;R=R.return}0<fe.length&&(q=new z(q,me,null,a,V),G.push({event:q,listeners:fe}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",q&&a!==Vu&&(me=a.relatedTarget||a.fromElement)&&(Re(me)||me[de]))break e;if((z||q)&&(q=V.window===V?V:(q=V.ownerDocument)?q.defaultView||q.parentWindow:window,z?(me=a.relatedTarget||a.toElement,z=L,me=me?Re(me):null,me!==null&&(Qe=u(me),fe=me.tag,me!==Qe||fe!==5&&fe!==27&&fe!==6)&&(me=null)):(z=null,me=L),z!==me)){if(fe=Oh,K="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Mh,K="onPointerLeave",M="onPointerEnter",R="pointer"),Qe=z==null?q:El(z),U=me==null?q:El(me),q=new fe(K,R+"leave",z,a,V),q.target=Qe,q.relatedTarget=U,K=null,Re(V)===L&&(fe=new fe(M,R+"enter",me,a,V),fe.target=U,fe.relatedTarget=Qe,K=fe),Qe=K,z&&me)t:{for(fe=z,M=me,R=0,U=fe;U;U=Os(U))R++;for(U=0,K=M;K;K=Os(K))U++;for(;0<R-U;)fe=Os(fe),R--;for(;0<U-R;)M=Os(M),U--;for(;R--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Os(fe),M=Os(M)}fe=null}else fe=null;z!==null&&w0(G,q,z,fe,!1),me!==null&&Qe!==null&&w0(G,Qe,me,fe,!0)}}e:{if(q=L?El(L):window,z=q.nodeName&&q.nodeName.toLowerCase(),z==="select"||z==="input"&&q.type==="file")var ee=Qh;else if(Hh(q))if(Yh)ee=qg;else{ee=Ug;var Se=Mg}else z=q.nodeName,!z||z.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?L&&Yu(L.elementType)&&(ee=Qh):ee=Lg;if(ee&&(ee=ee(e,L))){kh(G,ee,a,V);break e}Se&&Se(e,q,L),e==="focusout"&&L&&q.type==="number"&&L.memoizedProps.value!=null&&Qu(q,"number",q.value)}switch(Se=L?El(L):window,e){case"focusin":(Hh(Se)||Se.contentEditable==="true")&&(rs=Se,nc=L,pi=null);break;case"focusout":pi=nc=rs=null;break;case"mousedown":ac=!0;break;case"contextmenu":case"mouseup":case"dragend":ac=!1,Jh(G,a,V);break;case"selectionchange":if(Bg)break;case"keydown":case"keyup":Jh(G,a,V)}var ne;if(Iu)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 is?zh(e,a)&&(he="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(he="onCompositionStart");he&&(Uh&&a.locale!=="ko"&&(is||he!=="onCompositionStart"?he==="onCompositionEnd"&&is&&(ne=Th()):(Va=V,$u="value"in Va?Va.value:Va.textContent,is=!0)),Se=So(L,he),0<Se.length&&(he=new Dh(he,e,null,a,V),G.push({event:he,listeners:Se}),ne?he.data=ne:(ne=Bh(a),ne!==null&&(he.data=ne)))),(ne=Ag?Tg(e,a):Rg(e,a))&&(he=So(L,"onBeforeInput"),0<he.length&&(Se=new Dh("onBeforeInput","beforeinput",null,a,V),G.push({event:Se,listeners:he}),Se.data=ne)),xb(G,e,L,a,V)}x0(G,t)})}function Vi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function So(e,t){for(var a=t+"Capture",i=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=ri(e,a),c!=null&&i.unshift(Vi(e,c,f)),c=ri(e,t),c!=null&&i.push(Vi(e,c,f))),e.tag===3)return i;e=e.return}return[]}function Os(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function w0(e,t,a,i,c){for(var f=t._reactName,v=[];a!==null&&a!==i;){var x=a,j=x.alternate,L=x.stateNode;if(x=x.tag,j!==null&&j===i)break;x!==5&&x!==26&&x!==27||L===null||(j=L,c?(L=ri(a,f),L!=null&&v.unshift(Vi(a,L,j))):c||(L=ri(a,f),L!=null&&v.push(Vi(a,L,j)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var Cb=/\r\n?/g,_b=/\u0000|\uFFFD/g;function E0(e){return(typeof e=="string"?e:""+e).replace(Cb,`
49
+ `).replace(_b,"")}function C0(e,t){return t=E0(t),E0(e)===t}function wo(){}function ke(e,t,a,i,c,f){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||as(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&as(e,""+i);break;case"className":Ya(e,"class",i);break;case"tabIndex":Ya(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ya(e,a,i);break;case"style":Nh(e,i,f);break;case"data":if(t!=="object"){Ya(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Tr(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="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"&&ke(e,t,"name",c.name,c,null),ke(e,t,"formEncType",c.formEncType,c,null),ke(e,t,"formMethod",c.formMethod,c,null),ke(e,t,"formTarget",c.formTarget,c,null)):(ke(e,t,"encType",c.encType,c,null),ke(e,t,"method",c.method,c,null),ke(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Tr(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=wo);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Tr(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":je("beforetoggle",e),je("toggle",e),es(e,"popover",i);break;case"xlinkActuate":ma(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ma(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ma(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ma(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ma(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ma(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ma(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ma(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ma(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":es(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=tg.get(a)||a,es(e,a,i))}}function jf(e,t,a,i,c,f){switch(a){case"style":Nh(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?as(e,i):(typeof i=="number"||typeof i=="bigint")&&as(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"onClick":i!=null&&(e.onclick=wo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ii.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 i=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,c);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):es(e,a,i)}}}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 i=!1,c=!1,f;for(f in a)if(a.hasOwnProperty(f)){var v=a[f];if(v!=null)switch(f){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,f,v,a,null)}}c&&ke(e,t,"srcSet",a.srcSet,a,null),i&&ke(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var x=f=v=c=null,j=null,L=null;for(i in a)if(a.hasOwnProperty(i)){var V=a[i];if(V!=null)switch(i){case"name":c=V;break;case"type":v=V;break;case"checked":j=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(s(137,t));break;default:ke(e,t,i,V,a,null)}}wh(e,f,x,j,L,v,c,!1),jr(e);return;case"select":je("invalid",e),i=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":i=x;default:ke(e,t,c,x,a,null)}t=f,a=v,e.multiple=!!i,t!=null?ns(e,!!i,t,!1):a!=null&&ns(e,!!i,a,!0);return;case"textarea":je("invalid",e),f=c=i=null;for(v in a)if(a.hasOwnProperty(v)&&(x=a[v],x!=null))switch(v){case"value":i=x;break;case"defaultValue":c=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:ke(e,t,v,x,a,null)}Ch(e,i,c,f),jr(e);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(i=a[j],i!=null))switch(j){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:ke(e,t,j,i,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(i=0;i<Yi.length;i++)je(Yi[i],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)&&(i=a[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,L,i,a,null)}return;default:if(Yu(t)){for(V in a)a.hasOwnProperty(V)&&(i=a[V],i!==void 0&&jf(e,t,V,i,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(i=a[x],i!=null&&ke(e,t,x,i,a,null))}function Nb(e,t,a,i){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,j=null,L=null,V=null;for(z in a){var G=a[z];if(a.hasOwnProperty(z)&&G!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":j=G;default:i.hasOwnProperty(z)||ke(e,t,z,null,i,G)}}for(var q in i){var z=i[q];if(G=a[q],i.hasOwnProperty(q)&&(z!=null||G!=null))switch(q){case"type":f=z;break;case"name":c=z;break;case"checked":L=z;break;case"defaultChecked":V=z;break;case"value":v=z;break;case"defaultValue":x=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==G&&ke(e,t,q,z,i,G)}}ku(e,v,x,j,L,V,f,c);return;case"select":z=v=x=q=null;for(f in a)if(j=a[f],a.hasOwnProperty(f)&&j!=null)switch(f){case"value":break;case"multiple":z=j;default:i.hasOwnProperty(f)||ke(e,t,f,null,i,j)}for(c in i)if(f=i[c],j=a[c],i.hasOwnProperty(c)&&(f!=null||j!=null))switch(c){case"value":q=f;break;case"defaultValue":x=f;break;case"multiple":v=f;default:f!==j&&ke(e,t,c,f,i,j)}t=x,a=v,i=z,q!=null?ns(e,!!a,q,!1):!!i!=!!a&&(t!=null?ns(e,!!a,t,!0):ns(e,!!a,a?[]:"",!1));return;case"textarea":z=q=null;for(x in a)if(c=a[x],a.hasOwnProperty(x)&&c!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:ke(e,t,x,null,i,c)}for(v in i)if(c=i[v],f=a[v],i.hasOwnProperty(v)&&(c!=null||f!=null))switch(v){case"value":q=c;break;case"defaultValue":z=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==f&&ke(e,t,v,c,i,f)}Eh(e,q,z);return;case"option":for(var me in a)if(q=a[me],a.hasOwnProperty(me)&&q!=null&&!i.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:ke(e,t,me,null,i,q)}for(j in i)if(q=i[j],z=a[j],i.hasOwnProperty(j)&&q!==z&&(q!=null||z!=null))switch(j){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:ke(e,t,j,q,i,z)}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)q=a[fe],a.hasOwnProperty(fe)&&q!=null&&!i.hasOwnProperty(fe)&&ke(e,t,fe,null,i,q);for(L in i)if(q=i[L],z=a[L],i.hasOwnProperty(L)&&q!==z&&(q!=null||z!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:ke(e,t,L,q,i,z)}return;default:if(Yu(t)){for(var Qe in a)q=a[Qe],a.hasOwnProperty(Qe)&&q!==void 0&&!i.hasOwnProperty(Qe)&&jf(e,t,Qe,void 0,i,q);for(V in i)q=i[V],z=a[V],!i.hasOwnProperty(V)||q===z||q===void 0&&z===void 0||jf(e,t,V,q,i,z);return}}for(var M in a)q=a[M],a.hasOwnProperty(M)&&q!=null&&!i.hasOwnProperty(M)&&ke(e,t,M,null,i,q);for(G in i)q=i[G],z=a[G],!i.hasOwnProperty(G)||q===z||q==null&&z==null||ke(e,t,G,q,i,z)}var Af=null,Tf=null;function Eo(e){return e.nodeType===9?e:e.ownerDocument}function _0(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 N0(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 Rf(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 Of=null;function jb(){var e=window.event;return e&&e.type==="popstate"?e===Of?!1:(Of=e,!0):(Of=null,!1)}var j0=typeof setTimeout=="function"?setTimeout:void 0,Ab=typeof clearTimeout=="function"?clearTimeout:void 0,A0=typeof Promise=="function"?Promise:void 0,Tb=typeof queueMicrotask=="function"?queueMicrotask:typeof A0<"u"?function(e){return A0.resolve(null).then(e).catch(Rb)}:j0;function Rb(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function T0(e,t){var a=t,i=0,c=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<i&&8>i){a=i;var v=e.ownerDocument;if(a&1&&Ki(v.documentElement),a&2&&Ki(v.body),a&4)for(a=v.head,Ki(a),v=a.firstChild;v;){var x=v.nextSibling,j=v.nodeName;v[rt]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&v.rel.toLowerCase()==="stylesheet"||a.removeChild(v),v=x}}if(c===0){e.removeChild(f),Ii(t);return}c--}else a==="$"||a==="$?"||a==="$!"?c++:i=a.charCodeAt(0)-48;else i=0;a=f}while(a);Ii(t)}function Df(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":Df(a),Ot(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Ob(e,t,a,i){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){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=Un(e.nextSibling),e===null)break}return null}function Db(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Un(e.nextSibling),e===null))return null;return e}function Mf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Mb(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Un(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 Uf=null;function R0(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 O0(e,t,a){switch(t=Eo(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ki(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var An=new Map,D0=new Set;function Co(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Aa=F.d;F.d={f:Ub,r:Lb,D:qb,C:zb,L:Bb,m:Hb,X:Qb,S:kb,M:Yb};function Ub(){var e=Aa.f(),t=po();return e||t}function Lb(e){var t=en(e);t!==null&&t.tag===5&&t.type==="form"?Im(t):Aa.r(e)}var Ds=typeof document>"u"?null:document;function M0(e,t,a){var i=Ds;if(i&&typeof t=="string"&&t){var c=Sn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),D0.has(c)||(D0.add(c),e={rel:e,crossOrigin:a,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),Ct(t,"link",e),ot(t),i.head.appendChild(t)))}}function qb(e){Aa.D(e),M0("dns-prefetch",e,null)}function zb(e,t){Aa.C(e,t),M0("preconnect",e,t)}function Bb(e,t,a){Aa.L(e,t,a);var i=Ds;if(i&&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=Ms(e);break;case"script":f=Us(e)}An.has(f)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),An.set(f,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Gi(f))||t==="script"&&i.querySelector(Fi(f))||(t=i.createElement("link"),Ct(t,"link",e),ot(t),i.head.appendChild(t)))}}function Hb(e,t){Aa.m(e,t);var a=Ds;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Sn(i)+'"][href="'+Sn(e)+'"]',f=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Us(e)}if(!An.has(f)&&(e=g({rel:"modulepreload",href:e},t),An.set(f,e),a.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fi(f)))return}i=a.createElement("link"),Ct(i,"link",e),ot(i),a.head.appendChild(i)}}}function kb(e,t,a){Aa.S(e,t,a);var i=Ds;if(i&&e){var c=Qa(i).hoistableStyles,f=Ms(e);t=t||"default";var v=c.get(f);if(!v){var x={loading:0,preload:null};if(v=i.querySelector(Gi(f)))x.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=An.get(f))&&Lf(e,a);var j=v=i.createElement("link");ot(j),Ct(j,"link",e),j._p=new Promise(function(L,V){j.onload=L,j.onerror=V}),j.addEventListener("load",function(){x.loading|=1}),j.addEventListener("error",function(){x.loading|=2}),x.loading|=4,_o(v,t,i)}v={type:"stylesheet",instance:v,count:1,state:x},c.set(f,v)}}}function Qb(e,t){Aa.X(e,t);var a=Ds;if(a&&e){var i=Qa(a).hoistableScripts,c=Us(e),f=i.get(c);f||(f=a.querySelector(Fi(c)),f||(e=g({src:e,async:!0},t),(t=An.get(c))&&qf(e,t),f=a.createElement("script"),ot(f),Ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}function Yb(e,t){Aa.M(e,t);var a=Ds;if(a&&e){var i=Qa(a).hoistableScripts,c=Us(e),f=i.get(c);f||(f=a.querySelector(Fi(c)),f||(e=g({src:e,async:!0,type:"module"},t),(t=An.get(c))&&qf(e,t),f=a.createElement("script"),ot(f),Ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f))}}function U0(e,t,a,i){var c=(c=ce.current)?Co(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ms(a.href),a=Qa(c).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ms(a.href);var f=Qa(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(Gi(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||Vb(c,e,a,v.state))),t&&i===null)throw Error(s(528,""));return v}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Us(a),a=Qa(c).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ms(e){return'href="'+Sn(e)+'"'}function Gi(e){return'link[rel="stylesheet"]['+e+"]"}function L0(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Vb(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ct(t,"link",a),ot(t),e.head.appendChild(t))}function Us(e){return'[src="'+Sn(e)+'"]'}function Fi(e){return"script[async]"+e}function q0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Sn(a.href)+'"]');if(i)return t.instance=i,ot(i),i;var c=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ot(i),Ct(i,"style",c),_o(i,a.precedence,e),t.instance=i;case"stylesheet":c=Ms(a.href);var f=e.querySelector(Gi(c));if(f)return t.state.loading|=4,t.instance=f,ot(f),f;i=L0(a),(c=An.get(c))&&Lf(i,c),f=(e.ownerDocument||e).createElement("link"),ot(f);var v=f;return v._p=new Promise(function(x,j){v.onload=x,v.onerror=j}),Ct(f,"link",i),t.state.loading|=4,_o(f,a.precedence,e),t.instance=f;case"script":return f=Us(a.src),(c=e.querySelector(Fi(f)))?(t.instance=c,ot(c),c):(i=a,(c=An.get(f))&&(i=g({},a),qf(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),ot(c),Ct(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,_o(i,a.precedence,e));return t.instance}function _o(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,f=c,v=0;v<i.length;v++){var x=i[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 Lf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var No=null;function z0(e,t,a){if(No===null){var i=new Map,c=No=new Map;c.set(a,i)}else c=No,i=c.get(a),i||(i=new Map,c.set(a,i));if(i.has(e))return i;for(i.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=i.get(v);x?x.push(f):i.set(v,[f])}}return i}function B0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Kb(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 H0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var $i=null;function Gb(){}function Fb(e,t,a){if($i===null)throw Error(s(475));var i=$i;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Ms(a.href),f=e.querySelector(Gi(c));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=jo.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=f,ot(f);return}f=e.ownerDocument||e,a=L0(a),(c=An.get(c))&&Lf(a,c),f=f.createElement("link"),ot(f);var v=f;v._p=new Promise(function(x,j){v.onload=x,v.onerror=j}),Ct(f,"link",a),t.instance=f}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=jo.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function $b(){if($i===null)throw Error(s(475));var e=$i;return e.stylesheets&&e.count===0&&zf(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&zf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function jo(){if(this.count--,this.count===0){if(this.stylesheets)zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ao=null;function zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ao=new Map,t.forEach(Xb,e),Ao=null,jo.call(e))}function Xb(e,t){if(!(t.state.loading&4)){var a=Ao.get(e);if(a)var i=a.get(null);else{a=new Map,Ao.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),i=v)}i&&a.set(null,i)}c=t.instance,v=c.getAttribute("data-precedence"),f=a.get(v)||i,f===i&&a.set(null,c),a.set(v,c),this.count++,i=jo.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Xi={$$typeof:D,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Zb(e,t,a,i,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=Fn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fn(0),this.hiddenUpdates=Fn(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function k0(e,t,a,i,c,f,v,x,j,L,V,G){return e=new Zb(e,t,a,v,x,j,L,G),t=1,f===!0&&(t|=24),f=nn(3,null,null,t),e.current=f,f.stateNode=e,t=vc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:a,cache:t},Sc(f),e}function Q0(e){return e?(e=fs,e):fs}function Y0(e,t,a,i,c,f){c=Q0(c),i.context===null?i.context=c:i.pendingContext=c,i=Fa(t),i.payload={element:a},f=f===void 0?null:f,f!==null&&(i.callback=f),a=$a(e,i,t),a!==null&&(on(a,e,t),Ci(a,e,t))}function V0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bf(e,t){V0(e,t),(e=e.alternate)&&V0(e,t)}function K0(e){if(e.tag===13){var t=cs(e,67108864);t!==null&&on(t,e,67108864),Bf(e,67108864)}}var To=!0;function Jb(e,t,a,i){var c=B.T;B.T=null;var f=F.p;try{F.p=2,Hf(e,t,a,i)}finally{F.p=f,B.T=c}}function Pb(e,t,a,i){var c=B.T;B.T=null;var f=F.p;try{F.p=8,Hf(e,t,a,i)}finally{F.p=f,B.T=c}}function Hf(e,t,a,i){if(To){var c=kf(i);if(c===null)Nf(e,t,i,Ro,a),F0(e,i);else if(Wb(c,e,t,a,i))i.stopPropagation();else if(F0(e,i),t&4&&-1<Ib.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=Be(f.pendingLanes);if(v!==0){var x=f;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var j=1<<31-st(v);x.entanglements[1]|=j,v&=~j}In(f),(Ue&6)===0&&(ho=Bt()+500,Qi(0))}}break;case 13:x=cs(f,2),x!==null&&on(x,f,2),po(),Bf(f,2)}if(f=kf(i),f===null&&Nf(e,t,i,Ro,a),f===c)break;c=f}c!==null&&i.stopPropagation()}else Nf(e,t,i,null,a)}}function kf(e){return e=Ku(e),Qf(e)}var Ro=null;function Qf(e){if(Ro=null,e=Re(e),e!==null){var t=u(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 Ro=e,null}function G0(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(ca()){case Kn:return 2;case $e:return 8;case Gn:case bl:return 32;case qa:return 268435456;default:return 32}default:return 32}}var Yf=!1,il=null,rl=null,ol=null,Zi=new Map,Ji=new Map,ul=[],Ib="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 F0(e,t){switch(e){case"focusin":case"focusout":il=null;break;case"dragenter":case"dragleave":rl=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(t.pointerId)}}function Pi(e,t,a,i,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:f,targetContainers:[c]},t!==null&&(t=en(t),t!==null&&K0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Wb(e,t,a,i,c){switch(t){case"focusin":return il=Pi(il,e,t,a,i,c),!0;case"dragenter":return rl=Pi(rl,e,t,a,i,c),!0;case"mouseover":return ol=Pi(ol,e,t,a,i,c),!0;case"pointerover":var f=c.pointerId;return Zi.set(f,Pi(Zi.get(f)||null,e,t,a,i,c)),!0;case"gotpointercapture":return f=c.pointerId,Ji.set(f,Pi(Ji.get(f)||null,e,t,a,i,c)),!0}return!1}function $0(e){var t=Re(e.target);if(t!==null){var a=u(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 i=rn();i=Tt(i);var c=cs(a,i);c!==null&&on(c,a,i),Bf(a,i)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=kf(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Vu=i,a.target.dispatchEvent(i),Vu=null}else return t=en(a),t!==null&&K0(t),e.blockedOn=a,!1;t.shift()}return!0}function X0(e,t,a){Oo(e)&&a.delete(t)}function ex(){Yf=!1,il!==null&&Oo(il)&&(il=null),rl!==null&&Oo(rl)&&(rl=null),ol!==null&&Oo(ol)&&(ol=null),Zi.forEach(X0),Ji.forEach(X0)}function Do(e,t){e.blockedOn===t&&(e.blockedOn=null,Yf||(Yf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ex)))}var Mo=null;function Z0(e){Mo!==e&&(Mo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mo===e&&(Mo=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(Qf(i||a)===null)continue;break}var f=en(a);f!==null&&(e.splice(t,3),t-=3,kc(f,{pending:!0,data:c,method:a.method,action:i},i,c))}}))}function Ii(e){function t(j){return Do(j,e)}il!==null&&Do(il,e),rl!==null&&Do(rl,e),ol!==null&&Do(ol,e),Zi.forEach(t),Ji.forEach(t);for(var a=0;a<ul.length;a++){var i=ul[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ul.length&&(a=ul[0],a.blockedOn===null);)$0(a),a.blockedOn===null&&ul.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var c=a[i],f=a[i+1],v=c[te]||null;if(typeof f=="function")v||Z0(a);else if(v){var x=null;if(f&&f.hasAttribute("formAction")){if(c=f,v=f[te]||null)x=v.formAction;else if(Qf(c)!==null)continue}else x=v.action;typeof x=="function"?a[i+1]=x:(a.splice(i,3),i-=3),Z0(a)}}}function Vf(e){this._internalRoot=e}Uo.prototype.render=Vf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=rn();Y0(a,i,e,t,null,null)},Uo.prototype.unmount=Vf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Y0(e.current,2,null,e,null,null),po(),t[de]=null}};function Uo(e){this._internalRoot=e}Uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=_e();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ul.length&&t!==0&&t<ul[a].priority;a++);ul.splice(a,0,e),a===0&&$0(e)}};var J0=l.version;if(J0!=="19.1.0")throw Error(s(527,J0,"19.1.0"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var tx={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lo.isDisabled&&Lo.supportsFiber)try{pn=Lo.inject(tx),tt=Lo}catch{}}return er.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,i="",c=dp,f=hp,v=mp,x=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=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=k0(e,1,!1,null,null,a,i,c,f,v,x,null),e[de]=t.current,_f(e),new Vf(t)},er.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var i=!1,c="",f=dp,v=hp,x=mp,j=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!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&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),t=k0(e,1,!0,t,a??null,i,c,f,v,x,j,L),t.context=Q0(null),a=t.current,i=rn(),i=Tt(i),c=Fa(i),c.callback=null,$a(a,c,i),a=i,t.current.lanes=a,vn(t,a),In(t),e[de]=t.current,_f(e),new Uo(t)},er.version="19.1.0",er}var iy;function cx(){if(iy)return Ff.exports;iy=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=ux(),Ff.exports}var fx=cx();const dx=yu(fx);var tr={},ry;function hx(){if(ry)return tr;ry=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.parse=d,tr.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,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,u=(()=>{const E=function(){};return E.prototype=Object.create(null),E})();function d(E,C){const w=new u,A=E.length;if(A<2)return w;const N=(C==null?void 0:C.decode)||g;let _=0;do{const O=E.indexOf("=",_);if(O===-1)break;const D=E.indexOf(";",_),Y=D===-1?A:D;if(O>Y){_=E.lastIndexOf(";",O-1)+1;continue}const H=m(E,_,O),$=y(E,O,H),I=E.slice(H,$);if(w[I]===void 0){let W=m(E,O+1,Y),ie=y(E,Y,W);const pe=N(E.slice(W,ie));w[I]=pe}_=Y+1}while(_<A);return w}function m(E,C,w){do{const A=E.charCodeAt(C);if(A!==32&&A!==9)return C}while(++C<w);return w}function y(E,C,w){for(;C>w;){const A=E.charCodeAt(--C);if(A!==32&&A!==9)return C+1}return w}function p(E,C,w){const A=(w==null?void 0:w.encode)||encodeURIComponent;if(!n.test(E))throw new TypeError(`argument name is invalid: ${E}`);const N=A(C);if(!l.test(N))throw new TypeError(`argument val is invalid: ${C}`);let _=E+"="+N;if(!w)return _;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);_+="; Max-Age="+w.maxAge}if(w.domain){if(!r.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);_+="; Domain="+w.domain}if(w.path){if(!s.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);_+="; Path="+w.path}if(w.expires){if(!S(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);_+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(_+="; HttpOnly"),w.secure&&(_+="; Secure"),w.partitioned&&(_+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.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: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.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: ${w.sameSite}`)}return _}function g(E){if(E.indexOf("%")===-1)return E;try{return decodeURIComponent(E)}catch{return E}}function S(E){return o.call(E)==="[object Date]"}return tr}hx();var oy="popstate";function mx(n={}){function l(s,o){let{pathname:u,search:d,hash:m}=s.location;return fd("",{pathname:u,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(s,o){return typeof o=="string"?o:ur(o)}return yx(l,r,null,n)}function Ie(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Rn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function px(){return Math.random().toString(36).substring(2,10)}function uy(n,l){return{usr:n.state,key:n.key,idx:l}}function fd(n,l,r=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Fs(l):l,state:r,key:l&&l.key||s||px()}}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 Fs(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let s=n.indexOf("?");s>=0&&(l.search=n.substring(s),n=n.substring(0,s)),n&&(l.pathname=n)}return l}function yx(n,l,r,s={}){let{window:o=document.defaultView,v5Compat:u=!1}=s,d=o.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 N=g(),_=N==null?null:N-p;p=N,y&&y({action:m,location:A.location,delta:_})}function E(N,_){m="PUSH";let O=fd(A.location,N,_);p=g()+1;let D=uy(O,p),Y=A.createHref(O);try{d.pushState(D,"",Y)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;o.location.assign(Y)}u&&y&&y({action:m,location:A.location,delta:1})}function C(N,_){m="REPLACE";let O=fd(A.location,N,_);p=g();let D=uy(O,p),Y=A.createHref(O);d.replaceState(D,"",Y),u&&y&&y({action:m,location:A.location,delta:0})}function w(N){return vx(N)}let A={get action(){return m},get location(){return n(o,d)},listen(N){if(y)throw new Error("A history only accepts one active listener");return o.addEventListener(oy,S),y=N,()=>{o.removeEventListener(oy,S),y=null}},createHref(N){return l(o,N)},createURL:w,encodeLocation(N){let _=w(N);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:E,replace:C,go(N){return d.go(N)}};return A}function vx(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(r,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ur(n);return s=s.replace(/ $/,"%20"),!l&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function dv(n,l,r="/"){return gx(n,l,r,!1)}function gx(n,l,r,s){let o=typeof l=="string"?Fs(l):l,u=Da(o.pathname||"/",r);if(u==null)return null;let d=hv(n);bx(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let p=Rx(u);m=Ax(d[y],p,s)}return m}function hv(n,l=[],r=[],s=""){let o=(u,d,m)=>{let y={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};y.relativePath.startsWith("/")&&(Ie(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length));let p=Oa([s,y.relativePath]),g=r.concat(y);u.children&&u.children.length>0&&(Ie(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),hv(u.children,l,g,p)),!(u.path==null&&!u.index)&&l.push({path:p,score:Nx(p,u.index),routesMeta:g})};return n.forEach((u,d)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))o(u,d);else for(let y of mv(u.path))o(u,d,y)}),l}function mv(n){let l=n.split("/");if(l.length===0)return[];let[r,...s]=l,o=r.endsWith("?"),u=r.replace(/\?$/,"");if(s.length===0)return o?[u,""]:[u];let d=mv(s.join("/")),m=[];return m.push(...d.map(y=>y===""?u:[u,y].join("/"))),o&&m.push(...d),m.map(y=>n.startsWith("/")&&y===""?"/":y)}function bx(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:jx(l.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var xx=/^:[\w-]+$/,Sx=3,wx=2,Ex=1,Cx=10,_x=-2,cy=n=>n==="*";function Nx(n,l){let r=n.split("/"),s=r.length;return r.some(cy)&&(s+=_x),l&&(s+=wx),r.filter(o=>!cy(o)).reduce((o,u)=>o+(xx.test(u)?Sx:u===""?Ex:Cx),s)}function jx(n,l){return n.length===l.length&&n.slice(0,-1).every((s,o)=>s===l[o])?n[n.length-1]-l[l.length-1]:0}function Ax(n,l,r=!1){let{routesMeta:s}=n,o={},u="/",d=[];for(let m=0;m<s.length;++m){let y=s[m],p=m===s.length-1,g=u==="/"?l:l.slice(u.length)||"/",S=eu({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},g),E=y.route;if(!S&&p&&r&&!s[s.length-1].route.index&&(S=eu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},g)),!S)return null;Object.assign(o,S.params),d.push({params:o,pathname:Oa([u,S.pathname]),pathnameBase:Ux(Oa([u,S.pathnameBase])),route:E}),S.pathnameBase!=="/"&&(u=Oa([u,S.pathnameBase]))}return d}function eu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,s]=Tx(n.path,n.caseSensitive,n.end),o=l.match(r);if(!o)return null;let u=o[0],d=u.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:s.reduce((p,{paramName:g,isOptional:S},E)=>{if(g==="*"){let w=m[E]||"";d=u.slice(0,u.length-w.length).replace(/(.)\/+$/,"$1")}const C=m[E];return S&&!C?p[g]=void 0:p[g]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:d,pattern:n}}function Tx(n,l=!1,r=!0){Rn(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 s=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,y)=>(s.push({paramName:m,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),s]}function Rx(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Rn(!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 Da(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,s=n.charAt(r);return s&&s!=="/"?null:n.slice(r)||"/"}function Ox(n,l="/"){let{pathname:r,search:s="",hash:o=""}=typeof n=="string"?Fs(n):n;return{pathname:r?r.startsWith("/")?r:Dx(r,l):l,search:Lx(s),hash:qx(o)}}function Dx(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Jf(n,l,r,s){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(s)}]. 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 Mx(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function qd(n){let l=Mx(n);return l.map((r,s)=>s===l.length-1?r.pathname:r.pathnameBase)}function zd(n,l,r,s=!1){let o;typeof n=="string"?o=Fs(n):(o={...n},Ie(!o.pathname||!o.pathname.includes("?"),Jf("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Jf("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Jf("#","search","hash",o)));let u=n===""||o.pathname==="",d=u?"/":o.pathname,m;if(d==null)m=r;else{let S=l.length-1;if(!s&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),S-=1;o.pathname=E.join("/")}m=S>=0?l[S]:"/"}let y=Ox(o,m),p=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(p||g)&&(y.pathname+="/"),y}var Oa=n=>n.join("/").replace(/\/\/+/g,"/"),Ux=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Lx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,qx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var pv=["POST","PUT","PATCH","DELETE"];new Set(pv);var Bx=["GET",...pv];new Set(Bx);var $s=b.createContext(null);$s.displayName="DataRouter";var vu=b.createContext(null);vu.displayName="DataRouterState";var yv=b.createContext({isTransitioning:!1});yv.displayName="ViewTransition";var Hx=b.createContext(new Map);Hx.displayName="Fetchers";var kx=b.createContext(null);kx.displayName="Await";var Bn=b.createContext(null);Bn.displayName="Navigation";var hr=b.createContext(null);hr.displayName="Location";var sa=b.createContext({outlet:null,matches:[],isDataRoute:!1});sa.displayName="Route";var Bd=b.createContext(null);Bd.displayName="RouteError";function Qx(n,{relative:l}={}){Ie(Xs(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=b.useContext(Bn),{hash:o,pathname:u,search:d}=mr(n,{relative:l}),m=u;return r!=="/"&&(m=u==="/"?r:Oa([r,u])),s.createHref({pathname:m,search:d,hash:o})}function Xs(){return b.useContext(hr)!=null}function Nt(){return Ie(Xs(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(hr).location}var vv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gv(n){b.useContext(Bn).static||b.useLayoutEffect(n)}function Jt(){let{isDataRoute:n}=b.useContext(sa);return n?e2():Yx()}function Yx(){Ie(Xs(),"useNavigate() may be used only in the context of a <Router> component.");let n=b.useContext($s),{basename:l,navigator:r}=b.useContext(Bn),{matches:s}=b.useContext(sa),{pathname:o}=Nt(),u=JSON.stringify(qd(s)),d=b.useRef(!1);return gv(()=>{d.current=!0}),b.useCallback((y,p={})=>{if(Rn(d.current,vv),!d.current)return;if(typeof y=="number"){r.go(y);return}let g=zd(y,JSON.parse(u),o,p.relative==="path");n==null&&l!=="/"&&(g.pathname=g.pathname==="/"?l:Oa([l,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[l,r,u,o,n])}b.createContext(null);function mr(n,{relative:l}={}){let{matches:r}=b.useContext(sa),{pathname:s}=Nt(),o=JSON.stringify(qd(r));return b.useMemo(()=>zd(n,JSON.parse(o),s,l==="path"),[n,o,s,l])}function Vx(n,l){return bv(n,l)}function bv(n,l,r,s){var O;Ie(Xs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:u}=b.useContext(Bn),{matches:d}=b.useContext(sa),m=d[d.length-1],y=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",S=m&&m.route;{let D=S&&S.path||"";xv(p,!S||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${D}">) 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="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let E=Nt(),C;if(l){let D=typeof l=="string"?Fs(l):l;Ie(g==="/"||((O=D.pathname)==null?void 0:O.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 "${D.pathname}" was given in the \`location\` prop.`),C=D}else C=E;let w=C.pathname||"/",A=w;if(g!=="/"){let D=g.replace(/^\//,"").split("/");A="/"+w.replace(/^\//,"").split("/").slice(D.length).join("/")}let N=!u&&r&&r.matches&&r.matches.length>0?r.matches:dv(n,{pathname:A});Rn(S||N!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),Rn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.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 _=Xx(N&&N.map(D=>Object.assign({},D,{params:Object.assign({},y,D.params),pathname:Oa([g,o.encodeLocation?o.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?g:Oa([g,o.encodeLocation?o.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),d,r,s);return l&&_?b.createElement(hr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},_):_}function Kx(){let n=Wx(),l=zx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},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:u},"ErrorBoundary")," or"," ",b.createElement("code",{style:u},"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:o},r):null,d)}var Gx=b.createElement(Kx,null),Fx=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(sa.Provider,{value:this.props.routeContext},b.createElement(Bd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $x({routeContext:n,match:l,children:r}){let s=b.useContext($s);return s&&s.static&&s.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=l.route.id),b.createElement(sa.Provider,{value:n},r)}function Xx(n,l=[],r=null,s=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 o=n,u=r==null?void 0:r.errors;if(u!=null){let y=o.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);Ie(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let d=!1,m=-1;if(r)for(let y=0;y<o.length;y++){let p=o[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(m=y),p.route.id){let{loaderData:g,errors:S}=r,E=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!S||S[p.route.id]===void 0);if(p.route.lazy||E){d=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((y,p,g)=>{let S,E=!1,C=null,w=null;r&&(S=u&&p.route.id?u[p.route.id]:void 0,C=p.route.errorElement||Gx,d&&(m<0&&g===0?(xv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,w=null):m===g&&(E=!0,w=p.route.hydrateFallbackElement||null)));let A=l.concat(o.slice(0,g+1)),N=()=>{let _;return S?_=C:E?_=w:p.route.Component?_=b.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=y,b.createElement($x,{match:p,routeContext:{outlet:y,matches:A,isDataRoute:r!=null},children:_})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?b.createElement(Fx,{location:r.location,revalidation:r.revalidation,component:C,error:S,children:N(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):N()},null)}function Hd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zx(n){let l=b.useContext($s);return Ie(l,Hd(n)),l}function Jx(n){let l=b.useContext(vu);return Ie(l,Hd(n)),l}function Px(n){let l=b.useContext(sa);return Ie(l,Hd(n)),l}function kd(n){let l=Px(n),r=l.matches[l.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Ix(){return kd("useRouteId")}function Wx(){var s;let n=b.useContext(Bd),l=Jx("useRouteError"),r=kd("useRouteError");return n!==void 0?n:(s=l.errors)==null?void 0:s[r]}function e2(){let{router:n}=Zx("useNavigate"),l=kd("useNavigate"),r=b.useRef(!1);return gv(()=>{r.current=!0}),b.useCallback(async(o,u={})=>{Rn(r.current,vv),r.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:l,...u}))},[n,l])}var fy={};function xv(n,l,r){!l&&!fy[n]&&(fy[n]=!0,Rn(!1,r))}b.memo(t2);function t2({routes:n,future:l,state:r}){return bv(n,void 0,r,l)}function n2({to:n,replace:l,state:r,relative:s}){Ie(Xs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=b.useContext(Bn);Rn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=b.useContext(sa),{pathname:d}=Nt(),m=Jt(),y=zd(n,qd(u),d,s==="path"),p=JSON.stringify(y);return b.useEffect(()=>{m(JSON.parse(p),{replace:l,state:r,relative:s})},[m,p,s,l,r]),null}function ir(n){Ie(!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 a2({basename:n="/",children:l=null,location:r,navigationType:s="POP",navigator:o,static:u=!1}){Ie(!Xs(),"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:o,static:u,future:{}}),[d,o,u]);typeof r=="string"&&(r=Fs(r));let{pathname:y="/",search:p="",hash:g="",state:S=null,key:E="default"}=r,C=b.useMemo(()=>{let w=Da(y,d);return w==null?null:{location:{pathname:w,search:p,hash:g,state:S,key:E},navigationType:s}},[d,y,p,g,S,E,s]);return Rn(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(Bn.Provider,{value:m},b.createElement(hr.Provider,{children:l,value:C}))}function l2({children:n,location:l}){return Vx(dd(n),l)}function dd(n,l=[]){let r=[];return b.Children.forEach(n,(s,o)=>{if(!b.isValidElement(s))return;let u=[...l,o];if(s.type===b.Fragment){r.push.apply(r,dd(s.props.children,u));return}Ie(s.type===ir,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=dd(s.props.children,u)),r.push(d)}),r}var Vo="get",Ko="application/x-www-form-urlencoded";function gu(n){return n!=null&&typeof n.tagName=="string"}function s2(n){return gu(n)&&n.tagName.toLowerCase()==="button"}function i2(n){return gu(n)&&n.tagName.toLowerCase()==="form"}function r2(n){return gu(n)&&n.tagName.toLowerCase()==="input"}function o2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function u2(n,l){return n.button===0&&(!l||l==="_self")&&!o2(n)}function hd(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((l,r)=>{let s=n[r];return l.concat(Array.isArray(s)?s.map(o=>[r,o]):[[r,s]])},[]))}function c2(n,l){let r=hd(n);return l&&l.forEach((s,o)=>{r.has(o)||l.getAll(o).forEach(u=>{r.append(o,u)})}),r}var qo=null;function f2(){if(qo===null)try{new FormData(document.createElement("form"),0),qo=!1}catch{qo=!0}return qo}var d2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pf(n){return n!=null&&!d2.has(n)?(Rn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ko}"`),null):n}function h2(n,l){let r,s,o,u,d;if(i2(n)){let m=n.getAttribute("action");s=m?Da(m,l):null,r=n.getAttribute("method")||Vo,o=Pf(n.getAttribute("enctype"))||Ko,u=new FormData(n)}else if(s2(n)||r2(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(s=y?Da(y,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Vo,o=Pf(n.getAttribute("formenctype"))||Pf(m.getAttribute("enctype"))||Ko,u=new FormData(m,n),!f2()){let{name:p,type:g,value:S}=n;if(g==="image"){let E=p?`${p}.`:"";u.append(`${E}x`,"0"),u.append(`${E}y`,"0")}else p&&u.append(p,S)}}else{if(gu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Vo,s=null,o=Ko,d=n}return u&&o==="text/plain"&&(d=u,u=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:u,body:d}}function Qd(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}async function m2(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 p2(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 y2(n,l,r){let s=await Promise.all(n.map(async o=>{let u=l.routes[o.route.id];if(u){let d=await m2(u,r);return d.links?d.links():[]}return[]}));return x2(s.flat(1).filter(p2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function dy(n,l,r,s,o,u){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 u==="assets"?l.filter((y,p)=>d(y,p)||m(y,p)):u==="data"?l.filter((y,p)=>{var S;let g=s.routes[y.route.id];if(!g||!g.hasLoader)return!1;if(d(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let E=y.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.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 E=="boolean")return E}return!0}):[]}function v2(n,l,{includeHydrateFallback:r}={}){return g2(n.map(s=>{let o=l.routes[s.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function g2(n){return[...new Set(n)]}function b2(n){let l={},r=Object.keys(n).sort();for(let s of r)l[s]=n[s];return l}function x2(n,l){let r=new Set;return new Set(l),n.reduce((s,o)=>{let u=JSON.stringify(b2(o));return r.has(u)||(r.add(u),s.push({key:u,link:o})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var S2=new Set([100,101,204,205]);function w2(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&&Da(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Sv(){let n=b.useContext($s);return Qd(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function E2(){let n=b.useContext(vu);return Qd(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Yd=b.createContext(void 0);Yd.displayName="FrameworkContext";function wv(){let n=b.useContext(Yd);return Qd(n,"You must render this element inside a <HydratedRouter> element"),n}function C2(n,l){let r=b.useContext(Yd),[s,o]=b.useState(!1),[u,d]=b.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:g,onTouchStart:S}=l,E=b.useRef(null);b.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let A=_=>{_.forEach(O=>{d(O.isIntersecting)})},N=new IntersectionObserver(A,{threshold:.5});return E.current&&N.observe(E.current),()=>{N.disconnect()}}},[n]),b.useEffect(()=>{if(s){let A=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(A)}}},[s]);let C=()=>{o(!0)},w=()=>{o(!1),d(!1)};return r?n!=="intent"?[u,E,{}]:[u,E,{onFocus:nr(m,C),onBlur:nr(y,w),onMouseEnter:nr(p,C),onMouseLeave:nr(g,w),onTouchStart:nr(S,C)}]:[!1,E,{}]}function nr(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function _2({page:n,...l}){let{router:r}=Sv(),s=b.useMemo(()=>dv(r.routes,n,r.basename),[r.routes,n,r.basename]);return s?b.createElement(j2,{page:n,matches:s,...l}):null}function N2(n){let{manifest:l,routeModules:r}=wv(),[s,o]=b.useState([]);return b.useEffect(()=>{let u=!1;return y2(n,l,r).then(d=>{u||o(d)}),()=>{u=!0}},[n,l,r]),s}function j2({page:n,matches:l,...r}){let s=Nt(),{manifest:o,routeModules:u}=wv(),{basename:d}=Sv(),{loaderData:m,matches:y}=E2(),p=b.useMemo(()=>dy(n,l,y,o,s,"data"),[n,l,y,o,s]),g=b.useMemo(()=>dy(n,l,y,o,s,"assets"),[n,l,y,o,s]),S=b.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let w=new Set,A=!1;if(l.forEach(_=>{var D;let O=o.routes[_.route.id];!O||!O.hasLoader||(!p.some(Y=>Y.route.id===_.route.id)&&_.route.id in m&&((D=u[_.route.id])!=null&&D.shouldRevalidate)||O.hasClientLoader?A=!0:w.add(_.route.id))}),w.size===0)return[];let N=w2(n,d);return A&&w.size>0&&N.searchParams.set("_routes",l.filter(_=>w.has(_.route.id)).map(_=>_.route.id).join(",")),[N.pathname+N.search]},[d,m,s,o,p,l,n,u]),E=b.useMemo(()=>v2(g,o),[g,o]),C=N2(g);return b.createElement(b.Fragment,null,S.map(w=>b.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),E.map(w=>b.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),C.map(({key:w,link:A})=>b.createElement("link",{key:w,...A})))}function A2(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Ev=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ev&&(window.__reactRouterVersion="7.6.0")}catch{}function T2({basename:n,children:l,window:r}){let s=b.useRef();s.current==null&&(s.current=mx({window:r,v5Compat:!0}));let o=s.current,[u,d]=b.useState({action:o.action,location:o.location}),m=b.useCallback(y=>{b.startTransition(()=>d(y))},[d]);return b.useLayoutEffect(()=>o.listen(m),[o,m]),b.createElement(a2,{basename:n,children:l,location:u.location,navigationType:u.action,navigator:o})}var Cv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_v=b.forwardRef(function({onClick:l,discover:r="render",prefetch:s="none",relative:o,reloadDocument:u,replace:d,state:m,target:y,to:p,preventScrollReset:g,viewTransition:S,...E},C){let{basename:w}=b.useContext(Bn),A=typeof p=="string"&&Cv.test(p),N,_=!1;if(typeof p=="string"&&A&&(N=p,Ev))try{let ie=new URL(window.location.href),pe=p.startsWith("//")?new URL(ie.protocol+p):new URL(p),ze=Da(pe.pathname,w);pe.origin===ie.origin&&ze!=null?p=ze+pe.search+pe.hash:_=!0}catch{Rn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=Qx(p,{relative:o}),[D,Y,H]=C2(s,E),$=M2(p,{replace:d,state:m,target:y,preventScrollReset:g,relative:o,viewTransition:S});function I(ie){l&&l(ie),ie.defaultPrevented||$(ie)}let W=b.createElement("a",{...E,...H,href:N||O,onClick:_||u?l:I,ref:A2(C,Y),target:y,"data-discover":!A&&r==="render"?"true":void 0});return D&&!A?b.createElement(b.Fragment,null,W,b.createElement(_2,{page:O})):W});_v.displayName="Link";var R2=b.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:s="",end:o=!1,style:u,to:d,viewTransition:m,children:y,...p},g){let S=mr(d,{relative:p.relative}),E=Nt(),C=b.useContext(vu),{navigator:w,basename:A}=b.useContext(Bn),N=C!=null&&H2(S)&&m===!0,_=w.encodeLocation?w.encodeLocation(S).pathname:S.pathname,O=E.pathname,D=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(O=O.toLowerCase(),D=D?D.toLowerCase():null,_=_.toLowerCase()),D&&A&&(D=Da(D,A)||D);const Y=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let H=O===_||!o&&O.startsWith(_)&&O.charAt(Y)==="/",$=D!=null&&(D===_||!o&&D.startsWith(_)&&D.charAt(_.length)==="/"),I={isActive:H,isPending:$,isTransitioning:N},W=H?l:void 0,ie;typeof s=="function"?ie=s(I):ie=[s,H?"active":null,$?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let pe=typeof u=="function"?u(I):u;return b.createElement(_v,{...p,"aria-current":W,className:ie,ref:g,style:pe,to:d,viewTransition:m},typeof y=="function"?y(I):y)});R2.displayName="NavLink";var O2=b.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:s,replace:o,state:u,method:d=Vo,action:m,onSubmit:y,relative:p,preventScrollReset:g,viewTransition:S,...E},C)=>{let w=z2(),A=B2(m,{relative:p}),N=d.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Cv.test(m),O=D=>{if(y&&y(D),D.defaultPrevented)return;D.preventDefault();let Y=D.nativeEvent.submitter,H=(Y==null?void 0:Y.getAttribute("formmethod"))||d;w(Y||D.currentTarget,{fetcherKey:l,method:H,navigate:r,replace:o,state:u,relative:p,preventScrollReset:g,viewTransition:S})};return b.createElement("form",{ref:C,method:N,action:A,onSubmit:s?y:O,...E,"data-discover":!_&&n==="render"?"true":void 0})});O2.displayName="Form";function D2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nv(n){let l=b.useContext($s);return Ie(l,D2(n)),l}function M2(n,{target:l,replace:r,state:s,preventScrollReset:o,relative:u,viewTransition:d}={}){let m=Jt(),y=Nt(),p=mr(n,{relative:u});return b.useCallback(g=>{if(u2(g,l)){g.preventDefault();let S=r!==void 0?r:ur(y)===ur(p);m(n,{replace:S,state:s,preventScrollReset:o,relative:u,viewTransition:d})}},[y,m,p,r,s,l,n,o,u,d])}function U2(n){Rn(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(hd(n)),r=b.useRef(!1),s=Nt(),o=b.useMemo(()=>c2(s.search,r.current?null:l.current),[s.search]),u=Jt(),d=b.useCallback((m,y)=>{const p=hd(typeof m=="function"?m(o):m);r.current=!0,u("?"+p,y)},[u,o]);return[o,d]}var L2=0,q2=()=>`__${String(++L2)}__`;function z2(){let{router:n}=Nv("useSubmit"),{basename:l}=b.useContext(Bn),r=Ix();return b.useCallback(async(s,o={})=>{let{action:u,method:d,encType:m,formData:y,body:p}=h2(s,l);if(o.navigate===!1){let g=o.fetcherKey||q2();await n.fetch(g,r,o.action||u,{preventScrollReset:o.preventScrollReset,formData:y,body:p,formMethod:o.method||d,formEncType:o.encType||m,flushSync:o.flushSync})}else await n.navigate(o.action||u,{preventScrollReset:o.preventScrollReset,formData:y,body:p,formMethod:o.method||d,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,l,r])}function B2(n,{relative:l}={}){let{basename:r}=b.useContext(Bn),s=b.useContext(sa);Ie(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),u={...mr(n||".",{relative:l})},d=Nt();if(n==null){u.search=d.search;let m=new URLSearchParams(u.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();u.search=g?`?${g}`:""}}return(!n||n===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Oa([r,u.pathname])),ur(u)}function H2(n,l={}){let r=b.useContext(yv);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Nv("useViewTransitionState"),o=mr(n,{relative:l.relative});if(!r.isTransitioning)return!1;let u=Da(r.currentLocation.pathname,s)||r.currentLocation.pathname,d=Da(r.nextLocation.pathname,s)||r.nextLocation.pathname;return eu(o.pathname,d)!=null||eu(o.pathname,u)!=null}[...S2];var jv=fv();const k2=yu(jv);function md(n,l){return md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},md(n,l)}function Zs(n,l){n.prototype=Object.create(l.prototype),n.prototype.constructor=n,md(n,l)}var Js=function(){function n(){this.listeners=[]}var l=n.prototype;return l.subscribe=function(s){var o=this,u=s||function(){};return this.listeners.push(u),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(d){return d!==u}),o.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 s in r)({}).hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},we.apply(null,arguments)}var tu=typeof window>"u";function _t(){}function Q2(n,l){return typeof n=="function"?n(l):n}function pd(n){return typeof n=="number"&&n>=0&&n!==1/0}function nu(n){return Array.isArray(n)?n:[n]}function Av(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Go(n,l,r){return pr(n)?typeof l=="function"?we({},r,{queryKey:n,queryFn:l}):we({},l,{queryKey:n}):n}function Y2(n,l,r){return pr(n)?typeof l=="function"?we({},r,{mutationKey:n,mutationFn:l}):we({},l,{mutationKey:n}):typeof n=="function"?we({},l,{mutationFn:n}):we({},n)}function fl(n,l,r){return pr(n)?[we({},l,{queryKey:n}),r]:[n||{},l]}function V2(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 hy(n,l){var r=n.active,s=n.exact,o=n.fetching,u=n.inactive,d=n.predicate,m=n.queryKey,y=n.stale;if(pr(m)){if(s){if(l.queryHash!==Vd(m,l.options))return!1}else if(!au(l.queryKey,m))return!1}var p=V2(r,u);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 o=="boolean"&&l.isFetching()!==o||d&&!d(l))}function my(n,l){var r=n.exact,s=n.fetching,o=n.predicate,u=n.mutationKey;if(pr(u)){if(!l.options.mutationKey)return!1;if(r){if(Ql(l.options.mutationKey)!==Ql(u))return!1}else if(!au(l.options.mutationKey,u))return!1}return!(typeof s=="boolean"&&l.state.status==="loading"!==s||o&&!o(l))}function Vd(n,l){var r=(l==null?void 0:l.queryKeyHashFn)||Ql;return r(n)}function Ql(n){var l=nu(n);return K2(l)}function K2(n){return JSON.stringify(n,function(l,r){return yd(r)?Object.keys(r).sort().reduce(function(s,o){return s[o]=r[o],s},{}):r})}function au(n,l){return Tv(nu(n),nu(l))}function Tv(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!Tv(n[r],l[r])}):!1}function lu(n,l){if(n===l)return n;var r=Array.isArray(n)&&Array.isArray(l);if(r||yd(n)&&yd(l)){for(var s=r?n.length:Object.keys(n).length,o=r?l:Object.keys(l),u=o.length,d=r?[]:{},m=0,y=0;y<u;y++){var p=r?y:o[y];d[p]=lu(n[p],l[p]),d[p]===n[p]&&m++}return s===u&&m===s?n:d}return l}function G2(n,l){if(n&&!l||l&&!n)return!1;for(var r in n)if(n[r]!==l[r])return!1;return!0}function yd(n){if(!py(n))return!1;var l=n.constructor;if(typeof l>"u")return!0;var r=l.prototype;return!(!py(r)||!r.hasOwnProperty("isPrototypeOf"))}function py(n){return Object.prototype.toString.call(n)==="[object Object]"}function pr(n){return typeof n=="string"||Array.isArray(n)}function F2(n){return new Promise(function(l){setTimeout(l,n)})}function yy(n){Promise.resolve().then(n).catch(function(l){return setTimeout(function(){throw l})})}function Rv(){if(typeof AbortController=="function")return new AbortController}var $2=function(n){Zs(l,n);function l(){var s;return s=n.call(this)||this,s.setup=function(o){var u;if(!tu&&((u=window)!=null&&u.addEventListener)){var d=function(){return o()};return window.addEventListener("visibilitychange",d,!1),window.addEventListener("focus",d,!1),function(){window.removeEventListener("visibilitychange",d),window.removeEventListener("focus",d)}}},s}var r=l.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var u,d=this;this.setup=o,(u=this.cleanup)==null||u.call(this),this.cleanup=o(function(m){typeof m=="boolean"?d.setFocused(m):d.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},l}(Js),rr=new $2,X2=function(n){Zs(l,n);function l(){var s;return s=n.call(this)||this,s.setup=function(o){var u;if(!tu&&((u=window)!=null&&u.addEventListener)){var d=function(){return o()};return window.addEventListener("online",d,!1),window.addEventListener("offline",d,!1),function(){window.removeEventListener("online",d),window.removeEventListener("offline",d)}}},s}var r=l.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var u,d=this;this.setup=o,(u=this.cleanup)==null||u.call(this),this.cleanup=o(function(m){typeof m=="boolean"?d.setOnline(m):d.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},l}(Js),Fo=new X2;function Z2(n){return Math.min(1e3*Math.pow(2,n),3e4)}function su(n){return typeof(n==null?void 0:n.cancel)=="function"}var Ov=function(l){this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent};function $o(n){return n instanceof Ov}var Dv=function(l){var r=this,s=!1,o,u,d,m;this.abort=l.abort,this.cancel=function(E){return o==null?void 0:o(E)},this.cancelRetry=function(){s=!0},this.continueRetry=function(){s=!1},this.continue=function(){return u==null?void 0:u()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(E,C){d=E,m=C});var y=function(C){r.isResolved||(r.isResolved=!0,l.onSuccess==null||l.onSuccess(C),u==null||u(),d(C))},p=function(C){r.isResolved||(r.isResolved=!0,l.onError==null||l.onError(C),u==null||u(),m(C))},g=function(){return new Promise(function(C){u=C,r.isPaused=!0,l.onPause==null||l.onPause()}).then(function(){u=void 0,r.isPaused=!1,l.onContinue==null||l.onContinue()})},S=function E(){if(!r.isResolved){var C;try{C=l.fn()}catch(w){C=Promise.reject(w)}o=function(A){if(!r.isResolved&&(p(new Ov(A)),r.abort==null||r.abort(),su(C)))try{C.cancel()}catch{}},r.isTransportCancelable=su(C),Promise.resolve(C).then(y).catch(function(w){var A,N;if(!r.isResolved){var _=(A=l.retry)!=null?A:3,O=(N=l.retryDelay)!=null?N:Z2,D=typeof O=="function"?O(r.failureCount,w):O,Y=_===!0||typeof _=="number"&&r.failureCount<_||typeof _=="function"&&_(r.failureCount,w);if(s||!Y){p(w);return}r.failureCount++,l.onFail==null||l.onFail(r.failureCount,w),F2(D).then(function(){if(!rr.isFocused()||!Fo.isOnline())return g()}).then(function(){s?p(w):E()})}})}};S()},J2=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(s){var o;this.transactions++;try{o=s()}finally{this.transactions--,this.transactions||this.flush()}return o},l.schedule=function(s){var o=this;this.transactions?this.queue.push(s):yy(function(){o.notifyFn(s)})},l.batchCalls=function(s){var o=this;return function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];o.schedule(function(){s.apply(void 0,d)})}},l.flush=function(){var s=this,o=this.queue;this.queue=[],o.length&&yy(function(){s.batchNotifyFn(function(){o.forEach(function(u){s.notifyFn(u)})})})},l.setNotifyFunction=function(s){this.notifyFn=s},l.setBatchNotifyFunction=function(s){this.batchNotifyFn=s},n}(),Pe=new J2,Mv=console;function iu(){return Mv}function P2(n){Mv=n}var I2=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(s){var o;this.options=we({},this.defaultOptions,s),this.meta=s==null?void 0:s.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},l.setDefaultOptions=function(s){this.defaultOptions=s},l.scheduleGc=function(){var s=this;this.clearGcTimeout(),pd(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){s.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(s,o){var u,d,m=this.state.data,y=Q2(s,m);return(u=(d=this.options).isDataEqual)!=null&&u.call(d,m,y)?y=m:this.options.structuralSharing!==!1&&(y=lu(m,y)),this.dispatch({data:y,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),y},l.setState=function(s,o){this.dispatch({type:"setState",state:s,setStateOptions:o})},l.cancel=function(s){var o,u=this.promise;return(o=this.retryer)==null||o.cancel(s),u?u.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(s){return s.options.enabled!==!1})},l.isFetching=function(){return this.state.isFetching},l.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(s){return s.getCurrentResult().isStale})},l.isStaleByTime=function(s){return s===void 0&&(s=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Av(this.state.dataUpdatedAt,s)},l.onFocus=function(){var s,o=this.observers.find(function(u){return u.shouldFetchOnWindowFocus()});o&&o.refetch(),(s=this.retryer)==null||s.continue()},l.onOnline=function(){var s,o=this.observers.find(function(u){return u.shouldFetchOnReconnect()});o&&o.refetch(),(s=this.retryer)==null||s.continue()},l.addObserver=function(s){this.observers.indexOf(s)===-1&&(this.observers.push(s),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:s}))},l.removeObserver=function(s){this.observers.indexOf(s)!==-1&&(this.observers=this.observers.filter(function(o){return o!==s}),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:s}))},l.getObserversCount=function(){return this.observers.length},l.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},l.fetch=function(s,o){var u=this,d,m,y;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var p;return(p=this.retryer)==null||p.continueRetry(),this.promise}}if(s&&this.setOptions(s),!this.options.queryFn){var g=this.observers.find(function(O){return O.options.queryFn});g&&this.setOptions(g.options)}var S=nu(this.queryKey),E=Rv(),C={queryKey:S,pageParam:void 0,meta:this.meta};Object.defineProperty(C,"signal",{enumerable:!0,get:function(){if(E)return u.abortSignalConsumed=!0,E.signal}});var w=function(){return u.options.queryFn?(u.abortSignalConsumed=!1,u.options.queryFn(C)):Promise.reject("Missing queryFn")},A={fetchOptions:o,options:this.options,queryKey:S,state:this.state,fetchFn:w,meta:this.meta};if((d=this.options.behavior)!=null&&d.onFetch){var N;(N=this.options.behavior)==null||N.onFetch(A)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((m=A.fetchOptions)==null?void 0:m.meta)){var _;this.dispatch({type:"fetch",meta:(_=A.fetchOptions)==null?void 0:_.meta})}return this.retryer=new Dv({fn:A.fetchFn,abort:E==null||(y=E.abort)==null?void 0:y.bind(E),onSuccess:function(D){u.setData(D),u.cache.config.onSuccess==null||u.cache.config.onSuccess(D,u),u.cacheTime===0&&u.optionalRemove()},onError:function(D){$o(D)&&D.silent||u.dispatch({type:"error",error:D}),$o(D)||(u.cache.config.onError==null||u.cache.config.onError(D,u),iu().error(D)),u.cacheTime===0&&u.optionalRemove()},onFail:function(){u.dispatch({type:"failed"})},onPause:function(){u.dispatch({type:"pause"})},onContinue:function(){u.dispatch({type:"continue"})},retry:A.options.retry,retryDelay:A.options.retryDelay}),this.promise=this.retryer.promise,this.promise},l.dispatch=function(s){var o=this;this.state=this.reducer(this.state,s),Pe.batch(function(){o.observers.forEach(function(u){u.onQueryUpdate(s)}),o.cache.notify({query:o,type:"queryUpdated",action:s})})},l.getDefaultState=function(s){var o=typeof s.initialData=="function"?s.initialData():s.initialData,u=typeof s.initialData<"u",d=u?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0,m=typeof o<"u";return{data:o,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(s,o){var u,d;switch(o.type){case"failed":return we({},s,{fetchFailureCount:s.fetchFailureCount+1});case"pause":return we({},s,{isPaused:!0});case"continue":return we({},s,{isPaused:!1});case"fetch":return we({},s,{fetchFailureCount:0,fetchMeta:(u=o.meta)!=null?u:null,isFetching:!0,isPaused:!1},!s.dataUpdatedAt&&{error:null,status:"loading"});case"success":return we({},s,{data:o.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:(d=o.dataUpdatedAt)!=null?d:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var m=o.error;return $o(m)&&m.revert&&this.revertState?we({},this.revertState):we({},s,{error:m,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return we({},s,{isInvalidated:!0});case"setState":return we({},s,o.state);default:return s}},n}(),W2=function(n){Zs(l,n);function l(s){var o;return o=n.call(this)||this,o.config=s||{},o.queries=[],o.queriesMap={},o}var r=l.prototype;return r.build=function(o,u,d){var m,y=u.queryKey,p=(m=u.queryHash)!=null?m:Vd(y,u),g=this.get(p);return g||(g=new I2({cache:this,queryKey:y,queryHash:p,options:o.defaultQueryOptions(u),state:d,defaultOptions:o.getQueryDefaults(y),meta:u.meta}),this.add(g)),g},r.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},r.remove=function(o){var u=this.queriesMap[o.queryHash];u&&(o.destroy(),this.queries=this.queries.filter(function(d){return d!==o}),u===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},r.clear=function(){var o=this;Pe.batch(function(){o.queries.forEach(function(u){o.remove(u)})})},r.get=function(o){return this.queriesMap[o]},r.getAll=function(){return this.queries},r.find=function(o,u){var d=fl(o,u),m=d[0];return typeof m.exact>"u"&&(m.exact=!0),this.queries.find(function(y){return hy(m,y)})},r.findAll=function(o,u){var d=fl(o,u),m=d[0];return Object.keys(m).length>0?this.queries.filter(function(y){return hy(m,y)}):this.queries},r.notify=function(o){var u=this;Pe.batch(function(){u.listeners.forEach(function(d){d(o)})})},r.onFocus=function(){var o=this;Pe.batch(function(){o.queries.forEach(function(u){u.onFocus()})})},r.onOnline=function(){var o=this;Pe.batch(function(){o.queries.forEach(function(u){u.onOnline()})})},l}(Js),eS=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||Uv(),this.meta=r.meta}var l=n.prototype;return l.setState=function(s){this.dispatch({type:"setState",state:s})},l.addObserver=function(s){this.observers.indexOf(s)===-1&&this.observers.push(s)},l.removeObserver=function(s){this.observers=this.observers.filter(function(o){return o!==s})},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 s=this,o,u=this.state.status==="loading",d=Promise.resolve();return u||(this.dispatch({type:"loading",variables:this.options.variables}),d=d.then(function(){s.mutationCache.config.onMutate==null||s.mutationCache.config.onMutate(s.state.variables,s)}).then(function(){return s.options.onMutate==null?void 0:s.options.onMutate(s.state.variables)}).then(function(m){m!==s.state.context&&s.dispatch({type:"loading",context:m,variables:s.state.variables})})),d.then(function(){return s.executeMutation()}).then(function(m){o=m,s.mutationCache.config.onSuccess==null||s.mutationCache.config.onSuccess(o,s.state.variables,s.state.context,s)}).then(function(){return s.options.onSuccess==null?void 0:s.options.onSuccess(o,s.state.variables,s.state.context)}).then(function(){return s.options.onSettled==null?void 0:s.options.onSettled(o,null,s.state.variables,s.state.context)}).then(function(){return s.dispatch({type:"success",data:o}),o}).catch(function(m){return s.mutationCache.config.onError==null||s.mutationCache.config.onError(m,s.state.variables,s.state.context,s),iu().error(m),Promise.resolve().then(function(){return s.options.onError==null?void 0:s.options.onError(m,s.state.variables,s.state.context)}).then(function(){return s.options.onSettled==null?void 0:s.options.onSettled(void 0,m,s.state.variables,s.state.context)}).then(function(){throw s.dispatch({type:"error",error:m}),m})})},l.executeMutation=function(){var s=this,o;return this.retryer=new Dv({fn:function(){return s.options.mutationFn?s.options.mutationFn(s.state.variables):Promise.reject("No mutationFn found")},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},l.dispatch=function(s){var o=this;this.state=tS(this.state,s),Pe.batch(function(){o.observers.forEach(function(u){u.onMutationUpdate(s)}),o.mutationCache.notify(o)})},n}();function Uv(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function tS(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 Lv=function(n){Zs(l,n);function l(s){var o;return o=n.call(this)||this,o.config=s||{},o.mutations=[],o.mutationId=0,o}var r=l.prototype;return r.build=function(o,u,d){var m=new eS({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(u),state:d,defaultOptions:u.mutationKey?o.getMutationDefaults(u.mutationKey):void 0,meta:u.meta});return this.add(m),m},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(u){return u!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Pe.batch(function(){o.mutations.forEach(function(u){o.remove(u)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(u){return my(o,u)})},r.findAll=function(o){return this.mutations.filter(function(u){return my(o,u)})},r.notify=function(o){var u=this;Pe.batch(function(){u.listeners.forEach(function(d){d(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(u){return u.state.isPaused});return Pe.batch(function(){return o.reduce(function(u,d){return u.then(function(){return d.continue().catch(_t)})},Promise.resolve())})},l}(Js);function nS(){return{onFetch:function(l){l.fetchFn=function(){var r,s,o,u,d,m,y=(r=l.fetchOptions)==null||(s=r.meta)==null?void 0:s.refetchPage,p=(o=l.fetchOptions)==null||(u=o.meta)==null?void 0:u.fetchMore,g=p==null?void 0:p.pageParam,S=(p==null?void 0:p.direction)==="forward",E=(p==null?void 0:p.direction)==="backward",C=((d=l.state.data)==null?void 0:d.pages)||[],w=((m=l.state.data)==null?void 0:m.pageParams)||[],A=Rv(),N=A==null?void 0:A.signal,_=w,O=!1,D=l.options.queryFn||function(){return Promise.reject("Missing queryFn")},Y=function(ye,xe,B,F){return _=F?[xe].concat(_):[].concat(_,[xe]),F?[B].concat(ye):[].concat(ye,[B])},H=function(ye,xe,B,F){if(O)return Promise.reject("Cancelled");if(typeof B>"u"&&!xe&&ye.length)return Promise.resolve(ye);var Z={queryKey:l.queryKey,signal:N,pageParam:B,meta:l.meta},ue=D(Z),T=Promise.resolve(ue).then(function(P){return Y(ye,B,P,F)});if(su(ue)){var Q=T;Q.cancel=ue.cancel}return T},$;if(!C.length)$=H([]);else if(S){var I=typeof g<"u",W=I?g:vy(l.options,C);$=H(C,I,W)}else if(E){var ie=typeof g<"u",pe=ie?g:aS(l.options,C);$=H(C,ie,pe,!0)}else(function(){_=[];var Fe=typeof l.options.getNextPageParam>"u",ye=y&&C[0]?y(C[0],0,C):!0;$=ye?H([],Fe,w[0]):Promise.resolve(Y([],w[0],C[0]));for(var xe=function(Z){$=$.then(function(ue){var T=y&&C[Z]?y(C[Z],Z,C):!0;if(T){var Q=Fe?w[Z]:vy(l.options,ue);return H(ue,Fe,Q)}return Promise.resolve(Y(ue,w[Z],C[Z]))})},B=1;B<C.length;B++)xe(B)})();var ze=$.then(function(Fe){return{pages:Fe,pageParams:_}}),Ee=ze;return Ee.cancel=function(){O=!0,A==null||A.abort(),su($)&&$.cancel()},ze}}}}function vy(n,l){return n.getNextPageParam==null?void 0:n.getNextPageParam(l[l.length-1],l)}function aS(n,l){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(l[0],l)}var lS=function(){function n(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new W2,this.mutationCache=r.mutationCache||new Lv,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var l=n.prototype;return l.mount=function(){var s=this;this.unsubscribeFocus=rr.subscribe(function(){rr.isFocused()&&Fo.isOnline()&&(s.mutationCache.onFocus(),s.queryCache.onFocus())}),this.unsubscribeOnline=Fo.subscribe(function(){rr.isFocused()&&Fo.isOnline()&&(s.mutationCache.onOnline(),s.queryCache.onOnline())})},l.unmount=function(){var s,o;(s=this.unsubscribeFocus)==null||s.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},l.isFetching=function(s,o){var u=fl(s,o),d=u[0];return d.fetching=!0,this.queryCache.findAll(d).length},l.isMutating=function(s){return this.mutationCache.findAll(we({},s,{fetching:!0})).length},l.getQueryData=function(s,o){var u;return(u=this.queryCache.find(s,o))==null?void 0:u.state.data},l.getQueriesData=function(s){return this.getQueryCache().findAll(s).map(function(o){var u=o.queryKey,d=o.state,m=d.data;return[u,m]})},l.setQueryData=function(s,o,u){var d=Go(s),m=this.defaultQueryOptions(d);return this.queryCache.build(this,m).setData(o,u)},l.setQueriesData=function(s,o,u){var d=this;return Pe.batch(function(){return d.getQueryCache().findAll(s).map(function(m){var y=m.queryKey;return[y,d.setQueryData(y,o,u)]})})},l.getQueryState=function(s,o){var u;return(u=this.queryCache.find(s,o))==null?void 0:u.state},l.removeQueries=function(s,o){var u=fl(s,o),d=u[0],m=this.queryCache;Pe.batch(function(){m.findAll(d).forEach(function(y){m.remove(y)})})},l.resetQueries=function(s,o,u){var d=this,m=fl(s,o,u),y=m[0],p=m[1],g=this.queryCache,S=we({},y,{active:!0});return Pe.batch(function(){return g.findAll(y).forEach(function(E){E.reset()}),d.refetchQueries(S,p)})},l.cancelQueries=function(s,o,u){var d=this,m=fl(s,o,u),y=m[0],p=m[1],g=p===void 0?{}:p;typeof g.revert>"u"&&(g.revert=!0);var S=Pe.batch(function(){return d.queryCache.findAll(y).map(function(E){return E.cancel(g)})});return Promise.all(S).then(_t).catch(_t)},l.invalidateQueries=function(s,o,u){var d,m,y,p=this,g=fl(s,o,u),S=g[0],E=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 Pe.batch(function(){return p.queryCache.findAll(S).forEach(function(w){w.invalidate()}),p.refetchQueries(C,E)})},l.refetchQueries=function(s,o,u){var d=this,m=fl(s,o,u),y=m[0],p=m[1],g=Pe.batch(function(){return d.queryCache.findAll(y).map(function(E){return E.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(s,o,u){var d=Go(s,o,u),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(s,o,u){return this.fetchQuery(s,o,u).then(_t).catch(_t)},l.fetchInfiniteQuery=function(s,o,u){var d=Go(s,o,u);return d.behavior=nS(),this.fetchQuery(d)},l.prefetchInfiniteQuery=function(s,o,u){return this.fetchInfiniteQuery(s,o,u).then(_t).catch(_t)},l.cancelMutations=function(){var s=this,o=Pe.batch(function(){return s.mutationCache.getAll().map(function(u){return u.cancel()})});return Promise.all(o).then(_t).catch(_t)},l.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},l.executeMutation=function(s){return this.mutationCache.build(this,s).execute()},l.getQueryCache=function(){return this.queryCache},l.getMutationCache=function(){return this.mutationCache},l.getDefaultOptions=function(){return this.defaultOptions},l.setDefaultOptions=function(s){this.defaultOptions=s},l.setQueryDefaults=function(s,o){var u=this.queryDefaults.find(function(d){return Ql(s)===Ql(d.queryKey)});u?u.defaultOptions=o:this.queryDefaults.push({queryKey:s,defaultOptions:o})},l.getQueryDefaults=function(s){var o;return s?(o=this.queryDefaults.find(function(u){return au(s,u.queryKey)}))==null?void 0:o.defaultOptions:void 0},l.setMutationDefaults=function(s,o){var u=this.mutationDefaults.find(function(d){return Ql(s)===Ql(d.mutationKey)});u?u.defaultOptions=o:this.mutationDefaults.push({mutationKey:s,defaultOptions:o})},l.getMutationDefaults=function(s){var o;return s?(o=this.mutationDefaults.find(function(u){return au(s,u.mutationKey)}))==null?void 0:o.defaultOptions:void 0},l.defaultQueryOptions=function(s){if(s!=null&&s._defaulted)return s;var o=we({},this.defaultOptions.queries,this.getQueryDefaults(s==null?void 0:s.queryKey),s,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Vd(o.queryKey,o)),o},l.defaultQueryObserverOptions=function(s){return this.defaultQueryOptions(s)},l.defaultMutationOptions=function(s){return s!=null&&s._defaulted?s:we({},this.defaultOptions.mutations,this.getMutationDefaults(s==null?void 0:s.mutationKey),s,{_defaulted:!0})},l.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},n}(),sS=function(n){Zs(l,n);function l(s,o){var u;return u=n.call(this)||this,u.client=s,u.options=o,u.trackedProps=[],u.selectError=null,u.bindMethods(),u.setOptions(o),u}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),gy(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return vd(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return vd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,u){var d=this.options,m=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),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&&by(this.currentQuery,m,this.options,d)&&this.executeFetch(),this.updateResult(u),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(o){var u=this.client.defaultQueryObserverOptions(o),d=this.client.getQueryCache().build(this.client,u);return this.createResult(d,u)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,u){var d=this,m={},y=function(g){d.trackedProps.includes(g)||d.trackedProps.push(g)};return Object.keys(o).forEach(function(p){Object.defineProperty(m,p,{configurable:!1,enumerable:!0,get:function(){return y(p),o[p]}})}),(u.useErrorBoundary||u.suspense)&&y("error"),m},r.getNextResult=function(o){var u=this;return new Promise(function(d,m){var y=u.subscribe(function(p){p.isFetching||(y(),p.isError&&(o!=null&&o.throwOnError)?m(p.error):d(p))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(we({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var u=this,d=this.client.defaultQueryObserverOptions(o),m=this.client.getQueryCache().build(this.client,d);return m.fetch().then(function(){return u.createResult(m,d)})},r.fetch=function(o){var u=this;return this.executeFetch(o).then(function(){return u.updateResult(),u.currentResult})},r.executeFetch=function(o){this.updateQuery();var u=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(u=u.catch(_t)),u},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(tu||this.currentResult.isStale||!pd(this.options.staleTime))){var u=Av(this.currentResult.dataUpdatedAt,this.options.staleTime),d=u+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},d)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var u=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(tu||this.options.enabled===!1||!pd(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(u.options.refetchIntervalInBackground||rr.isFocused())&&u.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(o,u){var d=this.currentQuery,m=this.options,y=this.currentResult,p=this.currentResultState,g=this.currentResultOptions,S=o!==d,E=S?o.state:this.currentQueryInitialState,C=S?this.currentResult:this.previousQueryResult,w=o.state,A=w.dataUpdatedAt,N=w.error,_=w.errorUpdatedAt,O=w.isFetching,D=w.status,Y=!1,H=!1,$;if(u.optimisticResults){var I=this.hasListeners(),W=!I&&gy(o,u),ie=I&&by(o,d,u,m);(W||ie)&&(O=!0,A||(D="loading"))}if(u.keepPreviousData&&!w.dataUpdateCount&&(C!=null&&C.isSuccess)&&D!=="error")$=C.data,A=C.dataUpdatedAt,D=C.status,Y=!0;else if(u.select&&typeof w.data<"u")if(y&&w.data===(p==null?void 0:p.data)&&u.select===this.selectFn)$=this.selectResult;else try{this.selectFn=u.select,$=u.select(w.data),u.structuralSharing!==!1&&($=lu(y==null?void 0:y.data,$)),this.selectResult=$,this.selectError=null}catch(Ee){iu().error(Ee),this.selectError=Ee}else $=w.data;if(typeof u.placeholderData<"u"&&typeof $>"u"&&(D==="loading"||D==="idle")){var pe;if(y!=null&&y.isPlaceholderData&&u.placeholderData===(g==null?void 0:g.placeholderData))pe=y.data;else if(pe=typeof u.placeholderData=="function"?u.placeholderData():u.placeholderData,u.select&&typeof pe<"u")try{pe=u.select(pe),u.structuralSharing!==!1&&(pe=lu(y==null?void 0:y.data,pe)),this.selectError=null}catch(Ee){iu().error(Ee),this.selectError=Ee}typeof pe<"u"&&(D="success",$=pe,H=!0)}this.selectError&&(N=this.selectError,$=this.selectResult,_=Date.now(),D="error");var ze={status:D,isLoading:D==="loading",isSuccess:D==="success",isError:D==="error",isIdle:D==="idle",data:$,dataUpdatedAt:A,error:N,errorUpdatedAt:_,failureCount:w.fetchFailureCount,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>E.dataUpdateCount||w.errorUpdateCount>E.errorUpdateCount,isFetching:O,isRefetching:O&&D!=="loading",isLoadingError:D==="error"&&w.dataUpdatedAt===0,isPlaceholderData:H,isPreviousData:Y,isRefetchError:D==="error"&&w.dataUpdatedAt!==0,isStale:Kd(o,u),refetch:this.refetch,remove:this.remove};return ze},r.shouldNotifyListeners=function(o,u){if(!u)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(o).some(function(g){var S=g,E=o[S]!==u[S],C=p==null?void 0:p.some(function(A){return A===g}),w=y==null?void 0:y.some(function(A){return A===g});return E&&!w&&(!p||C)})},r.updateResult=function(o){var u=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!G2(this.currentResult,u)){var d={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,u)&&(d.listeners=!0),this.notify(we({},d,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var u=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(u==null||u.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var u={};o.type==="success"?u.onSuccess=!0:o.type==="error"&&!$o(o.error)&&(u.onError=!0),this.updateResult(u),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var u=this;Pe.batch(function(){o.onSuccess?(u.options.onSuccess==null||u.options.onSuccess(u.currentResult.data),u.options.onSettled==null||u.options.onSettled(u.currentResult.data,null)):o.onError&&(u.options.onError==null||u.options.onError(u.currentResult.error),u.options.onSettled==null||u.options.onSettled(void 0,u.currentResult.error)),o.listeners&&u.listeners.forEach(function(d){d(u.currentResult)}),o.cache&&u.client.getQueryCache().notify({query:u.currentQuery,type:"observerResultsUpdated"})})},l}(Js);function iS(n,l){return l.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&l.retryOnMount===!1)}function gy(n,l){return iS(n,l)||n.state.dataUpdatedAt>0&&vd(n,l,l.refetchOnMount)}function vd(n,l,r){if(l.enabled!==!1){var s=typeof r=="function"?r(n):r;return s==="always"||s!==!1&&Kd(n,l)}return!1}function by(n,l,r,s){return r.enabled!==!1&&(n!==l||s.enabled===!1)&&(!r.suspense||n.state.status!=="error")&&Kd(n,r)}function Kd(n,l){return n.isStaleByTime(l.staleTime)}var rS=function(n){Zs(l,n);function l(s,o){var u;return u=n.call(this)||this,u.client=s,u.setOptions(o),u.bindMethods(),u.updateResult(),u}var r=l.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var u={listeners:!0};o.type==="success"?u.onSuccess=!0:o.type==="error"&&(u.onError=!0),this.notify(u)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,u){return this.mutateOptions=u,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,we({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:Uv(),u=we({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=u},r.notify=function(o){var u=this;Pe.batch(function(){u.mutateOptions&&(o.onSuccess?(u.mutateOptions.onSuccess==null||u.mutateOptions.onSuccess(u.currentResult.data,u.currentResult.variables,u.currentResult.context),u.mutateOptions.onSettled==null||u.mutateOptions.onSettled(u.currentResult.data,null,u.currentResult.variables,u.currentResult.context)):o.onError&&(u.mutateOptions.onError==null||u.mutateOptions.onError(u.currentResult.error,u.currentResult.variables,u.currentResult.context),u.mutateOptions.onSettled==null||u.mutateOptions.onSettled(void 0,u.currentResult.error,u.currentResult.variables,u.currentResult.context))),o.listeners&&u.listeners.forEach(function(d){d(u.currentResult)})})},l}(Js),oS=k2.unstable_batchedUpdates;Pe.setBatchNotifyFunction(oS);var uS=console;P2(uS);var xy=Ge.createContext(void 0),qv=Ge.createContext(!1);function zv(n){return n&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=xy),window.ReactQueryClientContext):xy}var Bv=function(){var l=Ge.useContext(zv(Ge.useContext(qv)));if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},cS=function(l){var r=l.client,s=l.contextSharing,o=s===void 0?!1:s,u=l.children;Ge.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var d=zv(o);return Ge.createElement(qv.Provider,{value:o},Ge.createElement(d.Provider,{value:r},u))};function fS(){var n=!1;return{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}}var dS=Ge.createContext(fS()),hS=function(){return Ge.useContext(dS)};function Hv(n,l,r){return typeof l=="function"?l.apply(void 0,r):typeof l=="boolean"?l:!!n}function fn(n,l,r){var s=Ge.useRef(!1),o=Ge.useState(0),u=o[1],d=Y2(n,l,r),m=Bv(),y=Ge.useRef();y.current?y.current.setOptions(d):y.current=new rS(m,d);var p=y.current.getCurrentResult();Ge.useEffect(function(){s.current=!0;var S=y.current.subscribe(Pe.batchCalls(function(){s.current&&u(function(E){return E+1})}));return function(){s.current=!1,S()}},[]);var g=Ge.useCallback(function(S,E){y.current.mutate(S,E).catch(_t)},[]);if(p.error&&Hv(void 0,y.current.options.useErrorBoundary,[p.error]))throw p.error;return we({},p,{mutate:g,mutateAsync:p.mutate})}function mS(n,l){var r=Ge.useRef(!1),s=Ge.useState(0),o=s[1],u=Bv(),d=hS(),m=u.defaultQueryObserverOptions(n);m.optimisticResults=!0,m.onError&&(m.onError=Pe.batchCalls(m.onError)),m.onSuccess&&(m.onSuccess=Pe.batchCalls(m.onSuccess)),m.onSettled&&(m.onSettled=Pe.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=Ge.useState(function(){return new l(u,m)}),p=y[0],g=p.getOptimisticResult(m);if(Ge.useEffect(function(){r.current=!0,d.clearReset();var S=p.subscribe(Pe.batchCalls(function(){r.current&&o(function(E){return E+1})}));return p.updateResult(),function(){r.current=!1,S()}},[d,p]),Ge.useEffect(function(){p.setOptions(m,{listeners:!1})},[m,p]),m.suspense&&g.isLoading)throw p.fetchOptimistic(m).then(function(S){var E=S.data;m.onSuccess==null||m.onSuccess(E),m.onSettled==null||m.onSettled(E,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&&Hv(m.suspense,m.useErrorBoundary,[g.error,p.getCurrentQuery()]))throw g.error;return m.notifyOnChangeProps==="tracked"&&(g=p.trackResult(g,m)),g}function dn(n,l,r){var s=Go(n,l,r);return mS(s,sS)}function kv(n,l){return function(){return n.apply(l,arguments)}}const{toString:pS}=Object.prototype,{getPrototypeOf:Gd}=Object,{iterator:bu,toStringTag:Qv}=Symbol,xu=(n=>l=>{const r=pS.call(l);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hn=n=>(n=n.toLowerCase(),l=>xu(l)===n),Su=n=>l=>typeof l===n,{isArray:Ps}=Array,cr=Su("undefined");function yS(n){return n!==null&&!cr(n)&&n.constructor!==null&&!cr(n.constructor)&&Xt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Yv=Hn("ArrayBuffer");function vS(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&Yv(n.buffer),l}const gS=Su("string"),Xt=Su("function"),Vv=Su("number"),wu=n=>n!==null&&typeof n=="object",bS=n=>n===!0||n===!1,Xo=n=>{if(xu(n)!=="object")return!1;const l=Gd(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Qv in n)&&!(bu in n)},xS=Hn("Date"),SS=Hn("File"),wS=Hn("Blob"),ES=Hn("FileList"),CS=n=>wu(n)&&Xt(n.pipe),_S=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||Xt(n.append)&&((l=xu(n))==="formdata"||l==="object"&&Xt(n.toString)&&n.toString()==="[object FormData]"))},NS=Hn("URLSearchParams"),[jS,AS,TS,RS]=["ReadableStream","Request","Response","Headers"].map(Hn),OS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yr(n,l,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let s,o;if(typeof n!="object"&&(n=[n]),Ps(n))for(s=0,o=n.length;s<o;s++)l.call(null,n[s],s,n);else{const u=r?Object.getOwnPropertyNames(n):Object.keys(n),d=u.length;let m;for(s=0;s<d;s++)m=u[s],l.call(null,n[m],m,n)}}function Kv(n,l){l=l.toLowerCase();const r=Object.keys(n);let s=r.length,o;for(;s-- >0;)if(o=r[s],l===o.toLowerCase())return o;return null}const Yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gv=n=>!cr(n)&&n!==Yl;function gd(){const{caseless:n}=Gv(this)&&this||{},l={},r=(s,o)=>{const u=n&&Kv(l,o)||o;Xo(l[u])&&Xo(s)?l[u]=gd(l[u],s):Xo(s)?l[u]=gd({},s):Ps(s)?l[u]=s.slice():l[u]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&yr(arguments[s],r);return l}const DS=(n,l,r,{allOwnKeys:s}={})=>(yr(l,(o,u)=>{r&&Xt(o)?n[u]=kv(o,r):n[u]=o},{allOwnKeys:s}),n),MS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),US=(n,l,r,s)=>{n.prototype=Object.create(l.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:l.prototype}),r&&Object.assign(n.prototype,r)},LS=(n,l,r,s)=>{let o,u,d;const m={};if(l=l||{},n==null)return l;do{for(o=Object.getOwnPropertyNames(n),u=o.length;u-- >0;)d=o[u],(!s||s(d,n,l))&&!m[d]&&(l[d]=n[d],m[d]=!0);n=r!==!1&&Gd(n)}while(n&&(!r||r(n,l))&&n!==Object.prototype);return l},qS=(n,l,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=l.length;const s=n.indexOf(l,r);return s!==-1&&s===r},zS=n=>{if(!n)return null;if(Ps(n))return n;let l=n.length;if(!Vv(l))return null;const r=new Array(l);for(;l-- >0;)r[l]=n[l];return r},BS=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Gd(Uint8Array)),HS=(n,l)=>{const s=(n&&n[bu]).call(n);let o;for(;(o=s.next())&&!o.done;){const u=o.value;l.call(n,u[0],u[1])}},kS=(n,l)=>{let r;const s=[];for(;(r=n.exec(l))!==null;)s.push(r);return s},QS=Hn("HTMLFormElement"),YS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,o){return s.toUpperCase()+o}),Sy=(({hasOwnProperty:n})=>(l,r)=>n.call(l,r))(Object.prototype),VS=Hn("RegExp"),Fv=(n,l)=>{const r=Object.getOwnPropertyDescriptors(n),s={};yr(r,(o,u)=>{let d;(d=l(o,u,n))!==!1&&(s[u]=d||o)}),Object.defineProperties(n,s)},KS=n=>{Fv(n,(l,r)=>{if(Xt(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=n[r];if(Xt(s)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},GS=(n,l)=>{const r={},s=o=>{o.forEach(u=>{r[u]=!0})};return Ps(n)?s(n):s(String(n).split(l)),r},FS=()=>{},$S=(n,l)=>n!=null&&Number.isFinite(n=+n)?n:l;function XS(n){return!!(n&&Xt(n.append)&&n[Qv]==="FormData"&&n[bu])}const ZS=n=>{const l=new Array(10),r=(s,o)=>{if(wu(s)){if(l.indexOf(s)>=0)return;if(!("toJSON"in s)){l[o]=s;const u=Ps(s)?[]:{};return yr(s,(d,m)=>{const y=r(d,o+1);!cr(y)&&(u[m]=y)}),l[o]=void 0,u}}return s};return r(n,0)},JS=Hn("AsyncFunction"),PS=n=>n&&(wu(n)||Xt(n))&&Xt(n.then)&&Xt(n.catch),$v=((n,l)=>n?setImmediate:l?((r,s)=>(Yl.addEventListener("message",({source:o,data:u})=>{o===Yl&&u===r&&s.length&&s.shift()()},!1),o=>{s.push(o),Yl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xt(Yl.postMessage)),IS=typeof queueMicrotask<"u"?queueMicrotask.bind(Yl):typeof process<"u"&&process.nextTick||$v,WS=n=>n!=null&&Xt(n[bu]),k={isArray:Ps,isArrayBuffer:Yv,isBuffer:yS,isFormData:_S,isArrayBufferView:vS,isString:gS,isNumber:Vv,isBoolean:bS,isObject:wu,isPlainObject:Xo,isReadableStream:jS,isRequest:AS,isResponse:TS,isHeaders:RS,isUndefined:cr,isDate:xS,isFile:SS,isBlob:wS,isRegExp:VS,isFunction:Xt,isStream:CS,isURLSearchParams:NS,isTypedArray:BS,isFileList:ES,forEach:yr,merge:gd,extend:DS,trim:OS,stripBOM:MS,inherits:US,toFlatObject:LS,kindOf:xu,kindOfTest:Hn,endsWith:qS,toArray:zS,forEachEntry:HS,matchAll:kS,isHTMLForm:QS,hasOwnProperty:Sy,hasOwnProp:Sy,reduceDescriptors:Fv,freezeMethods:KS,toObjectSet:GS,toCamelCase:YS,noop:FS,toFiniteNumber:$S,findKey:Kv,global:Yl,isContextDefined:Gv,isSpecCompliantForm:XS,toJSONObject:ZS,isAsyncFn:JS,isThenable:PS,setImmediate:$v,asap:IS,isIterable:WS};function ve(n,l,r,s,o){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),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}k.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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Xv=ve.prototype,Zv={};["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=>{Zv[n]={value:n}});Object.defineProperties(ve,Zv);Object.defineProperty(Xv,"isAxiosError",{value:!0});ve.from=(n,l,r,s,o,u)=>{const d=Object.create(Xv);return k.toFlatObject(n,d,function(y){return y!==Error.prototype},m=>m!=="isAxiosError"),ve.call(d,n.message,l,r,s,o),d.cause=n,d.name=n.name,u&&Object.assign(d,u),d};const ew=null;function bd(n){return k.isPlainObject(n)||k.isArray(n)}function Jv(n){return k.endsWith(n,"[]")?n.slice(0,-2):n}function wy(n,l,r){return n?n.concat(l).map(function(o,u){return o=Jv(o),!r&&u?"["+o+"]":o}).join(r?".":""):l}function tw(n){return k.isArray(n)&&!n.some(bd)}const nw=k.toFlatObject(k,{},null,function(l){return/^is[A-Z]/.test(l)});function Eu(n,l,r){if(!k.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,r=k.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,N){return!k.isUndefined(N[A])});const s=r.metaTokens,o=r.visitor||g,u=r.dots,d=r.indexes,y=(r.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(l);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function p(w){if(w===null)return"";if(k.isDate(w))return w.toISOString();if(!y&&k.isBlob(w))throw new ve("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(w)||k.isTypedArray(w)?y&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function g(w,A,N){let _=w;if(w&&!N&&typeof w=="object"){if(k.endsWith(A,"{}"))A=s?A:A.slice(0,-2),w=JSON.stringify(w);else if(k.isArray(w)&&tw(w)||(k.isFileList(w)||k.endsWith(A,"[]"))&&(_=k.toArray(w)))return A=Jv(A),_.forEach(function(D,Y){!(k.isUndefined(D)||D===null)&&l.append(d===!0?wy([A],Y,u):d===null?A:A+"[]",p(D))}),!1}return bd(w)?!0:(l.append(wy(N,A,u),p(w)),!1)}const S=[],E=Object.assign(nw,{defaultVisitor:g,convertValue:p,isVisitable:bd});function C(w,A){if(!k.isUndefined(w)){if(S.indexOf(w)!==-1)throw Error("Circular reference detected in "+A.join("."));S.push(w),k.forEach(w,function(_,O){(!(k.isUndefined(_)||_===null)&&o.call(l,_,k.isString(O)?O.trim():O,A,E))===!0&&C(_,A?A.concat(O):[O])}),S.pop()}}if(!k.isObject(n))throw new TypeError("data must be an object");return C(n),l}function Ey(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return l[s]})}function Fd(n,l){this._pairs=[],n&&Eu(n,this,l)}const Pv=Fd.prototype;Pv.append=function(l,r){this._pairs.push([l,r])};Pv.toString=function(l){const r=l?function(s){return l.call(this,s,Ey)}:Ey;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function aw(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Iv(n,l,r){if(!l)return n;const s=r&&r.encode||aw;k.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let u;if(o?u=o(l,r):u=k.isURLSearchParams(l)?l.toString():new Fd(l,r).toString(s),u){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+u}return n}class Cy{constructor(){this.handlers=[]}use(l,r,s){return this.handlers.push({fulfilled:l,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){k.forEach(this.handlers,function(s){s!==null&&l(s)})}}const Wv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lw=typeof URLSearchParams<"u"?URLSearchParams:Fd,sw=typeof FormData<"u"?FormData:null,iw=typeof Blob<"u"?Blob:null,rw={isBrowser:!0,classes:{URLSearchParams:lw,FormData:sw,Blob:iw},protocols:["http","https","file","blob","url","data"]},$d=typeof window<"u"&&typeof document<"u",xd=typeof navigator=="object"&&navigator||void 0,ow=$d&&(!xd||["ReactNative","NativeScript","NS"].indexOf(xd.product)<0),uw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cw=$d&&window.location.href||"http://localhost",fw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$d,hasStandardBrowserEnv:ow,hasStandardBrowserWebWorkerEnv:uw,navigator:xd,origin:cw},Symbol.toStringTag,{value:"Module"})),Ut={...fw,...rw};function dw(n,l){return Eu(n,new Ut.classes.URLSearchParams,Object.assign({visitor:function(r,s,o,u){return Ut.isNode&&k.isBuffer(r)?(this.append(s,r.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},l))}function hw(n){return k.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function mw(n){const l={},r=Object.keys(n);let s;const o=r.length;let u;for(s=0;s<o;s++)u=r[s],l[u]=n[u];return l}function e1(n){function l(r,s,o,u){let d=r[u++];if(d==="__proto__")return!0;const m=Number.isFinite(+d),y=u>=r.length;return d=!d&&k.isArray(o)?o.length:d,y?(k.hasOwnProp(o,d)?o[d]=[o[d],s]:o[d]=s,!m):((!o[d]||!k.isObject(o[d]))&&(o[d]=[]),l(r,s,o[d],u)&&k.isArray(o[d])&&(o[d]=mw(o[d])),!m)}if(k.isFormData(n)&&k.isFunction(n.entries)){const r={};return k.forEachEntry(n,(s,o)=>{l(hw(s),o,r,0)}),r}return null}function pw(n,l,r){if(k.isString(n))try{return(l||JSON.parse)(n),k.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(n)}const vr={transitional:Wv,adapter:["xhr","http","fetch"],transformRequest:[function(l,r){const s=r.getContentType()||"",o=s.indexOf("application/json")>-1,u=k.isObject(l);if(u&&k.isHTMLForm(l)&&(l=new FormData(l)),k.isFormData(l))return o?JSON.stringify(e1(l)):l;if(k.isArrayBuffer(l)||k.isBuffer(l)||k.isStream(l)||k.isFile(l)||k.isBlob(l)||k.isReadableStream(l))return l;if(k.isArrayBufferView(l))return l.buffer;if(k.isURLSearchParams(l))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let m;if(u){if(s.indexOf("application/x-www-form-urlencoded")>-1)return dw(l,this.formSerializer).toString();if((m=k.isFileList(l))||s.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Eu(m?{"files[]":l}:l,y&&new y,this.formSerializer)}}return u||o?(r.setContentType("application/json",!1),pw(l)):l}],transformResponse:[function(l){const r=this.transitional||vr.transitional,s=r&&r.forcedJSONParsing,o=this.responseType==="json";if(k.isResponse(l)||k.isReadableStream(l))return l;if(l&&k.isString(l)&&(s&&!this.responseType||o)){const d=!(r&&r.silentJSONParsing)&&o;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:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],n=>{vr.headers[n]={}});const yw=k.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"]),vw=n=>{const l={};let r,s,o;return n&&n.split(`
52
+ `).forEach(function(d){o=d.indexOf(":"),r=d.substring(0,o).trim().toLowerCase(),s=d.substring(o+1).trim(),!(!r||l[r]&&yw[r])&&(r==="set-cookie"?l[r]?l[r].push(s):l[r]=[s]:l[r]=l[r]?l[r]+", "+s:s)}),l},_y=Symbol("internals");function ar(n){return n&&String(n).trim().toLowerCase()}function Zo(n){return n===!1||n==null?n:k.isArray(n)?n.map(Zo):String(n)}function gw(n){const l=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(n);)l[s[1]]=s[2];return l}const bw=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function If(n,l,r,s,o){if(k.isFunction(s))return s.call(this,l,r);if(o&&(l=r),!!k.isString(l)){if(k.isString(s))return l.indexOf(s)!==-1;if(k.isRegExp(s))return s.test(l)}}function xw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,r,s)=>r.toUpperCase()+s)}function Sw(n,l){const r=k.toCamelCase(" "+l);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+r,{value:function(o,u,d){return this[s].call(this,l,o,u,d)},configurable:!0})})}let Zt=class{constructor(l){l&&this.set(l)}set(l,r,s){const o=this;function u(m,y,p){const g=ar(y);if(!g)throw new Error("header name must be a non-empty string");const S=k.findKey(o,g);(!S||o[S]===void 0||p===!0||p===void 0&&o[S]!==!1)&&(o[S||y]=Zo(m))}const d=(m,y)=>k.forEach(m,(p,g)=>u(p,g,y));if(k.isPlainObject(l)||l instanceof this.constructor)d(l,r);else if(k.isString(l)&&(l=l.trim())&&!bw(l))d(vw(l),r);else if(k.isObject(l)&&k.isIterable(l)){let m={},y,p;for(const g of l){if(!k.isArray(g))throw TypeError("Object iterator must return a key-value pair");m[p=g[0]]=(y=m[p])?k.isArray(y)?[...y,g[1]]:[y,g[1]]:g[1]}d(m,r)}else l!=null&&u(r,l,s);return this}get(l,r){if(l=ar(l),l){const s=k.findKey(this,l);if(s){const o=this[s];if(!r)return o;if(r===!0)return gw(o);if(k.isFunction(r))return r.call(this,o,s);if(k.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,r){if(l=ar(l),l){const s=k.findKey(this,l);return!!(s&&this[s]!==void 0&&(!r||If(this,this[s],s,r)))}return!1}delete(l,r){const s=this;let o=!1;function u(d){if(d=ar(d),d){const m=k.findKey(s,d);m&&(!r||If(s,s[m],m,r))&&(delete s[m],o=!0)}}return k.isArray(l)?l.forEach(u):u(l),o}clear(l){const r=Object.keys(this);let s=r.length,o=!1;for(;s--;){const u=r[s];(!l||If(this,this[u],u,l,!0))&&(delete this[u],o=!0)}return o}normalize(l){const r=this,s={};return k.forEach(this,(o,u)=>{const d=k.findKey(s,u);if(d){r[d]=Zo(o),delete r[u];return}const m=l?xw(u):String(u).trim();m!==u&&delete r[u],r[m]=Zo(o),s[m]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const r=Object.create(null);return k.forEach(this,(s,o)=>{s!=null&&s!==!1&&(r[o]=l&&k.isArray(s)?s.join(", "):s)}),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 s=new this(l);return r.forEach(o=>s.set(o)),s}static accessor(l){const s=(this[_y]=this[_y]={accessors:{}}).accessors,o=this.prototype;function u(d){const m=ar(d);s[m]||(Sw(o,d),s[m]=!0)}return k.isArray(l)?l.forEach(u):u(l),this}};Zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Zt.prototype,({value:n},l)=>{let r=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(s){this[r]=s}}});k.freezeMethods(Zt);function Wf(n,l){const r=this||vr,s=l||r,o=Zt.from(s.headers);let u=s.data;return k.forEach(n,function(m){u=m.call(r,u,o.normalize(),l?l.status:void 0)}),o.normalize(),u}function t1(n){return!!(n&&n.__CANCEL__)}function Is(n,l,r){ve.call(this,n??"canceled",ve.ERR_CANCELED,l,r),this.name="CanceledError"}k.inherits(Is,ve,{__CANCEL__:!0});function n1(n,l,r){const s=r.config.validateStatus;!r.status||!s||s(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 ww(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function Ew(n,l){n=n||10;const r=new Array(n),s=new Array(n);let o=0,u=0,d;return l=l!==void 0?l:1e3,function(y){const p=Date.now(),g=s[u];d||(d=p),r[o]=y,s[o]=p;let S=u,E=0;for(;S!==o;)E+=r[S++],S=S%n;if(o=(o+1)%n,o===u&&(u=(u+1)%n),p-d<l)return;const C=g&&p-g;return C?Math.round(E*1e3/C):void 0}}function Cw(n,l){let r=0,s=1e3/l,o,u;const d=(p,g=Date.now())=>{r=g,o=null,u&&(clearTimeout(u),u=null),n.apply(null,p)};return[(...p)=>{const g=Date.now(),S=g-r;S>=s?d(p,g):(o=p,u||(u=setTimeout(()=>{u=null,d(o)},s-S)))},()=>o&&d(o)]}const ru=(n,l,r=3)=>{let s=0;const o=Ew(50,250);return Cw(u=>{const d=u.loaded,m=u.lengthComputable?u.total:void 0,y=d-s,p=o(y),g=d<=m;s=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:u,lengthComputable:m!=null,[l?"download":"upload"]:!0};n(S)},r)},Ny=(n,l)=>{const r=n!=null;return[s=>l[0]({lengthComputable:r,total:n,loaded:s}),l[1]]},jy=n=>(...l)=>k.asap(()=>n(...l)),_w=Ut.hasStandardBrowserEnv?((n,l)=>r=>(r=new URL(r,Ut.origin),n.protocol===r.protocol&&n.host===r.host&&(l||n.port===r.port)))(new URL(Ut.origin),Ut.navigator&&/(msie|trident)/i.test(Ut.navigator.userAgent)):()=>!0,Nw=Ut.hasStandardBrowserEnv?{write(n,l,r,s,o,u){const d=[n+"="+encodeURIComponent(l)];k.isNumber(r)&&d.push("expires="+new Date(r).toGMTString()),k.isString(s)&&d.push("path="+s),k.isString(o)&&d.push("domain="+o),u===!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 jw(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Aw(n,l){return l?n.replace(/\/?\/$/,"")+"/"+l.replace(/^\/+/,""):n}function a1(n,l,r){let s=!jw(l);return n&&(s||r==!1)?Aw(n,l):l}const Ay=n=>n instanceof Zt?{...n}:n;function $l(n,l){l=l||{};const r={};function s(p,g,S,E){return k.isPlainObject(p)&&k.isPlainObject(g)?k.merge.call({caseless:E},p,g):k.isPlainObject(g)?k.merge({},g):k.isArray(g)?g.slice():g}function o(p,g,S,E){if(k.isUndefined(g)){if(!k.isUndefined(p))return s(void 0,p,S,E)}else return s(p,g,S,E)}function u(p,g){if(!k.isUndefined(g))return s(void 0,g)}function d(p,g){if(k.isUndefined(g)){if(!k.isUndefined(p))return s(void 0,p)}else return s(void 0,g)}function m(p,g,S){if(S in l)return s(p,g);if(S in n)return s(void 0,p)}const y={url:u,method:u,data:u,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)=>o(Ay(p),Ay(g),S,!0)};return k.forEach(Object.keys(Object.assign({},n,l)),function(g){const S=y[g]||o,E=S(n[g],l[g],g);k.isUndefined(E)&&S!==m||(r[g]=E)}),r}const l1=n=>{const l=$l({},n);let{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:u,headers:d,auth:m}=l;l.headers=d=Zt.from(d),l.url=Iv(a1(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(k.isFormData(r)){if(Ut.hasStandardBrowserEnv||Ut.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(Ut.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(l)),s||s!==!1&&_w(l.url))){const p=o&&u&&Nw.read(u);p&&d.set(o,p)}return l},Tw=typeof XMLHttpRequest<"u",Rw=Tw&&function(n){return new Promise(function(r,s){const o=l1(n);let u=o.data;const d=Zt.from(o.headers).normalize();let{responseType:m,onUploadProgress:y,onDownloadProgress:p}=o,g,S,E,C,w;function A(){C&&C(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let N=new XMLHttpRequest;N.open(o.method.toUpperCase(),o.url,!0),N.timeout=o.timeout;function _(){if(!N)return;const D=Zt.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),H={data:!m||m==="text"||m==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:D,config:n,request:N};n1(function(I){r(I),A()},function(I){s(I),A()},H),N=null}"onloadend"in N?N.onloadend=_:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(_)},N.onabort=function(){N&&(s(new ve("Request aborted",ve.ECONNABORTED,n,N)),N=null)},N.onerror=function(){s(new ve("Network Error",ve.ERR_NETWORK,n,N)),N=null},N.ontimeout=function(){let Y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const H=o.transitional||Wv;o.timeoutErrorMessage&&(Y=o.timeoutErrorMessage),s(new ve(Y,H.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,n,N)),N=null},u===void 0&&d.setContentType(null),"setRequestHeader"in N&&k.forEach(d.toJSON(),function(Y,H){N.setRequestHeader(H,Y)}),k.isUndefined(o.withCredentials)||(N.withCredentials=!!o.withCredentials),m&&m!=="json"&&(N.responseType=o.responseType),p&&([E,w]=ru(p,!0),N.addEventListener("progress",E)),y&&N.upload&&([S,C]=ru(y),N.upload.addEventListener("progress",S),N.upload.addEventListener("loadend",C)),(o.cancelToken||o.signal)&&(g=D=>{N&&(s(!D||D.type?new Is(null,n,N):D),N.abort(),N=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const O=ww(o.url);if(O&&Ut.protocols.indexOf(O)===-1){s(new ve("Unsupported protocol "+O+":",ve.ERR_BAD_REQUEST,n));return}N.send(u||null)})},Ow=(n,l)=>{const{length:r}=n=n?n.filter(Boolean):[];if(l||r){let s=new AbortController,o;const u=function(p){if(!o){o=!0,m();const g=p instanceof Error?p:this.reason;s.abort(g instanceof ve?g:new Is(g instanceof Error?g.message:g))}};let d=l&&setTimeout(()=>{d=null,u(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(u):p.removeEventListener("abort",u)}),n=null)};n.forEach(p=>p.addEventListener("abort",u));const{signal:y}=s;return y.unsubscribe=()=>k.asap(m),y}},Dw=function*(n,l){let r=n.byteLength;if(r<l){yield n;return}let s=0,o;for(;s<r;)o=s+l,yield n.slice(s,o),s=o},Mw=async function*(n,l){for await(const r of Uw(n))yield*Dw(r,l)},Uw=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const l=n.getReader();try{for(;;){const{done:r,value:s}=await l.read();if(r)break;yield s}}finally{await l.cancel()}},Ty=(n,l,r,s)=>{const o=Mw(n,l);let u=0,d,m=y=>{d||(d=!0,s&&s(y))};return new ReadableStream({async pull(y){try{const{done:p,value:g}=await o.next();if(p){m(),y.close();return}let S=g.byteLength;if(r){let E=u+=S;r(E)}y.enqueue(new Uint8Array(g))}catch(p){throw m(p),p}},cancel(y){return m(y),o.return()}},{highWaterMark:2})},Cu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",s1=Cu&&typeof ReadableStream=="function",Lw=Cu&&(typeof TextEncoder=="function"?(n=>l=>n.encode(l))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),i1=(n,...l)=>{try{return!!n(...l)}catch{return!1}},qw=s1&&i1(()=>{let n=!1;const l=new Request(Ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!l}),Ry=64*1024,Sd=s1&&i1(()=>k.isReadableStream(new Response("").body)),ou={stream:Sd&&(n=>n.body)};Cu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!ou[l]&&(ou[l]=k.isFunction(n[l])?r=>r[l]():(r,s)=>{throw new ve(`Response type '${l}' is not supported`,ve.ERR_NOT_SUPPORT,s)})})})(new Response);const zw=async n=>{if(n==null)return 0;if(k.isBlob(n))return n.size;if(k.isSpecCompliantForm(n))return(await new Request(Ut.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(k.isArrayBufferView(n)||k.isArrayBuffer(n))return n.byteLength;if(k.isURLSearchParams(n)&&(n=n+""),k.isString(n))return(await Lw(n)).byteLength},Bw=async(n,l)=>{const r=k.toFiniteNumber(n.getContentLength());return r??zw(l)},Hw=Cu&&(async n=>{let{url:l,method:r,data:s,signal:o,cancelToken:u,timeout:d,onDownloadProgress:m,onUploadProgress:y,responseType:p,headers:g,withCredentials:S="same-origin",fetchOptions:E}=l1(n);p=p?(p+"").toLowerCase():"text";let C=Ow([o,u&&u.toAbortSignal()],d),w;const A=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let N;try{if(y&&qw&&r!=="get"&&r!=="head"&&(N=await Bw(g,s))!==0){let H=new Request(l,{method:"POST",body:s,duplex:"half"}),$;if(k.isFormData(s)&&($=H.headers.get("content-type"))&&g.setContentType($),H.body){const[I,W]=Ny(N,ru(jy(y)));s=Ty(H.body,Ry,I,W)}}k.isString(S)||(S=S?"include":"omit");const _="credentials"in Request.prototype;w=new Request(l,{...E,signal:C,method:r.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:_?S:void 0});let O=await fetch(w);const D=Sd&&(p==="stream"||p==="response");if(Sd&&(m||D&&A)){const H={};["status","statusText","headers"].forEach(ie=>{H[ie]=O[ie]});const $=k.toFiniteNumber(O.headers.get("content-length")),[I,W]=m&&Ny($,ru(jy(m),!0))||[];O=new Response(Ty(O.body,Ry,I,()=>{W&&W(),A&&A()}),H)}p=p||"text";let Y=await ou[k.findKey(ou,p)||"text"](O,n);return!D&&A&&A(),await new Promise((H,$)=>{n1(H,$,{data:Y,headers:Zt.from(O.headers),status:O.status,statusText:O.statusText,config:n,request:w})})}catch(_){throw A&&A(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,n,w),{cause:_.cause||_}):ve.from(_,_&&_.code,n,w)}}),wd={http:ew,xhr:Rw,fetch:Hw};k.forEach(wd,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{value:l})}catch{}Object.defineProperty(n,"adapterName",{value:l})}});const Oy=n=>`- ${n}`,kw=n=>k.isFunction(n)||n===null||n===!1,r1={getAdapter:n=>{n=k.isArray(n)?n:[n];const{length:l}=n;let r,s;const o={};for(let u=0;u<l;u++){r=n[u];let d;if(s=r,!kw(r)&&(s=wd[(d=String(r)).toLowerCase()],s===void 0))throw new ve(`Unknown adapter '${d}'`);if(s)break;o[d||"#"+u]=s}if(!s){const u=Object.entries(o).map(([m,y])=>`adapter ${m} `+(y===!1?"is not supported by the environment":"is not available in the build"));let d=l?u.length>1?`since :
54
+ `+u.map(Oy).join(`
55
+ `):" "+Oy(u[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return s},adapters:wd};function ed(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Is(null,n)}function Dy(n){return ed(n),n.headers=Zt.from(n.headers),n.data=Wf.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),r1.getAdapter(n.adapter||vr.adapter)(n).then(function(s){return ed(n),s.data=Wf.call(n,n.transformResponse,s),s.headers=Zt.from(s.headers),s},function(s){return t1(s)||(ed(n),s&&s.response&&(s.response.data=Wf.call(n,n.transformResponse,s.response),s.response.headers=Zt.from(s.response.headers))),Promise.reject(s)})}const o1="1.9.0",_u={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{_u[n]=function(s){return typeof s===n||"a"+(l<1?"n ":" ")+n}});const My={};_u.transitional=function(l,r,s){function o(u,d){return"[Axios v"+o1+"] Transitional option '"+u+"'"+d+(s?". "+s:"")}return(u,d,m)=>{if(l===!1)throw new ve(o(d," has been removed"+(r?" in "+r:"")),ve.ERR_DEPRECATED);return r&&!My[d]&&(My[d]=!0,console.warn(o(d," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(u,d,m):!0}};_u.spelling=function(l){return(r,s)=>(console.warn(`${s} is likely a misspelling of ${l}`),!0)};function Qw(n,l,r){if(typeof n!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let o=s.length;for(;o-- >0;){const u=s[o],d=l[u];if(d){const m=n[u],y=m===void 0||d(m,u,n);if(y!==!0)throw new ve("option "+u+" must be "+y,ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ve("Unknown option "+u,ve.ERR_BAD_OPTION)}}const Jo={assertOptions:Qw,validators:_u},Wn=Jo.validators;let Kl=class{constructor(l){this.defaults=l||{},this.interceptors={request:new Cy,response:new Cy}}async request(l,r){try{return await this._request(l,r)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const u=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?u&&!String(s.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(s.stack+=`
56
+ `+u):s.stack=u}catch{}}throw s}}_request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=$l(this.defaults,r);const{transitional:s,paramsSerializer:o,headers:u}=r;s!==void 0&&Jo.assertOptions(s,{silentJSONParsing:Wn.transitional(Wn.boolean),forcedJSONParsing:Wn.transitional(Wn.boolean),clarifyTimeoutError:Wn.transitional(Wn.boolean)},!1),o!=null&&(k.isFunction(o)?r.paramsSerializer={serialize:o}:Jo.assertOptions(o,{encode:Wn.function,serialize:Wn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Jo.assertOptions(r,{baseUrl:Wn.spelling("baseURL"),withXsrfToken:Wn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=u&&k.merge(u.common,u[r.method]);u&&k.forEach(["delete","get","head","post","put","patch","common"],w=>{delete u[w]}),r.headers=Zt.concat(d,u);const m=[];let y=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(r)===!1||(y=y&&A.synchronous,m.unshift(A.fulfilled,A.rejected))});const p=[];this.interceptors.response.forEach(function(A){p.push(A.fulfilled,A.rejected)});let g,S=0,E;if(!y){const w=[Dy.bind(this),void 0];for(w.unshift.apply(w,m),w.push.apply(w,p),E=w.length,g=Promise.resolve(r);S<E;)g=g.then(w[S++],w[S++]);return g}E=m.length;let C=r;for(S=0;S<E;){const w=m[S++],A=m[S++];try{C=w(C)}catch(N){A.call(this,N);break}}try{g=Dy.call(this,C)}catch(w){return Promise.reject(w)}for(S=0,E=p.length;S<E;)g=g.then(p[S++],p[S++]);return g}getUri(l){l=$l(this.defaults,l);const r=a1(l.baseURL,l.url,l.allowAbsoluteUrls);return Iv(r,l.params,l.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(l){Kl.prototype[l]=function(r,s){return this.request($l(s||{},{method:l,url:r,data:(s||{}).data}))}});k.forEach(["post","put","patch"],function(l){function r(s){return function(u,d,m){return this.request($l(m||{},{method:l,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:d}))}}Kl.prototype[l]=r(),Kl.prototype[l+"Form"]=r(!0)});let Yw=class u1{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(u){r=u});const s=this;this.promise.then(o=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](o);s._listeners=null}),this.promise.then=o=>{let u;const d=new Promise(m=>{s.subscribe(m),u=m}).then(o);return d.cancel=function(){s.unsubscribe(u)},d},l(function(u,d,m){s.reason||(s.reason=new Is(u,d,m),r(s.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=s=>{l.abort(s)};return this.subscribe(r),l.signal.unsubscribe=()=>this.unsubscribe(r),l.signal}static source(){let l;return{token:new u1(function(o){l=o}),cancel:l}}};function Vw(n){return function(r){return n.apply(null,r)}}function Kw(n){return k.isObject(n)&&n.isAxiosError===!0}const Ed={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(Ed).forEach(([n,l])=>{Ed[l]=n});function c1(n){const l=new Kl(n),r=kv(Kl.prototype.request,l);return k.extend(r,Kl.prototype,l,{allOwnKeys:!0}),k.extend(r,l,null,{allOwnKeys:!0}),r.create=function(o){return c1($l(n,o))},r}const lt=c1(vr);lt.Axios=Kl;lt.CanceledError=Is;lt.CancelToken=Yw;lt.isCancel=t1;lt.VERSION=o1;lt.toFormData=Eu;lt.AxiosError=ve;lt.Cancel=lt.CanceledError;lt.all=function(l){return Promise.all(l)};lt.spread=Vw;lt.isAxiosError=Kw;lt.mergeConfig=$l;lt.AxiosHeaders=Zt;lt.formToJSON=n=>e1(k.isHTMLForm(n)?new FormData(n):n);lt.getAdapter=r1.getAdapter;lt.HttpStatusCode=Ed;lt.default=lt;const{Axios:KN,AxiosError:Gw,CanceledError:GN,isCancel:FN,CancelToken:$N,VERSION:XN,all:ZN,Cancel:JN,isAxiosError:uu,spread:PN,toFormData:IN,AxiosHeaders:WN,HttpStatusCode:ej,formToJSON:tj,getAdapter:nj,mergeConfig:aj}=lt,Cd="__access_token__",Fw=()=>{try{const n=localStorage.getItem(Cd);return n||void 0}catch{return}},zo=n=>{n?localStorage.setItem(Cd,n):localStorage.removeItem(Cd)};let $w={data:""},Xw=n=>typeof window=="object"?((n?n.querySelector("#_goober"):window._goober)||Object.assign((n||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:n||$w,Zw=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jw=/\/\*[^]*?\*\/| +/g,Uy=/\n+/g,dl=(n,l)=>{let r="",s="",o="";for(let u in n){let d=n[u];u[0]=="@"?u[1]=="i"?r=u+" "+d+";":s+=u[1]=="f"?dl(d,u):u+"{"+dl(d,u[1]=="k"?"":l)+"}":typeof d=="object"?s+=dl(d,l?l.replace(/([^,])+/g,m=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,y=>/&/.test(y)?y.replace(/&/g,m):m?m+" "+y:y)):u):d!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=dl.p?dl.p(u,d):u+":"+d+";")}return r+(l&&o?l+"{"+o+"}":o)+s},Ta={},f1=n=>{if(typeof n=="object"){let l="";for(let r in n)l+=r+f1(n[r]);return l}return n},Pw=(n,l,r,s,o)=>{let u=f1(n),d=Ta[u]||(Ta[u]=(y=>{let p=0,g=11;for(;p<y.length;)g=101*g+y.charCodeAt(p++)>>>0;return"go"+g})(u));if(!Ta[d]){let y=u!==n?n:(p=>{let g,S,E=[{}];for(;g=Zw.exec(p.replace(Jw,""));)g[4]?E.shift():g[3]?(S=g[3].replace(Uy," ").trim(),E.unshift(E[0][S]=E[0][S]||{})):E[0][g[1]]=g[2].replace(Uy," ").trim();return E[0]})(n);Ta[d]=dl(o?{["@keyframes "+d]:y}:y,r?"":"."+d)}let m=r&&Ta.g?Ta.g:null;return r&&(Ta.g=Ta[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)})(Ta[d],l,s,m),d},Iw=(n,l,r)=>n.reduce((s,o,u)=>{let d=l[u];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?"":dl(m,""):m===!1?"":m}return s+o+(d??"")},"");function Nu(n){let l=this||{},r=n.call?n(l.p):n;return Pw(r.unshift?r.raw?Iw(r,[].slice.call(arguments,1),l.p):r.reduce((s,o)=>Object.assign(s,o&&o.call?o(l.p):o),{}):r,Xw(l.target),l.g,l.o,l.k)}let d1,_d,Nd;Nu.bind({g:1});let Ma=Nu.bind({k:1});function Ww(n,l,r,s){dl.p=l,d1=n,_d=r,Nd=s}function gl(n,l){let r=this||{};return function(){let s=arguments;function o(u,d){let m=Object.assign({},u),y=m.className||o.className;r.p=Object.assign({theme:_d&&_d()},m),r.o=/ *go\d+/.test(y),m.className=Nu.apply(r,s)+(y?" "+y:"");let p=n;return n[0]&&(p=m.as||n,delete m.as),Nd&&p[0]&&Nd(m),d1(p,m)}return o}}var e3=n=>typeof n=="function",cu=(n,l)=>e3(n)?n(l):n,t3=(()=>{let n=0;return()=>(++n).toString()})(),h1=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let l=matchMedia("(prefers-reduced-motion: reduce)");n=!l||l.matches}return n}})(),n3=20,m1=(n,l)=>{switch(l.type){case 0:return{...n,toasts:[l.toast,...n.toasts].slice(0,n3)};case 1:return{...n,toasts:n.toasts.map(u=>u.id===l.toast.id?{...u,...l.toast}:u)};case 2:let{toast:r}=l;return m1(n,{type:n.toasts.find(u=>u.id===r.id)?1:0,toast:r});case 3:let{toastId:s}=l;return{...n,toasts:n.toasts.map(u=>u.id===s||s===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return l.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(u=>u.id!==l.toastId)};case 5:return{...n,pausedAt:l.time};case 6:let o=l.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+o}))}}},Po=[],Vl={toasts:[],pausedAt:void 0},Jl=n=>{Vl=m1(Vl,n),Po.forEach(l=>{l(Vl)})},a3={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},l3=(n={})=>{let[l,r]=b.useState(Vl),s=b.useRef(Vl);b.useEffect(()=>(s.current!==Vl&&r(Vl),Po.push(r),()=>{let u=Po.indexOf(r);u>-1&&Po.splice(u,1)}),[]);let o=l.toasts.map(u=>{var d,m,y;return{...n,...n[u.type],...u,removeDelay:u.removeDelay||((d=n[u.type])==null?void 0:d.removeDelay)||(n==null?void 0:n.removeDelay),duration:u.duration||((m=n[u.type])==null?void 0:m.duration)||(n==null?void 0:n.duration)||a3[u.type],style:{...n.style,...(y=n[u.type])==null?void 0:y.style,...u.style}}});return{...l,toasts:o}},s3=(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)||t3()}),gr=n=>(l,r)=>{let s=s3(l,n,r);return Jl({type:2,toast:s}),s.id},Qt=(n,l)=>gr("blank")(n,l);Qt.error=gr("error");Qt.success=gr("success");Qt.loading=gr("loading");Qt.custom=gr("custom");Qt.dismiss=n=>{Jl({type:3,toastId:n})};Qt.remove=n=>Jl({type:4,toastId:n});Qt.promise=(n,l,r)=>{let s=Qt.loading(l.loading,{...r,...r==null?void 0:r.loading});return typeof n=="function"&&(n=n()),n.then(o=>{let u=l.success?cu(l.success,o):void 0;return u?Qt.success(u,{id:s,...r,...r==null?void 0:r.success}):Qt.dismiss(s),o}).catch(o=>{let u=l.error?cu(l.error,o):void 0;u?Qt.error(u,{id:s,...r,...r==null?void 0:r.error}):Qt.dismiss(s)}),n};var i3=(n,l)=>{Jl({type:1,toast:{id:n,height:l}})},r3=()=>{Jl({type:5,time:Date.now()})},or=new Map,o3=1e3,u3=(n,l=o3)=>{if(or.has(n))return;let r=setTimeout(()=>{or.delete(n),Jl({type:4,toastId:n})},l);or.set(n,r)},c3=n=>{let{toasts:l,pausedAt:r}=l3(n);b.useEffect(()=>{if(r)return;let u=Date.now(),d=l.map(m=>{if(m.duration===1/0)return;let y=(m.duration||0)+m.pauseDuration-(u-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 s=b.useCallback(()=>{r&&Jl({type:6,time:Date.now()})},[r]),o=b.useCallback((u,d)=>{let{reverseOrder:m=!1,gutter:y=8,defaultPosition:p}=d||{},g=l.filter(C=>(C.position||p)===(u.position||p)&&C.height),S=g.findIndex(C=>C.id===u.id),E=g.filter((C,w)=>w<S&&C.visible).length;return g.filter(C=>C.visible).slice(...m?[E+1]:[0,E]).reduce((C,w)=>C+(w.height||0)+y,0)},[l]);return b.useEffect(()=>{l.forEach(u=>{if(u.dismissed)u3(u.id,u.removeDelay);else{let d=or.get(u.id);d&&(clearTimeout(d),or.delete(u.id))}})},[l]),{toasts:l,handlers:{updateHeight:i3,startPause:r3,endPause:s,calculateOffset:o}}},f3=Ma`
57
+ from {
58
+ transform: scale(0) rotate(45deg);
59
+ opacity: 0;
60
+ }
61
+ to {
62
+ transform: scale(1) rotate(45deg);
63
+ opacity: 1;
64
+ }`,d3=Ma`
65
+ from {
66
+ transform: scale(0);
67
+ opacity: 0;
68
+ }
69
+ to {
70
+ transform: scale(1);
71
+ opacity: 1;
72
+ }`,h3=Ma`
73
+ from {
74
+ transform: scale(0) rotate(90deg);
75
+ opacity: 0;
76
+ }
77
+ to {
78
+ transform: scale(1) rotate(90deg);
79
+ opacity: 1;
80
+ }`,m3=gl("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: ${f3} 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: ${d3} 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: ${h3} 0.15s ease-out forwards;
110
+ animation-delay: 180ms;
111
+ transform: rotate(90deg);
112
+ }
113
+ `,p3=Ma`
114
+ from {
115
+ transform: rotate(0deg);
116
+ }
117
+ to {
118
+ transform: rotate(360deg);
119
+ }
120
+ `,y3=gl("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: ${p3} 1s linear infinite;
129
+ `,v3=Ma`
130
+ from {
131
+ transform: scale(0) rotate(45deg);
132
+ opacity: 0;
133
+ }
134
+ to {
135
+ transform: scale(1) rotate(45deg);
136
+ opacity: 1;
137
+ }`,g3=Ma`
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
+ }`,b3=gl("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: ${v3} 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: ${g3} 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
+ `,x3=gl("div")`
179
+ position: absolute;
180
+ `,S3=gl("div")`
181
+ position: relative;
182
+ display: flex;
183
+ justify-content: center;
184
+ align-items: center;
185
+ min-width: 20px;
186
+ min-height: 20px;
187
+ `,w3=Ma`
188
+ from {
189
+ transform: scale(0.6);
190
+ opacity: 0.4;
191
+ }
192
+ to {
193
+ transform: scale(1);
194
+ opacity: 1;
195
+ }`,E3=gl("div")`
196
+ position: relative;
197
+ transform: scale(0.6);
198
+ opacity: 0.4;
199
+ min-width: 20px;
200
+ animation: ${w3} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
+ forwards;
202
+ `,C3=({toast:n})=>{let{icon:l,type:r,iconTheme:s}=n;return l!==void 0?typeof l=="string"?b.createElement(E3,null,l):l:r==="blank"?null:b.createElement(S3,null,b.createElement(y3,{...s}),r!=="loading"&&b.createElement(x3,null,r==="error"?b.createElement(m3,{...s}):b.createElement(b3,{...s})))},_3=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
+ `,N3=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
+ `,j3="0%{opacity:0;} 100%{opacity:1;}",A3="0%{opacity:1;} 100%{opacity:0;}",T3=gl("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
+ `,R3=gl("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
+ `,O3=(n,l)=>{let r=n.includes("top")?1:-1,[s,o]=h1()?[j3,A3]:[_3(r),N3(r)];return{animation:l?`${Ma(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ma(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},D3=b.memo(({toast:n,position:l,style:r,children:s})=>{let o=n.height?O3(n.position||l||"top-center",n.visible):{opacity:0},u=b.createElement(C3,{toast:n}),d=b.createElement(R3,{...n.ariaProps},cu(n.message,n));return b.createElement(T3,{className:n.className,style:{...o,...r,...n.style}},typeof s=="function"?s({icon:u,message:d}):b.createElement(b.Fragment,null,u,d))});Ww(b.createElement);var M3=({id:n,className:l,style:r,onHeightUpdate:s,children:o})=>{let u=b.useCallback(d=>{if(d){let m=()=>{let y=d.getBoundingClientRect().height;s(n,y)};m(),new MutationObserver(m).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[n,s]);return b.createElement("div",{ref:u,className:l,style:r},o)},U3=(n,l)=>{let r=n.includes("top"),s=r?{top:0}:{bottom:0},o=n.includes("center")?{justifyContent:"center"}:n.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:h1()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${l*(r?1:-1)}px)`,...s,...o}},L3=Nu`
228
+ z-index: 9999;
229
+ > * {
230
+ pointer-events: auto;
231
+ }
232
+ `,Bo=16,q3=({reverseOrder:n,position:l="top-center",toastOptions:r,gutter:s,children:o,containerStyle:u,containerClassName:d})=>{let{toasts:m,handlers:y}=c3(r);return b.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Bo,left:Bo,right:Bo,bottom:Bo,pointerEvents:"none",...u},className:d,onMouseEnter:y.startPause,onMouseLeave:y.endPause},m.map(p=>{let g=p.position||l,S=y.calculateOffset(p,{reverseOrder:n,gutter:s,defaultPosition:l}),E=U3(g,S);return b.createElement(M3,{id:p.id,key:p.id,onHeightUpdate:y.updateHeight,className:p.visible?L3:"",style:E},p.type==="custom"?cu(p.message,p):o?o(p):b.createElement(D3,{toast:p,position:g}))}))},qt=Qt;const yt=new lS({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(n,l)=>{var r;return uu(l)&&((r=l.response)==null?void 0:r.status)===404?!1:n<3}}},mutationCache:new Lv({onError:n=>{var l;uu(n)&&n.status&&n.status>=400&&n.status<500&&(l=n.response)!=null&&l.data.error&&qt.error(n.response.data.error)}})}),z3=async()=>{const{data:n}=await Xd.post("/auth/refresh");return n.data.accessToken},B3=async n=>{const{data:l}=await Xd.post("/auth/login",n);return l.data.accessToken},td=()=>{yt.invalidateQueries({queryKey:["accessToken"]})},br=(()=>{let n=Promise.resolve(Fw()),l=!1;const r=async()=>{await Xd.post("/auth/logout"),zo(void 0),window.location.reload()};return{get:async()=>n.then(d=>(td(),d)),refresh:()=>(l||(l=!0,n=z3().then(d=>(zo(d),d)).catch(()=>{zo(void 0),r()}).finally(()=>{l=!1,td()})),n),login:d=>(l||(l=!0,n=B3(d).then(m=>(zo(m),m)).finally(()=>{l=!1,td()})),n),logout:r}})(),p1=location.hostname.includes("app.dataramen.xyz")?"http://localhost:4466/api":"/api",Ve=lt.create({baseURL:p1,withCredentials:!0});Ve.interceptors.request.use(async n=>{const l=await br.get();return l&&(n.headers.Authorization=`Bearer ${l}`),n});Ve.interceptors.response.use(n=>n,n=>{var l;return uu(n)&&n.status===401&&((l=n==null?void 0:n.response)==null?void 0:l.data.error)!=="Missing auth token"&&br.refresh(),Promise.reject(n)});const Xd=lt.create({baseURL:p1,withCredentials:!0}),La="data-sources",Zd="auth-user",H3=n=>dn({queryKey:["project","datasources",n],queryFn:async()=>{const{data:l}=await Ve.get(`/project/team/${n}/datasources`);return l.data},enabled:!!n}),k3=n=>dn({queryKey:["project","saved-queries",n],queryFn:async()=>{const{data:l}=await Ve.get(`/project/team/${n}/queries`);return l.data},enabled:!!n}),Ws=n=>{const l=["project","datasources"],r=["project","saved-queries"];return Promise.all([yt.invalidateQueries(l),yt.invalidateQueries(r)])},Q3=n=>{const l=["trash","team"];return yt.invalidateQueries(l)},Y3=(n,l)=>dn({queryKey:["project",l.teamId,"tables",n,l.selectedDataSources],queryFn:async()=>{const{data:r}=await Ve.get(`/project/team/${l.teamId}/query`,{params:{size:30,search:n,selectedDataSources:l.selectedDataSources}});return r.data},enabled:!!l.teamId,staleTime:0,keepPreviousData:!0}),V3=(n,l)=>{},K3=()=>{},G3={event:V3,pageView:K3},ju=n=>dn([La,n],async()=>{const{data:l}=await Ve.get("/data-sources/"+n);return l.data},{enabled:!!n}),Jd=n=>dn({queryKey:[La,n.teamId],queryFn:async()=>{const{data:l}=await Ve.get("/data-sources",{params:n});return l.data},enabled:n.teamId!==void 0}),ei=n=>dn({queryKey:[La,n,"inspections"],queryFn:async()=>{const{data:l}=await Ve.get(`/data-sources/${n}/inspections`);return l.data},enabled:!!n}),F3=()=>fn(async n=>{const{data:l}=await Ve.post("/data-sources",n);return l.data},{onSuccess:()=>{yt.invalidateQueries([La]),Ws()},onError:()=>{}}),$3=()=>fn({mutationFn:async({dataSource:n,id:l})=>{const{data:r}=await Ve.put(`/data-sources/${l}`,n);return r.data},onSuccess:()=>{yt.invalidateQueries([La]),Ws()}}),y1=()=>fn({mutationFn:async n=>{await Ve.post(`/data-sources/${n}/inspect`)},onSuccess:()=>{yt.invalidateQueries([La])}}),X3=()=>fn({mutationFn:async n=>{await Ve.delete(`/data-sources/${n}`)},onSuccess:()=>{yt.invalidateQueries([La]),Ws()}}),v1=()=>dn(["accessToken"],br.get),ia=()=>{const{data:n}=v1();return dn({queryKey:[Zd],queryFn:async()=>{const{data:l}=await Ve.get("/users");return l.data},enabled:!!n,retry:(l,r)=>uu(r)&&r.code==="ERR_NETWORK"?!1:l<3})},Z3=()=>fn({mutationFn:async n=>{const{data:l}=await Ve.patch("/users",n);return l.data},onSuccess:async n=>{yt.setQueryData([Zd],n)}}),J3=()=>fn({mutationFn:async n=>(await Ve.post("/users",n),!0),onSuccess:()=>{yt.invalidateQueries({queryKey:["team-users"]})}}),P3="_alert_1he5f_2",I3="_info_1he5f_2",W3="_danger_1he5f_2",e4="_success_1he5f_2",t4="_warning_1he5f_2",n4="_dark_1he5f_2",Ls={alert:P3,info:I3,danger:W3,success:e4,warning:t4,dark:n4};function g1(n){var l,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(l=0;l<o;l++)n[l]&&(r=g1(n[l]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function re(){for(var n,l,r=0,s="",o=arguments.length;r<o;r++)(n=arguments[r])&&(l=g1(n))&&(s&&(s+=" "),s+=l);return s}const Lt=({variant:n,noRounded:l,className:r,children:s,...o})=>h.jsx("div",{className:re(Ls.alert,!l&&"rounded-lg",(n==="info"||!n)&&Ls.info,n==="danger"&&Ls.danger,n==="dark"&&Ls.dark,n==="warning"&&Ls.warning,n==="success"&&Ls.success,r),role:"alert",...o,children:s}),Pt=n=>{const l=new Set;let r=n;const s=m=>(l.add(m),()=>l.delete(m)),o=m=>(l.forEach(y=>y(m)),!0),u=m=>{r=typeof m=="function"?m(r):m,o(r)},d=m=>()=>m?m(r):r;return[m=>b.useSyncExternalStore(s,d(m),d(m)),u,{get:()=>r,subscribe:m=>(m(r),s(m))}]};function a4(n){const l=[];for(const r of n)for(const s of r.columns)s.ref&&(l.push({id:`${r.tableName}->${s.ref.table}.${s.ref.field}`,name:`${r.tableName} in ${s.ref.table}`,where:`${r.tableName}.${s.name} = ${s.ref.table}.${s.ref.field}`,on:{fromTable:s.ref.table,toTable:r.tableName,fromColumn:s.ref.field,toColumn:s.name}}),l.push({id:`${s.ref.table}->${r.tableName}.${s.name}`,name:`${s.ref.table} in ${r.tableName}`,where:`${s.ref.table}.${s.ref.field} = ${r.tableName}.${s.name}`,on:{fromTable:r.tableName,toTable:s.ref.table,fromColumn:s.name,toColumn:s.ref.field}}));return l}const l4=n=>dn({queryKey:["hooks",n],queryFn:async()=>{const l=await yt.fetchQuery({queryKey:[La,n,"inspections"],queryFn:async()=>{const{data:r}=await Ve.get(`/data-sources/${n}/inspections`);return r.data}});return a4(l)},enabled:!!n}),Pd=[{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"}],Id=Pd.reduce((n,l)=>(n[l.value]=l.label,n),{}),Wd=Pd.reduce((n,l)=>(n[l.label]=l.value,n),{}),ti=n=>n.map(l=>({label:Id[l],value:l})),s4=ti(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),i4=ti(["=","<>","LIKE","NOT LIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);ti(["=","<>","IS NULL","IS NOT NULL"]);const r4=ti(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);ti(["IS NULL","IS NOT NULL"]);ti(["IN","NOT IN"]);const b1=n=>n!=="IS NULL"&&n!=="IS NOT NULL",o4=(n,l)=>b1(n)?n==="IN"||n==="NOT IN"?l.split(",").map(r=>({value:r.trim(),isColumn:!1})):[{value:l,isColumn:!1}]:[],u4=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],c4=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],f4=["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"],d4=["date","datetime","timestamp","timestamptz"].reduce((n,l)=>(n[l]=!0,n),{}),ta=n=>n.fn?n.distinct===!0?`${n.fn} distinct ${n.value}`:`${n.fn} ${n.value}`:n.value;var $t=(n=>(n.OWNER="owner",n.ADMIN="admin",n.EDITOR="editor",n.READ_ONLY="read_only",n))($t||{});const Ly={[$t.READ_ONLY]:10,[$t.EDITOR]:20,[$t.ADMIN]:30,[$t.OWNER]:40};function h4(n,l){if(!n||!l)return{};const r=new Set;for(const o of l)o.table&&r.add(o.table);const s={};for(const o of r){const u=n.find(d=>d.tableName===o);if(u){s[o]=[];const d=u.columns.filter(m=>m.isPrimary);for(const m of d)if(l.find(p=>p.table===o&&p.column===m.name))s[o].push(m.name);else{delete s[o];break}}}return s}function m4(n,l,r,s){const{data:o}=l4(l),{data:u}=ei(l);return b.useMemo(()=>{const d=h4(u,n==null?void 0:n.columns);return{name:r,tabId:s,hooks:(()=>{const m=[];if(!o||!n||!n.columns)return m;for(const y of o)(n.tables.includes(y.on.toTable)||n.tables.includes(y.on.fromTable))&&m.push(y);return m})(),availableJoins:(()=>{const m=[];if(!o||!n||!n.columns)return m;for(const y of o)!n.tables.includes(y.on.toTable)&&n.tables.includes(y.on.fromTable)&&m.push(y);return m})(),allColumns:(n==null?void 0:n.allColumns)||[],dataSourceId:l,entities:Object.keys(d),getValue:(m,y)=>{var S;const p=ta(y),g=(S=n==null?void 0:n.columns)==null?void 0:S.findIndex(E=>E.full===p);if(g!=null&&g>-1)return m[g]},getEntityKey:(m,y)=>d[m].reduce((p,g)=>{var E;const S=(E=n==null?void 0:n.columns)==null?void 0:E.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.allColumns.find(p=>p.full===m);if(y)return y.type}}},[n,l,o,u,r])}function p4(n,l){return b.useMemo(()=>({state:n,setState:l}),[n,l])}function fr(n){return{dataSourceId:n.dataSourceId||"",table:n.table||"",filters:(n==null?void 0:n.filters)||[],joins:(n==null?void 0:n.joins)??[],orderBy:(n==null?void 0:n.orderBy)??[],page:(n==null?void 0:n.page)||0,size:(n==null?void 0:n.size)||50,columns:(n==null?void 0:n.columns)??[],groupBy:(n==null?void 0:n.groupBy)??[],aggregations:(n==null?void 0:n.aggregations)??[]}}function y4(n,l,r){try{const s=r.getItem(n);if(s)return JSON.parse(s)}catch(s){console.warn("Failed to restore tabs",s)}return l}const eh=({storage:n=localStorage,localStorageKey:l,initialData:r})=>{const s=Pt(y4(l,r,n));return s[2].subscribe(o=>{n.setItem(l,JSON.stringify(o))}),s},Ua=()=>Date.now().toString(36)+Math.random().toString(36).substring(2),[th,Au,Tu]=eh({initialData:[],localStorageKey:"open-tabs__v1"}),[v4,jd,g4]=eh({initialData:"",localStorageKey:"active-tabs",storage:sessionStorage}),b4=n=>{setTimeout(l=>{const r=document.querySelector(`[data-tab-id="${l}"]`);r&&r.scrollIntoView({behavior:"smooth"})},50,n)},yl=(n,l,r=!1)=>{S4();const s=x4({label:n,type:"explorer",id:Ua(),options:fr(l)});r&&nh(s.id)},qy=n=>{const l=g4.get();if(Au(r=>r.filter(s=>s.id!==n)),l===n){const r=Tu.get();r.length>0?jd(r[0].id):jd("")}},nh=n=>{jd(n),b4(n)},Ru=(n,l)=>{Au(r=>r.map(s=>s.id===n?{...s,label:l}:s))};function x4(n){return Au(l=>l?[...l,n]:[n]),n}const zy=20;function S4(){if(Tu.get().length>=zy){const l=`Maximum ${zy} tabs are allowed to be open at the same time. Please close other tabs to open new ones.`;throw qt.error(l),new Error(l)}}const Ye={home:{path:"/"},workbench:{path:"/workbench"},share:{path:"/share"},login:{path:"/login"}},x1=async n=>yt.fetchQuery({queryKey:["query",n],queryFn:async()=>{const{data:l}=await Ve.get("/queries/"+n);return l.data}}),[w4,nd,E4]=Pt(void 0),C4=async()=>new Promise(n=>{nd({onCancel:()=>{nd(void 0),n(void 0)},onConfirm:(l,r,s)=>{nd(void 0),n({dsId:s,id:r,type:l})}})}),xr=n=>{const l=Jt();return b.useCallback(()=>{E4.get()||C4().then(s=>{(s==null?void 0:s.type)==="table"?(yl(s.id,fr({table:s.id,dataSourceId:s.dsId}),!0),location.pathname!==Ye.workbench.path&&l(Ye.workbench.path)):(s==null?void 0:s.type)==="query"&&x1(s.id).then(o=>{yl(o.name,fr(o.opts),!0),location.pathname!==Ye.workbench.path&&l(Ye.workbench.path)})})},[l,n])},Sr=n=>{const{data:l}=ia();return b.useMemo(()=>l?Ly[l.teamRole]>=Ly[n]:!1,[l,n])},_4="_input_1pqr1_2",N4="_small_1pqr1_2",j4="_content_1pqr1_2",A4="_form_1pqr1_2",T4="_mode-select_1pqr1_2",qe={input:_4,small:N4,content:j4,form:A4,switch:"_switch_1pqr1_2",modeSelect:T4},R4="_modal_6epu7_2",O4="_modal-visible_6epu7_2",D4="_modal-invisible_6epu7_2",M4="_backdrop_6epu7_2",U4="_modal-container_6epu7_2",L4="_close-button_6epu7_2",Hs={modal:R4,modalVisible:O4,modalInvisible:D4,backdrop:M4,modalContainer:U4,closeButton:L4},kn=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"})),It=({children:n,backdropClose:l,isVisible:r,onClose:s,onClosed:o,noPadding:u=!1,portal:d=!1})=>{const[m,y]=b.useState(!1),p=()=>{l&&s()},g=E=>{r||getComputedStyle(E.currentTarget).opacity==="0"&&(y(!1),o&&o())};b.useEffect(()=>{r&&y(!0)},[r]);const S=h.jsxs("div",{onTransitionEnd:g,className:re(Hs.modal,r?Hs.modalVisible:Hs.modalInvisible),children:[h.jsx("div",{onClick:p,className:Hs.backdrop}),h.jsx("div",{className:re(Hs.modalContainer,u!==!0&&"p-4"),children:m&&n})]});return d?jv.createPortal(S,document.body):S},Qn=({onClick:n})=>{const l=b.useRef(n);return l.current=n,b.useEffect(()=>{const r=s=>{var o;s.key==="Escape"&&((o=l.current)==null||o.call(l))};return window.addEventListener("keyup",r),()=>{window.removeEventListener("keyup",r)}},[]),h.jsx("button",{className:Hs.closeButton,onClick:n,children:h.jsx(kn,{width:20,height:20})})},S1=({children:n})=>h.jsx("h2",{className:"text-xl font-semibold",children:n}),wr=n=>{const[l,r]=b.useState(n),[s,o]=b.useState([]),u=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),o(S=>S.includes(p)?S:[...S,p])},[d]),y=b.useCallback(()=>{r(u.current),o([])},[]);return[l,{set:d,change:m,reset:y,touched:s}]},q4=({form:n,change:l})=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:re(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:re(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:re(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:re(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:re(qe.input,qe.small),children:[h.jsx("label",{children:"Database"}),h.jsx("input",{value:n.dbDatabase,onChange:l("dbDatabase"),className:"input"})]})]}),z4=({form:n,change:l})=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:re(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:re(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:re(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:re(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:re(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:re(qe.input,qe.small),children:[h.jsx("label",{children:"Schema"}),h.jsx("input",{value:n.dbSchema,onChange:l("dbSchema"),className:"input"})]})]}),qs=[{label:"PostgreSQL",tag:"postgres"},{label:"MySQL",tag:"mysql"}],B4=({show:n,onClose:l,dbType:r="postgres"})=>{const s=F3(),o=y1(),{data:u}=ia(),[d,{change:m,set:y}]=wr({name:"",dbType:r,dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:"",allowInsert:!1,allowUpdate:!1}),p=async()=>{const w=await s.mutateAsync({...d,dbPort:Number(d.dbPort),teamId:u.teamId,ownerId:u.id});await o.mutateAsync(w.id),l(),G3.event("Create Datasource",{dbType:d.dbType})},g=w=>{y("allowInsert",!w),y("allowUpdate",!w)},S=()=>{l()},E=s.isLoading||o.isLoading,C=!d.allowInsert&&!d.allowUpdate;return h.jsxs(It,{isVisible:n,onClose:S,children:[h.jsx(Qn,{onClick:S}),h.jsxs(Lt,{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"}),"."]}),s.isError&&h.jsx(Lt,{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."})}),s.isLoading&&h.jsx(Lt,{className:"mb-2",variant:"info",children:"Creating connection"}),o.isLoading&&h.jsx(Lt,{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===qs[0].tag,onChange:()=>y("dbType",qs[0].tag)}),h.jsx("span",{children:qs[0].label})]}),h.jsxs("label",{className:"button tertiary",children:[h.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:d.dbType===qs[1].tag,onChange:()=>y("dbType",qs[1].tag)}),h.jsx("span",{children:qs[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:re(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:re(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(q4,{form:d,change:m}),d.dbType==="postgres"&&h.jsx(z4,{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:E,children:"Cancel"}),h.jsx("button",{onClick:p,className:"button primary",disabled:E,children:"Create"})]})]})},H4="_data-source-entry_1efcj_2",k4="_action-title_1efcj_2",Q4="_action-subtext_1efcj_2",na={dataSourceEntry:H4,actionTitle:k4,actionSubtext:Q4},Y4=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"})),V4=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"}})),ah=({size:n,type:l})=>l==="mysql"?h.jsx(Y4,{width:n,height:n}):h.jsx(V4,{width:n,height:n}),[K4,Ys]=Pt(void 0),G4=()=>{const n=xr("Home");return h.jsxs("div",{className:"card-white lg:col-span-2",onClick:n,children:[h.jsxs("h2",{className:na.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"})]})},F4=()=>{const[n,l]=b.useState(void 0),r=Sr($t.EDITOR),s=o=>{r?l(o):qt.error("You don't have permission to connect new data sources in this team")};return h.jsxs("div",{children:[n&&h.jsx(B4,{show:!0,dbType:n,onClose:()=>l(void 0)}),h.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:()=>s("postgres"),children:[h.jsx("p",{className:na.actionTitle,children:"🧙‍♂️ Connection wizard"}),h.jsx("p",{className:na.actionSubtext,children:"Configure new database connection."})]})]})},$4=()=>{const n=Jt(),l=th(),r=xr("Home"),s=()=>{l.length>0?n(Ye.workbench.path):r()};return h.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:s,children:[h.jsxs("h2",{className:na.actionTitle,children:[h.jsx("span",{children:"🛠️ Workbench"}),h.jsx("span",{className:"hotkey",children:"W"})]}),h.jsx("p",{className:na.actionSubtext,children:"Continue your work from where you left."})]})},X4=()=>{const{data:n}=ia(),{data:l}=Jd({teamId:n==null?void 0:n.teamId}),r=s=>{Ys(s)};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(s=>h.jsxs("div",{className:na.dataSourceEntry,onClick:()=>r(s.id),tabIndex:0,children:[h.jsx(ah,{size:32,type:s.dbType}),h.jsx("p",{className:"font-semibold truncate text-gray-800 flex-1",children:s.name}),s.allowInsert?h.jsx("span",{className:"text-red-700",children:"Development"}):h.jsx("span",{className:"text-blue-700",children:"Production"})]},s.id))})]})},Z4=()=>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:na.actionTitle,children:"Documentation"}),h.jsx("p",{className:na.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:na.actionTitle,children:"Github"}),h.jsx("p",{className:na.actionSubtext,children:"Codebase is open sourced on Github"})]})]})]}),J4=()=>{const{data:n}=ia(),{data:l}=Jd({teamId:n==null?void 0:n.teamId}),r=!!l&&l.length>0,s=!!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"}),s&&!r&&h.jsx(Lt,{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(G4,{}),h.jsx(F4,{}),s&&h.jsx($4,{})]}),s&&h.jsx(X4,{}),h.jsx(Z4,{})]})})},[P4,lh]=Pt(void 0),I4=()=>lh(void 0);function Gl(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 W4=n=>{var r;const l=((r=n.value)==null?void 0:r.map(s=>s.value).join(", "))||"";return`${n.column} ${n.operator} ${l}`},hl=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},eE="_container_loi95_2",tE="_header_loi95_2",nE="_fields-container_loi95_2",aE="_field-label_loi95_2",lE="_actions_loi95_2",lr={container:eE,header:tE,fieldsContainer:nE,fieldLabel:aE,actions:lE},sE=(n,l)=>{const{datasourceId:r,opts:{searchAll:s,table:o,filters:u,joins:d,orderBy:m,groupBy:y,columns:p},page:g=0,size:S=20}=n;return dn({queryKey:["explorer",r,o,g,S,u,d,m,y,p,s],queryFn:async()=>{const{data:E}=await Ve.post("/runner/select",n);return E.data},retry:1,enabled:!!o&&!!r,keepPreviousData:!0,staleTime:0,cacheTime:0,onSuccess:l})},iE=(n,l,r)=>dn({queryKey:["entity",n,l,r],queryFn:async()=>{const s=r?r.map(([u,d])=>({id:Ua(),column:u,operator:"=",value:[{value:d}],connector:"AND"})):[],{data:o}=await Ve.post("/runner/select",{datasourceId:n,opts:{table:l,filters:s,joins:[],columns:[],orderBy:[],groupBy:[],aggregations:[]},size:1,page:0,name:`Select ${l}: [${r==null?void 0:r.join()}]`});return o.data},retry:1,enabled:!!l&&!!n&&!!r,staleTime:0,cacheTime:0}),rE=()=>fn({mutationFn:async n=>{const{data:l}=await Ve.post("/runner/update",n);return l.data}}),oE=()=>fn({mutationFn:async n=>{const{data:l}=await Ve.post("/runner/insert",n);return l.data}}),sh=n=>b.useMemo(()=>{var l,r,s;if(n)return n instanceof Gw?(l=n.response)!=null&&l.data.error?n.response.data.error:(s=(r=n.response)==null?void 0:r.data)!=null&&s.message?n.response.data.message:n.message:n instanceof Error?n.message:"Undefined error"},[n]),uE=({data:n})=>{const[l,{change:r,touched:s}]=wr({}),{mutateAsync:o,error:u}=oE(),d=sh(u),{data:m}=ei(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(w=>({...w,label:hl(w.name)}));const C=y.toLowerCase();return g.columns.filter(w=>w.name.toLowerCase().includes(C)).map(w=>({...w,label:hl(w.name)}))},[y,g]),E=()=>{const C=[];for(const w of s)C.push({value:l[w],column:w});o({datasourceId:n.dataSourceId,table:n.table,values:C}).then(I4)};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:lr.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(Lt,{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:lr.container,children:h.jsx("div",{className:lr.fieldsContainer,children:S.map(C=>h.jsxs("label",{className:lr.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:Gl(l[C.name]),onChange:r(C.name),placeholder:C.name})]},C.name))})}),h.jsxs("div",{className:lr.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:!s.length,className:"button primary",onClick:E,children:"Run insert"})]})]})},cE=()=>{const n=P4(),[l,r]=b.useState(void 0);b.useEffect(()=>{n&&r(n)},[n]);const s=()=>lh(void 0);return h.jsxs(It,{isVisible:n!=null,onClose:s,onClosed:()=>r(void 0),noPadding:!0,children:[h.jsx(Qn,{onClick:s}),l&&h.jsx(uE,{data:l})]})},[fE,ih]=Pt(void 0),dE=()=>ih(void 0),hE="_container_1d6uf_2",mE="_header_1d6uf_2",pE="_key_1d6uf_2",yE="_fields-container_1d6uf_2",vE="_field-label_1d6uf_2",gE="_actions_1d6uf_2",zs={container:hE,header:mE,key:pE,fieldsContainer:yE,fieldLabel:vE,actions:gE},bE=({data:n})=>{const[l,{change:r,set:s,reset:o,touched:u}]=wr({}),[d,m]=b.useState(""),{data:y,isLoading:p}=iE(n.dataSourceId,n.tableName,n.entityId),{mutateAsync:g,error:S}=rE(),E=sh(S),C=Sr($t.EDITOR),{data:w}=ei(n.dataSourceId),{data:A}=ju(n.dataSourceId),N=b.useMemo(()=>w==null?void 0:w.find(H=>H.tableName===n.tableName),[n.tableName,w]),_=b.useMemo(()=>{if(!N)return[];if(!d)return N.columns.map($=>({...$,label:hl($.name)}));const H=d.toLowerCase();return N.columns.filter($=>$.name.toLowerCase().includes(H)).map($=>({...$,label:hl($.name)}))},[d,N]);b.useEffect(()=>{const H=y==null?void 0:y.rows[0];if(o(),H&&(y!=null&&y.columns))for(let $=0;$<y.columns.length;$++){const I=y.columns[$];s(I.column,Gl(H[$]))}},[y,s,o]);const O=()=>{const H=[];for(const $ of u)H.push({value:l[$],column:$});g({datasourceId:n.dataSourceId,table:n.tableName,filters:n.entityId.map($=>({id:Ua(),value:[{value:$[1]}],column:$[0],connector:"AND",operator:"="})),values:H}).then(dE)},D=n.entityId.map(([H,$])=>`${H} = ${$}`).join(", ")||"",Y=!(A!=null&&A.allowUpdate)||!C;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:zs.header,children:[h.jsxs("p",{className:"text-lg font-semibold",children:[Y?"View":"Edit"," row in ",h.jsx("span",{className:"underline",children:n==null?void 0:n.tableName})]}),h.jsx("span",{className:zs.key,children:D}),E&&h.jsx(Lt,{variant:"danger",children:h.jsx("p",{children:E})})]}),!Y&&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:zs.container,children:h.jsx("div",{className:zs.fieldsContainer,children:_.map(H=>h.jsxs("label",{className:zs.fieldLabel,children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsxs("p",{children:[H.isPrimary?"🔐":"🏷️"," ",H.label]}),h.jsxs("p",{className:"text-blue-800 text-sm",children:["[",H.name,": ",H.type,"]"]})]}),h.jsx("input",{disabled:H.isPrimary||p||Y,className:"input w-full",value:Gl(l[H.name]),onChange:r(H.name),placeholder:H.name})]},H.name))})}),h.jsxs("div",{className:zs.actions,children:[h.jsxs("label",{children:[h.jsx("span",{className:"mr-2",children:"🔎"}),h.jsx("input",{className:"input bg-white!",value:d,onChange:H=>m(H.target.value),placeholder:"Filter columns"})]}),h.jsx("span",{className:"flex-1"}),!Y&&h.jsx("button",{disabled:!u.length,className:"button primary",onClick:O,children:"Run update"})]})]})},xE=()=>{const n=fE(),[l,r]=b.useState(void 0);b.useEffect(()=>{n&&r(n)},[n]);const s=()=>ih(void 0);return h.jsxs(It,{isVisible:n!=null,onClose:s,onClosed:()=>r(void 0),noPadding:!0,children:[h.jsx(Qn,{onClick:s}),l&&h.jsx(bE,{data:l})]})},[SE,ad]=Pt(void 0),w1=async n=>new Promise(l=>{ad({message:n,onCancel:()=>{l(!1),ad(void 0)},onConfirm:()=>{l(!0),ad(void 0)}})}),wE=({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"})]})]}),EE=()=>{const n=SE(),[l,r]=b.useState(void 0);return b.useEffect(()=>{n&&r(n)},[n]),h.jsx(It,{isVisible:!!n,onClose:()=>n==null?void 0:n.onCancel(),onClosed:()=>r(void 0),children:l&&h.jsx(wE,{confirm:l})})},[CE,Io]=Pt(void 0),Pl=async(n,l,r)=>new Promise(s=>{Io({message:n,defaultValue:l,alert:r,onCancel:()=>{Io(void 0),s(void 0)},onConfirm:o=>{Io(void 0),s(o)}})}),_E="_root_12mtw_1",NE={root:_E},jE=({data:n})=>{const[l,r]=b.useState("");b.useEffect(()=>{n.defaultValue&&r(n.defaultValue)},[n]);const s=u=>{r(u.target.value)},o=u=>{u.key==="Enter"&&(u.preventDefault(),n.onConfirm(l)),u.key==="Escape"&&(u.preventDefault(),n.onCancel())};return h.jsxs("div",{className:NE.root,children:[h.jsx("h2",{className:"text-xl font-semibold",children:n.message}),n.alert&&h.jsx(Lt,{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:s,onKeyDown:o}),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"})]})]})},AE=()=>{const n=CE(),[l,r]=b.useState(void 0);return b.useEffect(()=>{n&&r(n)},[n]),h.jsx(It,{isVisible:!!n,onClose:()=>Io(void 0),onClosed:()=>r(void 0),children:l&&h.jsx(jE,{data:l})})},[TE,RE]=Pt(void 0),E1=n=>{RE(n)},OE="_textarea_1pr3j_2",DE={textarea:OE},ME=()=>{const n=TE(),l=()=>{n&&(navigator.clipboard.writeText(n.toString()),qt.success("Copied!"))},r=()=>E1(void 0);return h.jsxs(It,{isVisible:!!n,onClose:r,backdropClose:!0,children:[h.jsx("textarea",{className:DE.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"})]})]})},UE="_tabs_17da6_2",LE="_mobile_17da6_2",qE="_tab_17da6_2",zE="_active_17da6_2",BE="_close-button_17da6_2",HE="_tooltip-label_17da6_2",kE="_tooltip-info-entry_17da6_2",ea={tabs:UE,mobile:LE,tab:qE,active:zE,closeButton:BE,tooltipLabel:HE,tooltipInfoEntry:kE},Vs=Math.min,Fl=Math.max,fu=Math.round,Ho=Math.floor,aa=n=>({x:n,y:n}),QE={left:"right",right:"left",bottom:"top",top:"bottom"},YE={start:"end",end:"start"};function Ad(n,l,r){return Fl(n,Vs(l,r))}function Er(n,l){return typeof n=="function"?n(l):n}function Xl(n){return n.split("-")[0]}function Cr(n){return n.split("-")[1]}function C1(n){return n==="x"?"y":"x"}function rh(n){return n==="y"?"height":"width"}function ml(n){return["top","bottom"].includes(Xl(n))?"y":"x"}function oh(n){return C1(ml(n))}function VE(n,l,r){r===void 0&&(r=!1);const s=Cr(n),o=oh(n),u=rh(o);let d=o==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(d=du(d)),[d,du(d)]}function KE(n){const l=du(n);return[Td(n),l,Td(l)]}function Td(n){return n.replace(/start|end/g,l=>YE[l])}function GE(n,l,r){const s=["left","right"],o=["right","left"],u=["top","bottom"],d=["bottom","top"];switch(n){case"top":case"bottom":return r?l?o:s:l?s:o;case"left":case"right":return l?u:d;default:return[]}}function FE(n,l,r,s){const o=Cr(n);let u=GE(Xl(n),r==="start",s);return o&&(u=u.map(d=>d+"-"+o),l&&(u=u.concat(u.map(Td)))),u}function du(n){return n.replace(/left|right|bottom|top/g,l=>QE[l])}function $E(n){return{top:0,right:0,bottom:0,left:0,...n}}function _1(n){return typeof n!="number"?$E(n):{top:n,right:n,bottom:n,left:n}}function hu(n){const{x:l,y:r,width:s,height:o}=n;return{width:s,height:o,top:r,left:l,right:l+s,bottom:r+o,x:l,y:r}}function By(n,l,r){let{reference:s,floating:o}=n;const u=ml(l),d=oh(l),m=rh(d),y=Xl(l),p=u==="y",g=s.x+s.width/2-o.width/2,S=s.y+s.height/2-o.height/2,E=s[m]/2-o[m]/2;let C;switch(y){case"top":C={x:g,y:s.y-o.height};break;case"bottom":C={x:g,y:s.y+s.height};break;case"right":C={x:s.x+s.width,y:S};break;case"left":C={x:s.x-o.width,y:S};break;default:C={x:s.x,y:s.y}}switch(Cr(l)){case"start":C[d]-=E*(r&&p?-1:1);break;case"end":C[d]+=E*(r&&p?-1:1);break}return C}const XE=async(n,l,r)=>{const{placement:s="bottom",strategy:o="absolute",middleware:u=[],platform:d}=r,m=u.filter(Boolean),y=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:n,floating:l,strategy:o}),{x:g,y:S}=By(p,s,y),E=s,C={},w=0;for(let A=0;A<m.length;A++){const{name:N,fn:_}=m[A],{x:O,y:D,data:Y,reset:H}=await _({x:g,y:S,initialPlacement:s,placement:E,strategy:o,middlewareData:C,rects:p,platform:d,elements:{reference:n,floating:l}});g=O??g,S=D??S,C={...C,[N]:{...C[N],...Y}},H&&w<=50&&(w++,typeof H=="object"&&(H.placement&&(E=H.placement),H.rects&&(p=H.rects===!0?await d.getElementRects({reference:n,floating:l,strategy:o}):H.rects),{x:g,y:S}=By(p,E,y)),A=-1)}return{x:g,y:S,placement:E,strategy:o,middlewareData:C}};async function N1(n,l){var r;l===void 0&&(l={});const{x:s,y:o,platform:u,rects:d,elements:m,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:S="floating",altBoundary:E=!1,padding:C=0}=Er(l,n),w=_1(C),N=m[E?S==="floating"?"reference":"floating":S],_=hu(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(N)))==null||r?N:N.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:p,rootBoundary:g,strategy:y})),O=S==="floating"?{x:s,y:o,width:d.floating.width,height:d.floating.height}:d.reference,D=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),Y=await(u.isElement==null?void 0:u.isElement(D))?await(u.getScale==null?void 0:u.getScale(D))||{x:1,y:1}:{x:1,y:1},H=hu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:O,offsetParent:D,strategy:y}):O);return{top:(_.top-H.top+w.top)/Y.y,bottom:(H.bottom-_.bottom+w.bottom)/Y.y,left:(_.left-H.left+w.left)/Y.x,right:(H.right-_.right+w.right)/Y.x}}const ZE=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:s,placement:o,rects:u,platform:d,elements:m,middlewareData:y}=l,{element:p,padding:g=0}=Er(n,l)||{};if(p==null)return{};const S=_1(g),E={x:r,y:s},C=oh(o),w=rh(C),A=await d.getDimensions(p),N=C==="y",_=N?"top":"left",O=N?"bottom":"right",D=N?"clientHeight":"clientWidth",Y=u.reference[w]+u.reference[C]-E[C]-u.floating[w],H=E[C]-u.reference[C],$=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let I=$?$[D]:0;(!I||!await(d.isElement==null?void 0:d.isElement($)))&&(I=m.floating[D]||u.floating[w]);const W=Y/2-H/2,ie=I/2-A[w]/2-1,pe=Vs(S[_],ie),ze=Vs(S[O],ie),Ee=pe,Fe=I-A[w]-ze,ye=I/2-A[w]/2+W,xe=Ad(Ee,ye,Fe),B=!y.arrow&&Cr(o)!=null&&ye!==xe&&u.reference[w]/2-(ye<Ee?pe:ze)-A[w]/2<0,F=B?ye<Ee?ye-Ee:ye-Fe:0;return{[C]:E[C]+F,data:{[C]:xe,centerOffset:ye-xe-F,...B&&{alignmentOffset:F}},reset:B}}}),JE=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,s;const{placement:o,middlewareData:u,rects:d,initialPlacement:m,platform:y,elements:p}=l,{mainAxis:g=!0,crossAxis:S=!0,fallbackPlacements:E,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:A=!0,...N}=Er(n,l);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const _=Xl(o),O=ml(m),D=Xl(m)===m,Y=await(y.isRTL==null?void 0:y.isRTL(p.floating)),H=E||(D||!A?[du(m)]:KE(m)),$=w!=="none";!E&&$&&H.push(...FE(m,A,w,Y));const I=[m,...H],W=await N1(l,N),ie=[];let pe=((s=u.flip)==null?void 0:s.overflows)||[];if(g&&ie.push(W[_]),S){const ye=VE(o,d,Y);ie.push(W[ye[0]],W[ye[1]])}if(pe=[...pe,{placement:o,overflows:ie}],!ie.every(ye=>ye<=0)){var ze,Ee;const ye=(((ze=u.flip)==null?void 0:ze.index)||0)+1,xe=I[ye];if(xe&&(!(S==="alignment"?O!==ml(xe):!1)||pe.every(Z=>Z.overflows[0]>0&&ml(Z.placement)===O)))return{data:{index:ye,overflows:pe},reset:{placement:xe}};let B=(Ee=pe.filter(F=>F.overflows[0]<=0).sort((F,Z)=>F.overflows[1]-Z.overflows[1])[0])==null?void 0:Ee.placement;if(!B)switch(C){case"bestFit":{var Fe;const F=(Fe=pe.filter(Z=>{if($){const ue=ml(Z.placement);return ue===O||ue==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ue=>ue>0).reduce((ue,T)=>ue+T,0)]).sort((Z,ue)=>Z[1]-ue[1])[0])==null?void 0:Fe[0];F&&(B=F);break}case"initialPlacement":B=m;break}if(o!==B)return{reset:{placement:B}}}return{}}}};async function PE(n,l){const{placement:r,platform:s,elements:o}=n,u=await(s.isRTL==null?void 0:s.isRTL(o.floating)),d=Xl(r),m=Cr(r),y=ml(r)==="y",p=["left","top"].includes(d)?-1:1,g=u&&y?-1:1,S=Er(l,n);let{mainAxis:E,crossAxis:C,alignmentAxis:w}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return m&&typeof w=="number"&&(C=m==="end"?w*-1:w),y?{x:C*g,y:E*p}:{x:E*p,y:C*g}}const IE=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,s;const{x:o,y:u,placement:d,middlewareData:m}=l,y=await PE(l,n);return d===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:o+y.x,y:u+y.y,data:{...y,placement:d}}}}},WE=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:s,placement:o}=l,{mainAxis:u=!0,crossAxis:d=!1,limiter:m={fn:N=>{let{x:_,y:O}=N;return{x:_,y:O}}},...y}=Er(n,l),p={x:r,y:s},g=await N1(l,y),S=ml(Xl(o)),E=C1(S);let C=p[E],w=p[S];if(u){const N=E==="y"?"top":"left",_=E==="y"?"bottom":"right",O=C+g[N],D=C-g[_];C=Ad(O,C,D)}if(d){const N=S==="y"?"top":"left",_=S==="y"?"bottom":"right",O=w+g[N],D=w-g[_];w=Ad(O,w,D)}const A=m.fn({...l,[E]:C,[S]:w});return{...A,data:{x:A.x-r,y:A.y-s,enabled:{[E]:u,[S]:d}}}}}};function Ou(){return typeof window<"u"}function ni(n){return j1(n)?(n.nodeName||"").toLowerCase():"#document"}function un(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 Ou()?n instanceof Node||n instanceof un(n).Node:!1}function qn(n){return Ou()?n instanceof Element||n instanceof un(n).Element:!1}function la(n){return Ou()?n instanceof HTMLElement||n instanceof un(n).HTMLElement:!1}function Hy(n){return!Ou()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof un(n).ShadowRoot}function _r(n){const{overflow:l,overflowX:r,overflowY:s,display:o}=zn(n);return/auto|scroll|overlay|hidden|clip/.test(l+s+r)&&!["inline","contents"].includes(o)}function eC(n){return["table","td","th"].includes(ni(n))}function Du(n){return[":popover-open",":modal"].some(l=>{try{return n.matches(l)}catch{return!1}})}function uh(n){const l=ch(),r=qn(n)?zn(n):n;return["transform","translate","scale","rotate","perspective"].some(s=>r[s]?r[s]!=="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(s=>(r.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(r.contain||"").includes(s))}function tC(n){let l=vl(n);for(;la(l)&&!Ks(l);){if(uh(l))return l;if(Du(l))return null;l=vl(l)}return null}function ch(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ks(n){return["html","body","#document"].includes(ni(n))}function zn(n){return un(n).getComputedStyle(n)}function Mu(n){return qn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function vl(n){if(ni(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Hy(n)&&n.host||ra(n);return Hy(l)?l.host:l}function A1(n){const l=vl(n);return Ks(l)?n.ownerDocument?n.ownerDocument.body:n.body:la(l)&&_r(l)?l:A1(l)}function dr(n,l,r){var s;l===void 0&&(l=[]),r===void 0&&(r=!0);const o=A1(n),u=o===((s=n.ownerDocument)==null?void 0:s.body),d=un(o);if(u){const m=Rd(d);return l.concat(d,d.visualViewport||[],_r(o)?o:[],m&&r?dr(m):[])}return l.concat(o,dr(o,[],r))}function Rd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function T1(n){const l=zn(n);let r=parseFloat(l.width)||0,s=parseFloat(l.height)||0;const o=la(n),u=o?n.offsetWidth:r,d=o?n.offsetHeight:s,m=fu(r)!==u||fu(s)!==d;return m&&(r=u,s=d),{width:r,height:s,$:m}}function fh(n){return qn(n)?n:n.contextElement}function Qs(n){const l=fh(n);if(!la(l))return aa(1);const r=l.getBoundingClientRect(),{width:s,height:o,$:u}=T1(l);let d=(u?fu(r.width):r.width)/s,m=(u?fu(r.height):r.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const nC=aa(0);function R1(n){const l=un(n);return!ch()||!l.visualViewport?nC:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function aC(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==un(n)?!1:l}function Zl(n,l,r,s){l===void 0&&(l=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),u=fh(n);let d=aa(1);l&&(s?qn(s)&&(d=Qs(s)):d=Qs(n));const m=aC(u,r,s)?R1(u):aa(0);let y=(o.left+m.x)/d.x,p=(o.top+m.y)/d.y,g=o.width/d.x,S=o.height/d.y;if(u){const E=un(u),C=s&&qn(s)?un(s):s;let w=E,A=Rd(w);for(;A&&s&&C!==w;){const N=Qs(A),_=A.getBoundingClientRect(),O=zn(A),D=_.left+(A.clientLeft+parseFloat(O.paddingLeft))*N.x,Y=_.top+(A.clientTop+parseFloat(O.paddingTop))*N.y;y*=N.x,p*=N.y,g*=N.x,S*=N.y,y+=D,p+=Y,w=un(A),A=Rd(w)}}return hu({width:g,height:S,x:y,y:p})}function dh(n,l){const r=Mu(n).scrollLeft;return l?l.left+r:Zl(ra(n)).left+r}function O1(n,l,r){r===void 0&&(r=!1);const s=n.getBoundingClientRect(),o=s.left+l.scrollLeft-(r?0:dh(n,s)),u=s.top+l.scrollTop;return{x:o,y:u}}function lC(n){let{elements:l,rect:r,offsetParent:s,strategy:o}=n;const u=o==="fixed",d=ra(s),m=l?Du(l.floating):!1;if(s===d||m&&u)return r;let y={scrollLeft:0,scrollTop:0},p=aa(1);const g=aa(0),S=la(s);if((S||!S&&!u)&&((ni(s)!=="body"||_r(d))&&(y=Mu(s)),la(s))){const C=Zl(s);p=Qs(s),g.x=C.x+s.clientLeft,g.y=C.y+s.clientTop}const E=d&&!S&&!u?O1(d,y,!0):aa(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-y.scrollLeft*p.x+g.x+E.x,y:r.y*p.y-y.scrollTop*p.y+g.y+E.y}}function sC(n){return Array.from(n.getClientRects())}function iC(n){const l=ra(n),r=Mu(n),s=n.ownerDocument.body,o=Fl(l.scrollWidth,l.clientWidth,s.scrollWidth,s.clientWidth),u=Fl(l.scrollHeight,l.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+dh(n);const m=-r.scrollTop;return zn(s).direction==="rtl"&&(d+=Fl(l.clientWidth,s.clientWidth)-o),{width:o,height:u,x:d,y:m}}function rC(n,l){const r=un(n),s=ra(n),o=r.visualViewport;let u=s.clientWidth,d=s.clientHeight,m=0,y=0;if(o){u=o.width,d=o.height;const p=ch();(!p||p&&l==="fixed")&&(m=o.offsetLeft,y=o.offsetTop)}return{width:u,height:d,x:m,y}}function oC(n,l){const r=Zl(n,!0,l==="fixed"),s=r.top+n.clientTop,o=r.left+n.clientLeft,u=la(n)?Qs(n):aa(1),d=n.clientWidth*u.x,m=n.clientHeight*u.y,y=o*u.x,p=s*u.y;return{width:d,height:m,x:y,y:p}}function ky(n,l,r){let s;if(l==="viewport")s=rC(n,r);else if(l==="document")s=iC(ra(n));else if(qn(l))s=oC(l,r);else{const o=R1(n);s={x:l.x-o.x,y:l.y-o.y,width:l.width,height:l.height}}return hu(s)}function D1(n,l){const r=vl(n);return r===l||!qn(r)||Ks(r)?!1:zn(r).position==="fixed"||D1(r,l)}function uC(n,l){const r=l.get(n);if(r)return r;let s=dr(n,[],!1).filter(m=>qn(m)&&ni(m)!=="body"),o=null;const u=zn(n).position==="fixed";let d=u?vl(n):n;for(;qn(d)&&!Ks(d);){const m=zn(d),y=uh(d);!y&&m.position==="fixed"&&(o=null),(u?!y&&!o:!y&&m.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||_r(d)&&!y&&D1(n,d))?s=s.filter(g=>g!==d):o=m,d=vl(d)}return l.set(n,s),s}function cC(n){let{element:l,boundary:r,rootBoundary:s,strategy:o}=n;const d=[...r==="clippingAncestors"?Du(l)?[]:uC(l,this._c):[].concat(r),s],m=d[0],y=d.reduce((p,g)=>{const S=ky(l,g,o);return p.top=Fl(S.top,p.top),p.right=Vs(S.right,p.right),p.bottom=Vs(S.bottom,p.bottom),p.left=Fl(S.left,p.left),p},ky(l,m,o));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function fC(n){const{width:l,height:r}=T1(n);return{width:l,height:r}}function dC(n,l,r){const s=la(l),o=ra(l),u=r==="fixed",d=Zl(n,!0,u,l);let m={scrollLeft:0,scrollTop:0};const y=aa(0);function p(){y.x=dh(o)}if(s||!s&&!u)if((ni(l)!=="body"||_r(o))&&(m=Mu(l)),s){const C=Zl(l,!0,u,l);y.x=C.x+l.clientLeft,y.y=C.y+l.clientTop}else o&&p();u&&!s&&o&&p();const g=o&&!s&&!u?O1(o,m):aa(0),S=d.left+m.scrollLeft-y.x-g.x,E=d.top+m.scrollTop-y.y-g.y;return{x:S,y:E,width:d.width,height:d.height}}function ld(n){return zn(n).position==="static"}function Qy(n,l){if(!la(n)||zn(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=un(n);if(Du(n))return r;if(!la(n)){let o=vl(n);for(;o&&!Ks(o);){if(qn(o)&&!ld(o))return o;o=vl(o)}return r}let s=Qy(n,l);for(;s&&eC(s)&&ld(s);)s=Qy(s,l);return s&&Ks(s)&&ld(s)&&!uh(s)?r:s||tC(n)||r}const hC=async function(n){const l=this.getOffsetParent||M1,r=this.getDimensions,s=await r(n.floating);return{reference:dC(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function mC(n){return zn(n).direction==="rtl"}const pC={convertOffsetParentRelativeRectToViewportRelativeRect:lC,getDocumentElement:ra,getClippingRect:cC,getOffsetParent:M1,getElementRects:hC,getClientRects:sC,getDimensions:fC,getScale:Qs,isElement:qn,isRTL:mC};function U1(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function yC(n,l){let r=null,s;const o=ra(n);function u(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function d(m,y){m===void 0&&(m=!1),y===void 0&&(y=1),u();const p=n.getBoundingClientRect(),{left:g,top:S,width:E,height:C}=p;if(m||l(),!E||!C)return;const w=Ho(S),A=Ho(o.clientWidth-(g+E)),N=Ho(o.clientHeight-(S+C)),_=Ho(g),D={rootMargin:-w+"px "+-A+"px "+-N+"px "+-_+"px",threshold:Fl(0,Vs(1,y))||1};let Y=!0;function H($){const I=$[0].intersectionRatio;if(I!==y){if(!Y)return d();I?d(!1,I):s=setTimeout(()=>{d(!1,1e-7)},1e3)}I===1&&!U1(p,n.getBoundingClientRect())&&d(),Y=!1}try{r=new IntersectionObserver(H,{...D,root:o.ownerDocument})}catch{r=new IntersectionObserver(H,D)}r.observe(n)}return d(!0),u}function vC(n,l,r,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:y=!1}=s,p=fh(n),g=o||u?[...p?dr(p):[],...dr(l)]:[];g.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),u&&_.addEventListener("resize",r)});const S=p&&m?yC(p,r):null;let E=-1,C=null;d&&(C=new ResizeObserver(_=>{let[O]=_;O&&O.target===p&&C&&(C.unobserve(l),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var D;(D=C)==null||D.observe(l)})),r()}),p&&!y&&C.observe(p),C.observe(l));let w,A=y?Zl(n):null;y&&N();function N(){const _=Zl(n);A&&!U1(A,_)&&r(),A=_,w=requestAnimationFrame(N)}return r(),()=>{var _;g.forEach(O=>{o&&O.removeEventListener("scroll",r),u&&O.removeEventListener("resize",r)}),S==null||S(),(_=C)==null||_.disconnect(),C=null,y&&cancelAnimationFrame(w)}}const gC=IE,bC=WE,xC=JE,SC=ZE,Yy=(n,l,r)=>{const s=new Map,o={platform:pC,...r},u={...o.platform,_c:s};return XE(n,l,{...o,platform:u})};var sd={exports:{}};/*!
233
+ Copyright (c) 2018 Jed Watson.
234
+ Licensed under the MIT License (MIT), see
235
+ http://jedwatson.github.io/classnames
236
+ */var Vy;function wC(){return Vy||(Vy=1,function(n){(function(){var l={}.hasOwnProperty;function r(){for(var u="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(u=o(u,s(m)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return r.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var d="";for(var m in u)l.call(u,m)&&u[m]&&(d=o(d,m));return d}function o(u,d){return d?u?u+" "+d:u+d:u}n.exports?(r.default=r,n.exports=r):window.classNames=r})()}(sd)),sd.exports}var EC=wC();const Od=yu(EC);var Ky={};const CC="react-tooltip-core-styles",_C="react-tooltip-base-styles",Gy={core:!1,base:!1};function Fy({css:n,id:l=_C,type:r="base",ref:s}){var o,u;if(!n||typeof document>"u"||Gy[r]||r==="core"&&typeof process<"u"&&(!((o=process==null?void 0:Ky)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((u=process==null?void 0:Ky)===null||u===void 0)&&u.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(l=CC),s||(s={});const{insertAt:d}=s;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)),Gy[r]=!0}const $y=async({elementReference:n=null,tooltipReference:l=null,tooltipArrowReference:r=null,place:s="top",offset:o=10,strategy:u="absolute",middlewares:d=[gC(Number(o)),xC({fallbackAxisSideDirection:"start"}),bC({padding:5})],border:m,arrowSize:y=8})=>{if(!n)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};if(l===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};const p=d;return r?(p.push(SC({element:r,padding:5})),Yy(n,l,{placement:s,strategy:u,middleware:p}).then(({x:g,y:S,placement:E,middlewareData:C})=>{var w,A;const N={left:`${g}px`,top:`${S}px`,border:m},{x:_,y:O}=(w=C.arrow)!==null&&w!==void 0?w:{x:0,y:0},D=(A={top:"bottom",right:"left",bottom:"top",left:"right"}[E.split("-")[0]])!==null&&A!==void 0?A:"bottom",Y=m&&{borderBottom:m,borderRight:m};let H=0;if(m){const $=`${m}`.match(/(\d+)px/);H=$!=null&&$[1]?Number($[1]):1}return{tooltipStyles:N,tooltipArrowStyles:{left:_!=null?`${_}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",...Y,[D]:`-${y/2+H}px`},place:E}})):Yy(n,l,{placement:"bottom",strategy:u,middleware:p}).then(({x:g,y:S,placement:E})=>({tooltipStyles:{left:`${g}px`,top:`${S}px`},tooltipArrowStyles:{},place:E}))},Xy=(n,l)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(n,l),Zy=(n,l,r)=>{let s=null;const o=function(...u){const d=()=>{s=null};!s&&(n.apply(this,u),s=setTimeout(d,l))};return o.cancel=()=>{s&&(clearTimeout(s),s=null)},o},Jy=n=>n!==null&&!Array.isArray(n)&&typeof n=="object",Dd=(n,l)=>{if(n===l)return!0;if(Array.isArray(n)&&Array.isArray(l))return n.length===l.length&&n.every((o,u)=>Dd(o,l[u]));if(Array.isArray(n)!==Array.isArray(l))return!1;if(!Jy(n)||!Jy(l))return n===l;const r=Object.keys(n),s=Object.keys(l);return r.length===s.length&&r.every(o=>Dd(n[o],l[o]))},NC=n=>{if(!(n instanceof HTMLElement||n instanceof SVGElement))return!1;const l=getComputedStyle(n);return["overflow","overflow-x","overflow-y"].some(r=>{const s=l.getPropertyValue(r);return s==="auto"||s==="scroll"})},Py=n=>{if(!n)return null;let l=n.parentElement;for(;l;){if(NC(l))return l;l=l.parentElement}return document.scrollingElement||document.documentElement},jC=typeof window<"u"?b.useLayoutEffect:b.useEffect,Tn=n=>{n.current&&(clearTimeout(n.current),n.current=null)},AC="DEFAULT_TOOLTIP_ID",TC={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},RC=b.createContext({getTooltipData:()=>TC});function L1(n=AC){return b.useContext(RC).getTooltipData(n)}var Bs={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"},id={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 OC=({forwardRef:n,id:l,className:r,classNameArrow:s,variant:o="dark",anchorId:u,anchorSelect:d,place:m="top",offset:y=10,events:p=["hover"],openOnClick:g=!1,positionStrategy:S="absolute",middlewares:E,wrapper:C,delayShow:w=0,delayHide:A=0,float:N=!1,hidden:_=!1,noArrow:O=!1,clickable:D=!1,closeOnEsc:Y=!1,closeOnScroll:H=!1,closeOnResize:$=!1,openEvents:I,closeEvents:W,globalCloseEvents:ie,imperativeModeOnly:pe,style:ze,position:Ee,afterShow:Fe,afterHide:ye,disableTooltip:xe,content:B,contentWrapperRef:F,isOpen:Z,defaultIsOpen:ue=!1,setIsOpen:T,activeAnchor:Q,setActiveAnchor:P,border:J,opacity:ae,arrowColor:Ce,arrowSize:ce=8,role:St="tooltip"})=>{var Me;const Ze=b.useRef(null),Vn=b.useRef(null),jt=b.useRef(null),hn=b.useRef(null),ua=b.useRef(null),[mn,ai]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:m}),[zt,Bt]=b.useState(!1),[ca,Kn]=b.useState(!1),[$e,Gn]=b.useState(null),bl=b.useRef(!1),qa=b.useRef(null),{anchorRefs:xl,setActiveAnchor:Il}=L1(l),pn=b.useRef(!1),[tt,Yt]=b.useState([]),st=b.useRef(!1),za=g||p.includes("click"),li=za||(I==null?void 0:I.click)||(I==null?void 0:I.dblclick)||(I==null?void 0:I.mousedown),Ba=I?{...I}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!I&&za&&Object.assign(Ba,{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&&za&&Object.assign(yn,{mouseleave:!1,blur:!1,mouseout:!1});const At=ie?{...ie}:{escape:Y||!1,scroll:H||!1,resize:$||!1,clickOutsideAnchor:li||!1};pe&&(Object.assign(Ba,{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(At,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),jC(()=>(st.current=!0,()=>{st.current=!1}),[]);const Be=X=>{st.current&&(X&&Kn(!0),setTimeout(()=>{st.current&&(T==null||T(X),Z===void 0&&Bt(X))},10))};b.useEffect(()=>{if(Z===void 0)return()=>null;Z&&Kn(!0);const X=setTimeout(()=>{Bt(Z)},10);return()=>{clearTimeout(X)}},[Z]),b.useEffect(()=>{if(zt!==bl.current)if(Tn(ua),bl.current=zt,zt)Fe==null||Fe();else{const X=(te=>{const de=te.match(/^([\d.]+)(ms|s)$/);if(!de)return 0;const[,We,vt]=de;return Number(We)*(vt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ua.current=setTimeout(()=>{Kn(!1),Gn(null),ye==null||ye()},X+25)}},[zt]);const fa=X=>{ai(te=>Dd(te,X)?te:X)},On=(X=w)=>{Tn(jt),ca?Be(!0):jt.current=setTimeout(()=>{Be(!0)},X)},Ha=(X=A)=>{Tn(hn),hn.current=setTimeout(()=>{pn.current||Be(!1)},X)},ka=X=>{var te;if(!X)return;const de=(te=X.currentTarget)!==null&&te!==void 0?te:X.target;if(!(de!=null&&de.isConnected))return P(null),void Il({current:null});w?On():Be(!0),P(de),Il({current:de}),Tn(hn)},da=()=>{D?Ha(A||100):A?Ha():Be(!1),Tn(jt)},Fn=({x:X,y:te})=>{var de;const We={getBoundingClientRect:()=>({x:X,y:te,width:0,height:0,top:te,left:X,right:X,bottom:te})};$y({place:(de=$e==null?void 0:$e.place)!==null&&de!==void 0?de:m,offset:y,elementReference:We,tooltipReference:Ze.current,tooltipArrowReference:Vn.current,strategy:S,middlewares:E,border:J,arrowSize:ce}).then(vt=>{fa(vt)})},vn=X=>{if(!X)return;const te=X,de={x:te.clientX,y:te.clientY};Fn(de),qa.current=de},Sl=X=>{var te;if(!zt)return;const de=X.target;de.isConnected&&(!((te=Ze.current)===null||te===void 0)&&te.contains(de)||[document.querySelector(`[id='${u}']`),...tt].some(We=>We==null?void 0:We.contains(de))||(Be(!1),Tn(jt)))},wl=Zy(ka,50),it=Zy(da,50),Tt=X=>{it.cancel(),wl(X)},oe=()=>{wl.cancel(),it()},_e=b.useCallback(()=>{var X,te;const de=(X=$e==null?void 0:$e.position)!==null&&X!==void 0?X:Ee;de?Fn(de):N?qa.current&&Fn(qa.current):Q!=null&&Q.isConnected&&$y({place:(te=$e==null?void 0:$e.place)!==null&&te!==void 0?te:m,offset:y,elementReference:Q,tooltipReference:Ze.current,tooltipArrowReference:Vn.current,strategy:S,middlewares:E,border:J,arrowSize:ce}).then(We=>{st.current&&fa(We)})},[zt,Q,B,ze,m,$e==null?void 0:$e.place,y,S,Ee,$e==null?void 0:$e.position,N,ce]);b.useEffect(()=>{var X,te;const de=new Set(xl);tt.forEach(Oe=>{xe!=null&&xe(Oe)||de.add({current:Oe})});const We=document.querySelector(`[id='${u}']`);We&&!(xe!=null&&xe(We))&&de.add({current:We});const vt=()=>{Be(!1)},gn=Py(Q),Wt=Py(Ze.current);At.scroll&&(window.addEventListener("scroll",vt),gn==null||gn.addEventListener("scroll",vt),Wt==null||Wt.addEventListener("scroll",vt));let rt=null;At.resize?window.addEventListener("resize",vt):Q&&Ze.current&&(rt=vC(Q,Ze.current,_e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Ot=Oe=>{Oe.key==="Escape"&&Be(!1)};At.escape&&window.addEventListener("keydown",Ot),At.clickOutsideAnchor&&window.addEventListener("click",Sl);const Re=[],en=Oe=>!!(Oe!=null&&Oe.target&&(Q!=null&&Q.contains(Oe.target))),El=Oe=>{zt&&en(Oe)||ka(Oe)},Qa=Oe=>{zt&&en(Oe)&&da()},ot=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],si=["click","dblclick","mousedown","mouseup"];Object.entries(Ba).forEach(([Oe,bn])=>{bn&&(ot.includes(Oe)?Re.push({event:Oe,listener:Tt}):si.includes(Oe)&&Re.push({event:Oe,listener:El}))}),Object.entries(yn).forEach(([Oe,bn])=>{bn&&(ot.includes(Oe)?Re.push({event:Oe,listener:oe}):si.includes(Oe)&&Re.push({event:Oe,listener:Qa}))}),N&&Re.push({event:"pointermove",listener:vn});const ii=()=>{pn.current=!0},$n=()=>{pn.current=!1,da()},ha=D&&(yn.mouseout||yn.mouseleave);return ha&&((X=Ze.current)===null||X===void 0||X.addEventListener("mouseover",ii),(te=Ze.current)===null||te===void 0||te.addEventListener("mouseout",$n)),Re.forEach(({event:Oe,listener:bn})=>{de.forEach(Wl=>{var Cl;(Cl=Wl.current)===null||Cl===void 0||Cl.addEventListener(Oe,bn)})}),()=>{var Oe,bn;At.scroll&&(window.removeEventListener("scroll",vt),gn==null||gn.removeEventListener("scroll",vt),Wt==null||Wt.removeEventListener("scroll",vt)),At.resize?window.removeEventListener("resize",vt):rt==null||rt(),At.clickOutsideAnchor&&window.removeEventListener("click",Sl),At.escape&&window.removeEventListener("keydown",Ot),ha&&((Oe=Ze.current)===null||Oe===void 0||Oe.removeEventListener("mouseover",ii),(bn=Ze.current)===null||bn===void 0||bn.removeEventListener("mouseout",$n)),Re.forEach(({event:Wl,listener:Cl})=>{de.forEach(es=>{var Ya;(Ya=es.current)===null||Ya===void 0||Ya.removeEventListener(Wl,Cl)})})}},[Q,_e,ca,xl,tt,I,W,ie,za,w,A]),b.useEffect(()=>{var X,te;let de=(te=(X=$e==null?void 0:$e.anchorSelect)!==null&&X!==void 0?X:d)!==null&&te!==void 0?te:"";!de&&l&&(de=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`);const We=new MutationObserver(vt=>{const gn=[],Wt=[];vt.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 Ot=[...rt.removedNodes].filter(Re=>Re.nodeType===1);if(de)try{Wt.push(...Ot.filter(Re=>Re.matches(de))),Wt.push(...Ot.flatMap(Re=>[...Re.querySelectorAll(de)]))}catch{}Ot.some(Re=>{var en;return!!(!((en=Re==null?void 0:Re.contains)===null||en===void 0)&&en.call(Re,Q))&&(Kn(!1),Be(!1),P(null),Tn(jt),Tn(hn),!0)})}if(de)try{const Ot=[...rt.addedNodes].filter(Re=>Re.nodeType===1);gn.push(...Ot.filter(Re=>Re.matches(de))),gn.push(...Ot.flatMap(Re=>[...Re.querySelectorAll(de)]))}catch{}}}),(gn.length||Wt.length)&&Yt(rt=>[...rt.filter(Ot=>!Wt.includes(Ot)),...gn])});return We.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{We.disconnect()}},[l,d,$e==null?void 0:$e.anchorSelect,Q]),b.useEffect(()=>{_e()},[_e]),b.useEffect(()=>{if(!(F!=null&&F.current))return()=>null;const X=new ResizeObserver(()=>{setTimeout(()=>_e())});return X.observe(F.current),()=>{X.disconnect()}},[B,F==null?void 0:F.current]),b.useEffect(()=>{var X;const te=document.querySelector(`[id='${u}']`),de=[...tt,te];Q&&de.includes(Q)||P((X=tt[0])!==null&&X!==void 0?X:te)},[u,tt,Q]),b.useEffect(()=>(ue&&Be(!0),()=>{Tn(jt),Tn(hn)}),[]),b.useEffect(()=>{var X;let te=(X=$e==null?void 0:$e.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,$e==null?void 0:$e.anchorSelect]),b.useEffect(()=>{jt.current&&(Tn(jt),On(w))},[w]);const Ht=(Me=$e==null?void 0:$e.content)!==null&&Me!==void 0?Me:B,Rt=zt&&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`)}Gn(X??null),X!=null&&X.delay?On(X.delay):Be(!0)},close:X=>{X!=null&&X.delay?Ha(X.delay):Be(!1)},activeAnchor:Q,place:mn.place,isOpen:!!(ca&&!_&&Ht&&Rt)})),ca&&!_&&Ht?Ge.createElement(C,{id:l,role:St,className:Od("react-tooltip",Bs.tooltip,id.tooltip,id[o],r,`react-tooltip__place-${mn.place}`,Bs[Rt?"show":"closing"],Rt?"react-tooltip__show":"react-tooltip__closing",S==="fixed"&&Bs.fixed,D&&Bs.clickable),onTransitionEnd:X=>{Tn(ua),zt||X.propertyName!=="opacity"||(Kn(!1),Gn(null),ye==null||ye())},style:{...ze,...mn.tooltipStyles,opacity:ae!==void 0&&Rt?ae:void 0},ref:Ze},Ht,Ge.createElement(C,{className:Od("react-tooltip-arrow",Bs.arrow,id.arrow,s,O&&Bs.noArrow),style:{...mn.tooltipArrowStyles,background:Ce?`linear-gradient(to right bottom, transparent 50%, ${Ce} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Vn})):null},DC=({content:n})=>Ge.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),hh=Ge.forwardRef(({id:n,anchorId:l,anchorSelect:r,content:s,html:o,render:u,className:d,classNameArrow:m,variant:y="dark",place:p="top",offset:g=10,wrapper:S="div",children:E=null,events:C=["hover"],openOnClick:w=!1,positionStrategy:A="absolute",middlewares:N,delayShow:_=0,delayHide:O=0,float:D=!1,hidden:Y=!1,noArrow:H=!1,clickable:$=!1,closeOnEsc:I=!1,closeOnScroll:W=!1,closeOnResize:ie=!1,openEvents:pe,closeEvents:ze,globalCloseEvents:Ee,imperativeModeOnly:Fe=!1,style:ye,position:xe,isOpen:B,defaultIsOpen:F=!1,disableStyleInjection:Z=!1,border:ue,opacity:T,arrowColor:Q,arrowSize:P,setIsOpen:J,afterShow:ae,afterHide:Ce,disableTooltip:ce,role:St="tooltip"},Me)=>{const[Ze,Vn]=b.useState(s),[jt,hn]=b.useState(o),[ua,mn]=b.useState(p),[ai,zt]=b.useState(y),[Bt,ca]=b.useState(g),[Kn,$e]=b.useState(_),[Gn,bl]=b.useState(O),[qa,xl]=b.useState(D),[Il,pn]=b.useState(Y),[tt,Yt]=b.useState(S),[st,za]=b.useState(C),[li,Ba]=b.useState(A),[yn,At]=b.useState(null),[Be,fa]=b.useState(null),On=b.useRef(Z),{anchorRefs:Ha,activeAnchor:ka}=L1(n),da=it=>it==null?void 0:it.getAttributeNames().reduce((Tt,oe)=>{var _e;return oe.startsWith("data-tooltip-")&&(Tt[oe.replace(/^data-tooltip-/,"")]=(_e=it==null?void 0:it.getAttribute(oe))!==null&&_e!==void 0?_e:null),Tt},{}),Fn=it=>{const Tt={place:oe=>{var _e;mn((_e=oe)!==null&&_e!==void 0?_e:p)},content:oe=>{Vn(oe??s)},html:oe=>{hn(oe??o)},variant:oe=>{var _e;zt((_e=oe)!==null&&_e!==void 0?_e:y)},offset:oe=>{ca(oe===null?g:Number(oe))},wrapper:oe=>{var _e;Yt((_e=oe)!==null&&_e!==void 0?_e:S)},events:oe=>{const _e=oe==null?void 0:oe.split(" ");za(_e??C)},"position-strategy":oe=>{var _e;Ba((_e=oe)!==null&&_e!==void 0?_e:A)},"delay-show":oe=>{$e(oe===null?_:Number(oe))},"delay-hide":oe=>{bl(oe===null?O:Number(oe))},float:oe=>{xl(oe===null?D:oe==="true")},hidden:oe=>{pn(oe===null?Y:oe==="true")},"class-name":oe=>{At(oe)}};Object.values(Tt).forEach(oe=>oe(null)),Object.entries(it).forEach(([oe,_e])=>{var Ht;(Ht=Tt[oe])===null||Ht===void 0||Ht.call(Tt,_e)})};b.useEffect(()=>{Vn(s)},[s]),b.useEffect(()=>{hn(o)},[o]),b.useEffect(()=>{mn(p)},[p]),b.useEffect(()=>{zt(y)},[y]),b.useEffect(()=>{ca(g)},[g]),b.useEffect(()=>{$e(_)},[_]),b.useEffect(()=>{bl(O)},[O]),b.useEffect(()=>{xl(D)},[D]),b.useEffect(()=>{pn(Y)},[Y]),b.useEffect(()=>{Ba(A)},[A]),b.useEffect(()=>{On.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 Tt=new Set(Ha);let oe=r;if(!oe&&n&&(oe=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),oe)try{document.querySelectorAll(oe).forEach(te=>{Tt.add({current:te})})}catch{console.warn(`[react-tooltip] "${oe}" is not a valid CSS selector`)}const _e=document.querySelector(`[id='${l}']`);if(_e&&Tt.add({current:_e}),!Tt.size)return()=>null;const Ht=(it=Be??_e)!==null&&it!==void 0?it:ka.current,Rt=new MutationObserver(te=>{te.forEach(de=>{var We;if(!Ht||de.type!=="attributes"||!(!((We=de.attributeName)===null||We===void 0)&&We.startsWith("data-tooltip-")))return;const vt=da(Ht);Fn(vt)})}),X={attributes:!0,childList:!1,subtree:!1};if(Ht){const te=da(Ht);Fn(te),Rt.observe(Ht,X)}return()=>{Rt.disconnect()}},[Ha,ka,Be,l,r]),b.useEffect(()=>{ye!=null&&ye.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),ue&&!Xy("border",`${ue}`)&&console.warn(`[react-tooltip] "${ue}" is not a valid \`border\`.`),ye!=null&&ye.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),T&&!Xy("opacity",`${T}`)&&console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`)},[]);let vn=E;const Sl=b.useRef(null);if(u){const it=u({content:(Be==null?void 0:Be.getAttribute("data-tooltip-content"))||Ze||null,activeAnchor:Be});vn=it?Ge.createElement("div",{ref:Sl,className:"react-tooltip-content-wrapper"},it):null}else Ze&&(vn=Ze);jt&&(vn=Ge.createElement(DC,{content:jt}));const wl={forwardRef:Me,id:n,anchorId:l,anchorSelect:r,className:Od(d,yn),classNameArrow:m,content:vn,contentWrapperRef:Sl,place:ua,variant:ai,offset:Bt,wrapper:tt,events:st,openOnClick:w,positionStrategy:li,middlewares:N,delayShow:Kn,delayHide:Gn,float:qa,hidden:Il,noArrow:H,clickable:$,closeOnEsc:I,closeOnScroll:W,closeOnResize:ie,openEvents:pe,closeEvents:ze,globalCloseEvents:Ee,imperativeModeOnly:Fe,style:ye,position:xe,isOpen:B,defaultIsOpen:F,border:ue,opacity:T,arrowColor:Q,arrowSize:P,setIsOpen:J,afterShow:ae,afterHide:Ce,disableTooltip:ce,activeAnchor:Be,setActiveAnchor:it=>fa(it),role:St};return Ge.createElement(OC,{...wl})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",n=>{n.detail.disableCore||Fy({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||Fy({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"})});const MC=n=>{if(!n)return;const l=yt.getQueryData([Zd]);if(!l)return;const r=yt.getQueryData([La,l.teamId]);return r==null?void 0:r.find(s=>s.id===n)},Iy=n=>window.matchMedia(n).matches;function mh(n,{defaultValue:l=!1,initializeWithValue:r=!0}={}){const[s,o]=b.useState(()=>r?Iy(n):l);return b.useLayoutEffect(()=>{const u=window.matchMedia(n);function d(){o(()=>Iy(n))}return d(),u.addListener?u.addListener(d):u.addEventListener("change",d),()=>{u.removeListener?u.removeListener(d):u.removeEventListener("change",d)}},[n]),s}const Uu={laptop:"(min-width: 1024px)"},UC=()=>window.matchMedia(Uu.laptop).matches,LC="_table_1rw39_2",qC="_semi-transparent_1rw39_2",zC="_table-loading_1rw39_2",BC="_table-empty_1rw39_2",HC="_table-row-cells_1rw39_2",kC="_header-cell_1rw39_2",QC="_header-actions_1rw39_2",YC="_cell_1rw39_2",VC="_cell-actions_1rw39_2",KC="_table-config_1rw39_2",GC="_table-action_1rw39_2",FC="_blue_1rw39_2",$C="_red_1rw39_2",XC="_modal_1rw39_2",ZC="_options-container_1rw39_2",JC="_underlying-rows-btn_1rw39_2",PC="_option-item_1rw39_2",se={table:LC,semiTransparent:qC,tableLoading:zC,tableEmpty:BC,tableRowCells:HC,headerCell:kC,headerActions:QC,cell:YC,cellActions:VC,tableConfig:KC,tableAction:GC,blue:FC,red:$C,modal:XC,optionsContainer:ZC,underlyingRowsBtn:JC,optionItem:PC},oa=b.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),ht=b.createContext({state:fr({}),setState:()=>{}}),Yn=b.createContext({}),q1=()=>{const[n,l]=b.useState();return b.useMemo(()=>({show:!!n,position:n,open:s=>{s.preventDefault(),l({x:s.clientX-1,y:s.clientY-1})},close:()=>{l(void 0)}}),[n])},IC=n=>{if(n==="ASC")return"DESC";if(n!=="DESC")return"ASC"},WC=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(s=>{l(o=>{const u=o.orderBy[0];if(u&&u.column===s){const d=IC(u.direction);return d?{...o,orderBy:[{column:s,direction:d}]}:{...o,orderBy:[]}}return{...o,orderBy:[{column:s,direction:"ASC"}]}})},[l]);return{orderBy:n.orderBy,updateOrderBy:r}};function e_(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 rd(n,l,r){var u,d,m;const s=(d=(u=n==null?void 0:n.rows)==null?void 0:u[l])==null?void 0:d[r],o=(m=n==null?void 0:n.columns)==null?void 0:m[r];return{value:s,column:o}}const t_=()=>{const{data:n}=b.useContext(Yn),{getColumnType:l}=b.useContext(oa),{setState:r}=b.useContext(ht),s=m=>{const{value:y,column:p}=rd(n,m.row,m.col);if(p){const g=Gl(y,l(p.full));navigator.clipboard.writeText(g),qt.success("Copied!")}},o=m=>{const{value:y,column:p}=rd(n,m.row,m.col);if(p){const g=Gl(y,l(p.full));E1(g)}},u=m=>{const{value:y,column:p}=rd(n,m.row,m.col);let g=(p==null?void 0:p.full)||"",S;if((p==null?void 0:p.table)===""){qt.error("Filtering on aggregated column is not supported yet");return}if(g){let E;if(y==null)E={id:Ua(),isEnabled:!0,column:g,connector:"AND",operator:"IS NULL"};else{const C=Gl(y,l(g));E={id:Ua(),isEnabled:!0,column:g,connector:"AND",operator:"=",fn:S,value:[{value:C}]}}r(C=>({...C,filters:[...C.filters,E]})),qt.success(`Added new filter on column ${p==null?void 0:p.alias}`)}};return m=>{const y=e_(m);y&&(y.action==="copy"?s(y):y.action==="show"?o(y):y.action==="filter"&&u(y))}},n_="_container_1nxm2_2",a_="_content_1nxm2_2",l_="_backdrop_1nxm2_2",od={container:n_,content:a_,backdrop:l_},z1=({children:n,handler:l})=>{const r=b.useRef(l.close);r.current=l.close;const s=b.useMemo(()=>{if(!l.position)return;const o={};if(typeof window<"u"){const u=l.position.y>window.innerHeight/2,d=l.position.x>window.innerWidth/2;u?o.bottom=window.innerHeight-l.position.y:o.top=l.position.y,UC()?d?o.right=window.innerWidth-l.position.x:o.left=l.position.x:(o.right=36,o.left=36)}return o},[l]);return b.useEffect(()=>{const o=u=>{u.code==="Escape"&&r.current()};return window.addEventListener("keyup",o),()=>{window.removeEventListener("keyup",o)}},[]),s?h.jsxs("div",{className:od.container,children:[h.jsx("div",{className:od.backdrop,onClick:o=>{o.stopPropagation(),o.preventDefault(),l.close()}}),h.jsx("div",{className:od.content,style:s,children:n})]}):null},s_="_table_1ir2h_2",i_="_root_1ir2h_2",r_="_content_1ir2h_2",o_="_sub_1ir2h_2",ko={table:s_,root:i_,content:r_,sub:o_},B1=({hook:n,onClick:l})=>h.jsxs("button",{className:ko.root,onClick:l,title:n.where,children:[h.jsx("span",{children:"📄"}),h.jsxs("div",{className:ko.content,children:[h.jsxs("p",{className:ko.table,children:[" ",n.on.toTable]}),h.jsxs("span",{className:ko.sub,children:[n.on.toColumn," = ",n.on.fromTable,".",n.on.fromColumn]})]})]},n.where),pl=(n,l)=>n!=null&&n>l,u_=({handler:n,rowIndex:l})=>{const{hooks:r,entities:s,dataSourceId:o,getEntityKey:u,getValue:d}=b.useContext(oa),{state:m}=b.useContext(ht),{data:y}=b.useContext(Yn),[p,g]=b.useState(""),[S,E]=b.useState(""),C=b.useMemo(()=>y==null?void 0:y.rows[l],[y,l]),w=()=>{C&&(yl("⬇️ "+m.table,{joins:m.joins,table:m.table,dataSourceId:m.dataSourceId,filters:[...m.filters,...m.groupBy.map(Y=>({id:Ua(),connector:"AND",column:Y.value,operator:"=",value:[{value:d(C,Y)}]}))]},!0),n.close())},A=Y=>{if(!C)return;const H=d(C,{value:`${Y.on.fromTable}.${Y.on.fromColumn}`});yl(`↗️ ${Y.on.toColumn} equals ${H}`,{table:Y.on.toTable,dataSourceId:o,filters:[{id:Ua(),column:Y.on.toTable+"."+Y.on.toColumn,operator:H==null?"IS NULL":"=",connector:"AND",value:H!=null?[{value:H,isColumn:!1}]:void 0}]},!0),n.close()},N=Y=>{if(!C)return;const H=u(Y,C);n.close(),ih({tableName:Y,dataSourceId:o,entityId:H}),n.close()},_=b.useMemo(()=>p?s.filter(Y=>Y.includes(p)):s,[s,p]),O=b.useMemo(()=>{if(!y)return[];const Y=S.toLowerCase();return r.filter(H=>y.columns.some(I=>I.column===H.on.fromColumn&&I.table===H.on.fromTable)?H.on.toTable.toLowerCase().includes(Y):!1)},[S,r,y]),D=m.groupBy.length>0;return h.jsxs(z1,{handler:n,children:[s.length>0&&h.jsxs("div",{className:se.optionsContainer,children:[h.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 input",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",children:pl(_.length,0)?_.map(Y=>h.jsx("button",{className:re(se.optionItem,"font-semibold"),onClick:()=>N(Y),children:h.jsxs("span",{children:["📄 ",Y]})},Y)):h.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),r.length>0&&h.jsxs("div",{className:se.optionsContainer,children:[h.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 p-1 input",children:[h.jsx("span",{className:"font-semibold",children:"↗️"}),h.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:S,onChange:Y=>E(Y.target.value)})]}),h.jsx("div",{className:"flex flex-col",children:O.length>0?O.map(Y=>h.jsx(B1,{hook:Y,onClick:()=>A(Y)},Y.where)):h.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),D&&h.jsx("button",{onClick:w,className:se.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},c_={ASC:"⬆️",DESC:"⬇️"},f_=()=>{const{data:n}=b.useContext(Yn),{orderBy:l,updateOrderBy:r}=WC(),s=(n==null?void 0:n.columns)||[],o=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:"#"}),s.map(u=>h.jsxs("td",{className:se.headerCell,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:"text-xs truncate",children:u.table||"-"}),h.jsx("p",{className:"text-sm font-bold truncate",children:u.column})]}),h.jsx("div",{className:se.headerActions,children:h.jsx("button",{onClick:()=>r(u.full),children:(o==null?void 0:o.column)===u.full?c_[o.direction]:"↕️"})})]},u.full))]})})};function d_({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 s=Gl(n);return h.jsxs(h.Fragment,{children:[h.jsx("span",{"data-row":l,className:"truncate block pointer-events-none",children:s}),h.jsxs("div",{className:se.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 h_=b.memo(({row:n,isLastRow:l,index:r,offset:s})=>h.jsxs("tr",{className:re(se.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+s}),n.map((o,u)=>h.jsx("td",{className:se.cell,"data-row":r,children:h.jsx(d_,{value:o,col:u,row:r})},u))]})),m_=()=>{var C,w;const{data:n,error:l,isLoading:r,isFetching:s}=b.useContext(Yn),{state:{page:o,size:u}}=b.useContext(ht),d=sh(l),m=t_(),y=q1(),[p,g]=b.useState(void 0),S=A=>{var O;const N=(O=A.target)==null?void 0:O.dataset,_=N==null?void 0:N.row;_!=null&&(g(parseInt(_)),y.open(A))},E=o*u;return h.jsxs(h.Fragment,{children:[p!=null&&y.show&&h.jsx(u_,{handler:y,rowIndex:p}),d&&h.jsx(Lt,{className:"my-4",variant:"danger",children:d}),r&&h.jsx("div",{className:se.tableLoading,children:"Loading data"}),n&&h.jsxs("table",{className:re(se.table,s&&se.semiTransparent),onContextMenu:S,onClick:m,children:[h.jsx(f_,{}),h.jsxs("tbody",{children:[((C=n.rows)==null?void 0:C.length)<1&&h.jsx("tr",{className:se.tableEmpty,children:h.jsx("td",{colSpan:n.columns.length+1,children:"No data"})}),(w=n.rows)==null?void 0:w.map((A,N)=>h.jsx(h_,{index:N,offset:E,row:A,isLastRow:N===n.rows.length-1},N))]})]})]})},p_="_root_u1457_2",y_="_root-show_u1457_2",v_="_content-desktop_u1457_2",g_="_content-mobile_u1457_2",b_="_card_u1457_2",x_="_cards-list_u1457_2",S_="_sub-text_u1457_2",w_="_text_u1457_2",E_="_section-title_u1457_2",C_="_sidebar-action_u1457_2",__="_sidebar-add-action_u1457_2",N_="_section-container_u1457_2",j_="_close-button_u1457_2",A_="_section-open-btn_u1457_2",T_="_show_u1457_2",le={root:p_,rootShow:y_,contentDesktop:v_,contentMobile:g_,card:b_,cardsList:x_,subText:S_,text:w_,sectionTitle:E_,sidebarAction:C_,sidebarAddAction:__,sectionContainer:N_,closeButton:j_,sectionOpenBtn:A_,show:T_};function R_(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 H1=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(o=>{l(u=>({...u,filters:o}))},[l]),s=b.useCallback(o=>{l(u=>({...u,filters:u.filters.filter(d=>!(o.column===d.column&&o.operator===d.operator&&R_(o.value,d.value)))}))},[l]);return{filters:n.filters,removeFilter:s,setFilters:r}},O_=(n,l)=>n.type!==l.type||n.on!==l.on||n.table!==l.table,D_=(n,l)=>n.type===l.type&&n.on===l.on&&n.table===l.table,k1=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(s=>{l(o=>{const u=o.joins;if(u.some(m=>D_(m,s))){const m=s.table+".";return{...o,joins:u.filter(y=>O_(y,s)),columns:o.columns.filter(y=>!y.value.startsWith(m)),groupBy:o.groupBy.filter(y=>!y.value.startsWith(m)),orderBy:o.orderBy.filter(y=>!y.column.startsWith(m)),aggregations:o.aggregations.filter(y=>!y.value.startsWith(m)),filters:o.filters.filter(y=>!y.column.startsWith(m))}}return{...o,joins:[...u,s]}})},[l]);return{joins:n.joins,toggle:r}},ph=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"})),ks=new Map,M_=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("+")},U_=n=>{var s,o,u;const l=(o=(s=n.target)==null?void 0:s.tagName)==null?void 0:o.toLowerCase();if(n.ctrlKey||n.altKey||n.metaKey||["input","textarea","select"].includes(l)||(u=n.target)!=null&&u.isContentEditable)return;const r=ks.get(M_(n));r&&r.length>0&&r[r.length-1].callback()},L_=(n,l,r="")=>{const s=n.toLowerCase(),o=ks.get(n);return o?ks.set(n,[...o,{callback:l,label:r}]):ks.set(s,[{callback:l,label:r}]),()=>{const u=n.toLowerCase(),d=ks.get(u);d&&ks.set(u,d.filter(m=>m.callback!==l))}};window.addEventListener("keyup",U_);function cn(n,l,r){const s=b.useRef({callback:l,label:r});s.current.callback=l,b.useEffect(()=>L_(n,()=>{s.current.callback()},s.current.label),[n])}const q_=()=>{const n=xr("Hotkey"),l=Jt(),r=Nt(),{data:s}=ia();cn("n",()=>{s&&n()},"📖 New query"),cn("w",()=>{if(!s)return;Tu.get().length<1?n():r.pathname!==Ye.workbench.path&&l(Ye.workbench.path)},"🛠️ Open Workbench"),cn("h",()=>{r.pathname!==Ye.home.path&&l(Ye.home.path)},"🏠 Go home")},[z_,B_]=Pt(!1),yh=()=>B_(n=>!n),H_="_sidebar_969n9_2",k_="_sidebar-visible_969n9_2",Q_="_sidebar-container_969n9_2",Y_="_sidebar-invisible_969n9_2",V_="_backdrop_969n9_2",sr={sidebar:H_,sidebarVisible:k_,sidebarContainer:Q_,sidebarInvisible:Y_,backdrop:V_},Q1=({children:n,backdropClose:l,isVisible:r,onClose:s,onClosed:o,contentClassName:u})=>{const[d,m]=b.useState(!1),y=b.useRef(s);y.current=s;const p=()=>{l&&s()},g=S=>{r||getComputedStyle(S.currentTarget).opacity==="0"&&(m(!1),o&&o())};return b.useEffect(()=>{r&&m(!0)},[r]),b.useEffect(()=>{const S=E=>{r&&E.key==="Escape"&&y.current()};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[r]),h.jsxs("div",{onTransitionEnd:g,className:re(sr.sidebar,r?sr.sidebarVisible:sr.sidebarInvisible),children:[h.jsx("div",{onClick:p,className:sr.backdrop}),h.jsx("div",{className:re(sr.sidebarContainer,u),children:d&&n})]})},[Lu,vh]=Pt({filters:!1,joins:!1,columns:!1,groupBy:!1,aggregate:!1}),Ln=n=>vh(l=>({...l,[n]:!0})),qu=n=>vh(l=>({...l,[n]:!1})),mu=n=>vh(l=>({...l,[n]:!l[n]})),K_=()=>{const n=z_();return mh(Uu.laptop)?h.jsx("div",{className:re(le.root,n&&le.rootShow),children:h.jsxs("div",{className:re(le.contentDesktop,"no-scrollbar"),children:[h.jsx(ev,{}),h.jsx(Wy,{}),h.jsx(iv,{}),h.jsx(sv,{}),h.jsx(lv,{}),h.jsx(nv,{}),h.jsx(av,{}),h.jsx(tv,{})]})}):h.jsx(Q1,{isVisible:n,onClose:yh,backdropClose:!0,children:h.jsxs("div",{className:le.contentMobile,children:[h.jsx(ev,{}),h.jsx(Wy,{}),h.jsx(iv,{}),h.jsx(sv,{}),h.jsx(lv,{}),h.jsx(nv,{}),h.jsx(av,{}),h.jsx(tv,{})]})})};function Nr({onShow:n,show:l,title:r,items:s}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("p",{className:le.sectionTitle,children:r}),s>0&&h.jsxs("button",{className:re(le.sectionOpenBtn,l&&le.show),onClick:n,children:[h.jsx("span",{children:s}),h.jsx(ph,{width:16,height:16})]})]})}function Wy(){const{name:n,tabId:l}=b.useContext(oa),{data:r}=b.useContext(Yn),s=()=>{l&&Pl("New tab name",n).then(u=>{u&&Ru(l,u)})},o=()=>{r!=null&&r.query&&(navigator.clipboard.writeText(r==null?void 0:r.query),qt.success("Query copied to clipboard"))};return cn("r",s,"Rename tab"),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-1 px-2 mb-4",children:[h.jsx("button",{className:le.sidebarAction,onClick:s,children:h.jsx("span",{children:"✏️ Rename tab"})}),h.jsx("button",{className:le.sidebarAction,onClick:o,children:h.jsx("span",{children:"🖋️ Copy SQL"})})]})}function ev(){const{state:n}=b.useContext(ht),{data:l}=ju(n.dataSourceId);return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx("div",{className:le.card,children:h.jsxs("div",{children:[h.jsx("p",{className:le.subText,children:"📄 Table"}),h.jsx("p",{className:re(le.text,"text-blue-600"),children:n.table})]})}),h.jsx("div",{className:re(le.card,"mt-2"),children:h.jsxs("div",{children:[h.jsx("p",{className:le.subText,children:"📦 Data source"}),h.jsx("p",{className:re(le.text,"text-blue-600"),children:l==null?void 0:l.name})]})})]})}function tv(){const{state:n,setState:l}=b.useContext(ht),[r,s]=b.useState(!0),o=u=>{l(d=>({...d,groupBy:d.groupBy.filter(m=>ta(m)!==u)}))};return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx(Nr,{title:"📚 Group by",show:r,onShow:()=>s(!r),items:n.groupBy.length}),r&&n.groupBy.length>0&&h.jsx("div",{className:le.cardsList,children:n.groupBy.map(u=>h.jsxs("div",{className:le.card,children:[h.jsx("span",{className:le.text,children:ta(u)}),h.jsx("button",{className:le.closeButton,onClick:()=>o(ta(u)),children:h.jsx(kn,{width:20,height:20})})]},ta(u)))}),h.jsxs("button",{className:le.sidebarAddAction,onClick:()=>Ln("groupBy"),children:[h.jsx("span",{className:"hotkey",children:"G"}),h.jsx("span",{children:"Add group by"})]})]})}function nv(){const{state:n,setState:l}=b.useContext(ht),[r,s]=b.useState(!1),o=d=>{l(m=>({...m,columns:m.columns.filter(y=>ta(y)!==d)}))},u=n.aggregations.length>0||n.groupBy.length>0;return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx(Nr,{title:"👀 Columns",show:r,onShow:()=>s(!r),items:u?0:n.columns.length}),u&&h.jsx(Lt,{variant:"warning",className:"border border-yellow-800 my-2",children:h.jsx("span",{className:le.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!u&&r&&n.columns.length>0&&h.jsx("div",{className:le.cardsList,children:n.columns.map(d=>h.jsxs("div",{className:le.card,children:[h.jsx("span",{className:le.text,children:ta(d)}),h.jsx("button",{className:le.closeButton,onClick:()=>o(ta(d)),children:h.jsx(kn,{width:20,height:20})})]}))}),!u&&h.jsxs("button",{className:le.sidebarAddAction,onClick:()=>Ln("columns"),children:[h.jsx("span",{className:"hotkey",children:"C"}),h.jsx("span",{children:"Show/Hide columns"})]})]})}function av(){const{state:n,setState:l}=b.useContext(ht),[r,s]=b.useState(!0),o=u=>{const d=ta(u);l(m=>({...m,aggregations:m.aggregations.filter(y=>y.fn!==u.fn||y.value!==u.value),orderBy:m.orderBy.filter(y=>y.column!==d)}))};return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx(Nr,{title:"🔢 Aggregations",show:r,onShow:()=>s(!r),items:n.aggregations.length}),r&&n.aggregations.length>0&&h.jsx("div",{className:le.cardsList,children:n.aggregations.map(u=>h.jsxs("div",{className:le.card,children:[h.jsxs("span",{className:le.text,children:[u.fn," ",u.value]}),h.jsx("button",{className:le.closeButton,onClick:()=>o(u),children:h.jsx(kn,{width:20,height:20})})]}))}),h.jsxs("button",{className:le.sidebarAddAction,onClick:()=>Ln("aggregate"),children:[h.jsx("span",{className:"hotkey",children:"A"}),h.jsx("span",{children:"Aggregate data"})]})]})}const G_=n=>(n==null?void 0:n.map(l=>l.value).join(", "))||"";function lv(){const{state:n}=b.useContext(ht),{removeFilter:l}=H1(),[r,s]=b.useState(!0),o=()=>{Ln("filters")};return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx(Nr,{title:"🎚️ Filters",show:r,onShow:()=>s(!r),items:n.filters.length}),r&&n.filters.length>0&&h.jsx("div",{className:le.cardsList,children:n.filters.map((u,d)=>h.jsxs("div",{className:le.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:re(le.subText,"truncate"),children:u.column}),h.jsxs("p",{className:re(le.text,"truncate"),children:[Id[u.operator]," ",G_(u.value)]})]}),h.jsx("button",{className:le.closeButton,onClick:()=>l(u),children:h.jsx(kn,{width:20,height:20})})]},d))}),h.jsxs("button",{className:le.sidebarAddAction,onClick:o,children:[h.jsx("span",{className:"hotkey",children:"F"}),h.jsx("span",{children:"Filter data"})]})]})}function sv(){const{toggle:n}=k1(),{availableJoins:l}=b.useContext(oa),{state:r}=b.useContext(ht),[s,o]=b.useState(!0);return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx(Nr,{title:"📄 Joins",show:s,onShow:()=>o(!s),items:r.joins.length}),s&&r.joins.length>0&&h.jsx("div",{className:le.cardsList,children:r.joins.map((u,d)=>h.jsxs("div",{className:le.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsxs("p",{className:re(le.subText,"truncate"),children:["on ",u.on]}),h.jsx("p",{className:le.text,children:u.table})]}),d===r.joins.length-1&&h.jsx("button",{className:le.closeButton,onClick:()=>n(u),children:h.jsx(kn,{width:20,height:20})})]},u.table+u.on))}),l.length>0&&h.jsxs("button",{onClick:()=>Ln("joins"),className:le.sidebarAddAction,children:[h.jsx("span",{className:"hotkey",children:"J"}),h.jsx("span",{children:"Join table"})]})]})}function iv(){const{state:n,setState:l}=b.useContext(ht);if(!n.orderBy.length)return null;const r=s=>{l(o=>({...o,orderBy:o.orderBy.filter(u=>u.column!==s.column&&u.direction!==s.direction)}))};return h.jsxs("div",{className:le.sectionContainer,children:[h.jsx("p",{className:le.sectionTitle,children:"Order by"}),h.jsx("div",{className:le.cardsList,children:n.orderBy.map((s,o)=>h.jsxs("div",{className:le.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:re(le.subText,"truncate"),children:s.direction}),h.jsx("p",{className:le.text,children:s.column})]}),h.jsx("button",{className:le.closeButton,onClick:()=>r(s),children:h.jsx(kn,{width:20,height:20})})]},o))})]})}const Y1=()=>{const{state:n,setState:l}=b.useContext(ht),r=b.useCallback(o=>{l(u=>({...u,page:o}))},[l]),s=b.useCallback(o=>{l(u=>({...u,size:o}))},[l]);return{page:n.page,size:n.size,setSize:s,setPage:r}},F_=n=>dn({queryKey:["query",n],queryFn:async()=>{const{data:l}=await Ve.get("/queries/"+n);return l.data},enabled:!!n}),$_=()=>fn({mutationFn:async n=>{const{data:l}=await Ve.post("/saved-queries",n);return l.data},onSuccess:()=>{yt.invalidateQueries(["queries"]),Ws()}}),X_=()=>fn({mutationFn:async n=>Ve.delete("/saved-queries/"+n),onSuccess:()=>{Ws()}}),Z_=()=>fn({mutationFn:async({id:n,payload:l})=>{const{data:r}=await Ve.patch("/queries/"+n,l);return r.data},onSuccess:n=>{yt.invalidateQueries(["query",n.id]),Ws(),Q3(),n.isTrash}}),[J_,V1]=Pt(void 0),Md=()=>V1(void 0);function P_(){return h.jsxs("div",{className:"flex items-center bg-white border-b border-gray-200 overflow-auto no-scrollbar",children:[h.jsx(I_,{}),h.jsx(W_,{}),h.jsx(e6,{})]})}function I_(){const{dataSourceId:n,name:l,tabId:r}=b.useContext(oa),{data:s}=ju(n),{data:o}=b.useContext(Yn),u=Sr($t.EDITOR),d=$_(),m=()=>{var p,g;(p=o==null?void 0:o.columns)!=null&&p[0].table&&lh({table:(g=o==null?void 0:o.columns)==null?void 0:g[0].table,dataSourceId:n})},y=async()=>{const p=await Pl("Query name",l);!p||!(o!=null&&o.queryHistoryId)||(d.mutate({name:p,queryId:o.queryHistoryId}),r&&Ru(r,p))};return cn("s",y,"Save query"),h.jsxs("div",{className:se.tableConfig,children:[h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Manage filters",onClick:()=>Ln("filters"),className:re(se.tableAction,se.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:()=>Ln("joins"),className:re(se.tableAction,se.blue),children:[h.jsx("span",{children:"Join"}),h.jsx("span",{className:"hotkey",children:"J"})]}),h.jsx(t6,{}),h.jsxs("button",{"data-tooltip-id":"explorer-more-actions",className:re(se.tableAction,se.blue),children:[h.jsx("span",{className:"whitespace-nowrap",children:"More actions"}),h.jsx(ph,{width:16,height:16,className:"rotate-90"})]}),h.jsxs(hh,{id:"explorer-more-actions",className:"z-10 shadow-md flex flex-col",clickable:!0,variant:"light",opacity:1,children:[h.jsxs("button",{onClick:()=>Ln("columns"),className:re(se.tableAction,se.modal,se.blue,"justify-between"),children:[h.jsx("span",{children:"Columns"}),h.jsx("span",{className:"hotkey",children:"C"})]}),h.jsxs("button",{onClick:()=>Ln("groupBy"),className:re(se.tableAction,se.modal,se.blue,"justify-between"),children:[h.jsx("span",{children:"Group by"}),h.jsx("span",{className:"hotkey",children:"G"})]}),h.jsxs("button",{onClick:()=>Ln("aggregate"),className:re(se.tableAction,se.modal,se.blue,"justify-between"),children:[h.jsx("span",{children:"Aggregate"}),h.jsx("span",{className:"hotkey",children:"A"})]}),h.jsxs("button",{onClick:yh,className:re(se.tableAction,se.modal,se.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:y,className:re(se.tableAction,se.modal,se.blue),children:[h.jsx("span",{children:"Save query"}),h.jsx("span",{className:"hotkey",children:"S"})]}),(s==null?void 0:s.allowInsert)===!0&&h.jsx("button",{onClick:m,className:re(se.tableAction,se.modal,se.blue),children:"Insert new row"})]})]})]})}function W_(){const{name:n}=b.useContext(oa),{state:l}=b.useContext(ht),{refetch:r,data:s}=b.useContext(Yn),{size:o,setSize:u}=Y1(),d=(window==null?void 0:window.location.hostname)!=="localhost",m=()=>{yl(n,l,!0),Md()},y=()=>{if(s!=null&&s.queryHistoryId){const p=new URL(window.location.href);p.pathname=Ye.share.path,p.searchParams.set("shareId",s.queryHistoryId),navigator.clipboard.writeText(p.toString()),qt.success("Share link copied to clipboard")}};return cn("e",yh,"Show editor sidebar"),h.jsxs("div",{className:se.tableConfig,children:[h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:r,className:re(se.tableAction,se.blue),children:"Refresh"}),d&&h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Share query",onClick:y,className:re(se.tableAction,se.blue),children:"Share"}),h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Clone in a new tab",onClick:m,className:re(se.tableAction,se.blue),children:"Clone"}),h.jsx("label",{className:se.tableAction,"data-tooltip-content":"Size","data-tooltip-id":"default",children:h.jsxs("select",{style:{height:"20px"},value:o,onChange:p=>u(parseInt(p.target.value,10)),children:[h.jsx("option",{value:5,children:"5 rows"}),h.jsx("option",{value:10,children:"10 rows"}),h.jsx("option",{value:20,children:"20 rows"}),h.jsx("option",{value:50,children:"50 rows"}),h.jsx("option",{value:100,children:"100 rows"}),h.jsx("option",{value:200,children:"200 rows"})]})})]})}function e6(){const{page:n,size:l,setPage:r}=Y1(),{data:s}=b.useContext(Yn),o=(s==null?void 0:s.rows.length)===l;return h.jsxs("div",{className:se.tableConfig,children:[h.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:n<=0,className:re(se.tableAction,se.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:!o,className:re(se.tableAction,se.blue),onClick:()=>r(n+1),children:"Next"})]})}function t6(){const{state:n,setState:l}=b.useContext(ht),r=()=>{l(o=>({...o,searchAll:void 0}))},s=()=>{Pl("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(o=>{o!==void 0&&l(u=>({...u,searchAll:o.length>0?o:void 0}))})};return cn("k",s,"Search text"),n.searchAll?h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:r,className:re(se.tableAction,se.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:s,className:re(se.tableAction,se.blue),children:[h.jsx("span",{className:"whitespace-nowrap",children:"Search text"}),h.jsx("span",{className:"hotkey",children:"K"})]})}const n6="_drop-container_1pg3i_2",a6="_item_1pg3i_2",rv={dropContainer:n6,item:a6},Ud=({dataSourceId:n,focusId:l,placeholder:r="Column",onChange:s,value:o,autoFocus:u,allowTables:d})=>{const{data:m}=ei(n),y=b.useRef(null),p=b.useMemo(()=>{if(!m)return[];let _=m;return d&&(_=m.filter(O=>d.includes(O.tableName))),_.flatMap(O=>O.columns.map(D=>({value:O.tableName+"."+D.name,label:D.name,table:O.tableName,searchValue:D.name.toLowerCase()})))},[m,d]),g=b.useMemo(()=>{const _=o.toLowerCase()||"",O=[];for(let D=0;D<p.length&&O.length<10;D++)p[D].searchValue.includes(_)&&O.push(p[D]);return O},[p,o]),[S,E]=b.useState(!1),[C,w]=b.useState(0),A=_=>{var O;if(_.key==="ArrowDown")_.preventDefault(),w(D=>(D+1)%g.length);else if(_.key==="ArrowUp")_.preventDefault(),w(D=>(D-1+g.length)%g.length);else if(_.key==="Enter"&&C>=0&&C<g.length){_.preventDefault();const D=g[C].value;E(!1);const Y=p.findIndex(H=>H.value===D)>-1;s(((O=g[C])==null?void 0:O.value)||D,Y,!0)}};b.useEffect(()=>{var O;const _=(O=y.current)==null?void 0:O.querySelector('[data-is-active="true"]');_&&_.scrollIntoView({behavior:"smooth",block:"nearest"})},[C]);const N=_=>{const O=_.currentTarget.value,D=p.findIndex(Y=>Y.value===O)>-1;s(O,D,!1)};return h.jsxs("div",{className:"relative",onFocus:()=>E(!0),onBlur:()=>E(!1),children:[h.jsx("input",{autoFocus:u,onKeyDown:A,value:o,onChange:N,className:"input w-full",placeholder:r,"data-focus":l}),S&&g.length>0&&h.jsx("div",{className:rv.dropContainer,ref:y,tabIndex:-1,children:g.map((_,O)=>h.jsxs("div",{className:rv.item,"data-is-active":C===O,onMouseDownCapture:D=>{D.preventDefault(),E(!1),s(_.value,!0,!0)},children:[h.jsx("span",{className:"text-xs font-semibold truncate",children:_.table}),h.jsx("p",{className:"truncate text-sm",children:_.label})]},O))})]})},l6="_drop-container_v6ak4_2",s6="_item_v6ak4_2",ov={dropContainer:l6,item:s6};function i6(n){return u4.includes(n)?i4:c4.includes(n)?s4:f4.includes(n)?r4:Pd}const r6=({value:n,onChange:l,autoFocus:r,focusId:s,colType:o})=>{const u=b.useMemo(()=>{const E=n.toLowerCase()||"";return i6(o||"").filter(C=>C.label.includes(E))},[n,o]),d=b.useRef(null),[m,y]=b.useState(!1),[p,g]=b.useState(0),S=E=>{var C;E.key==="ArrowDown"?(E.preventDefault(),g(w=>(w+1)%u.length)):E.key==="ArrowUp"?(E.preventDefault(),g(w=>(w-1+u.length)%u.length)):E.key==="Enter"&&(p>=0&&p<u.length?(E.preventDefault(),y(!1),l(((C=u[p])==null?void 0:C.label)||"",!0)):l(n,!0))};return b.useEffect(()=>{var C;const E=(C=d.current)==null?void 0:C.querySelector('[data-is-active="true"]');E&&E.scrollIntoView({behavior:"smooth",block:"nearest"})},[p]),h.jsxs("div",{className:"relative",children:[h.jsx("input",{onKeyDown:S,value:n,onChange:E=>l(E.target.value,!1),className:"input w-full",placeholder:"Operator",autoFocus:r,onFocus:()=>y(!0),onBlur:()=>y(!1),"data-focus":s}),m&&u.length>0&&h.jsx("ul",{className:ov.dropContainer,ref:d,tabIndex:-1,children:u.map((E,C)=>h.jsx("li",{className:ov.item,"data-is-active":p===C,onMouseDownCapture:w=>{w.preventDefault(),y(!1),l(E.label,!0)},children:E.label},C))})]})},o6="_actions_1g7nm_2",u6="_filter-actions_1g7nm_2",K1={actions:o6,filterActions:u6},c6=["=","<",">",">=","<>","!=","<="];function f6(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 qt.error(`Filter #${l+1} has invalid column value`),!1;const s=Wd[r.operator];if(!s)return qt.error(`Filter #${l+1} has invalid operator`),!1;if(r.isColumnRef&&!c6.includes(s))return qt.error(`Filter #${l+1} cannot reference another column because it uses '${r.operator}' operator`),!1}return!0}function d6(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 s=Wd[r.operator];l.push({id:r.id,value:r.isColumnRef?[{value:r.value,isColumn:!0}]:o4(s,r.value),operator:s,column:r.column,isEnabled:!0,connector:"AND"})}),l}function h6(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 m6=({filter:n,dataSourceId:l,allowedTables:r,inspections:s,autoFocus:o,onChangeColumn:u,onChangeOperator:d,onChangeValue:m,onRemoveFilter:y,onIsColumnChange:p})=>{const g=b.useMemo(()=>{if(!s)return"";let S=null;for(const E of s)for(const C of E.columns)E.tableName+"."+C.name===n.column&&(S=C);return S!=null&&S.type?S.type:""},[n.column,s]);return h.jsxs("div",{className:"flex gap-2 items-center",children:[h.jsx("label",{className:"w-full",children:h.jsx(Ud,{dataSourceId:l,onChange:S=>u(n.id,S),value:n.column,allowTables:r,focusId:"column",autoFocus:o})}),h.jsx("label",{children:h.jsx(r6,{onChange:S=>d(n.id,S),focusId:"operator",colType:g,value:n.operator})}),b1(Wd[n.operator])&&h.jsx("label",{className:"w-full",children:n.isColumnRef?h.jsx(Ud,{dataSourceId:l,onChange:S=>m(n.id,S),value:n.value,allowTables:r,focusId:"value",placeholder:"Search column"}):h.jsx("input",{className:"input w-full",placeholder:"Filter value",value:n.value,onChange:S=>m(n.id,S.currentTarget.value),"data-focus":"value"})}),h.jsxs("div",{className:K1.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:re("p-0.5 cursor-pointer rounded-lg border",n.isColumnRef?"bg-blue-50 border-blue-200":"bg-white border-white"),onClick:()=>p(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(kn,{width:20,height:20,className:"text-red-600"})})]})]})},p6=()=>{const{state:n}=b.useContext(ht),{setFilters:l}=H1(),r=Lu(A=>A.filters),{data:s}=ei(n.dataSourceId),o=b.useMemo(()=>[n.table,...n.joins.map(A=>A.table)],[n.table,n.joins]),[u,d]=b.useState([]),m=(A,N)=>{d(_=>[..._.map(O=>O.id===A?{...O,column:N}:O)])},y=(A,N)=>{d(_=>[..._.map(O=>O.id===A?{...O,operator:N}:O)])},p=(A,N)=>{d(_=>[..._.map(O=>O.id===A?{...O,value:N}:O)])},g=()=>{d(A=>[...A,{id:Ua(),value:"",column:"",operator:"",isColumnRef:!1}])},S=(A,N)=>{d(_=>[..._.map(O=>O.id===A?{...O,isColumnRef:N}:O)])},E=A=>{d(N=>N.filter(_=>_.id!==A))},C=()=>qu("filters"),w=()=>{f6(u)&&(l(d6(u)),C())};return b.useEffect(()=>{if(!r){d([]);return}d(()=>{const A=n.filters.map(N=>{var _,O;return{id:N.id,value:h6(N),column:N.column,operator:Id[N.operator],isColumnRef:!!((O=(_=N.value)==null?void 0:_[0])!=null&&O.isColumn)}});return A.push({id:Ua(),value:"",column:"",operator:"",isColumnRef:!1}),A})},[r]),cn("f",()=>{mu("filters")},"Add new filter"),cn("ctrl+f",()=>{alert("Save filters")},"Save filters"),h.jsxs(It,{isVisible:r,onClose:C,portal:!0,children:[h.jsx(Qn,{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:[u.length<1&&h.jsx("p",{className:"p-1 text-center rounded-lg bg-gray-50 border border-gray-200",children:"No filters"}),u.map((A,N)=>h.jsx(m6,{filter:A,dataSourceId:n.dataSourceId,allowedTables:o,inspections:s||[],onChangeColumn:m,onChangeOperator:y,onChangeValue:p,onRemoveFilter:E,onIsColumnChange:S,autoFocus:N===u.length-1},A.id))]}),h.jsxs("div",{className:K1.actions,children:[h.jsx("button",{className:"button tertiary",onClick:g,children:"Add filter"}),h.jsx("button",{className:"button primary",onClick:w,children:"Apply filters"})]})]})},y6="_card_1agnm_2",v6="_cards-list_1agnm_2",g6="_join-modal_1agnm_2",b6="_close-button_1agnm_2",Qo={card:y6,cardsList:v6,joinModal:g6,closeButton:b6},x6=()=>{const{isFetching:n}=b.useContext(Yn),l=Lu(p=>p.joins),{toggle:r,joins:s}=k1(),{availableJoins:o}=b.useContext(oa),[u,d]=b.useState(""),m=b.useMemo(()=>{const p=u.toLowerCase();return o.filter(g=>g.on.toTable.toLowerCase().includes(p))},[o,u]),y=()=>qu("joins");return cn("j",()=>{o.length>0?Ln("joins"):qt.error("No available tables to join")},"Add new join"),h.jsxs(It,{isVisible:l,onClose:y,portal:!0,children:[h.jsx(Qn,{onClick:y}),h.jsxs("div",{className:Qo.joinModal,children:[h.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),s.length>0&&h.jsx("div",{className:Qo.cardsList,children:s.map((p,g)=>h.jsxs("div",{className:Qo.card,children:[h.jsxs("p",{className:"text-sm truncate",children:[p.table," on ",p.on]}),g===s.length-1&&h.jsx("button",{className:Qo.closeButton,onClick:()=>r(p),disabled:n,children:h.jsx(kn,{width:20,height:20})})]},p.table+p.on))}),m.length>0?h.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:p=>d(p.target.value),value:u,disabled:n}):h.jsx(Lt,{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 S6(n){return n.reduce((l,r)=>(l[r]=!0,l),{})}function w6(n){return n.reduce((l,r)=>(l[r]=!0,l),{})}const E6="_container_lkfbv_2",C6="_column-label_lkfbv_2",_6="_not-active_lkfbv_2",Wo={container:E6,columnLabel:C6,notActive:_6};function N6(n){if(!n)return[];const l={};return n.forEach(r=>{l[r.table]?l[r.table].push({value:r.full,ogColumn:r.column,label:hl(r.column),type:r.type}):l[r.table]=[{value:r.full,ogColumn:r.column,label:hl(r.column),type:r.type}],d4[r.type]&&["YEAR","MONTH","DAY"].forEach(s=>{l[r.table].push({value:s+" "+r.full,ogColumn:r.column,label:s+" "+hl(r.column),type:"number",nested:!0})})}),Object.entries(l).reduce((r,[s,o])=>(r.push({name:hl(s),columns:o}),r),[])}function j6(n,l){const r=l.toLowerCase();return n.map(s=>{const o=s.columns.filter(u=>u.label.toLowerCase().includes(r)||u.ogColumn.toLowerCase().includes(r));return{...s,columns:o}}).filter(s=>s.columns.length>0)}const A6=({column:n,selected:l,onCheck:r})=>h.jsxs("label",{className:re(Wo.columnLabel,l?Wo.active:Wo.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),T6={columns:"c",groupBy:"g"},uv=({mode:n})=>{const l=Lu(_=>_[n]),{allColumns:r}=b.useContext(oa),{state:s,setState:o}=b.useContext(ht),[u,d]=b.useState({}),[m,y]=b.useState(""),p=b.useMemo(()=>N6(r),[r]),g=s.aggregations.length>0||s.groupBy.length>0,S=b.useMemo(()=>m?j6(p,m):p,[m,p]),E=_=>{d(O=>({...O,[_.target.name]:_.target.checked}))},C=_=>{const O=_.target.checked;d(D=>{for(const Y of r)D[Y.full]=O;return{...D}})},w=()=>{qu(n)},A=()=>{const _=[];for(const[O,D]of Object.entries(u))if(D){const[Y,H]=O.split(" ");_.push({value:H||Y,fn:H?Y:void 0})}o(O=>({...O,[n]:_})),w()},N=b.useMemo(()=>{for(const _ of r)if(!u[_.full])return!1;return!0},[u,r]);return cn(T6[n],()=>{n==="columns"?g?qt.error("Columns are ignored when there is at least one aggregation or group by"):mu("columns"):mu("groupBy")},"Manage "+n),b.useEffect(()=>{if(!l){d({});return}d(()=>S6(s[n].map(_=>_.fn?_.fn+" "+_.value:_.value)))},[l,d]),h.jsxs(It,{isVisible:l,onClose:w,portal:!0,children:[h.jsx(Qn,{onClick:w}),h.jsxs("div",{className:Wo.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(O=>h.jsx(A6,{column:O,selected:u,onCheck:E},O.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:N,onChange:C}),h.jsx("span",{children:"Select all"})]}),h.jsx("span",{className:"flex-1"}),h.jsx("button",{className:"button tertiary",onClick:w,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:A,children:"Apply"})]})]})]})},R6="_options-container_ubacc_2",O6={optionsContainer:R6},ud="COUNT all",D6=n=>n.distinct?[n.fn,"DISTINCT",n.value].join(" "):[n.fn,n.value].join(" "),M6=()=>{const n=Lu(w=>w.aggregate),{dataSourceId:l}=b.useContext(oa),{setState:r,state:s}=b.useContext(ht),{data:o}=b.useContext(Yn),[u,d]=b.useState({fn:"",col:""}),m=w=>d({...u,fn:w.currentTarget.value}),y=w=>d({...u,col:w}),p=()=>qu("aggregate"),g=()=>{const w=u.fn===ud?{value:"*",fn:"COUNT"}:{fn:u.fn,value:u.col,distinct:u.fn==="COUNT"};r(A=>({...A,aggregations:[...A.aggregations,w]}))},S=u.fn===ud,E=S?!1:!u.col||!u.fn,C=w=>{const A=ta(w);r(N=>({...N,aggregations:N.aggregations.filter(_=>_.fn!==w.fn||_.value!==w.value),orderBy:N.orderBy.filter(_=>_.column!==A)}))};return cn("a",()=>{mu("aggregate")},"Aggregate data"),h.jsxs(It,{isVisible:n,onClose:p,backdropClose:!0,portal:!0,children:[h.jsx(Qn,{onClick:p}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),pl(s.aggregations.length,0)&&h.jsx("div",{className:"flex flex-col gap-1 mt-4",children:s.aggregations.map((w,A)=>h.jsxs("p",{className:"p-2 rounded-md bg-gray-50 flex items-center justify-between",children:[h.jsx("span",{children:D6(w)}),h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove aggregation",className:"p-0.5 text-sm cursor-pointer",onClick:()=>C(w),children:h.jsx(kn,{width:20,height:20,className:"text-red-600"})})]},A))}),h.jsxs("div",{className:O6.optionsContainer,children:[h.jsxs("label",{className:re(S&&"col-span-2"),children:[h.jsx("p",{className:"font-semibold text-xs",children:"Function"}),h.jsxs("select",{className:"input w-full",value:u.fn,onChange:m,autoFocus:!0,children:[h.jsx("option",{value:"",disabled:!0,children:"Select function"}),h.jsx("option",{value:ud,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(Ud,{dataSourceId:l,allowTables:(o==null?void 0:o.tables)||[],onChange:y,value:u.col})]}),h.jsx("button",{className:"button primary",disabled:E,onClick:g,children:"Add"})]})]})]})},G1=({options:n,updater:l,name:r,tabId:s})=>{const o=p4(n,l),{state:u}=o,d=sE({datasourceId:n.dataSourceId,name:r,opts:{table:n.table,filters:u.filters,joins:u.joins,orderBy:u.orderBy,columns:u.columns,aggregations:u.aggregations,groupBy:u.groupBy,searchAll:u.searchAll},page:u.page,size:u.size}),m=m4(d.data,n.dataSourceId,r,s);return h.jsx(oa,{value:m,children:h.jsx(ht,{value:o,children:h.jsxs(Yn,{value:d,children:[h.jsx(P_,{}),h.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[h.jsxs("div",{className:"m-1 flex-1 overflow-auto pb-12 no-scrollbar",children:[h.jsx("div",{className:"pb-0.5 sticky bottom-0"}),h.jsx(m_,{})]}),h.jsx(p6,{}),h.jsx(x6,{}),h.jsx(uv,{mode:"columns"}),h.jsx(uv,{mode:"groupBy"}),h.jsx(M6,{}),h.jsx(K_,{})]})]})})})},U6=({tab:n})=>{const l=b.useCallback(r=>{Au(s=>s.map(o=>o.id!==n.id?o:{...o,options:r(o.options)}))},[n]);return h.jsx(G1,{updater:l,options:n.options,name:n.label,tabId:n.id})},L6=({content:n,activeAnchor:l})=>{if(!l)return null;const r=l.getAttribute("data-tab-id"),s=Tu.get().find(d=>d.id===r),o=MC(s==null?void 0:s.options.dataSourceId);if(!s)return n;const u=()=>{Pl("New tab name",s.label).then(d=>{d&&Ru(s.id,d)})};return h.jsxs("div",{children:[h.jsxs("button",{className:ea.tooltipLabel,onClick:u,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:"text-xs",children:"label"}),h.jsx("p",{className:"truncate font-semibold",children:s.label})]}),h.jsx("span",{children:"✏️"})]}),h.jsxs("div",{className:ea.tooltipInfoEntry,children:[h.jsx("p",{className:"text-sm",children:"table"}),h.jsx("p",{className:"truncate font-semibold",children:s.options.table})]}),o&&h.jsxs("div",{className:ea.tooltipInfoEntry,children:[h.jsxs("p",{className:"text-sm",children:["data source [",o.dbType,"]"]}),h.jsx("p",{className:"truncate font-semibold",children:o.name})]}),s.options.joins.length>0&&h.jsxs("div",{className:ea.tooltipInfoEntry,children:[h.jsx("p",{className:"text-sm",children:"joins"}),h.jsx("p",{className:"truncate font-semibold",children:s.options.joins.map(d=>d.table).join(", ")})]}),s.options.filters.length>0&&h.jsxs("div",{className:ea.tooltipInfoEntry,children:[h.jsx("p",{className:"text-sm",children:"filters"}),s.options.filters.map(d=>h.jsx("p",{className:"truncate font-semibold",children:W4(d)}))]})]})},q6=()=>{const n=v4(),l=th(),r=mh(Uu.laptop),s=b.useMemo(()=>{if(!l)return;const m=l.find(y=>y.id===n);return m||l[0]},[n,l]),o=m=>{m.stopPropagation(),m.preventDefault();const y=m.currentTarget.getAttribute("data-tab-id");y&&qy(y)},u=m=>{m.button===1&&qy(m.currentTarget.dataset.tabId)},d=m=>{const y=l.find(p=>p.id===m);Pl("New tab name",y==null?void 0:y.label).then(p=>{p&&Ru(m,p)})};return l.length<1?h.jsx(n2,{to:"/"}):h.jsxs("div",{className:"h-screen max-h-screen bg-(--bg) flex flex-col",children:[r&&h.jsx(hh,{id:"tab",render:L6,className:"z-10 shadow-md p-0!",offset:-1,noArrow:!0,opacity:1,variant:"light",clickable:!0,delayShow:500}),s&&h.jsx(U6,{tab:s}),h.jsx("div",{className:re(ea.tabs,"no-scrollbar",!r&&ea.mobile),children:l==null?void 0:l.map(m=>h.jsxs("div",{onClick:()=>nh(m.id),className:re(ea.tab,m.id===(s==null?void 0:s.id)&&ea.active),"data-tab-id":m.id,"data-tooltip-id":"tab","data-tooltip-content":m.label,onAuxClick:u,onContextMenu:y=>{y.preventDefault(),d(m.id)},children:[h.jsxs("span",{className:"truncate w-full",children:["📄 ",m.label]}),h.jsx("button",{"data-tab-id":m.id,className:ea.closeButton,onClick:o,children:h.jsx(kn,{width:20,height:20})})]},m.id))})]})},z6=()=>{const n=J_(),l=b.useCallback(r=>{V1(s=>s?{...s,options:r(s.options)}:(qt.error("Something went wrong."),s))},[]);return n?h.jsxs(It,{isVisible:!0,onClose:Md,children:[h.jsx(Qn,{onClick:Md}),h.jsx("div",{className:"border border-gray-200 bg-(--bg) flex flex-col",children:h.jsx(G1,{name:n.label,options:n.options,updater:l})})]}):null},B6="_root_v2e9m_2",H6="_down_v2e9m_2",k6="_chevron_v2e9m_2",Q6="_table-name-container_v2e9m_2",Y6="_link_v2e9m_2",V6="_table-name_v2e9m_2",K6="_ul_v2e9m_2",G6="_column-type_v2e9m_2",Ra={root:B6,down:H6,chevron:k6,tableNameContainer:Q6,link:Y6,tableName:V6,ul:K6,columnType:G6},[lj,F6]=Pt(!1),F1=()=>F6(!1),$6=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function X6(n,l){if(l&&n.toLowerCase().includes(l))return"bg-yellow-200"}const Z6=({insp:n,filter:l,expanded:r})=>{const s=b.useMemo(()=>r?n.columns:l.length<1?[]:n.columns.filter(o=>o.name.toLowerCase().includes(l)),[n,l,r]);return h.jsx("ul",{className:Ra.ul,children:s.map(o=>h.jsx(h.Fragment,{children:h.jsxs("li",{children:[o.isPrimary?"🔐":"🏷️"," ",h.jsx("span",{className:X6(o.name,l),children:o.name})," ",h.jsxs("span",{className:Ra.columnType,children:["[",o.type,"]"]}),o.ref&&h.jsxs("span",{children:[" ➡️ ",h.jsx("span",{className:Ra.columnType,children:o.ref.table}),".",o.ref.field]})]},o.name+o.type)}))},n.id)};function J6({id:n}){const{data:l}=ju(n),{data:r}=ei(n),s=Jt(),{pathname:o}=Nt(),u=$3(),d=y1(),m=X3(),y=b.useMemo(()=>l!=null&&l.lastInspected?$6.format(new Date(l.lastInspected)):"--",[l]),[p,g]=b.useState({}),[S,E]=b.useState(""),[C,w]=b.useState("table"),A=Sr($t.EDITOR),N=S.toLowerCase(),_=b.useMemo(()=>{if(!N||!r)return r||[];const W=[];for(const ie of r){if(ie.tableName.toLowerCase().includes(N)){W.push(ie);continue}C!=="table"&&ie.columns.findIndex(pe=>pe.name.toLowerCase().includes(N))>=0&&W.push(ie)}return W},[N,r,C]),O=W=>{g(ie=>({...ie,[W]:!ie[W]}))},D=W=>{yl(W,{table:W,dataSourceId:n},!0),Ys(void 0),F1(),o!==Ye.workbench.path&&s(Ye.workbench.path)},Y=()=>{d.mutate(n)},H=async()=>{const W=await Pl("Enter name",l==null?void 0:l.name);W&&u.mutate({id:n,dataSource:{name:W}})},$=async()=>{await w1("Are you sure you want to delete this data source?")&&(m.mutate(n),Ys(void 0))},I=C==="column";return h.jsxs("div",{className:Ra.root,children:[h.jsxs("h3",{className:"page-head flex gap-2",children:[l&&h.jsx(ah,{size:32,type:l.dbType}),h.jsx("span",{className:"truncate",children:l==null?void 0:l.name})]}),h.jsx("p",{className:"mt-1 text-sm font-semibold",children:y}),A&&h.jsxs("div",{className:"mt-2 flex gap-2",children:[h.jsx("button",{disabled:d.isLoading,onClick:Y,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),h.jsx("button",{disabled:d.isLoading,onClick:H,className:"button tertiary",children:"Rename"}),h.jsx("button",{disabled:d.isLoading,onClick:$,className:"button tertiary",children:"Delete"})]}),h.jsxs("div",{className:"flex gap-1 items-center mb-2 mt-4",children:[h.jsx("input",{className:"input flex-1 bg-gray-50",placeholder:I?"Search column":"Search table",value:S,onChange:W=>E(W.target.value),autoFocus:!0}),h.jsx("button",{className:"button primary w-20",onClick:()=>w(I?"table":"column"),children:I?"Column":"Table"})]}),h.jsx("div",{className:"overflow-y-auto",children:_==null?void 0:_.map(W=>h.jsxs("div",{children:[h.jsxs("div",{className:Ra.tableNameContainer,children:[h.jsx("button",{className:re(Ra.chevron,p[W.id]&&Ra.down),onClick:()=>O(W.id),children:h.jsx(ph,{width:16,height:16})}),h.jsx("button",{className:re(Ra.tableName,"flex-1"),onClick:()=>O(W.id),children:W.tableName}),h.jsx("button",{className:Ra.link,onClick:()=>D(W.tableName),children:"↗️"})]}),(p[W.id]||S.length>0)&&h.jsx(Z6,{insp:W,filter:I?N:"",expanded:p[W.id]})]},W.id))})]})}const P6=()=>{const n=K4(),[l,r]=b.useState(void 0);b.useEffect(()=>{n&&r(n)},[n]);const s=()=>Ys(void 0);return h.jsx(Q1,{isVisible:n!=null,onClose:s,onClosed:()=>r(void 0),backdropClose:!0,children:l&&h.jsx(J6,{id:l})})};function I6(n,l=500){const[r,s]=b.useState(n);return b.useEffect(()=>{const o=setTimeout(()=>s(n),l);return()=>clearTimeout(o)},[n,l]),r}const W6="_search_c9105_2",eN="_entry_c9105_2",tN="_ds_c9105_2",nN="_ds-entry_c9105_2",Yo={search:W6,entry:eN,ds:tN,dsEntry:nN},[aN,lN]=eh({initialData:[],localStorageKey:"selected-data-sources-v1"}),sN=n=>lN(l=>{const r=l.indexOf(n);return r>-1?(l.splice(r,1),[...l]):[...l,n]}),iN={table:"📄",query:"📖"},rN=({onTable:n,onQuery:l,autoFocus:r})=>{const[s,o]=b.useState(""),[u,d]=b.useState(-1),m=I6(s,200),y=aN(),{data:p}=ia(),{data:g}=Jd({teamId:p==null?void 0:p.teamId}),{data:S}=Y3(m,{teamId:p==null?void 0:p.teamId,selectedDataSources:y}),E=N=>{N.type==="table"?n(N.name,N.dataSourceId):N.type==="query"&&l(N.id,N.dataSourceId)},C=N=>{var _;S&&(N.key==="ArrowDown"?(N.preventDefault(),d(O=>(O+1)%S.length)):N.key==="ArrowUp"?(N.preventDefault(),d(O=>(O-1+S.length)%S.length)):N.key==="Enter"&&u>=0&&(_=S[u])!=null&&_.name&&(N.preventDefault(),E(S[u])))},w=N=>{const _=N.currentTarget.dataset.tableId,O=S==null?void 0:S.find(D=>D.id===_);O&&E(O)},A=b.useMemo(()=>w6(y),[y]);return h.jsxs("div",{className:"overflow-hidden flex flex-col w-full lg:w-lg",children:[pl(g==null?void 0:g.length,0)&&h.jsx("div",{className:"flex overflow-x-auto mb-2 gap-2 no-scrollbar",children:g.map(N=>h.jsxs("label",{className:Yo.dsEntry,children:[h.jsx("input",{type:"checkbox",checked:A[N.id]===!0,onChange:()=>sN(N.id)}),h.jsx("span",{children:N.name})]},N.id))}),h.jsx("input",{className:Yo.search,placeholder:"Search table or saved query to start from",value:s,onChange:N=>o(N.target.value),onKeyDown:C,autoFocus:r}),pl(S==null?void 0:S.length,0)&&h.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:S.map((N,_)=>h.jsxs("button",{className:Yo.entry,"data-is-active":u===_,"data-table-id":N.id,onClick:w,children:[h.jsxs("p",{className:"font-semibold",children:[iN[N.type]," ",N.name]}),h.jsxs("p",{className:Yo.ds,children:["📦 ",N.dataSourceName]})]},N.id))})]})},oN=()=>{const n=w4(),l=(o,u)=>{n==null||n.onConfirm("table",o,u)},r=(o,u)=>{n==null||n.onConfirm("query",o,u)},s=()=>{n==null||n.onCancel()};return h.jsxs(It,{isVisible:!!n,onClose:s,children:[h.jsx(Qn,{onClick:s}),h.jsx(rN,{autoFocus:!0,onTable:l,onQuery:r})]})},uN=()=>{const n=Nt();b.useEffect(()=>{},[n.pathname])},[cN,$1]=Pt(!1),cd=()=>$1(!1),X1=()=>$1(!0),fN=({repeatPassword:n,password:l})=>l.length<1?null:l.length<8?h.jsx(Lt,{variant:"warning",children:"New password should be at least 8 characters long"}):l!==n?h.jsx(Lt,{variant:"warning",children:"Repeat password should match new password"}):null,dN=()=>{const n=cN(),{data:l}=ia(),{mutateAsync:r,isLoading:s}=Z3(),o=Jt(),[{password:u,repeatPassword:d},{change:m,touched:y,reset:p}]=wr({password:"",repeatPassword:""}),g=()=>{o("/"),br.logout().then(()=>{cd()})},S=()=>{r({password:u}).then(()=>{p(),qt.success("Password successfully updated!")})},E=u.length<8||u!==d||s,C=y.includes("password");return h.jsxs(It,{isVisible:n,onClose:cd,children:[h.jsx(Qn,{onClick:cd}),h.jsxs("div",{className:"w-full lg:w-lg flex flex-col gap-2",children:[h.jsx(S1,{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:u,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(fN,{password:u,repeatPassword:d}),h.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[h.jsx("button",{className:"button tertiary",disabled:E,onClick:S,children:"Update password"}),h.jsx("button",{className:"button danger",onClick:g,children:"Log out"})]})]})]})},[hN,Z1]=Pt(!1),J1=()=>Z1(!0),cv=()=>Z1(!1),mN=n=>dn({queryKey:["team-users"],queryFn:async()=>{const{data:l}=await Ve.get("/teams/"+n+"/users");return l.data},enabled:!!n}),pN=()=>fn({mutationFn:async({role:n,teamId:l,userId:r})=>(await Ve.patch("/teams/"+l+"/user-role",{role:n,userId:r}),!0),onSuccess:()=>{yt.invalidateQueries({queryKey:["team-users"]})}}),yN=()=>fn({mutationFn:async({teamId:n,userId:l})=>(await Ve.delete("/teams/"+n,{params:{userId:l}}),!0),onSuccess:()=>{yt.invalidateQueries({queryKey:["team-users"]})}}),vN="_user-entry_1tdl7_2",gN={userEntry:vN},bN=()=>{const n=hN(),{data:l}=ia(),{data:r}=mN(l==null?void 0:l.teamId),{mutate:s,isLoading:o}=J3(),{mutate:u,isLoading:d}=pN(),{mutate:m,isLoading:y}=yN(),[p,{change:g,reset:S}]=wr({password:"",username:""}),E=()=>{s({username:p.username,password:p.password,teamId:(l==null?void 0:l.teamId)||""}),S()},C=(_,O)=>{u({teamId:l.teamId,role:O,userId:_})},w=_=>{w1("Are you sure you want to remove this user?").then(O=>{O&&m({userId:_,teamId:l.teamId})})},A=Sr($t.ADMIN),N=o||d||y;return h.jsxs(It,{isVisible:n,onClose:cv,backdropClose:!0,children:[h.jsx(Qn,{onClick:cv}),h.jsxs("div",{className:"w-full lg:w-lg flex flex-col overflow-hidden",children:[h.jsx(S1,{children:"Manage users"}),pl(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:gN.userEntry,children:[h.jsxs("select",{className:"input",value:_.role,disabled:!A||N,onChange:O=>C(_.id,O.currentTarget.value),children:[h.jsx("option",{value:$t.OWNER,children:"Owner"}),h.jsx("option",{value:$t.ADMIN,children:"Admin"}),h.jsx("option",{value:$t.EDITOR,children:"Editor"}),h.jsx("option",{value:$t.READ_ONLY,children:"Reader"})]}),h.jsx("p",{className:"flex-1 mx-2",children:_.name}),A&&h.jsx("button",{className:"p-1 cursor-pointer text-red-500 text-sm",onClick:()=>w(_.id),children:"❌"})]},_.id))}),A&&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:N}),h.jsx("input",{className:"input",onChange:g("password"),value:p.password,type:"password",name:"newPassword",autoComplete:"new-password",placeholder:"Password",disabled:N}),h.jsx("button",{className:"button primary",onClick:E,disabled:N,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."})]})]})]})},xN=()=>{const[n,l]=b.useState(""),[r,s]=b.useState(""),[o,u]=b.useState(),[d,m]=b.useState(!1),y=Jt(),p=g=>{g.preventDefault(),u(void 0),br.login({password:r,username:n}).then(()=>{y("/",{replace:!0})}).catch(u)};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"}),o&&h.jsx(Lt,{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=>s(g.currentTarget.value),className:"input",type:"password",placeholder:"Password"}),h.jsx("button",{type:"submit",className:"button primary",children:"Login"}),d?h.jsxs(Lt,{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?"})]})})})},SN=()=>{const n=Jt(),{pathname:l}=Nt(),{data:r,isLoading:s}=v1();b.useEffect(()=>{!r&&!s&&l!==Ye.login.path&&n(Ye.login.path)},[r,s,n,l])},wN=()=>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..."})]}),EN=()=>{const[n]=U2(),l=Jt(),{data:r,isLoading:s,isError:o}=F_(n.get("shareId"));return b.useEffect(()=>{var u;r&&(yl(r.name,{...r.opts,dataSourceId:(u=r.dataSource)==null?void 0:u.id},!0),l(Ye.workbench.path,{replace:!0}))},[r]),h.jsxs("div",{className:"page-container flex items-center justify-center h-screen",children:[s&&h.jsxs("div",{className:"flex items-center flex-col gap-2",children:[h.jsx(wN,{}),h.jsx("p",{children:"Fetching query information"})]}),o&&h.jsx(Lt,{variant:"danger",children:"Failed to load query information"})]})};function CN(){return q_(),uN(),SN(),h.jsxs(h.Fragment,{children:[h.jsxs(l2,{children:[h.jsx(ir,{path:Ye.home.path,element:h.jsx(J4,{})}),h.jsx(ir,{path:Ye.workbench.path,element:h.jsx(q6,{})}),h.jsx(ir,{path:Ye.login.path,element:h.jsx(xN,{})}),h.jsx(ir,{path:Ye.share.path,element:h.jsx(EN,{})})]}),h.jsx(z6,{}),h.jsx(cE,{}),h.jsx(xE,{}),h.jsx(ME,{}),h.jsx(P6,{}),h.jsx(oN,{}),h.jsx(dN,{}),h.jsx(bN,{}),h.jsx(AE,{}),h.jsx(EE,{})]})}const _N="_desktop-layout_1v4f5_2",NN="_mobile-layout_1v4f5_2",jN="_nav_1v4f5_2",AN="_main_1v4f5_2",TN="_header_1v4f5_2",Gs={desktopLayout:_N,mobileLayout:NN,nav:jN,main:AN,header:TN},RN="_container_1eqik_2",ON="_menu_1eqik_2",pu={container:RN,menu:ON},DN=({name:n,id:l,onRename:r,onDelete:s,onOpen:o})=>{const u=q1();return h.jsxs("button",{className:pu.menu,onContextMenu:u.open,onClick:()=>o(l),children:[h.jsx(z1,{handler:u,children:h.jsxs("div",{className:"context-menu-container",children:[h.jsx("button",{onClick:d=>{d.preventDefault(),d.stopPropagation(),u.close(),r(l)},className:"context-menu-item",children:"✏️ Rename"}),h.jsx("button",{onClick:d=>{d.preventDefault(),d.stopPropagation(),u.close(),s(l)},className:"context-menu-item",children:"🗑️ Delete"})]})}),h.jsxs("span",{children:["📖 ",n]})]})},MN=({dataSource:n,index:l})=>{const r=()=>{Ys(n.id)};return cn(l.toString(),()=>{Ys(s=>{if(s!==n.id)return n.id})},n.name),h.jsxs("button",{className:pu.menu,onClick:r,children:[h.jsx(ah,{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})]})},UN=()=>{const n=Jt(),l=Nt(),{data:r}=ia(),{data:s}=H3(r==null?void 0:r.teamId),{data:o}=k3(r==null?void 0:r.teamId),u=th(),d=Z_(),m=X_(),y=E=>{x1(E).then(C=>{var w;yl(C.name,fr({...C.opts,dataSourceId:(w=C.dataSource)==null?void 0:w.id}),!0),l.pathname!==Ye.workbench.path&&n(Ye.workbench.path)})},p=async E=>{const C=o==null?void 0:o.find(A=>A.id===E),w=await Pl("New name?",C==null?void 0:C.name);w&&d.mutate({id:E,payload:{name:w}})},g=E=>{var w;const C=(w=o==null?void 0:o.find(A=>A.id===E))==null?void 0:w.savedQueryId;C&&m.mutate(C)},S=E=>{nh(E),l.pathname!==Ye.workbench.path&&n(Ye.workbench.path)};return h.jsx("div",{className:pu.container,children:h.jsxs("div",{className:"flex-1 overflow-y-auto",children:[pl(s==null?void 0:s.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"}),s.map((E,C)=>h.jsx(MN,{dataSource:E,index:C+1},E.id))]}),pl(o==null?void 0:o.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"}),o.map(E=>h.jsx(DN,{onDelete:g,onRename:p,onOpen:y,name:E.name,id:E.id},E.savedQueryId))]}),pl(u==null?void 0:u.length,0)&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"WORKBENCH TABS"}),u==null?void 0:u.map(E=>h.jsx("button",{className:pu.menu,onClick:()=>S(E.id),children:h.jsxs("span",{children:["📄 ",E.label]})},E.id))]})]})})},LN=()=>{const n=Jt(),{pathname:l}=Nt(),{data:r}=ia(),s=xr("Desktop nav"),o=()=>{F1(),l!==Ye.home.path&&n(Ye.home.path)};return h.jsxs("nav",{className:Gs.nav,children:[r&&h.jsxs("div",{className:Gs.header,children:[h.jsxs("button",{onClick:o,className:"flex justify-between items-center",children:[h.jsx("span",{children:"🏠 Home"}),h.jsx("span",{className:"hotkey",children:"H"})]}),h.jsxs("button",{onClick:s,className:"flex justify-between items-center",children:[h.jsx("span",{children:"🔎 New query"}),h.jsx("span",{className:"hotkey",children:"N"})]}),h.jsxs("button",{onClick:X1,children:["🪪 ",r.username]}),h.jsx("button",{onClick:J1,children:"👥 Manage users"})]}),h.jsx(UN,{})]})},qN="_root_fn7w6_2",zN={root:qN},BN=()=>{const{pathname:n}=Nt(),l=Jt(),r=xr("Mobile nav"),s=()=>{n!==Ye.home.path&&l(Ye.home.path)};return h.jsxs("div",{className:zN.root,children:[h.jsxs("button",{onClick:s,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:X1,children:[h.jsx("p",{children:"🪪"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Account"})]}),h.jsxs("button",{onClick:J1,children:[h.jsx("p",{children:"👥"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Users"})]})]})},HN=({children:n,isLogin:l})=>h.jsxs("div",{className:Gs.desktopLayout,children:[h.jsx(hh,{id:"default",className:"z-100"}),!l&&h.jsx(LN,{}),h.jsx("main",{className:Gs.main,children:n})]}),kN=({children:n,isLogin:l})=>h.jsxs("div",{className:Gs.mobileLayout,children:[h.jsx("main",{className:Gs.main,children:n}),!l&&h.jsx(BN,{})]}),QN=({children:n})=>{const l=mh(Uu.laptop),{pathname:r}=Nt(),s=r===Ye.login.path;return l?h.jsx(HN,{isLogin:s,children:n}):h.jsx(kN,{isLogin:s,children:n})};dx.createRoot(document.getElementById("root")).render(h.jsxs(Ge.StrictMode,{children:[h.jsx(q3,{}),h.jsx(cS,{client:yt,children:h.jsx(T2,{children:h.jsx(QN,{children:h.jsx(CN,{})})})})]}));